bailinghub 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (716) hide show
  1. package/.dockerignore +42 -0
  2. package/.env.example +83 -0
  3. package/.gitignore +44 -0
  4. package/.npmignore +56 -0
  5. package/CODE_OF_CONDUCT.md +24 -0
  6. package/CONTRIBUTING.md +74 -0
  7. package/Dockerfile +16 -0
  8. package/LICENSE +176 -0
  9. package/LICENSING.md +9 -0
  10. package/NOTICE +23 -0
  11. package/README.en.md +264 -0
  12. package/README.md +279 -0
  13. package/SECURITY.md +30 -0
  14. package/THIRD_PARTY_NOTICES.md +254 -0
  15. package/VISION.md +41 -0
  16. package/assets/architecture-overview.en-dark.png +0 -0
  17. package/assets/architecture-overview.en-dark.svg +57 -0
  18. package/assets/architecture-overview.en.png +0 -0
  19. package/assets/architecture-overview.en.svg +57 -0
  20. package/assets/architecture-overview.zh-CN-dark.png +0 -0
  21. package/assets/architecture-overview.zh-CN-dark.svg +57 -0
  22. package/assets/architecture-overview.zh-CN.png +0 -0
  23. package/assets/architecture-overview.zh-CN.svg +57 -0
  24. package/assets/bailinghub-lockup-dark.png +0 -0
  25. package/assets/bailinghub-lockup-dark.svg +8 -0
  26. package/assets/bailinghub-lockup.png +0 -0
  27. package/assets/bailinghub-lockup.svg +8 -0
  28. package/brain/README.en.md +23 -0
  29. package/brain/README.md +45 -0
  30. package/brain/agents/code-review.md +41 -0
  31. package/brain/agents/triage.md +37 -0
  32. package/brain/profiles.json +114 -0
  33. package/brain/runbooks/ticket-triage.md +24 -0
  34. package/config.example.json +58 -0
  35. package/contracts/client-api/consumers.json +28 -0
  36. package/contracts/client-api/v1/error-response.schema.json +21 -0
  37. package/contracts/client-api/v1/health-response.schema.json +13 -0
  38. package/contracts/client-api/v1/job-response.schema.json +49 -0
  39. package/contracts/client-api/v1/manifest.json +63 -0
  40. package/contracts/client-api/v1/run-request.schema.json +42 -0
  41. package/contracts/client-api/v1/submit-response.schema.json +35 -0
  42. package/contracts/client-api/v1/vectors.json +153 -0
  43. package/demo/business/Dockerfile +8 -0
  44. package/demo/business/server.mjs +483 -0
  45. package/docker-compose.images.yml +67 -0
  46. package/docker-compose.yml +79 -0
  47. package/docs/AI_FRIENDLY_TOOLS.en.md +69 -0
  48. package/docs/AI/345/217/213/345/245/275/345/267/245/345/205/267/350/256/276/350/256/241/346/214/207/345/215/227.md +198 -0
  49. package/docs/ARCHITECTURE.en.md +81 -0
  50. package/docs/ARCHITECTURE.md +795 -0
  51. package/docs/CHANGELOG.en.md +275 -0
  52. package/docs/CHANGELOG.md +279 -0
  53. package/docs/CHANNELS.en.md +35 -0
  54. package/docs/CHANNELS.md +72 -0
  55. package/docs/CLIENT_API.md +89 -0
  56. package/docs/COMPATIBILITY.en.md +103 -0
  57. package/docs/CONTRACT.en.md +254 -0
  58. package/docs/CONTRACT.md +653 -0
  59. package/docs/DEMO.en.md +90 -0
  60. package/docs/DEMO.md +297 -0
  61. package/docs/ECOSYSTEM.en.md +39 -0
  62. package/docs/ECOSYSTEM.md +39 -0
  63. package/docs/INDEPENDENT_VALIDATION.en.md +184 -0
  64. package/docs/INDEPENDENT_VALIDATION.md +184 -0
  65. package/docs/INTEGRATION.en.md +120 -0
  66. package/docs/KERNEL_HOST_API.en.md +59 -0
  67. package/docs/KERNEL_HOST_API.md +59 -0
  68. package/docs/OPERATIONS.en.md +182 -0
  69. package/docs/OPERATIONS.md +231 -0
  70. package/docs/PIPELINE.en.md +74 -0
  71. package/docs/PIPELINE.md +67 -0
  72. package/docs/QUICKSTART.en.md +297 -0
  73. package/docs/QUICKSTART.md +152 -0
  74. package/docs/README.en.md +103 -0
  75. package/docs/README.md +119 -0
  76. package/docs/RELEASE_NOTES_v0.1.0.en.md +46 -0
  77. package/docs/RELEASE_NOTES_v0.1.0.md +66 -0
  78. package/docs/RELEASE_NOTES_v0.1.1.en.md +38 -0
  79. package/docs/RELEASE_NOTES_v0.1.1.md +38 -0
  80. package/docs/RELEASE_NOTES_v0.1.10.en.md +102 -0
  81. package/docs/RELEASE_NOTES_v0.1.10.md +102 -0
  82. package/docs/RELEASE_NOTES_v0.1.11.en.md +99 -0
  83. package/docs/RELEASE_NOTES_v0.1.11.md +99 -0
  84. package/docs/RELEASE_NOTES_v0.1.12.en.md +64 -0
  85. package/docs/RELEASE_NOTES_v0.1.12.md +64 -0
  86. package/docs/RELEASE_NOTES_v0.1.13.en.md +46 -0
  87. package/docs/RELEASE_NOTES_v0.1.13.md +46 -0
  88. package/docs/RELEASE_NOTES_v0.1.14.en.md +55 -0
  89. package/docs/RELEASE_NOTES_v0.1.14.md +55 -0
  90. package/docs/RELEASE_NOTES_v0.1.15.en.md +50 -0
  91. package/docs/RELEASE_NOTES_v0.1.15.md +50 -0
  92. package/docs/RELEASE_NOTES_v0.1.16.en.md +106 -0
  93. package/docs/RELEASE_NOTES_v0.1.16.md +105 -0
  94. package/docs/RELEASE_NOTES_v0.1.2.en.md +39 -0
  95. package/docs/RELEASE_NOTES_v0.1.2.md +39 -0
  96. package/docs/RELEASE_NOTES_v0.1.3.en.md +55 -0
  97. package/docs/RELEASE_NOTES_v0.1.3.md +55 -0
  98. package/docs/RELEASE_NOTES_v0.1.4.en.md +55 -0
  99. package/docs/RELEASE_NOTES_v0.1.4.md +55 -0
  100. package/docs/RELEASE_NOTES_v0.1.5.en.md +49 -0
  101. package/docs/RELEASE_NOTES_v0.1.5.md +49 -0
  102. package/docs/RELEASE_NOTES_v0.1.6.en.md +41 -0
  103. package/docs/RELEASE_NOTES_v0.1.6.md +41 -0
  104. package/docs/RELEASE_NOTES_v0.1.7.en.md +39 -0
  105. package/docs/RELEASE_NOTES_v0.1.7.md +39 -0
  106. package/docs/RELEASE_NOTES_v0.1.8.en.md +88 -0
  107. package/docs/RELEASE_NOTES_v0.1.8.md +88 -0
  108. package/docs/RELEASE_NOTES_v0.1.9.en.md +127 -0
  109. package/docs/RELEASE_NOTES_v0.1.9.md +127 -0
  110. package/docs/RELEASE_NOTES_v0.2.0.en.md +95 -0
  111. package/docs/RELEASE_NOTES_v0.2.0.md +96 -0
  112. package/docs/RELEASE_NOTES_v0.3.0.en.md +77 -0
  113. package/docs/RELEASE_NOTES_v0.3.0.md +77 -0
  114. package/docs/SDK.en.md +177 -0
  115. package/docs/STREAMING.en.md +78 -0
  116. package/docs/STREAMING.md +109 -0
  117. package/docs/TOOLS.en.md +205 -0
  118. package/docs/TOOLS_DESIGN.en.md +142 -0
  119. package/docs/TOOLS_DESIGN.md +466 -0
  120. package/docs/TOOLS_MODEL.en.md +56 -0
  121. package/docs/TOOLS_MODEL.md +903 -0
  122. package/docs/WIDGET_RENDERERS.en.md +133 -0
  123. package/docs/WIDGET_RENDERERS.md +139 -0
  124. package/docs/examples/bailing-tool-verify.mjs +94 -0
  125. package/docs/examples/bailing-tool-verify.php +154 -0
  126. package/docs/examples/bailing-tool-verify.py +107 -0
  127. package/docs/examples/custom-streaming-chat-client.mjs +108 -0
  128. package/docs/examples/widget-chart-renderer-adapter.mjs +44 -0
  129. package/docs/integrations/bailian/README.en.md +181 -0
  130. package/docs/integrations/bailian/README.md +165 -0
  131. package/docs/integrations/bailian/bailian-mcp-config.json +17 -0
  132. package/docs/integrations/bailian/verify_recipe.py +97 -0
  133. package/docs/integrations/deepseek/README.en.md +225 -0
  134. package/docs/integrations/deepseek/README.md +225 -0
  135. package/docs/integrations/deepseek/verify_e2e.py +131 -0
  136. package/docs/integrations/dify/README.en.md +131 -0
  137. package/docs/integrations/dify/README.md +131 -0
  138. package/docs/integrations/dify/bailinghub-control-plane.openapi.json +129 -0
  139. package/docs/integrations/dify/verify_contract.py +88 -0
  140. package/docs/integrations/dify/verify_e2e.py +117 -0
  141. package/docs/integrations/jeecgboot/README.en.md +193 -0
  142. package/docs/integrations/jeecgboot/README.md +161 -0
  143. package/docs/integrations/jeecgboot/adapter-contract.v1.json +94 -0
  144. package/docs/integrations/jeecgboot/jeecgboot-user-adapter.openapi.json +183 -0
  145. package/docs/integrations/jeecgboot/verify_recipe.mjs +97 -0
  146. package/docs/integrations/ruoyi-vue-pro/README.en.md +91 -0
  147. package/docs/integrations/ruoyi-vue-pro/README.md +155 -0
  148. package/docs/integrations/ruoyi-vue-pro/adapter-contract.v1.json +71 -0
  149. package/docs/integrations/ruoyi-vue-pro/ruoyi-vue-pro-trade-adapter.openapi.json +148 -0
  150. package/docs/integrations/ruoyi-vue-pro/verify_recipe.mjs +71 -0
  151. package/docs/user-guide/README.en.md +39 -0
  152. package/docs/user-guide/README.md +40 -0
  153. package/docs/user-guide/concepts.en.md +69 -0
  154. package/docs/user-guide/concepts.md +225 -0
  155. package/docs/user-guide/console-map.en.md +58 -0
  156. package/docs/user-guide/console-map.md +473 -0
  157. package/docs/user-guide/overview.en.md +61 -0
  158. package/docs/user-guide/overview.md +156 -0
  159. package/docs/user-guide/scenarios.en.md +70 -0
  160. package/docs/user-guide/scenarios.md +398 -0
  161. package/docs//345/205/274/345/256/271/346/200/247/344/270/216/345/215/207/347/272/247.md +134 -0
  162. package/docs//347/254/254/344/270/211/346/226/271/345/257/271/346/216/245/346/214/207/345/215/227.md +625 -0
  163. package/package.json +119 -0
  164. package/schemas/agent-capability-contract.schema.json +104 -0
  165. package/schemas/api/approval-decision.schema.json +28 -0
  166. package/schemas/api/approval-request.schema.json +31 -0
  167. package/schemas/api/delivery-callback.schema.json +28 -0
  168. package/schemas/api/job-response.schema.json +6 -0
  169. package/schemas/api/kb-doc-upsert.schema.json +21 -0
  170. package/schemas/api/run-request.schema.json +6 -0
  171. package/schemas/api/run-response.schema.json +6 -0
  172. package/schemas/api/tool-spec.schema.json +38 -0
  173. package/schemas/config/alert-rule.schema.json +22 -0
  174. package/schemas/config/channel.schema.json +91 -0
  175. package/schemas/config/chat-entry.schema.json +47 -0
  176. package/schemas/config/client.schema.json +56 -0
  177. package/schemas/config/common.schema.json +215 -0
  178. package/schemas/config/credential.schema.json +48 -0
  179. package/schemas/config/executor-token.schema.json +20 -0
  180. package/schemas/config/page-context.schema.json +21 -0
  181. package/schemas/config/route.schema.json +152 -0
  182. package/schemas/config/storage-bucket.schema.json +31 -0
  183. package/schemas/config/target.schema.json +17 -0
  184. package/schemas/config/tool-provider.schema.json +60 -0
  185. package/schemas/tool-definition.schema.json +188 -0
  186. package/scripts/check-client-api-ecosystem.mjs +69 -0
  187. package/scripts/check-doc-links.mjs +136 -0
  188. package/scripts/check-image-tags.sh +43 -0
  189. package/scripts/check-package-artifact.mjs +185 -0
  190. package/scripts/check-release-consistency.mjs +199 -0
  191. package/scripts/check-release-consistency.test.mjs +63 -0
  192. package/scripts/client-api-contract-test.ts +127 -0
  193. package/scripts/create-admin.ts +27 -0
  194. package/scripts/demo-e2e.ts +133 -0
  195. package/scripts/docker-entrypoint.sh +33 -0
  196. package/scripts/doctor.ts +107 -0
  197. package/scripts/e2e-console.mjs +214 -0
  198. package/scripts/export-oss.mjs +204 -0
  199. package/scripts/generate-readme-assets.mjs +181 -0
  200. package/scripts/generate-third-party-notices.mjs +93 -0
  201. package/scripts/image-release-policy.mjs +75 -0
  202. package/scripts/image-release-policy.test.mjs +58 -0
  203. package/scripts/init-db.ts +21 -0
  204. package/scripts/install.sh +461 -0
  205. package/scripts/oss-boundary-check.mjs +183 -0
  206. package/scripts/publish-images.sh +63 -0
  207. package/scripts/publish-mysql-image.sh +41 -0
  208. package/scripts/release-audit.mjs +348 -0
  209. package/scripts/sdk-contract-test.ts +62 -0
  210. package/scripts/sdk-p1-check.mjs +58 -0
  211. package/scripts/sdk-runtime-test.mjs +106 -0
  212. package/scripts/security-scan.mjs +110 -0
  213. package/scripts/seed-demo.ts +116 -0
  214. package/scripts/selftest.ts +226 -0
  215. package/scripts/smoke.ts +31 -0
  216. package/scripts/validate-examples.mjs +93 -0
  217. package/scripts/verify-bootstrap-admin-restart.ts +66 -0
  218. package/scripts/verify-github-repo.mjs +195 -0
  219. package/scripts/verify-oss-export.mjs +192 -0
  220. package/scripts/verify-routing.ts +29 -0
  221. package/scripts/widget-renderer-test.mjs +206 -0
  222. package/scripts/write-build-info.mjs +29 -0
  223. package/sdk/dotnet/Bailing.Connect/Bailing.Connect.csproj +12 -0
  224. package/sdk/dotnet/Bailing.Connect/BailingConnect.cs +260 -0
  225. package/sdk/dotnet/README.md +32 -0
  226. package/sdk/dotnet/examples/BuildSpec/BuildSpec.csproj +11 -0
  227. package/sdk/dotnet/examples/BuildSpec/Program.cs +36 -0
  228. package/sdk/go/README.md +33 -0
  229. package/sdk/go/bailingconnect/connect.go +367 -0
  230. package/sdk/go/examples/build-spec/main.go +39 -0
  231. package/sdk/go/go.mod +3 -0
  232. package/sdk/java/README.md +43 -0
  233. package/sdk/java/examples/BuildSpec.java +31 -0
  234. package/sdk/java/src/main/java/com/bailing/connect/BailingConnect.java +376 -0
  235. package/sdk/node/README.md +107 -0
  236. package/sdk/node/examples/build-spec.mjs +84 -0
  237. package/sdk/node/package.json +22 -0
  238. package/sdk/node/src/index.mjs +250 -0
  239. package/sdk/php/README.md +204 -0
  240. package/sdk/php/composer.json +18 -0
  241. package/sdk/php/examples/DemoStaffController.php +108 -0
  242. package/sdk/php/examples/build-spec.php +27 -0
  243. package/sdk/php/examples/thinkphp-integration.php +81 -0
  244. package/sdk/php/src/Attributes/AiParam.php +40 -0
  245. package/sdk/php/src/Attributes/AiTool.php +75 -0
  246. package/sdk/php/src/HubClient.php +122 -0
  247. package/sdk/php/src/SpecBuilder.php +328 -0
  248. package/sdk/php/src/SpecServer.php +209 -0
  249. package/sdk/php/src/Ticket.php +37 -0
  250. package/sdk/php/src/Verify.php +178 -0
  251. package/sdk/php7/README.md +191 -0
  252. package/sdk/php7/composer.json +18 -0
  253. package/sdk/php7/examples/build-spec.php +68 -0
  254. package/sdk/php7/examples/well-known.php +33 -0
  255. package/sdk/php7/src/HubClient.php +111 -0
  256. package/sdk/php7/src/SpecServer.php +203 -0
  257. package/sdk/php7/src/Ticket.php +33 -0
  258. package/sdk/php7/src/ToolDef.php +169 -0
  259. package/sdk/php7/src/ToolSpec.php +334 -0
  260. package/sdk/php7/src/Verify.php +165 -0
  261. package/sdk/python/README.md +107 -0
  262. package/sdk/python/bailing_connect/__init__.py +307 -0
  263. package/sdk/python/examples/build_spec.py +90 -0
  264. package/sdk/python/pyproject.toml +24 -0
  265. package/sql/001_init_state.sql +66 -0
  266. package/sql/002_routes.sql +44 -0
  267. package/sql/003_executor.sql +15 -0
  268. package/sql/004_clients.sql +22 -0
  269. package/sql/005_admins.sql +25 -0
  270. package/sql/006_ledger.sql +57 -0
  271. package/sql/007_delivery.sql +8 -0
  272. package/sql/008_kb.sql +66 -0
  273. package/sql/009_rbac.sql +5 -0
  274. package/sql/010_targets.sql +28 -0
  275. package/sql/011_observability.sql +11 -0
  276. package/sql/012_generic.sql +5 -0
  277. package/sql/013_tools.sql +24 -0
  278. package/sql/014_approvals.sql +27 -0
  279. package/sql/015_chat.sql +21 -0
  280. package/sql/016_chat_feedback.sql +19 -0
  281. package/sql/017_provider_autorefresh.sql +6 -0
  282. package/sql/018_kb_ingest.sql +11 -0
  283. package/sql/019_kb_datasources.sql +32 -0
  284. package/sql/022_storage_buckets.sql +25 -0
  285. package/sql/024_channels.sql +15 -0
  286. package/sql/025_chat_appearance.sql +7 -0
  287. package/sql/026_thread_memory.sql +10 -0
  288. package/sql/027_page_contexts.sql +23 -0
  289. package/sql/028_executor_capabilities.sql +4 -0
  290. package/sql/029_executor_tokens.sql +13 -0
  291. package/sql/030_route_permission.sql +5 -0
  292. package/sql/031_tool_embeddings.sql +20 -0
  293. package/sql/032_tool_provider_embed.sql +7 -0
  294. package/sql/033_alert_rules.sql +21 -0
  295. package/sql/034_client_allowed_channels.sql +6 -0
  296. package/sql/035_tool_idempotency.sql +15 -0
  297. package/sql/036_delivery_dlq.sql +15 -0
  298. package/sql/038_audit_trace_shape.sql +15 -0
  299. package/sql/039_runtime_locks.sql +9 -0
  300. package/sql/040_budget_policy.sql +3 -0
  301. package/sql/041_approval_intent.sql +14 -0
  302. package/sql/042_approval_decision_contract.sql +11 -0
  303. package/sql/043_rate_limits.sql +7 -0
  304. package/sql/044_job_run_after.sql +3 -0
  305. package/sql/045_job_claim_lease.sql +7 -0
  306. package/sql/046_tool_authz_probe.sql +5 -0
  307. package/sql/047_route_audience.sql +4 -0
  308. package/sql/048_llm_target.sql +17 -0
  309. package/sql/049_llm_input_shape.sql +11 -0
  310. package/sql/050_operational_metrics_indexes.sql +8 -0
  311. package/sql/051_instance_branding.sql +17 -0
  312. package/sql/052_tool_execution_journal.sql +19 -0
  313. package/sql/053_tool_spec_access_policy.sql +9 -0
  314. package/sql/README.en.md +41 -0
  315. package/sql/README.md +40 -0
  316. package/src/adapters/channels/wecom-api.test.ts +77 -0
  317. package/src/adapters/channels/wecom-api.ts +224 -0
  318. package/src/adapters/channels/wecom-crypto.test.ts +85 -0
  319. package/src/adapters/channels/wecom-crypto.ts +77 -0
  320. package/src/adapters/executors/claudecode.ts +39 -0
  321. package/src/adapters/executors/profiles.ts +86 -0
  322. package/src/adapters/executors/report.ts +35 -0
  323. package/src/adapters/executors/runner.ts +114 -0
  324. package/src/adapters/executors/wecomnotify.ts +63 -0
  325. package/src/adapters/llm/file.test.ts +81 -0
  326. package/src/adapters/llm/file.ts +250 -0
  327. package/src/adapters/llm/openai-chat-stream.test.ts +74 -0
  328. package/src/adapters/llm/openai-chat-stream.ts +154 -0
  329. package/src/adapters/llm/perception.ts +159 -0
  330. package/src/adapters/llm/speech.test.ts +75 -0
  331. package/src/adapters/llm/speech.ts +146 -0
  332. package/src/adapters/storage/object-storage.test.ts +38 -0
  333. package/src/adapters/storage/object-storage.ts +140 -0
  334. package/src/adapters/targets/demo-agent.ts +88 -0
  335. package/src/adapters/targets/llm.test.ts +733 -0
  336. package/src/adapters/targets/llm.ts +862 -0
  337. package/src/app/admin-bootstrap.test.ts +112 -0
  338. package/src/app/admin-bootstrap.ts +48 -0
  339. package/src/app/auth-default.ts +26 -0
  340. package/src/app/auth.test.ts +57 -0
  341. package/src/app/auth.ts +207 -0
  342. package/src/app/builtin-tools-default.ts +17 -0
  343. package/src/app/builtin-tools.test.ts +202 -0
  344. package/src/app/builtin-tools.ts +380 -0
  345. package/src/app/channels-default.ts +8 -0
  346. package/src/app/channels.ts +141 -0
  347. package/src/app/delivery-default.ts +14 -0
  348. package/src/app/delivery.test.ts +46 -0
  349. package/src/app/delivery.ts +215 -0
  350. package/src/app/engine-default.ts +54 -0
  351. package/src/app/engine.ts +427 -0
  352. package/src/app/http-mount.test.ts +27 -0
  353. package/src/app/http-server.test.ts +114 -0
  354. package/src/app/http-server.ts +127 -0
  355. package/src/app/http.test.ts +27 -0
  356. package/src/app/http.ts +118 -0
  357. package/src/app/kernel.test.ts +191 -0
  358. package/src/app/kernel.ts +544 -0
  359. package/src/app/monitor-default.ts +9 -0
  360. package/src/app/monitor.ts +46 -0
  361. package/src/app/operational-metrics.test.ts +73 -0
  362. package/src/app/operational-metrics.ts +124 -0
  363. package/src/app/oss-edition.test.ts +71 -0
  364. package/src/app/oss-edition.ts +108 -0
  365. package/src/app/outbound-default.ts +57 -0
  366. package/src/app/outbound.ts +133 -0
  367. package/src/app/readiness.test.ts +37 -0
  368. package/src/app/readiness.ts +39 -0
  369. package/src/app/runtime-composition.test.ts +51 -0
  370. package/src/app/runtime-composition.ts +73 -0
  371. package/src/app/runtime-context-default.ts +30 -0
  372. package/src/app/runtime-context.test.ts +60 -0
  373. package/src/app/runtime-context.ts +79 -0
  374. package/src/app/runtime-lifecycle-default.ts +48 -0
  375. package/src/app/runtime-lifecycle.test.ts +322 -0
  376. package/src/app/runtime-lifecycle.ts +440 -0
  377. package/src/app/runtime.ts +36 -0
  378. package/src/app/tool-approvals-default.ts +16 -0
  379. package/src/app/tool-approvals.ts +214 -0
  380. package/src/app/tool-assembly-default.ts +11 -0
  381. package/src/app/tool-assembly.test.ts +112 -0
  382. package/src/app/tool-assembly.ts +83 -0
  383. package/src/app/tool-context-default.ts +7 -0
  384. package/src/app/tool-context.test.ts +82 -0
  385. package/src/app/tool-context.ts +109 -0
  386. package/src/app/tool-debug.test.ts +111 -0
  387. package/src/app/tool-debug.ts +152 -0
  388. package/src/app/tool-proxy-default.ts +35 -0
  389. package/src/app/tool-proxy.ts +173 -0
  390. package/src/app/tool-specs-default.ts +33 -0
  391. package/src/app/tool-specs.test.ts +322 -0
  392. package/src/app/tool-specs.ts +555 -0
  393. package/src/app/tools-runtime-default.ts +14 -0
  394. package/src/app/tools-runtime.ts +23 -0
  395. package/src/architecture-boundary.test.ts +119 -0
  396. package/src/core/config/config-codec.test.ts +105 -0
  397. package/src/core/config/config-codec.ts +231 -0
  398. package/src/core/config/config-diagnostics.test.ts +285 -0
  399. package/src/core/config/config-diagnostics.ts +436 -0
  400. package/src/core/config/config-models.test.ts +584 -0
  401. package/src/core/config/config-models.ts +392 -0
  402. package/src/core/config/config-schema.test.ts +153 -0
  403. package/src/core/config/config.test.ts +314 -0
  404. package/src/core/config/config.ts +324 -0
  405. package/src/core/config/route-config.test.ts +232 -0
  406. package/src/core/config/route-config.ts +246 -0
  407. package/src/core/config/target-config.test.ts +139 -0
  408. package/src/core/config/target-config.ts +219 -0
  409. package/src/core/config/tools-config.test.ts +124 -0
  410. package/src/core/config/tools-config.ts +126 -0
  411. package/src/core/contracts/approval-decision.test.ts +67 -0
  412. package/src/core/contracts/approval-decision.ts +93 -0
  413. package/src/core/contracts/openapi-tools.ts +201 -0
  414. package/src/core/contracts/tool-annotations.ts +121 -0
  415. package/src/core/contracts/tool-definition.test.ts +147 -0
  416. package/src/core/contracts/tool-definition.ts +304 -0
  417. package/src/core/contracts/tools-idempotency.test.ts +435 -0
  418. package/src/core/contracts/tools.test.ts +487 -0
  419. package/src/core/contracts/tools.ts +831 -0
  420. package/src/core/contracts/types.ts +408 -0
  421. package/src/core/edition/capabilities.ts +6 -0
  422. package/src/core/edition/context.test.ts +20 -0
  423. package/src/core/edition/context.ts +78 -0
  424. package/src/core/edition/index.ts +4 -0
  425. package/src/core/edition/scope-resolver.ts +24 -0
  426. package/src/core/edition/store-factory.ts +6 -0
  427. package/src/core/observability/openmetrics.test.ts +57 -0
  428. package/src/core/observability/openmetrics.ts +103 -0
  429. package/src/core/platform/content.test.ts +46 -0
  430. package/src/core/platform/content.ts +90 -0
  431. package/src/core/platform/fence.test.ts +31 -0
  432. package/src/core/platform/fence.ts +11 -0
  433. package/src/core/platform/instance-branding.test.ts +65 -0
  434. package/src/core/platform/instance-branding.ts +202 -0
  435. package/src/core/platform/metrics-token.test.ts +31 -0
  436. package/src/core/platform/metrics-token.ts +42 -0
  437. package/src/core/platform/pagecontext.ts +0 -0
  438. package/src/core/platform/password.test.ts +13 -0
  439. package/src/core/platform/password.ts +38 -0
  440. package/src/core/platform/queue.test.ts +59 -0
  441. package/src/core/platform/queue.ts +75 -0
  442. package/src/core/platform/serial.test.ts +73 -0
  443. package/src/core/platform/serial.ts +64 -0
  444. package/src/core/platform/server-token.test.ts +46 -0
  445. package/src/core/platform/server-token.ts +60 -0
  446. package/src/core/platform/signing.test.ts +24 -0
  447. package/src/core/platform/signing.ts +22 -0
  448. package/src/core/platform/time.ts +73 -0
  449. package/src/core/platform/version.test.ts +19 -0
  450. package/src/core/platform/version.ts +90 -0
  451. package/src/core/runtime/budget-runtime.test.ts +93 -0
  452. package/src/core/runtime/budget-runtime.ts +110 -0
  453. package/src/core/runtime/context-runtime.test.ts +106 -0
  454. package/src/core/runtime/context-runtime.ts +95 -0
  455. package/src/core/runtime/credential-resolver.test.ts +129 -0
  456. package/src/core/runtime/credential-resolver.ts +93 -0
  457. package/src/core/runtime/credential-verify.test.ts +76 -0
  458. package/src/core/runtime/credential-verify.ts +161 -0
  459. package/src/core/runtime/debug-report.test.ts +20 -0
  460. package/src/core/runtime/debug-report.ts +100 -0
  461. package/src/core/runtime/execution-runtime.test.ts +350 -0
  462. package/src/core/runtime/execution-runtime.ts +197 -0
  463. package/src/core/runtime/finish-runtime.test.ts +168 -0
  464. package/src/core/runtime/finish-runtime.ts +83 -0
  465. package/src/core/runtime/identity-runtime.test.ts +38 -0
  466. package/src/core/runtime/identity-runtime.ts +104 -0
  467. package/src/core/runtime/inhub-runtime.test.ts +297 -0
  468. package/src/core/runtime/inhub-runtime.ts +198 -0
  469. package/src/core/runtime/job-stream.test.ts +55 -0
  470. package/src/core/runtime/job-stream.ts +187 -0
  471. package/src/core/runtime/knowledge-runtime.test.ts +120 -0
  472. package/src/core/runtime/knowledge-runtime.ts +98 -0
  473. package/src/core/runtime/launch-runtime.test.ts +187 -0
  474. package/src/core/runtime/launch-runtime.ts +182 -0
  475. package/src/core/runtime/memory-runtime.test.ts +85 -0
  476. package/src/core/runtime/memory-runtime.ts +32 -0
  477. package/src/core/runtime/memory.ts +141 -0
  478. package/src/core/runtime/redaction-runtime.test.ts +35 -0
  479. package/src/core/runtime/redaction-runtime.ts +60 -0
  480. package/src/core/runtime/routing-runtime.test.ts +89 -0
  481. package/src/core/runtime/routing-runtime.ts +146 -0
  482. package/src/core/runtime/smoke-runtime.test.ts +65 -0
  483. package/src/core/runtime/smoke-runtime.ts +237 -0
  484. package/src/core/runtime/summary-runtime.test.ts +234 -0
  485. package/src/core/runtime/summary-runtime.ts +153 -0
  486. package/src/core/runtime/trace-runtime.test.ts +234 -0
  487. package/src/core/runtime/trace-runtime.ts +330 -0
  488. package/src/core/state/audit-observability.test.ts +51 -0
  489. package/src/core/state/audit-observability.ts +74 -0
  490. package/src/core/state/state-codec.ts +44 -0
  491. package/src/core/state/state-contracts.ts +59 -0
  492. package/src/core/targets/adapter.ts +69 -0
  493. package/src/core/targets/registry.test.ts +65 -0
  494. package/src/core/targets/registry.ts +153 -0
  495. package/src/core/targets/resolve.ts +21 -0
  496. package/src/executor.ts +201 -0
  497. package/src/extension-api.test.ts +84 -0
  498. package/src/extension-api.ts +194 -0
  499. package/src/infrastructure/config/config-admin-repository.test.ts +193 -0
  500. package/src/infrastructure/config/config-admin-repository.ts +175 -0
  501. package/src/infrastructure/config/config-alert-rule-repository.ts +38 -0
  502. package/src/infrastructure/config/config-approval-ledger.ts +74 -0
  503. package/src/infrastructure/config/config-channel-repository.ts +31 -0
  504. package/src/infrastructure/config/config-chat-repository.ts +83 -0
  505. package/src/infrastructure/config/config-client-repository.ts +46 -0
  506. package/src/infrastructure/config/config-conversation-ledger.ts +222 -0
  507. package/src/infrastructure/config/config-credential-repository.test.ts +32 -0
  508. package/src/infrastructure/config/config-credential-repository.ts +47 -0
  509. package/src/infrastructure/config/config-delivery-dlq-ledger.ts +49 -0
  510. package/src/infrastructure/config/config-executor-ledger.ts +30 -0
  511. package/src/infrastructure/config/config-executor-token-repository.ts +44 -0
  512. package/src/infrastructure/config/config-instance-branding-repository.ts +75 -0
  513. package/src/infrastructure/config/config-knowledge-repository.ts +249 -0
  514. package/src/infrastructure/config/config-observability-ledger.ts +262 -0
  515. package/src/infrastructure/config/config-project-repository.ts +30 -0
  516. package/src/infrastructure/config/config-rate-limit-ledger.ts +56 -0
  517. package/src/infrastructure/config/config-route-repository.ts +41 -0
  518. package/src/infrastructure/config/config-storage-bucket-repository.ts +43 -0
  519. package/src/infrastructure/config/config-target-repository.ts +25 -0
  520. package/src/infrastructure/config/config-tool-call-ledger.ts +142 -0
  521. package/src/infrastructure/config/config-tool-embedding-repository.test.ts +124 -0
  522. package/src/infrastructure/config/config-tool-embedding-repository.ts +78 -0
  523. package/src/infrastructure/config/config-tool-provider-repository.test.ts +71 -0
  524. package/src/infrastructure/config/config-tool-provider-repository.ts +50 -0
  525. package/src/infrastructure/config/configstore.ts +130 -0
  526. package/src/infrastructure/config/local-instance-branding-provider.test.ts +94 -0
  527. package/src/infrastructure/config/local-instance-branding-provider.ts +79 -0
  528. package/src/infrastructure/mysql/pool-owner.test.ts +36 -0
  529. package/src/infrastructure/mysql/pool-owner.ts +56 -0
  530. package/src/infrastructure/schema/core-schema-migrator.test.ts +340 -0
  531. package/src/infrastructure/schema/core-schema-migrator.ts +461 -0
  532. package/src/infrastructure/schema/migration-files.test.ts +18 -0
  533. package/src/infrastructure/schema/migration-files.ts +27 -0
  534. package/src/infrastructure/schema/retired-migrations.ts +35 -0
  535. package/src/infrastructure/state/operational-metrics-storage.test.ts +107 -0
  536. package/src/infrastructure/state/state-jsonl.ts +268 -0
  537. package/src/infrastructure/state/state-mysql-update-plan.test.ts +54 -0
  538. package/src/infrastructure/state/state-mysql-update-plan.ts +63 -0
  539. package/src/infrastructure/state/state-mysql.ts +359 -0
  540. package/src/infrastructure/state/state.test.ts +319 -0
  541. package/src/infrastructure/state/state.ts +11 -0
  542. package/src/kernel-api/v1/artifact.test.ts +46 -0
  543. package/src/kernel-api/v1/artifact.ts +71 -0
  544. package/src/kernel-api/v1/contracts.ts +168 -0
  545. package/src/kernel-api/v1/execution-gate.test.ts +25 -0
  546. package/src/kernel-api/v1/execution-gate.ts +18 -0
  547. package/src/kernel-api/v1/index.ts +51 -0
  548. package/src/openclaw-stdio.test.ts +60 -0
  549. package/src/routes/admin-access-default.ts +20 -0
  550. package/src/routes/admin-access.ts +94 -0
  551. package/src/routes/admin-branding.test.ts +116 -0
  552. package/src/routes/admin-branding.ts +48 -0
  553. package/src/routes/admin-chat-default.ts +12 -0
  554. package/src/routes/admin-chat.ts +84 -0
  555. package/src/routes/admin-default.ts +35 -0
  556. package/src/routes/admin-dispatch-config-default.ts +13 -0
  557. package/src/routes/admin-dispatch-config.ts +121 -0
  558. package/src/routes/admin-format.ts +12 -0
  559. package/src/routes/admin-host.test.ts +56 -0
  560. package/src/routes/admin-infra-default.ts +12 -0
  561. package/src/routes/admin-infra.ts +142 -0
  562. package/src/routes/admin-kb-default.ts +13 -0
  563. package/src/routes/admin-kb.ts +160 -0
  564. package/src/routes/admin-runtime-default.ts +31 -0
  565. package/src/routes/admin-runtime.ts +444 -0
  566. package/src/routes/admin-tool-providers-default.ts +20 -0
  567. package/src/routes/admin-tool-providers.test.ts +114 -0
  568. package/src/routes/admin-tool-providers.ts +186 -0
  569. package/src/routes/admin.ts +246 -0
  570. package/src/routes/approvals-default.ts +32 -0
  571. package/src/routes/approvals.ts +120 -0
  572. package/src/routes/chat-default.ts +61 -0
  573. package/src/routes/chat-mount.test.ts +58 -0
  574. package/src/routes/chat.test.ts +222 -0
  575. package/src/routes/chat.ts +478 -0
  576. package/src/routes/critical-routes.test.ts +292 -0
  577. package/src/routes/executor-default.ts +45 -0
  578. package/src/routes/executor.ts +226 -0
  579. package/src/routes/kb-default.ts +23 -0
  580. package/src/routes/kb.ts +92 -0
  581. package/src/routes/private-default.ts +38 -0
  582. package/src/routes/private-host-auth.test.ts +84 -0
  583. package/src/routes/private.ts +210 -0
  584. package/src/routes/public-default.ts +46 -0
  585. package/src/routes/public.test.ts +504 -0
  586. package/src/routes/public.ts +313 -0
  587. package/src/routes/run-default.ts +25 -0
  588. package/src/routes/run.ts +188 -0
  589. package/src/routes/send-default.ts +24 -0
  590. package/src/routes/send.ts +143 -0
  591. package/src/routes/wecom-default.ts +27 -0
  592. package/src/routes/wecom.ts +307 -0
  593. package/src/server.ts +13 -0
  594. package/src/services/embedding.test.ts +185 -0
  595. package/src/services/embedding.ts +138 -0
  596. package/src/services/kb-repository.ts +79 -0
  597. package/src/services/kb.ts +328 -0
  598. package/src/services/kbsync.ts +166 -0
  599. package/src/services/tool-index-repository.ts +50 -0
  600. package/src/services/tools-index.test.ts +756 -0
  601. package/src/services/tools-index.ts +427 -0
  602. package/tsconfig.json +17 -0
  603. package/web/connect/bailing-connect-php.tgz +0 -0
  604. package/web/connect/bailing-connect-php7.tgz +0 -0
  605. package/web/connect/executor.mjs +152 -0
  606. package/web/connect/openclaw-stdio.mjs +145 -0
  607. package/web/connect/skills/connect-bailinghub-executor/SKILL.md +97 -0
  608. package/web/connect/skills/connect-bailinghub-executor/agents/openai.yaml +4 -0
  609. package/web/connect/skills/connect-bailinghub-executor/references/direct-protocol.md +99 -0
  610. package/web/connect/skills/connect-bailinghub-executor/references/openclaw.md +39 -0
  611. package/web/console/assets/Accounts-B4ePH5jp.css +1 -0
  612. package/web/console/assets/Accounts-Dwzm4D_V.js +3 -0
  613. package/web/console/assets/Approvals-BxhuI0ku.js +1 -0
  614. package/web/console/assets/Approvals-DlTSHl_7.css +1 -0
  615. package/web/console/assets/Audit-CSu6_3oD.css +1 -0
  616. package/web/console/assets/Audit-dFAbGynl.js +1 -0
  617. package/web/console/assets/BrandLockup-BtZyvkM5.js +1 -0
  618. package/web/console/assets/BrandLockup-DKYBYzKU.css +1 -0
  619. package/web/console/assets/Channels-CCn0L1jg.css +1 -0
  620. package/web/console/assets/Channels-Dqg4-_yr.js +105 -0
  621. package/web/console/assets/ChatEntries-BweMx_CU.css +1 -0
  622. package/web/console/assets/ChatEntries-CEGZ3NnJ.js +7 -0
  623. package/web/console/assets/Clients-C0QD1x7g.js +3 -0
  624. package/web/console/assets/Clients-DcTYN-Js.css +1 -0
  625. package/web/console/assets/Cost-BAJqLhpK.js +1 -0
  626. package/web/console/assets/Cost-CjT39DSZ.css +1 -0
  627. package/web/console/assets/Credentials-D_GDRgWi.js +1 -0
  628. package/web/console/assets/Credentials-ioLP0qYN.css +1 -0
  629. package/web/console/assets/Diagnostics-BWYnDxRj.js +1 -0
  630. package/web/console/assets/Diagnostics-Ya05PTDp.css +1 -0
  631. package/web/console/assets/Executors-CjhEM54c.css +1 -0
  632. package/web/console/assets/Executors-Cmryk4Vk.js +1 -0
  633. package/web/console/assets/HelpTip-CA6Bm7Nx.css +1 -0
  634. package/web/console/assets/HelpTip-CT07o3kB.js +1 -0
  635. package/web/console/assets/Kb-BSXQE0Fa.js +5 -0
  636. package/web/console/assets/Kb-CzIzd9xr.css +1 -0
  637. package/web/console/assets/Login-BnBPqC8Z.js +1 -0
  638. package/web/console/assets/Login-xtPwDB5_.css +1 -0
  639. package/web/console/assets/Projects-Bm8AjsNx.css +1 -0
  640. package/web/console/assets/Projects-CNHx4L_7.js +1 -0
  641. package/web/console/assets/Routes-DWGQN5Pv.css +1 -0
  642. package/web/console/assets/Routes-u5cEAEXQ.js +124 -0
  643. package/web/console/assets/Runs-BeFUR77_.js +3 -0
  644. package/web/console/assets/Runs-CUtSsPW-.css +1 -0
  645. package/web/console/assets/Setup-BjZfrmfN.js +1 -0
  646. package/web/console/assets/Setup-QjlHZKdB.css +1 -0
  647. package/web/console/assets/Shell-CbGNTN91.css +1 -0
  648. package/web/console/assets/Shell-EJuYf3OO.js +1 -0
  649. package/web/console/assets/StorageBuckets-DMXRJxUA.js +1 -0
  650. package/web/console/assets/StorageBuckets-GnXnVvF0.css +1 -0
  651. package/web/console/assets/SystemSettings-B72F-loY.js +1 -0
  652. package/web/console/assets/SystemSettings-BjiHyrXO.css +1 -0
  653. package/web/console/assets/SystemStatus-I11I67rw.css +1 -0
  654. package/web/console/assets/SystemStatus-hOj_TPYE.js +1 -0
  655. package/web/console/assets/Targets-DTb5tn6z.css +1 -0
  656. package/web/console/assets/Targets-UVVf7twC.js +1 -0
  657. package/web/console/assets/Tools-A20oaMaQ.css +1 -0
  658. package/web/console/assets/Tools-ihkr9R9x.js +2 -0
  659. package/web/console/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
  660. package/web/console/assets/docs-DPUOCa7R.js +1 -0
  661. package/web/console/assets/index-DZEQL_yy.js +1 -0
  662. package/web/console/assets/index-DxvruykG.js +2 -0
  663. package/web/console/assets/index-Fi9gkGxV.css +1 -0
  664. package/web/console/assets/llm-catalog-HwRIrS94.js +1 -0
  665. package/web/console/assets/request-BisL2T9B.js +1 -0
  666. package/web/console/assets/schema-CzpUpoLk.js +1 -0
  667. package/web/console/assets/util-SiQC2MJh.js +1 -0
  668. package/web/console/assets/vendor-element-D7WRzHhy.js +37 -0
  669. package/web/console/assets/vendor-mammoth-DvgsHdlx.js +231 -0
  670. package/web/console/assets/vendor-turndown-kLzRgxYD.js +61 -0
  671. package/web/console/assets/vendor-vue-B2uhHUfE.js +29 -0
  672. package/web/console/index.html +16 -0
  673. package/web/widget/widget.js +1490 -0
  674. package/web-admin/index.html +13 -0
  675. package/web-admin/package-lock.json +1854 -0
  676. package/web-admin/package.json +25 -0
  677. package/web-admin/src/App.vue +9 -0
  678. package/web-admin/src/branding.ts +90 -0
  679. package/web-admin/src/components/BrandLockup.vue +40 -0
  680. package/web-admin/src/components/HelpTip.vue +51 -0
  681. package/web-admin/src/components/RichText.vue +35 -0
  682. package/web-admin/src/docs.ts +16 -0
  683. package/web-admin/src/layout/Shell.vue +356 -0
  684. package/web-admin/src/llm-catalog.ts +129 -0
  685. package/web-admin/src/main.ts +116 -0
  686. package/web-admin/src/pages/Accounts.vue +162 -0
  687. package/web-admin/src/pages/Approvals.vue +179 -0
  688. package/web-admin/src/pages/Audit.vue +110 -0
  689. package/web-admin/src/pages/Channels.vue +738 -0
  690. package/web-admin/src/pages/ChatEntries.vue +778 -0
  691. package/web-admin/src/pages/Clients.vue +353 -0
  692. package/web-admin/src/pages/Cost.vue +314 -0
  693. package/web-admin/src/pages/Credentials.vue +418 -0
  694. package/web-admin/src/pages/Diagnostics.vue +440 -0
  695. package/web-admin/src/pages/Executors.vue +398 -0
  696. package/web-admin/src/pages/Kb.vue +698 -0
  697. package/web-admin/src/pages/Login.vue +314 -0
  698. package/web-admin/src/pages/Projects.vue +106 -0
  699. package/web-admin/src/pages/Routes.vue +1661 -0
  700. package/web-admin/src/pages/Runs.vue +1113 -0
  701. package/web-admin/src/pages/Setup.vue +354 -0
  702. package/web-admin/src/pages/StorageBuckets.vue +182 -0
  703. package/web-admin/src/pages/SystemSettings.vue +281 -0
  704. package/web-admin/src/pages/SystemStatus.vue +185 -0
  705. package/web-admin/src/pages/Targets.vue +193 -0
  706. package/web-admin/src/pages/Tools.vue +1051 -0
  707. package/web-admin/src/request.ts +18 -0
  708. package/web-admin/src/router.ts +142 -0
  709. package/web-admin/src/runtime-path.ts +27 -0
  710. package/web-admin/src/schema.ts +52 -0
  711. package/web-admin/src/store.ts +35 -0
  712. package/web-admin/src/styles/base.css +272 -0
  713. package/web-admin/src/table-widths.ts +603 -0
  714. package/web-admin/src/util.ts +16 -0
  715. package/web-admin/tsconfig.json +15 -0
  716. package/web-admin/vite.config.ts +35 -0
@@ -0,0 +1,102 @@
1
+ # BailingHub v0.1.10: Instance Branding and Ecosystem Integration Improvements
2
+
3
+ `v0.1.10` lets self-hosted deployments manage instance branding in the console without modifying frontend source code. It also improves model-identifier diagnostics and adds reproducible DeepSeek and Alibaba Cloud Bailian integration recipes.
4
+
5
+ ## Main Changes
6
+
7
+ ### Instance branding
8
+
9
+ Administrators with `admins:manage` can configure:
10
+
11
+ - site name and browser title;
12
+ - site description and keywords;
13
+ - login heading and subheading;
14
+ - logo and favicon.
15
+
16
+ Settings are stored in the hub-owned `bz_instance_branding` table. Code upgrades, service restarts, and console rebuilds do not overwrite saved values. Public `GET /branding` responses contain display data only. Logo and favicon assets are served through separate public endpoints without exposing management-source or platform metadata.
17
+
18
+ Image types are detected from file bytes rather than trusting the browser-provided MIME type:
19
+
20
+ - logos support PNG, JPEG, and WebP up to 512 KiB;
21
+ - favicons support PNG and ICO up to 128 KiB.
22
+
23
+ ### Explicit future platform-ownership boundary
24
+
25
+ The console and public display path depend only on the stable `InstanceBrandingProvider` contract. The open-source edition uses the local provider. A future external platform may replace it, make instance-local settings read-only, and provide a platform management URL.
26
+
27
+ An upgrade must perform a one-time migration and then use one authoritative source. Local and platform stores are never dual-written.
28
+
29
+ ### Model identifier diagnostics
30
+
31
+ When model verification fails and the configured model ID contains whitespace, the console now warns that a display name may have been entered and recommends copying the exact ID from provider documentation or `/models`.
32
+
33
+ Tencent Cloud TokenHub is included as a provider preset:
34
+
35
+ ```text
36
+ base_url: https://tokenhub.tencentmaas.com/v1
37
+ model: kimi-k3
38
+ ```
39
+
40
+ This is a diagnostic and usability improvement, not a universal protocol restriction. Deployments that intentionally use custom aliases may continue entering their own model IDs.
41
+
42
+ ### DeepSeek and Alibaba Cloud Bailian recipes
43
+
44
+ The public documentation now includes:
45
+
46
+ - a DeepSeek V4 recipe covering text, streaming, tool calling, and complete hub E2E verification;
47
+ - bilingual Alibaba Cloud Bailian remote-MCP configuration, verification steps, and a verification script.
48
+
49
+ These are optional ecosystem recipes. They do not change the BailingHub Client API, executor protocol, or ACC semantics.
50
+
51
+ ## Database Migration
52
+
53
+ This release adds:
54
+
55
+ ```text
56
+ sql/051_instance_branding.sql
57
+ ```
58
+
59
+ The official Docker entrypoint runs migrations automatically. Deployments that run from source, use a custom startup path, or bypass the official entrypoint must run:
60
+
61
+ ```bash
62
+ npm run db:init
63
+ ```
64
+
65
+ The migration adds one singleton branding table and does not modify existing jobs, approvals, audits, tools, or administrator data.
66
+
67
+ ## Compatibility Boundaries
68
+
69
+ - Existing deployments keep the default BailingHub branding after upgrade and require no immediate configuration.
70
+ - Client API, executor protocol, tool signatures, approval semantics, and ACC are unchanged.
71
+ - The new public branding API provides display data only and has no authorization role.
72
+ - The model-ID warning does not reject legitimate custom aliases.
73
+ - Platform ownership is a replaceable extension boundary; the open-source edition ships only the local provider, while external platform adapters remain separate.
74
+
75
+ ## Validation
76
+
77
+ Before release:
78
+
79
+ ```bash
80
+ npm run typecheck
81
+ npm test
82
+ npm run web-admin:check
83
+ npm run docs:check
84
+ npm run security:scan
85
+ npm run release:check
86
+ ```
87
+
88
+ After upgrade, verify:
89
+
90
+ 1. `npm run db:init` completes and the migration ledger includes `051_instance_branding.sql`;
91
+ 2. `/health/ready` reports ready;
92
+ 3. `GET /branding` returns the default or saved instance branding;
93
+ 4. saved branding remains unchanged after a service restart;
94
+ 5. unsupported, oversized, or non-image assets are rejected;
95
+ 6. existing job, approval, audit, and executor paths remain operational.
96
+
97
+ ## Related Documentation
98
+
99
+ - [Compatibility and Upgrade Policy](COMPATIBILITY.en.md)
100
+ - [DeepSeek Integration Recipe](integrations/deepseek/README.en.md)
101
+ - [Alibaba Cloud Bailian MCP Recipe](integrations/bailian/README.en.md)
102
+ - [Changelog](CHANGELOG.en.md)
@@ -0,0 +1,102 @@
1
+ # BailingHub v0.1.10:实例品牌设置与生态接入完善
2
+
3
+ `v0.1.10` 让自托管部署可以直接在控制台维护实例品牌信息,而不必修改前端源码;同时改善模型标识诊断,并补齐 DeepSeek 与阿里云百炼的可复现接入配方。
4
+
5
+ ## 主要变化
6
+
7
+ ### 实例品牌设置
8
+
9
+ 具有 `admins:manage` 权限的管理员可在控制台“系统设置”中维护:
10
+
11
+ - 网站名称与浏览器标题;
12
+ - 网站描述与关键词;
13
+ - 登录页主标题与副标题;
14
+ - Logo 与 favicon。
15
+
16
+ 设置保存在中枢自己的 `bz_instance_branding` 表中,升级代码、重启服务或重新构建控制台不会覆盖已保存内容。公开 `GET /branding` 只返回展示所需数据;Logo 与 favicon 通过独立公开资源端点提供,不暴露管理来源或平台元数据。
17
+
18
+ 图片按实际文件头识别类型,不信任浏览器声明的 MIME:
19
+
20
+ - Logo 支持 PNG、JPEG、WebP,最大 512 KiB;
21
+ - favicon 支持 PNG、ICO,最大 128 KiB。
22
+
23
+ ### 为未来平台版保留明确接管边界
24
+
25
+ 控制台与公开展示只依赖稳定的 `InstanceBrandingProvider` 契约。开源版默认使用本地 Provider;未来由外部平台统一管理时,可以替换 Provider,使实例内设置自动转为只读并指向平台管理入口。
26
+
27
+ 升级只允许一次性迁移后由单一来源接管,不采用本地与平台双写,避免两个后台互相覆盖。
28
+
29
+ ### 模型标识诊断
30
+
31
+ 模型验证失败时,如果模型 ID 含空白字符,控制台会提示用户检查是否误填了平台展示名称,并建议从官方文档或 `/models` 复制精确 ID。
32
+
33
+ 腾讯云 TokenHub 已加入平台预设:
34
+
35
+ ```text
36
+ base_url: https://tokenhub.tencentmaas.com/v1
37
+ model: kimi-k3
38
+ ```
39
+
40
+ 这是一项诊断和易用性改进,不把“无空格”定义成通用协议限制。确实使用自定义别名的部署仍可填写自己的模型 ID。
41
+
42
+ ### DeepSeek 与阿里云百炼配方
43
+
44
+ 新增并维护:
45
+
46
+ - DeepSeek V4 文本、流式输出、工具调用和完整中枢 E2E 验证配方;
47
+ - 阿里云百炼远程 MCP 接入的中英文配置、验证步骤和检查脚本。
48
+
49
+ 这些配方属于可选生态接入文档,不改变 BailingHub 核心 Client API、执行器协议或 ACC 语义。
50
+
51
+ ## 数据库迁移
52
+
53
+ 新增:
54
+
55
+ ```text
56
+ sql/051_instance_branding.sql
57
+ ```
58
+
59
+ 官方 Docker 入口会自动执行迁移。直接从源码运行、使用自定义启动入口或跳过官方 entrypoint 的部署,升级后必须执行:
60
+
61
+ ```bash
62
+ npm run db:init
63
+ ```
64
+
65
+ 迁移只新增单例品牌设置表,不修改既有任务、审批、审计、工具或账号数据。
66
+
67
+ ## 兼容性边界
68
+
69
+ - 现有部署升级后默认显示原有 BailingHub 品牌,不要求立即配置;
70
+ - 不修改 Client API、执行器协议、工具签名、审批语义或 ACC;
71
+ - 新增公开品牌接口只提供展示信息,不参与鉴权或授权;
72
+ - 模型 ID 提示不会阻止合法自定义别名;
73
+ - 平台接管能力是可替换扩展边界,开源版不包含外部平台的托管逻辑。
74
+
75
+ ## 验证
76
+
77
+ 发布前执行:
78
+
79
+ ```bash
80
+ npm run typecheck
81
+ npm test
82
+ npm run web-admin:check
83
+ npm run docs:check
84
+ npm run security:scan
85
+ npm run release:check
86
+ ```
87
+
88
+ 升级后建议确认:
89
+
90
+ 1. `npm run db:init` 完成,迁移账本包含 `051_instance_branding.sql`;
91
+ 2. `/health/ready` 返回就绪;
92
+ 3. `GET /branding` 返回默认或已保存的实例品牌;
93
+ 4. 管理员保存品牌设置后,重启服务仍保持原值;
94
+ 5. 非图片内容、超限图片和不支持的格式会被拒绝;
95
+ 6. 既有任务、审批、审计与执行器路径继续正常工作。
96
+
97
+ ## 相关文档
98
+
99
+ - [兼容性与升级](兼容性与升级.md)
100
+ - [DeepSeek 接入配方](integrations/deepseek/README.md)
101
+ - [阿里云百炼 MCP 配方](integrations/bailian/README.md)
102
+ - [发布记录](CHANGELOG.md)
@@ -0,0 +1,99 @@
1
+ # BailingHub v0.1.11: Side-Effect Execution Journal and Uncertain-Outcome Freezing
2
+
3
+ `v0.1.11` tightens the recovery boundary for real business side effects. BailingHub must persist an execution-journal entry before dispatch. When a timeout, disconnect, restart, or audit failure makes the business outcome uncertain, the runtime freezes the execution for reconciliation instead of replaying it automatically.
4
+
5
+ ## Main Changes
6
+
7
+ ### Durable journal before side-effect dispatch
8
+
9
+ For a non-read-only, non-idempotent business tool, BailingHub now:
10
+
11
+ 1. persists `dispatching` before sending the request;
12
+ 2. persists `response_recorded` after receiving the HTTP response;
13
+ 3. persists `completed` only after the result audit and terminal task ledger both succeed.
14
+
15
+ If the durable execution journal is unavailable or the pre-dispatch entry cannot be written, the request is not sent. The runtime never falls back to executing first and recording only after success.
16
+
17
+ ### No automatic replay of uncertain business outcomes
18
+
19
+ The following cases converge to `reconciliation_required` with `auto_retry_allowed=false`:
20
+
21
+ - request timeout or network interruption;
22
+ - unresolved execution found after a process restart;
23
+ - business response received but result-audit persistence failed;
24
+ - response recorded but terminal task-ledger completion failed;
25
+ - partial delivery of text chunks, cards, or attachments by the built-in messaging tool.
26
+
27
+ Recovery scans unresolved journal entries before the model runs again. It does not depend on the model selecting the same tool and does not send a second request when the business effect cannot be ruled out.
28
+
29
+ ### Stable business idempotency key
30
+
31
+ Side-effecting business requests now include:
32
+
33
+ ```http
34
+ X-Bailing-Idempotency-Key: <stable side-effect key>
35
+ ```
36
+
37
+ The key is stable for the task, acting subject, tool, and canonical arguments. It supports business-side deduplication and operator reconciliation. It does not replace:
38
+
39
+ - `X-Bailing-Signature` verification;
40
+ - final business authorization;
41
+ - domain-specific idempotency rules.
42
+
43
+ ### Built-in messaging uses the same boundary
44
+
45
+ `send_message` is no longer treated as an ordinary internal action. It uses the same durable journal. If any text chunk, card, or attachment may already have been delivered, a later failure freezes the whole send instead of replaying it and risking duplicate notifications.
46
+
47
+ ## Database Migration
48
+
49
+ This release adds:
50
+
51
+ ```text
52
+ sql/052_tool_execution_journal.sql
53
+ ```
54
+
55
+ The official Docker entrypoint runs migrations automatically. Deployments that run from source, use a custom startup path, or bypass the official entrypoint must run:
56
+
57
+ ```bash
58
+ npm run db:init
59
+ ```
60
+
61
+ The migration extends the existing tool-call deduplication ledger into a recoverable execution journal. It does not modify the business-system database.
62
+
63
+ ## Compatibility Boundaries
64
+
65
+ - Read-only tools and explicitly idempotent tools keep their existing behavior.
66
+ - The Client API, executor protocol, ACC semantics, and final business-authorization boundary are unchanged.
67
+ - Side-effecting tools require a durable execution journal. Missing persistence fails closed before dispatch.
68
+ - BailingHub does not claim exactly-once execution. Conservative freezing may include a request that never reached the business system, so operators must reconcile against business records and the idempotency key.
69
+ - Existing signature verification remains valid if a business system does not yet consume `X-Bailing-Idempotency-Key`, but side-effect deduplication should adopt this key or a stronger domain key.
70
+
71
+ ## Validation
72
+
73
+ Before release:
74
+
75
+ ```bash
76
+ npm run typecheck
77
+ npm test
78
+ npm run web-admin:check
79
+ npm run docs:check
80
+ npm run examples:check
81
+ npm run security:scan
82
+ npm run release:check
83
+ ```
84
+
85
+ After upgrade, verify:
86
+
87
+ 1. `npm run db:init` completes and the migration ledger includes `052_tool_execution_journal.sql`;
88
+ 2. `/health/ready` reports ready;
89
+ 3. a side-effecting call creates `dispatching` before outbound delivery;
90
+ 4. the entry becomes `completed` only after the business response, result audit, and terminal task ledger succeed;
91
+ 5. simulated timeout, restart, or audit failure returns `reconciliation_required` without automatic redispatch;
92
+ 6. the business system can record and deduplicate `X-Bailing-Idempotency-Key`.
93
+
94
+ ## Related Documentation
95
+
96
+ - [Tool Governance Design](TOOLS_DESIGN.en.md)
97
+ - [Public Runtime Contract](CONTRACT.en.md)
98
+ - [Compatibility and Upgrade Policy](COMPATIBILITY.en.md)
99
+ - [Changelog](CHANGELOG.en.md)
@@ -0,0 +1,99 @@
1
+ # BailingHub v0.1.11:副作用执行日志与不确定结果冻结
2
+
3
+ `v0.1.11` 收紧了 Agent 执行真实业务副作用时的恢复边界:请求外发前必须先写持久化执行日志;当超时、断连、重启或审计失败使业务结果无法确认时,中枢不自动重放,而是冻结为需要人工对账的明确状态。
4
+
5
+ ## 主要变化
6
+
7
+ ### 外发前持久化副作用执行日志
8
+
9
+ 对于非只读、非声明幂等的业务工具,中枢按以下顺序推进:
10
+
11
+ 1. 外发前写入 `dispatching`;
12
+ 2. 收到 HTTP 响应后写入 `response_recorded`;
13
+ 3. 结果审计和任务终态账本都成功后写入 `completed`。
14
+
15
+ 持久化执行日志不可用或外发前占位失败时,请求不会发送。运行时不会退回“先执行,成功后再记账”的旧模式。
16
+
17
+ ### 不确定业务结果禁止自动重放
18
+
19
+ 以下场景会收敛到 `reconciliation_required`,并返回 `auto_retry_allowed=false`:
20
+
21
+ - 请求超时或网络断连;
22
+ - 进程重启后遗留未决执行;
23
+ - 已收到业务响应,但结果审计失败;
24
+ - 响应已记录,但任务终态提交失败;
25
+ - 内置消息发送出现文本、卡片或附件部分送达。
26
+
27
+ 恢复任务会在模型再次运行前扫描未决执行日志。同一任务不会依赖模型再次选择相同工具,也不会在无法确认业务后果时自动发出第二次请求。
28
+
29
+ ### 稳定业务幂等键
30
+
31
+ 副作用业务请求新增:
32
+
33
+ ```http
34
+ X-Bailing-Idempotency-Key: <stable side-effect key>
35
+ ```
36
+
37
+ 该键稳定绑定任务、行动主体、工具和规范化参数,便于业务系统去重与人工对账。它不替代:
38
+
39
+ - `X-Bailing-Signature` 验签;
40
+ - 业务系统的最终授权判断;
41
+ - 领域自身的幂等规则。
42
+
43
+ ### 内置消息发送纳入同一边界
44
+
45
+ `send_message` 不再被视为普通内部动作。它使用同一持久化执行日志。只要文本分片、卡片或附件可能已经部分送达,后续失败就会冻结整次发送,不自动重发,避免重复通知。
46
+
47
+ ## 数据库迁移
48
+
49
+ 本版本新增:
50
+
51
+ ```text
52
+ sql/052_tool_execution_journal.sql
53
+ ```
54
+
55
+ 官方 Docker 入口会自动执行迁移。直接从源码运行、使用自定义启动入口或跳过官方 entrypoint 的部署,升级后必须执行:
56
+
57
+ ```bash
58
+ npm run db:init
59
+ ```
60
+
61
+ 迁移把既有工具调用去重账本扩展为可恢复的执行日志,不修改业务系统数据库。
62
+
63
+ ## 兼容性边界
64
+
65
+ - 只读工具和显式声明幂等的工具行为保持不变;
66
+ - Client API、执行器协议、ACC 语义和业务侧最终授权边界不变;
67
+ - 副作用工具要求可用的持久化执行日志,缺失时按 fail-closed 拒绝外发;
68
+ - BailingHub 不宣称 exactly-once。保守冻结可能包含实际上未到达业务系统的请求,运维仍需结合业务日志和幂等键完成对账;
69
+ - 业务系统若尚未消费 `X-Bailing-Idempotency-Key`,现有验签仍可工作,但建议尽快将该键或更强的领域键用于副作用去重。
70
+
71
+ ## 验证
72
+
73
+ 发布前执行:
74
+
75
+ ```bash
76
+ npm run typecheck
77
+ npm test
78
+ npm run web-admin:check
79
+ npm run docs:check
80
+ npm run examples:check
81
+ npm run security:scan
82
+ npm run release:check
83
+ ```
84
+
85
+ 升级后建议确认:
86
+
87
+ 1. `npm run db:init` 完成,迁移账本包含 `052_tool_execution_journal.sql`;
88
+ 2. `/health/ready` 返回就绪;
89
+ 3. 副作用调用在外发前产生 `dispatching` 记录;
90
+ 4. 业务响应、结果审计和任务终态完成后记录进入 `completed`;
91
+ 5. 模拟超时、重启或审计失败时返回 `reconciliation_required`,且不会自动再次外发;
92
+ 6. 业务系统可以记录并按 `X-Bailing-Idempotency-Key` 去重。
93
+
94
+ ## 相关文档
95
+
96
+ - [工具治理设计](TOOLS_DESIGN.md)
97
+ - [公开运行时契约](CONTRACT.md)
98
+ - [兼容性与升级](兼容性与升级.md)
99
+ - [发布记录](CHANGELOG.md)
@@ -0,0 +1,64 @@
1
+ # BailingHub v0.1.12: Voice Transcription Policy and Fail-Closed Audio Handling
2
+
3
+ Released on 2026-07-30.
4
+
5
+ `v0.1.12` fixes voice-chat failures caused by forwarding `input_audio` to a main model that does not support it. Audio handling is now an explicit, auditable route policy instead of an implicit fallback.
6
+
7
+ ## Highlights
8
+
9
+ ### 1. Explicit audio modes
10
+
11
+ LLM routes now support three modes:
12
+
13
+ - `transcribe`: use a dedicated speech model first, then send the transcript to the main model;
14
+ - `inline`: send audio to the main model only when the operator explicitly confirms that the model supports audio input;
15
+ - `off`: reject voice input with deterministic guidance.
16
+
17
+ Missing audio configuration defaults to `off`. The runtime no longer guesses model capabilities.
18
+
19
+ ### 2. Fail closed when transcription is unavailable
20
+
21
+ If `transcribe` is selected but its credential, model, or endpoint is missing, disabled, or unresolved, BailingHub does not fall back to the main model and does not infer content from file metadata. The task returns a clear user-facing message and records a redacted failure reason.
22
+
23
+ ### 3. Two OpenAI-compatible transcription protocols
24
+
25
+ Dedicated speech models may use:
26
+
27
+ - `transcriptions`: multipart requests to `/audio/transcriptions`;
28
+ - `chat_input_audio`: Data URL `input_audio` requests to `/chat/completions`.
29
+
30
+ The second mode supports speech models exposed through a Chat Completions-compatible audio interface.
31
+
32
+ ### 4. Console and schema alignment
33
+
34
+ The route editor now exposes the speech protocol and explains the separation between the speech model and the main tool-calling model. The configuration schema constrains the same protocol enum and default.
35
+
36
+ ### 5. Auditable without retaining audio bodies
37
+
38
+ Speech audit events record outcome, mode, protocol, model, MIME type, and byte count. They do not retain audio content, Data URLs, credentials, or transcription request bodies. Transcript text continues through the existing task and conversation boundaries.
39
+
40
+ ## Integration impact
41
+
42
+ - No database migration is required.
43
+ - Client API, executor protocol, tool signatures, approval semantics, and ACC are unchanged.
44
+ - Text chat and existing main-model settings are unaffected.
45
+ - Routes that relied on implicit audio forwarding must explicitly select `inline` or configure a dedicated speech model with `transcribe`.
46
+ - Production deployments should normally prefer `transcribe`, keeping the main model responsible for text reasoning and tool use.
47
+
48
+ ## Validation
49
+
50
+ The release was validated with:
51
+
52
+ - `npm run typecheck`
53
+ - `npm test`
54
+ - `npm run web-admin:check`
55
+ - `npm run release:check`
56
+
57
+ The end-to-end path covered a real MP3 upload, dedicated speech transcription, text delivery to the main model, streaming output, and a terminal task state. Public release material does not contain internal endpoints, credentials, audio bodies, or task identifiers.
58
+
59
+ ## Related documentation
60
+
61
+ - [Tool Governance Design](TOOLS_DESIGN.en.md)
62
+ - [Configuration schema](../schemas/config/common.schema.json)
63
+ - [Compatibility and Upgrade Policy](COMPATIBILITY.en.md)
64
+ - [中文发布说明](RELEASE_NOTES_v0.1.12.md)
@@ -0,0 +1,64 @@
1
+ # BailingHub v0.1.12:语音转写策略与失败关闭
2
+
3
+ 发布日期:2026-07-30。
4
+
5
+ `v0.1.12` 修正网页聊天语音输入在主模型不支持 `input_audio` 时直接失败的问题,并把音频处理从隐式回退改为显式、可审计的路由策略。
6
+
7
+ ## 主要变化
8
+
9
+ ### 1. 音频处理策略改为显式配置
10
+
11
+ LLM 路由现在支持三种明确模式:
12
+
13
+ - `transcribe`:先由专用语音模型转成文本,再把文本交给主模型;
14
+ - `inline`:仅在部署方明确确认主模型支持音频输入时,才把音频直接交给主模型;
15
+ - `off`:拒绝语音输入并返回确定性提示。
16
+
17
+ 缺少音频配置时默认 `off`,不再猜测主模型能力。
18
+
19
+ ### 2. 转写配置不完整时失败关闭
20
+
21
+ 当路由选择 `transcribe`,但转写凭证、模型或端点缺失、禁用或无法解析时,中枢不会把音频退回给主模型,也不会根据文件名或其他元数据猜测内容。任务会返回明确的用户提示,并记录脱敏后的失败原因。
22
+
23
+ ### 3. 支持两类 OpenAI-compatible 转写协议
24
+
25
+ 专用语音模型支持:
26
+
27
+ - `transcriptions`:通过 `/audio/transcriptions` 发送 multipart 请求;
28
+ - `chat_input_audio`:通过 `/chat/completions` 发送 Data URL 形式的 `input_audio`。
29
+
30
+ 后者可用于兼容采用 Chat Completions 音频输入形式的语音模型。
31
+
32
+ ### 4. 控制台与配置 Schema 对齐
33
+
34
+ 路由编辑页新增语音协议选择,并明确说明转写模型与主模型的职责。配置 Schema 同步约束协议枚举与默认值,避免控制台、运行时和机器可读配置出现不同语义。
35
+
36
+ ### 5. 保持可审计但不记录音频正文
37
+
38
+ 语音审计记录包含处理结果、模式、协议、模型、MIME 类型和字节数,不记录音频内容、Data URL、凭证或转写请求正文。转写后的文本继续按现有任务与会话边界处理。
39
+
40
+ ## 对接影响
41
+
42
+ - 没有数据库迁移。
43
+ - Client API、执行器协议、工具签名、审批语义和 ACC 均未改变。
44
+ - 文本聊天与现有主模型配置不受影响。
45
+ - 依赖旧版隐式音频直传的路由,需要显式选择 `inline`,或者配置专用转写模型并选择 `transcribe`。
46
+ - 推荐生产环境使用 `transcribe`,让主模型只处理文本和工具调用。
47
+
48
+ ## 验证
49
+
50
+ 发布前完成:
51
+
52
+ - `npm run typecheck`
53
+ - `npm test`
54
+ - `npm run web-admin:check`
55
+ - `npm run release:check`
56
+
57
+ 端到端验证覆盖真实 MP3 上传、专用语音模型转写、文本进入主模型、流式回复和任务终态;验证过程中未在公开材料中记录内部地址、凭证、音频正文或任务标识。
58
+
59
+ ## 相关文档
60
+
61
+ - [工具治理设计](TOOLS_DESIGN.md)
62
+ - [配置 Schema](../schemas/config/common.schema.json)
63
+ - [兼容性与升级](兼容性与升级.md)
64
+ - [English release notes](RELEASE_NOTES_v0.1.12.en.md)
@@ -0,0 +1,46 @@
1
+ # BailingHub v0.1.13: Voice Transcription and Distribution-Version Alignment
2
+
3
+ `v0.1.13` closes the distribution loop for the voice-transcription fix introduced in `v0.1.12`. Runtime semantics are unchanged. This release aligns the installer, default images, validation task, and public version metadata so every entry point resolves to the same release.
4
+
5
+ ## User-visible result
6
+
7
+ - Web-chat audio continues to use an explicit `transcribe`, `inline`, or `off` policy.
8
+ - `transcribe` continues to convert audio through a dedicated speech model before the main model receives text.
9
+ - Missing, disabled, or unresolved speech configuration continues to fail closed instead of forwarding audio to the main model or guessing its content.
10
+ - The one-line installer, source image Compose path, and independent-validation task now use `v0.1.13`.
11
+
12
+ ## Distribution alignment
13
+
14
+ This release aligns:
15
+
16
+ - `package.json` and the lock file;
17
+ - the one-line installer's image-tag fallback;
18
+ - default application-image tags in the image Compose file;
19
+ - image build and tag-inspection fallbacks;
20
+ - Chinese and English independent-validation baselines;
21
+ - the independent-validation Issue template;
22
+ - bilingual changelogs and documentation indexes.
23
+
24
+ Before publication, the GitHub Release, source archive, installer, and both official application images must resolve to the same commit and version.
25
+
26
+ ## Compatibility
27
+
28
+ - No database migration is required.
29
+ - Client API, executor protocol, tool signatures, approval semantics, and ACC are unchanged.
30
+ - The speech policies shipped in `v0.1.12` are unchanged.
31
+ - `v0.1.12` deployments need no configuration migration; upgrade with the `v0.1.13` source or images.
32
+
33
+ ## Validation
34
+
35
+ ```bash
36
+ npm run release:check
37
+ ```
38
+
39
+ Release closure also requires the distribution check and official image-tag inspection to confirm that the default installation path can retrieve `v0.1.13`.
40
+
41
+ ## Related documentation
42
+
43
+ - [v0.1.12 voice transcription policy](RELEASE_NOTES_v0.1.12.en.md)
44
+ - [Independent validation](INDEPENDENT_VALIDATION.en.md)
45
+ - [Compatibility and upgrades](COMPATIBILITY.en.md)
46
+ - [中文发布说明](RELEASE_NOTES_v0.1.13.md)
@@ -0,0 +1,46 @@
1
+ # BailingHub v0.1.13:语音转写与分发版本一致性
2
+
3
+ `v0.1.13` 是承接 `v0.1.12` 语音转写修复的分发闭环版本。运行时语义不变;本版本把安装脚本、默认镜像、验证任务卡和公开版本元数据统一到同一个发布号,避免不同入口拉取不同版本。
4
+
5
+ ## 用户可见结果
6
+
7
+ - 网页聊天语音输入继续使用显式 `transcribe`、`inline` 或 `off` 策略。
8
+ - `transcribe` 继续由独立语音模型先把音频转换为文本,主模型只接收文本。
9
+ - 专用语音配置缺失、禁用或无法解析时继续失败关闭,不回退到主模型猜测或直传音频。
10
+ - 一键安装、源码镜像 Compose 与独立验证任务卡现在统一使用 `v0.1.13`。
11
+
12
+ ## 分发一致性修正
13
+
14
+ 本版本统一了:
15
+
16
+ - `package.json` 与锁文件版本;
17
+ - 一键安装脚本的镜像标签兜底值;
18
+ - 镜像 Compose 的默认应用镜像标签;
19
+ - 镜像构建与标签检查脚本的兜底值;
20
+ - 中英文独立验证基线;
21
+ - 独立验证 Issue 模板;
22
+ - 中英文发布记录和文档索引。
23
+
24
+ 正式发布前必须确认 GitHub Release、源码包、安装脚本和两个官方应用镜像都对应同一提交和版本。
25
+
26
+ ## 兼容性
27
+
28
+ - 无数据库迁移。
29
+ - 不修改 Client API、执行器协议、工具签名、审批语义或 ACC。
30
+ - 不修改 `v0.1.12` 已发布的语音策略。
31
+ - `v0.1.12` 部署无需迁移配置;升级只需使用 `v0.1.13` 镜像或源码。
32
+
33
+ ## 验证
34
+
35
+ ```bash
36
+ npm run release:check
37
+ ```
38
+
39
+ 发布闭环还需执行正式分发校验和官方镜像标签检查,确认默认安装路径可以获取 `v0.1.13`。
40
+
41
+ ## 相关文档
42
+
43
+ - [v0.1.12 语音转写策略](RELEASE_NOTES_v0.1.12.md)
44
+ - [独立验证任务卡](INDEPENDENT_VALIDATION.md)
45
+ - [兼容性与升级](兼容性与升级.md)
46
+ - [English release notes](RELEASE_NOTES_v0.1.13.en.md)
@@ -0,0 +1,55 @@
1
+ # BailingHub v0.1.14: Transient Progress Feedback for Streaming Chat
2
+
3
+ `v0.1.14` improves the waiting experience in the official web chat widget when a governed action needs a tool call. A short model acknowledgement remains visible as transient progress while the business result is pending. As soon as the formal answer starts streaming, the transient bubble disappears and only the final answer remains in chat history.
4
+
5
+ ## User-visible behavior
6
+
7
+ - A short pre-tool acknowledgement no longer flashes and disappears immediately; it is promoted into a transient progress bubble.
8
+ - Tool execution, model synthesis, retry, and fallback phases show explicit status copy.
9
+ - The progress bubble is removed when the formal streamed answer begins, so the conversation does not retain two assistant messages.
10
+ - Failed and background-processing outcomes use deterministic status copy without implying that a business operation succeeded.
11
+ - Progress animation respects the operating system's reduced-motion preference.
12
+
13
+ ## Semantic boundary
14
+
15
+ This feature is not a reasoning trace and does not expose or retain hidden chain-of-thought. The widget presents only:
16
+
17
+ - acknowledgement text that the model already emitted;
18
+ - `reset` and `phase` states already exposed by the BailingHub stream;
19
+ - the formal final answer.
20
+
21
+ Transient copy is whitespace-normalized and length-bounded. Only the formal answer enters chat history; progress remains local UI state for the active stream.
22
+
23
+ ## Custom chat UIs
24
+
25
+ The official `web/widget/widget.js` adopts the behavior automatically. Integrations that do not use the official widget do not need a BailingHub API change, but must consume the existing stream events to reproduce the experience:
26
+
27
+ - `delta`: accumulate the current model text;
28
+ - `reset`: promote prior short text into transient progress and clear the formal-answer buffer;
29
+ - `phase`: update the tool or model phase;
30
+ - `done`: remove transient progress and persist only the final answer.
31
+
32
+ Custom clients should not retain progress and the final answer as two permanent assistant messages.
33
+
34
+ ## Compatibility
35
+
36
+ - No database migration is required.
37
+ - Client API and streaming event protocol are unchanged.
38
+ - Executor protocol, tool signatures, approval semantics, audit boundaries, and ACC are unchanged.
39
+ - Existing custom chat UIs retain their current behavior; the official widget gains the new experience when upgraded.
40
+
41
+ ## Validation
42
+
43
+ ```bash
44
+ node --check web/widget/widget.js
45
+ node --import tsx --test src/routes/public.test.ts
46
+ npm run typecheck
47
+ npm run release:check
48
+ ```
49
+
50
+ ## Related docs
51
+
52
+ - [Public runtime contract](CONTRACT.en.md)
53
+ - [Independent validation task](INDEPENDENT_VALIDATION.en.md)
54
+ - [Compatibility and upgrades](COMPATIBILITY.en.md)
55
+ - [中文发布说明](RELEASE_NOTES_v0.1.14.md)