bailinghub 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +20 -0
- package/README.en.md +6 -6
- package/README.md +6 -6
- package/SECURITY.md +20 -0
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/docker-compose.images.yml +2 -2
- package/docs/AGENT_CONVERSATION_AUDIT.en.md +8 -2
- package/docs/AGENT_CONVERSATION_AUDIT.md +8 -1
- package/docs/CHANGELOG.en.md +29 -1
- package/docs/CHANGELOG.md +29 -1
- package/docs/IMPLEMENTATION_STATUS.en.md +12 -3
- package/docs/IMPLEMENTATION_STATUS.md +12 -3
- package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
- package/docs/INDEPENDENT_VALIDATION.md +4 -4
- package/docs/MODEL_CONTINUATION.en.md +8 -0
- package/docs/MODEL_CONTINUATION.md +8 -0
- package/docs/MODEL_OUTPUT_BUDGET.en.md +1 -0
- package/docs/MODEL_OUTPUT_BUDGET.md +1 -0
- package/docs/README.en.md +6 -0
- package/docs/README.md +6 -0
- package/docs/RELEASE_NOTES_v0.10.1.en.md +41 -0
- package/docs/RELEASE_NOTES_v0.10.1.md +41 -0
- package/docs/RELEASE_NOTES_v0.11.0.en.md +19 -0
- package/docs/RELEASE_NOTES_v0.11.0.md +19 -0
- package/docs/RELEASE_NOTES_v0.11.1.en.md +25 -0
- package/docs/RELEASE_NOTES_v0.11.1.md +25 -0
- package/docs/UPGRADE_v0.10.1.en.md +66 -0
- package/docs/UPGRADE_v0.10.1.md +66 -0
- package/docs/UPGRADE_v0.11.0.en.md +24 -0
- package/docs/UPGRADE_v0.11.0.md +24 -0
- package/docs/UPGRADE_v0.11.1.en.md +28 -0
- package/docs/UPGRADE_v0.11.1.md +28 -0
- package/docs/security/GRC_EVIDENCE.md +54 -0
- package/docs/user-guide/console-map.md +2 -2
- package/package.json +5 -3
- package/scripts/check-doc-links.mjs +6 -0
- package/scripts/check-image-tags.sh +1 -1
- package/scripts/check-php-sdk-artifacts.mjs +152 -0
- package/scripts/check-php-sdk-artifacts.test.mjs +99 -0
- package/scripts/check-release-consistency.test.mjs +2 -2
- package/scripts/copy-acr-platform-image.sh +42 -0
- package/scripts/e2e-console-runtime-audit.mjs +7 -0
- package/scripts/e2e-console-troubleshooting-extra.mjs +4 -4
- package/scripts/e2e-console.mjs +90 -23
- package/scripts/install.sh +1 -1
- package/scripts/notification-console-test.mjs +2 -1
- package/scripts/publish-images.sh +1 -1
- package/scripts/release-audit.mjs +13 -1
- package/scripts/restore-ghcr-version.sh +48 -0
- package/scripts/sdk-declaration-contract-test.ts +34 -0
- package/scripts/sdk-p1-check.mjs +62 -26
- package/scripts/test-acr-platform-copy.sh +152 -0
- package/scripts/verify-github-repo.mjs +12 -0
- package/sdk/dotnet/Bailing.Connect/BailingConnect.cs +4 -4
- package/sdk/dotnet/README.md +8 -0
- package/sdk/dotnet/tests/Declaration/Declaration.csproj +11 -0
- package/sdk/dotnet/tests/Declaration/Program.cs +74 -0
- package/sdk/go/README.md +8 -0
- package/sdk/go/bailingconnect/connect.go +5 -5
- package/sdk/go/bailingconnect/declaration_test.go +107 -0
- package/sdk/java/README.md +13 -0
- package/sdk/java/src/main/java/com/bailing/connect/BailingConnect.java +4 -4
- package/sdk/java/tests/DeclarationTest.java +70 -0
- package/sdk/node/README.md +8 -0
- package/sdk/node/src/index.mjs +4 -4
- package/sdk/node/tests/declaration.test.mjs +41 -0
- package/sdk/php/README.md +16 -0
- package/sdk/php/src/Attributes/AiTool.php +4 -4
- package/sdk/php/src/SpecBuilder.php +8 -8
- package/sdk/php/tests/declaration-serialization.php +103 -0
- package/sdk/php7/README.md +14 -0
- package/sdk/php7/src/ToolDef.php +3 -3
- package/sdk/php7/src/ToolSpec.php +8 -13
- package/sdk/php7/tests/declaration-serialization.php +103 -0
- package/sdk/python/README.md +8 -0
- package/sdk/python/bailing_connect/__init__.py +6 -6
- package/sdk/python/tests/test_declaration.py +61 -0
- package/src/core/config/console-task-location.test.ts +12 -24
- package/src/core/contracts/explicit-capability-values.test.ts +62 -0
- package/src/core/contracts/openapi-tools.ts +2 -2
- package/src/core/contracts/tool-annotations.ts +4 -4
- package/src/core/runtime/credential-resolver.ts +3 -3
- package/src/infrastructure/config/config-agent-conversation-audit-repository.test.ts +29 -0
- package/src/infrastructure/config/config-agent-conversation-audit-repository.ts +142 -9
- package/src/infrastructure/config/config-conversation-feed.integration.test.ts +134 -0
- package/src/infrastructure/config/config-conversation-ledger.test.ts +47 -1
- package/src/infrastructure/config/config-conversation-ledger.ts +24 -8
- package/src/infrastructure/config/config-observability-ledger.ts +32 -4
- package/src/infrastructure/config/config-recent-jobs.integration.test.ts +45 -0
- package/src/infrastructure/config/configstore.ts +4 -4
- package/src/infrastructure/config/conversation-delivery-message.ts +12 -0
- package/src/modules/usage/contracts.ts +1 -0
- package/src/modules/usage/model-context.test.ts +106 -0
- package/src/modules/usage/model-context.ts +54 -0
- package/src/modules/usage/model-continuation.test.ts +27 -0
- package/src/modules/usage/provider.test.ts +40 -0
- package/src/modules/usage/provider.ts +21 -3
- package/src/modules/usage/repository.ts +2 -1
- package/src/routes/admin-conversation-audit.ts +20 -3
- package/src/routes/admin-history-cursor.ts +12 -0
- package/src/routes/admin-runtime.test.ts +47 -0
- package/src/routes/admin-runtime.ts +32 -3
- package/src/routes/admin-usage.ts +12 -1
- package/src/routes/admin.ts +6 -1
- package/src/routes/agent-conversation-audit.test.ts +47 -3
- package/src/test-support/agent-conversation-audit-fixture.ts +9 -1
- package/web/connect/bailing-connect-php.tgz +0 -0
- package/web/connect/bailing-connect-php7.tgz +0 -0
- package/web/console/assets/{Accounts-Dhyw-7wF.js → Accounts-B1Ne8Xx2.js} +1 -1
- package/web/console/assets/AgentClients-CiGQ-n2i.js +1 -0
- package/web/console/assets/AgentClients-xEIfsj7w.css +1 -0
- package/web/console/assets/AgentTasks-CaCeYv60.css +1 -0
- package/web/console/assets/AgentTasks-CylHZHHq.js +2 -0
- package/web/console/assets/{Approvals-CQx1YWxW.js → Approvals-wD4Iv80G.js} +1 -1
- package/web/console/assets/{Audit--QcdVlMh.js → Audit-BStlxkPw.js} +1 -1
- package/web/console/assets/{BrandLockup-DQcaW4Nt.js → BrandLockup-BAhrPnhy.js} +1 -1
- package/web/console/assets/Channels-DAlIgNxo.js +105 -0
- package/web/console/assets/Channels-WwRHFKJn.css +1 -0
- package/web/console/assets/ChatEntries-CPx-E9aJ.js +7 -0
- package/web/console/assets/ChatEntries-DALYfRDP.css +1 -0
- package/web/console/assets/Clients-gqNFusNW.css +1 -0
- package/web/console/assets/Clients-w97QPpFD.js +3 -0
- package/web/console/assets/Cost-CNDZaif-.css +1 -0
- package/web/console/assets/Cost-CxtN0mca.js +1 -0
- package/web/console/assets/Credentials-6c6aktzZ.css +1 -0
- package/web/console/assets/Credentials-BhpoH-hR.js +1 -0
- package/web/console/assets/{Diagnostics-CyoM1XrZ.js → Diagnostics-DnC-ODuy.js} +1 -1
- package/web/console/assets/Executors-CCTYuZf4.js +1 -0
- package/web/console/assets/Executors-CQ8iw3kK.css +1 -0
- package/web/console/assets/{HelpTip-DLlhaGQp.js → HelpTip-piedkqU-.js} +1 -1
- package/web/console/assets/Kb-CFCa-7LY.css +1 -0
- package/web/console/assets/Kb-DKp3mwWB.js +2 -0
- package/web/console/assets/Login-g_aZWHQd.js +1 -0
- package/web/console/assets/Login-krXZsvoF.css +1 -0
- package/web/console/assets/Projects-BexeaCxT.css +1 -0
- package/web/console/assets/Projects-DurExYV9.js +1 -0
- package/web/console/assets/Routes-CKoIjkCM.css +1 -0
- package/web/console/assets/Routes-CX7Q7bkz.js +138 -0
- package/web/console/assets/Runs-C48kdEwk.css +1 -0
- package/web/console/assets/Runs-CQKEDsrH.js +3 -0
- package/web/console/assets/Setup-CtWCXXpj.css +1 -0
- package/web/console/assets/Setup-DzI8rEAc.js +1 -0
- package/web/console/assets/Shell-BQ-g_O7K.js +1 -0
- package/web/console/assets/Shell-Y2fZK5LV.css +1 -0
- package/web/console/assets/StorageBuckets-CWxzIh0x.css +1 -0
- package/web/console/assets/StorageBuckets-DoZIzA7B.js +1 -0
- package/web/console/assets/SystemSettings-C3pFFzAQ.js +1 -0
- package/web/console/assets/SystemSettings-C5nv0K2a.css +1 -0
- package/web/console/assets/SystemStatus-Bbxu2dp4.css +1 -0
- package/web/console/assets/SystemStatus-BgekIK52.js +1 -0
- package/web/console/assets/Targets-CbLq7rgm.css +1 -0
- package/web/console/assets/Targets-DH1ZcK0J.js +1 -0
- package/web/console/assets/Tools-CMS1wVOm.js +5 -0
- package/web/console/assets/Tools-Qk1c5Rp8.css +1 -0
- package/web/console/assets/Usage-C0OkK7Jg.js +1 -0
- package/web/console/assets/Usage-Cue7CYnT.css +1 -0
- package/web/console/assets/UsageAccess-CHdWXvE8.js +1 -0
- package/web/console/assets/UsageAccess-nOa03hGb.css +1 -0
- package/web/console/assets/{UsageHelp-BmuiE1Ew.js → UsageHelp-BkIsuFUj.js} +1 -1
- package/web/console/assets/{console-location-Csv-xsnl.js → console-location-C_az_xHo.js} +1 -1
- package/web/console/assets/index-CbI5fbiD.js +2 -0
- package/web/console/assets/{index-B_5UfiTw.js → index-DwlsLKwM.js} +1 -1
- package/web/console/assets/request-WgSVj8ie.js +1 -0
- package/web/console/assets/{schema-o3mK4mid.js → schema-rb4T_2cj.js} +1 -1
- package/web/console/assets/task-page-location-BGxGar7H.js +1 -0
- package/web/console/assets/{use-list-location-cIPy2cKM.js → use-list-location-DeVfTTII.js} +1 -1
- package/web/console/assets/{use-unsaved-form-DScKD0h9.js → use-unsaved-form-B10XHC-n.js} +1 -1
- package/web/console/assets/{util-B40VqOwl.js → util-C0YJ70YU.js} +1 -1
- package/web/console/assets/{vendor-element-BT8tHCFk.js → vendor-element-BCC2kYn_.js} +7 -7
- package/web/console/assets/{vendor-mammoth-CVIXVxTN.js → vendor-mammoth-C7l0Q30g.js} +1 -1
- package/web/console/index.html +2 -2
- package/web-admin/package-lock.json +4 -4
- package/web-admin/package.json +1 -1
- package/web-admin/scripts/agent-task-control-smoke.mjs +26 -3
- package/web-admin/src/components/AgentSetupPanel.vue +19 -15
- package/web-admin/src/components/ChannelThread.vue +441 -0
- package/web-admin/src/components/ClientConversations.vue +397 -134
- package/web-admin/src/components/ConversationSourceTag.vue +24 -0
- package/web-admin/src/components/JobStatusTag.vue +18 -0
- package/web-admin/src/components/NotificationOutboxPanel.vue +5 -2
- package/web-admin/src/components/UsageServiceReferences.vue +6 -24
- package/web-admin/src/components/conversation-audit.ts +67 -2
- package/web-admin/src/components/conversation-reading-position.ts +27 -0
- package/web-admin/src/layout/Shell.vue +15 -17
- package/web-admin/src/onboarding-state.ts +5 -5
- package/web-admin/src/pages/AgentClients.vue +33 -27
- package/web-admin/src/pages/AgentTasks.vue +88 -43
- package/web-admin/src/pages/Channels.vue +15 -41
- package/web-admin/src/pages/ChatEntries.vue +13 -51
- package/web-admin/src/pages/Clients.vue +2 -2
- package/web-admin/src/pages/Cost.vue +10 -51
- package/web-admin/src/pages/Credentials.vue +1 -1
- package/web-admin/src/pages/Executors.vue +4 -3
- package/web-admin/src/pages/Kb.vue +4 -4
- package/web-admin/src/pages/Login.vue +7 -8
- package/web-admin/src/pages/Projects.vue +1 -1
- package/web-admin/src/pages/Routes.vue +46 -83
- package/web-admin/src/pages/Runs.vue +239 -567
- package/web-admin/src/pages/Setup.vue +20 -20
- package/web-admin/src/pages/StorageBuckets.vue +1 -1
- package/web-admin/src/pages/SystemSettings.vue +1 -2
- package/web-admin/src/pages/SystemStatus.vue +4 -6
- package/web-admin/src/pages/Targets.vue +0 -2
- package/web-admin/src/pages/Tools.vue +31 -22
- package/web-admin/src/pages/Usage.vue +110 -60
- package/web-admin/src/pages/UsageAccess.vue +2 -5
- package/web-admin/src/request.ts +5 -1
- package/web-admin/src/task-page-location.ts +6 -12
- package/web-admin/src/task-trace-presentation.ts +143 -0
- package/web-admin/tests/conversation-audit.test.mjs +23 -1
- package/web-admin/tests/model-context.browser.mjs +238 -0
- package/web-admin/tests/model-output-budget.browser.mjs +1 -0
- package/web/console/assets/AgentClients-BA0M26-I.css +0 -1
- package/web/console/assets/AgentClients-DWxb8-ko.js +0 -1
- package/web/console/assets/AgentTasks-DOyxANnx.css +0 -1
- package/web/console/assets/AgentTasks-DUHD4dzr.js +0 -2
- package/web/console/assets/Channels-DJJU3ksE.css +0 -1
- package/web/console/assets/Channels-cGS5WfQ-.js +0 -105
- package/web/console/assets/ChatEntries-BYpji27B.css +0 -1
- package/web/console/assets/ChatEntries-nh23Iz5O.js +0 -7
- package/web/console/assets/Clients-CX5EeYio.js +0 -3
- package/web/console/assets/Clients-CbZAou8E.css +0 -1
- package/web/console/assets/Cost-C6oQvz9P.css +0 -1
- package/web/console/assets/Cost-DOZfdNS9.js +0 -1
- package/web/console/assets/Credentials--aHs57yV.css +0 -1
- package/web/console/assets/Credentials-sy6W9Sac.js +0 -1
- package/web/console/assets/Executors-2Upi6bOS.css +0 -1
- package/web/console/assets/Executors-BQqqiFwt.js +0 -1
- package/web/console/assets/Kb-5R3ce4UU.js +0 -5
- package/web/console/assets/Kb-BM_PYi11.css +0 -1
- package/web/console/assets/Login-YKeUwdgo.js +0 -1
- package/web/console/assets/Login-xtPwDB5_.css +0 -1
- package/web/console/assets/Projects-DHwHrPT9.css +0 -1
- package/web/console/assets/Projects-Grgb6fOv.js +0 -1
- package/web/console/assets/Routes-DR_Yf02e.css +0 -1
- package/web/console/assets/Routes-DYgrXlRJ.js +0 -138
- package/web/console/assets/Runs-CwTddJJj.js +0 -3
- package/web/console/assets/Runs-D4FOvNfu.css +0 -1
- package/web/console/assets/Setup-Ca0b1d1-.css +0 -1
- package/web/console/assets/Setup-D_xUPNDq.js +0 -1
- package/web/console/assets/Shell-BTg8Vw_L.css +0 -1
- package/web/console/assets/Shell-Dfam2Uoj.js +0 -1
- package/web/console/assets/StorageBuckets-7QLBpV4a.css +0 -1
- package/web/console/assets/StorageBuckets-CP6e50wI.js +0 -1
- package/web/console/assets/SystemSettings-BRYKyJNa.js +0 -1
- package/web/console/assets/SystemSettings-HsXGx0aH.css +0 -1
- package/web/console/assets/SystemStatus-B-VfRsQd.css +0 -1
- package/web/console/assets/SystemStatus-CbPsDsGt.js +0 -1
- package/web/console/assets/Targets-1j4-g6rC.css +0 -1
- package/web/console/assets/Targets-C2LkR2AF.js +0 -1
- package/web/console/assets/Tools-C9HPJqJb.css +0 -1
- package/web/console/assets/Tools-C9JNJUS0.js +0 -2
- package/web/console/assets/Usage-D1Mv6vGY.js +0 -1
- package/web/console/assets/Usage-DMOzUsqh.css +0 -1
- package/web/console/assets/UsageAccess-77LmGCm6.js +0 -1
- package/web/console/assets/UsageAccess-C6ZGxEgJ.css +0 -1
- package/web/console/assets/index-MjZJEFIN.js +0 -2
- package/web/console/assets/request-rqm6MT0s.js +0 -1
- package/web/console/assets/task-page-location-DWiGtAln.js +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Core v0.10.1: Preserve explicit business risk and execution declarations
|
|
2
|
+
|
|
3
|
+
[简体中文](RELEASE_NOTES_v0.10.1.md)
|
|
4
|
+
|
|
5
|
+
A business service explicitly marked a POST operation as low risk, but its generated declaration omitted `risk.level`. A GET explicitly marked as non-readonly was still consumed as readonly. Core 0.10.1 fixes lost explicit values in business-side SDK generators and distinguishes an omitted boolean from `false` when Core consumes declarations.
|
|
6
|
+
|
|
7
|
+
This is a patch relative to Core 0.10.0. **The ACC specification remains at 1.0.6 and declarations retain `version: 1`; MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 have no separate upgrade in this release.** The affected generators live in the Core repository and are business-provider SDKs, not those independent client packages. There are no new SQL migrations, authentication protocols or business-permission endpoints relative to 0.10.0.
|
|
8
|
+
|
|
9
|
+
## Corrected behavior
|
|
10
|
+
|
|
11
|
+
Seven SDK generators—PHP 7.3 builder, PHP 8 attributes, Node.js, Python, Go, Java and .NET—preserve explicit `readonly: false/true`, `idempotent: false/true` and `risk.level: low/medium/high`. Unspecified fields remain omitted; write operations are not assigned low risk globally.
|
|
12
|
+
|
|
13
|
+
Core preserves explicit boolean false and uses the existing GET fallback only when the field is unspecified. Effective risk uses an explicit risk value first, then the resolved readonly value. The HTTP method cannot override an explicit non-readonly declaration a second time.
|
|
14
|
+
|
|
15
|
+
| Declaration | Interpretation after the fix |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| GET with readonly and risk omitted | Existing readonly and low defaults |
|
|
18
|
+
| GET with `readonly: false`, risk omitted | Non-readonly and medium |
|
|
19
|
+
| POST with readonly and risk omitted | Existing non-readonly and medium defaults |
|
|
20
|
+
| POST with explicit `risk: low` | Low is retained; existing approval, subject and business authorization requirements remain independent |
|
|
21
|
+
| GET with explicit `idempotent: false` | The non-idempotent hint is retained instead of being overridden by GET |
|
|
22
|
+
|
|
23
|
+
**This correction can change the effective interpretation of declarations previously omitted or overridden incorrectly.** Business owners must confirm that explicit low and false values match the operation. In particular, a write operation previously interpreted as medium because low was omitted now retains its declared low risk. This requires review rather than being treated as a cosmetic change.
|
|
24
|
+
|
|
25
|
+
## Distribution and validation
|
|
26
|
+
|
|
27
|
+
Both PHP tgz companion packages are updated with the Core artifacts. A new verifier compares the complete source/archive file sets, file contents and SHA-256 values, then runs actual generator tests against both source and extracted packages. Missing files, unexpected files, digest differences and failing regressions fail the check. PHP7 retains PHP 7.3 syntax; the attribute-based package still requires PHP 8.1 or later.
|
|
28
|
+
|
|
29
|
+
Generator regressions cover all 24 combinations of GET/POST, readonly omitted/false/true and risk omitted/low/medium/high, plus explicit and omitted idempotency values. Core regressions check precedence and effective risk. PHP tests also verify that explicit low does not remove approval or subject requirements. These tests use synthetic capabilities and do not execute business operations or replace an integrator's declaration review.
|
|
30
|
+
|
|
31
|
+
PHP8 `AiTool::$risk` changes from the default `'low'` to a nullable string with default `null`; Java also uses null for unspecified risk, .NET uses the empty string, and Node.js/Python no longer fill unspecified risk with low. Custom code reading intermediate tool objects must handle the unspecified state. See the [upgrade guide](UPGRADE_v0.10.1.en.md).
|
|
32
|
+
|
|
33
|
+
The release also updates the bounded development/build dependencies to `fast-uri 3.1.9` and `Vite 6.4.5` to satisfy release audit gates. This dependency maintenance does not establish that a production exploit or production vulnerability occurred.
|
|
34
|
+
|
|
35
|
+
## Upgrade boundaries
|
|
36
|
+
|
|
37
|
+
Operators update Core and the business-side SDK, regenerate and review declarations, then refresh tool sources. **An SDK-only upgrade cannot fix an old Core overriding explicit GET false; a Core-only upgrade cannot recover fields already discarded by an old generator.** Integrations using hand-written OpenAPI or another runtime must check declaration contents and consumer behavior separately.
|
|
38
|
+
|
|
39
|
+
Business authorization, signatures, approval conditions, original-request recovery and metering rules are outside this change. Do not replay business requests for acceptance or rewrite saved original invocations and approved arguments. A public release does not automatically upgrade any existing deployment, private Host or downstream system.
|
|
40
|
+
|
|
41
|
+
[Upgrade guide](UPGRADE_v0.10.1.en.md) · [Business-side SDKs](SDK.en.md) · [Changelog](CHANGELOG.en.md) · [Previous release](RELEASE_NOTES_v0.10.0.en.md)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Core v0.10.1:保留业务系统明确声明的风险与执行语义
|
|
2
|
+
|
|
3
|
+
[English](RELEASE_NOTES_v0.10.1.en.md)
|
|
4
|
+
|
|
5
|
+
业务后端明确把一个 POST 操作标为低风险,导出的声明却省略了 `risk.level`;另一个 GET 明确标为非只读,消费时仍被当作只读。Core 0.10.1 修复业务接入 SDK 的显式值丢失,并让 Core 在读取声明时正确区分“未设置”和 `false`。
|
|
6
|
+
|
|
7
|
+
这是相对 Core 0.10.0 的补丁。**ACC 规范仍为 1.0.6,声明仍为 `version: 1`;MCP / Agent Client SDK 0.8.0、DSH 0.8.0 本轮不另行升级。** 本次修复的是 Core 仓库内的业务侧声明生成器及消费逻辑,不是这些独立客户端包。相对 0.10.0 无新增 SQL、认证协议或业务权限接口。
|
|
8
|
+
|
|
9
|
+
## 修复行为
|
|
10
|
+
|
|
11
|
+
PHP 7.3 builder、PHP 8 注解版、Node.js、Python、Go、Java、.NET 七种 SDK 生成器保留显式 `readonly: false/true`、`idempotent: false/true` 及 `risk.level: low/medium/high`。未设置的字段继续省略,不为所有写接口补上 low。
|
|
12
|
+
|
|
13
|
+
Core 读取布尔值时保留 `false`,只在字段未设置时使用 GET 的原缺省信号。有效风险先采用显式 risk,否则依据已经解析的只读性推导;HTTP 方法不能再次覆盖显式非只读声明。
|
|
14
|
+
|
|
15
|
+
| 声明 | 修复后的解释 |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| GET,未设置 readonly 和 risk | 保持只读、low 的缺省解释 |
|
|
18
|
+
| GET,`readonly: false`,未设置 risk | 非只读、medium |
|
|
19
|
+
| POST,未设置 readonly 和 risk | 保持非只读、medium |
|
|
20
|
+
| POST,显式 `risk: low` | 保留 low;既有审批、主体和业务授权要求继续独立生效 |
|
|
21
|
+
| GET,显式 `idempotent: false` | 保留非幂等提示,不被 GET 缺省覆盖 |
|
|
22
|
+
|
|
23
|
+
**修复会改变此前被错误省略或覆盖的声明的有效解释。** 业务负责人应确认显式 low 和 false 确实符合接口行为。特别是原先因 low 丢失而被解释成 medium 的写操作,更新后会恢复为声明的 low;不能把此变化视为无需核对的文本整理。
|
|
24
|
+
|
|
25
|
+
## 分发与验证
|
|
26
|
+
|
|
27
|
+
两个 PHP tgz 配套包随 Core 制品更新。新增验包工具比较 SDK 源码与归档的完整文件集合、逐文件内容和 SHA-256,再针对源码及解包目录分别运行实际生成器测试;缺文件、额外文件、摘要不一致或回归失败都不能通过。PHP7 保持 7.3 语法,PHP8 版要求仍为 PHP 8.1 及以上。
|
|
28
|
+
|
|
29
|
+
各生成器新增 GET/POST × readonly 未设置/false/true × risk 未设置/low/medium/high 的 24 组合回归,另测幂等显式值与缺省值。Core 回归检查字段优先级和有效风险;PHP 回归还核对显式 low 不删除审批与主体要求。验证使用合成能力,不调用真实业务,也不能替代接入方自己的声明审阅。
|
|
30
|
+
|
|
31
|
+
PHP8 的 `AiTool::$risk` 从默认 `'low'` 改为可空字符串、默认 `null`;Java 的未设置 risk 也为 null,.NET 使用空字符串,Node.js/Python 不再把未设置值补成 low。读取中间工具对象的自定义代码应处理未设置状态,详见[升级指南](UPGRADE_v0.10.1.md)。
|
|
32
|
+
|
|
33
|
+
本版同时将限定的开发/构建依赖更新到 `fast-uri 3.1.9` 与 `Vite 6.4.5`,用于通过本次发行审计门禁。该依赖维护本身不构成已发现生产利用或生产漏洞的结论。
|
|
34
|
+
|
|
35
|
+
## 升级边界
|
|
36
|
+
|
|
37
|
+
部署方更新 Core 与业务侧 SDK、重新生成和核对声明,再刷新工具源。**只换 SDK 不能修复旧 Core 对 GET 显式 false 的覆盖;只换 Core 也无法恢复旧生成器已经丢失的字段。** 对使用现成 OpenAPI 文件或其他 runtime 的接入方,分别核对声明内容和消费者行为。
|
|
38
|
+
|
|
39
|
+
原业务授权、签名、审批条件、原请求恢复和计量规则不在本次修改范围。不要为验收重放原业务,也不要改写已保存的原调用或批准参数。公开发行不代表任何现有部署、私有 Host 或下游系统已自动升级。
|
|
40
|
+
|
|
41
|
+
[升级指南](UPGRADE_v0.10.1.md) · [业务接入](第三方对接指南.md) · [CHANGELOG](CHANGELOG.md) · [上一版本](RELEASE_NOTES_v0.10.0.md)
|
|
@@ -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)。
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Core v0.10.1 Upgrade Guide
|
|
2
|
+
|
|
3
|
+
[简体中文](UPGRADE_v0.10.1.md)
|
|
4
|
+
|
|
5
|
+
This guide covers Core 0.10.0 → 0.10.1 and the matching business-side declaration SDK updates. ACC remains at specification release 1.0.6 with declaration `version: 1`; MCP / Agent Client SDK and DSH do not receive separate versions for this patch. Earlier Core installations must also follow the [0.10.0 upgrade guide](UPGRADE_v0.10.0.en.md) and their historical migration chain.
|
|
6
|
+
|
|
7
|
+
## 1. Pin identities and retain original evidence
|
|
8
|
+
|
|
9
|
+
Record source/target tags, exact commits and package or image digests. For business SDKs, retain the previous file manifest, candidate package SHA-256 and generated declaration. An unchanged filename or the label “PHP7” does not establish artifact identity.
|
|
10
|
+
|
|
11
|
+
Follow the existing deployment procedure to back up configuration, databases/JSONL, migration history, original operations/invocations and approvals. Stop new admissions and drain accepted work. Relative to 0.10.0 there is **no new SQL and no change to historical SQL or the migrator**; do not manually edit migration history. Keep old artifacts and declarations for comparison and controlled rollback.
|
|
12
|
+
|
|
13
|
+
## 2. Have business owners review declaration differences
|
|
14
|
+
|
|
15
|
+
Generators retain explicit risk, readonly and idempotent values previously omitted. Rebuild declarations outside production and compare individual operations:
|
|
16
|
+
|
|
17
|
+
- **Non-readonly POST with explicit low**: previously it could become medium when the field was discarded. It now retains the author's explicit low value. Confirm that the label is appropriate; do not set every write operation to low to eliminate differences.
|
|
18
|
+
- **GET with explicit readonly=false**: it now remains non-readonly and defaults to medium when risk is omitted. Review whether the operation modifies business state and whether GET accurately represents its interface.
|
|
19
|
+
- **GET with explicit idempotent=false**: the hint is preserved. Callers must not rely on the old assumption that every GET is idempotent. This is not a promise of automatic retries or exactly-once execution.
|
|
20
|
+
- **Unspecified fields**: remain omitted. Existing defaults for unspecified GET readonly and non-readonly POST medium risk are unchanged.
|
|
21
|
+
- **Approval and authority**: explicit low does not remove `approval.required`, `approval.when`, subject requirements or final business-system authorization. Retain and inspect these rules rather than bypassing approval because a risk value changed.
|
|
22
|
+
|
|
23
|
+
JSON, ETags, declaration digests and tool-discovery revisions may change. Refresh tool sources and client discovery through the existing workflow, using the new declaration for new calls. Preserve original invocation identities, frozen arguments and approvals; handle revision conflicts through the existing preparation/recovery process. Do not rewrite history or automatically replay business operations.
|
|
24
|
+
|
|
25
|
+
## 3. Generator compatibility
|
|
26
|
+
|
|
27
|
+
| SDK | Intermediate representation of unspecified risk | Integration impact |
|
|
28
|
+
| --- | --- | --- |
|
|
29
|
+
| PHP7 | No option is added unless `ToolDef::risk()` is called | Method signatures and PHP 7.3 compatibility remain; explicit boolean false is preserved |
|
|
30
|
+
| PHP8 | `AiTool::$risk` is `?string`, default `null` | Constructor parameter names/order are unchanged; custom property readers must handle null |
|
|
31
|
+
| Node.js | Unspecified risk is no longer filled with `'low'` | Custom readers of `tool()` objects must handle unspecified values |
|
|
32
|
+
| Python | Unspecified risk is no longer filled with `'low'` | Custom readers of intermediate dictionaries must handle unspecified values |
|
|
33
|
+
| Go | Empty string means unspecified; booleans remain pointers | Struct types are unchanged; nonempty explicit risk and pointed boolean values are retained |
|
|
34
|
+
| Java | `Tool.risk` defaults to `null` | Direct field readers must handle null; readonly/idempotent remain nullable Boolean values |
|
|
35
|
+
| .NET | `Tool.Risk` defaults to the empty string | The string type is retained; empty means omitted, and booleans remain nullable |
|
|
36
|
+
|
|
37
|
+
These are business-provider SDKs, not a requirement to replace MCP / Agent Client SDK 0.8.0 or DSH 0.8.0. Projects using another consumer must verify its precedence separately. Passing the ACC reference checker alone does not establish end-to-end business acceptance.
|
|
38
|
+
|
|
39
|
+
## 4. Companion packages and acceptance
|
|
40
|
+
|
|
41
|
+
Obtain `web/connect/bailing-connect-php7.tgz` or `bailing-connect-php.tgz` from the same release identity and compare its SHA-256 with the release manifest. From the source checkout:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
node scripts/check-php-sdk-artifacts.mjs
|
|
45
|
+
# Use a real PHP 7.3 binary to check PHP7 source and extracted package:
|
|
46
|
+
node scripts/check-php-sdk-artifacts.mjs --sdk php7 --php /path/to/php7.3
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The verifier checks complete file sets, per-file SHA-256 and actual generator regressions, not just file existence. Both drivers also accept an extracted SDK root as their first argument:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
php sdk/php7/tests/declaration-serialization.php /path/to/bailing-connect-php7
|
|
53
|
+
php sdk/php/tests/declaration-serialization.php /path/to/bailing-connect-php
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Check all 24 risk/readonly combinations, six idempotency combinations, preservation of approval/subject requirements with explicit low, and Core's readonly/idempotent/risk interpretation of the same declarations. Start with synthetic interfaces. Integrators review the full declaration diff for their systems without executing real writes for upgrade acceptance. After deployment, separately verify the exact version and `/health/ready`; synthetic regressions do not replace deployment or business acceptance.
|
|
57
|
+
|
|
58
|
+
Validate Core and generators together. If only one side can be updated, record the remaining unfixed layer explicitly. Do not conceal it by dropping false, changing HTTP methods or globally relabeling risk.
|
|
59
|
+
|
|
60
|
+
## 5. Dependency maintenance and rollback
|
|
61
|
+
|
|
62
|
+
The release applies bounded development/build patches to `fast-uri 3.1.9` and `Vite 6.4.5`. Keep the lockfiles and run the relevant build and dependency audits. These changes add no business protocol and do not establish that production was attacked.
|
|
63
|
+
|
|
64
|
+
Before rollback, stop admissions, drain work and retain new records and declaration revisions. Old SDKs discard the explicit values again, and old Core overrides explicit GET false again; rollback is not merely a version-number change. Verify the old generated declarations and consumer together in isolation, disabling ambiguous capabilities if necessary while preserving operator review. Do not delete approvals, unknown outcomes, original calls or ledgers. Restoring a backup cannot undo external business effects.
|
|
65
|
+
|
|
66
|
+
[Release notes](RELEASE_NOTES_v0.10.1.en.md) · [Compatibility policy](COMPATIBILITY.en.md) · [Operations](OPERATIONS.en.md)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Core v0.10.1 升级指南
|
|
2
|
+
|
|
3
|
+
[English](UPGRADE_v0.10.1.en.md)
|
|
4
|
+
|
|
5
|
+
本指南面向 Core 0.10.0 → 0.10.1,以及业务侧声明生成 SDK 的配套更新。ACC 规范 1.0.6 与声明 `version: 1` 不变,MCP / Agent Client SDK、DSH 不因本补丁另行发版。更早的 Core 来源仍按[0.10.0 升级指南](UPGRADE_v0.10.0.md)及原迁移链核对。
|
|
6
|
+
|
|
7
|
+
## 1. 固定身份与保留原材料
|
|
8
|
+
|
|
9
|
+
记录源/目标 Tag、精确提交、运行包或镜像摘要;业务 SDK 另外保存原文件清单、候选包 SHA-256 和更新前的生成声明。不要以文件名相同或“都是 PHP7”代替制品核对。
|
|
10
|
+
|
|
11
|
+
Core 升级按原部署流程备份配置、数据库/JSONL、迁移账本、原 operation/invocation 与审批记录,停止新接单并排空。相对 0.10.0 **无新增 SQL,也不修改历史 SQL 或迁移器**;不需要手写迁移账本。保留原制品与声明用于差异分析和受控回退。
|
|
12
|
+
|
|
13
|
+
## 2. 业务负责人核对声明差异
|
|
14
|
+
|
|
15
|
+
生成器现在保留过去省略的显式 risk、readonly 和 idempotent。先在非生产环境重建声明,逐条比较变化:
|
|
16
|
+
|
|
17
|
+
- **显式 low 的非只读 POST**:此前可能因字段丢失而得到 medium;现在按原作者的明确声明得到 low。确认该标注确实合理;不要为消除差异把所有写操作设为 low。
|
|
18
|
+
- **GET + 显式 readonly=false**:现在保持非只读;未声明 risk 时为 medium。检查它是否真的修改业务状态,以及 GET 的接口设计是否符合业务实际。
|
|
19
|
+
- **GET + 显式 idempotent=false**:现在保留该提示。核对调用方不得依赖旧的 GET 一律幂等推断;这不是自动重试或恰好一次执行的承诺。
|
|
20
|
+
- **未设置字段**:继续省略,GET 的原只读缺省及非只读 POST 的 medium 缺省不变。
|
|
21
|
+
- **审批与授权**:显式 low 不会删除 `approval.required`、`approval.when`、主体要求或业务系统最终权限。保留这些规则并核对配置,不因风险值变化绕过审批。
|
|
22
|
+
|
|
23
|
+
JSON、ETag、声明摘要和工具发现修订可能变化。按原流程刷新工具源与客户端发现结果,只为新的调用使用新声明;原 invocation、冻结参数和审批记录保持原身份,修订不匹配按既有准备/恢复流程处理。不要改写历史记录或自动重放业务。
|
|
24
|
+
|
|
25
|
+
## 3. 生成器兼容性
|
|
26
|
+
|
|
27
|
+
| SDK | 未设置 risk 的中间表示 | 接入注意 |
|
|
28
|
+
| --- | --- | --- |
|
|
29
|
+
| PHP7 | `ToolDef` 未调用 risk 时不创建该选项 | 方法签名不变,继续兼容 PHP 7.3;显式 boolean false 不再丢失 |
|
|
30
|
+
| PHP8 | `AiTool::$risk` 是 `?string`,默认 `null` | 构造参数顺序/名称不变;直接读取该属性的自定义代码需接受 null |
|
|
31
|
+
| Node.js | 未设置值不再补成 `'low'` | 自行读取 `tool()` 返回对象的代码应处理未设置状态 |
|
|
32
|
+
| Python | 未设置值不再补成 `'low'` | 自行读取中间字典的代码应处理未设置状态 |
|
|
33
|
+
| Go | 空字符串表示未设置;布尔字段仍为指针 | 原结构类型不变,非空显式 risk 与 bool 指针值均保留 |
|
|
34
|
+
| Java | `Tool.risk` 默认 `null` | 直接读取字段的代码应处理 null;readonly/idempotent 仍为可空 Boolean |
|
|
35
|
+
| .NET | `Tool.Risk` 默认空字符串 | 保持 string 类型,空字符串表示省略;布尔字段仍可空 |
|
|
36
|
+
|
|
37
|
+
这些是业务侧 SDK,不要求对 MCP / Agent Client SDK 0.8.0 或 DSH 0.8.0 做版本替换。使用其他消费者的项目需独立验证其优先级;不能仅凭 ACC 参考检查器通过就宣称整条业务链已验收。
|
|
38
|
+
|
|
39
|
+
## 4. 配套包与验收
|
|
40
|
+
|
|
41
|
+
从同一发行身份取得 `web/connect/bailing-connect-php7.tgz` 或 `bailing-connect-php.tgz`,核对发布清单中的包 SHA-256。源码检出后可运行:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
node scripts/check-php-sdk-artifacts.mjs
|
|
45
|
+
# 使用实际 PHP 7.3 可执行程序核对 PHP7 源码及解包内容:
|
|
46
|
+
node scripts/check-php-sdk-artifacts.mjs --sdk php7 --php /path/to/php7.3
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
验包工具检查完整文件集合、逐文件 SHA-256 和真实生成器回归,不只验证文件存在。两侧 driver 也支持把解包根目录作为第一个参数:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
php sdk/php7/tests/declaration-serialization.php /path/to/bailing-connect-php7
|
|
53
|
+
php sdk/php/tests/declaration-serialization.php /path/to/bailing-connect-php
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
分别核对:24种风险/只读组合、6种幂等组合、显式 low 不删除审批/主体,以及 Core 消费相同声明后的 readonly、idempotent、risk。先用合成接口确认;接入方审阅自己的全量声明差异,不为升级验收执行真实写业务。部署后另核精确版本与 `/health/ready`,合成回归不代替部署或实际业务验收。
|
|
57
|
+
|
|
58
|
+
Core 与生成器应配套验证。若暂时只能更新其中一层,明确记录尚未修复的另一层;不要通过省略 false、改 HTTP 方法或统一调整风险来掩盖缺口。
|
|
59
|
+
|
|
60
|
+
## 5. 依赖维护与回退
|
|
61
|
+
|
|
62
|
+
本版对开发/构建链中的 `fast-uri 3.1.9`、`Vite 6.4.5` 做限定补丁更新;保持安装锁文件,运行相应构建与依赖审计。它们不是新的业务协议,也不表示已经证实生产受到攻击。
|
|
63
|
+
|
|
64
|
+
回退前停止新接单、排空并保存新产生的记录及声明修订。旧 SDK 会再次省略相应显式值,旧 Core 会再次覆盖 GET 的显式 false;因此回退不是仅换版本号。应在隔离环境核对旧生成声明与旧消费者组合,必要时停用有歧义的能力,保留人工核查路径。不要删除审批、unknown 状态、原调用或账本;恢复备份不能撤销已经发生的外部业务动作。
|
|
65
|
+
|
|
66
|
+
[版本说明](RELEASE_NOTES_v0.10.1.md) · [兼容策略](兼容性与升级.md) · [运维](OPERATIONS.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Upgrade Core from v0.10.1 to v0.11.0
|
|
2
|
+
|
|
3
|
+
[简体中文](UPGRADE_v0.11.0.md)
|
|
4
|
+
|
|
5
|
+
## Update Core
|
|
6
|
+
|
|
7
|
+
1. Record the current image digest or npm version, configuration and data volumes. Use your usual maintenance procedure to stop admitting tasks, drain accepted work, and retain the previous artifact and a restorable backup of persistent data.
|
|
8
|
+
2. Update the image or source checkout to the `v0.11.0` release, or pin an embedding host to `bailinghub@0.11.0`. Upgrading from 0.10.1 requires no new SQL migration. For older versions, check the migration instructions for each intervening release.
|
|
9
|
+
3. Confirm that `/health/ready` returns 200 before resuming admission. Hosts can read the model window and diagnostic through their existing catalog and receipt APIs. Existing business authorization and model output budgets continue to apply. [Operations](OPERATIONS.en.md)
|
|
10
|
+
|
|
11
|
+
## Check existing records
|
|
12
|
+
|
|
13
|
+
| Action | Expected result |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| Open a conversation with recorded messages under Tasks → Conversations. | The view identifies the channel and message roles and opens at the latest message. Follow an associated task to its trace when available. |
|
|
16
|
+
| Filter dispatches by a failure status and a known route. | Only matching tasks appear. Focus the status label with the keyboard to see its raw value. |
|
|
17
|
+
| Select a credential and invocation model in model service settings. | A supported route shows the verified window. For an unknown route, enter a verified value manually or save the new service as inactive. |
|
|
18
|
+
| Read `GET /usage/v1/model/models` using an account entitled to the service. | Match `service_id` and check `context_window_tokens`, the service revision and the existing output budget. The window covers input and output combined. Older registrations may return `null`. |
|
|
19
|
+
|
|
20
|
+
To support recovery of long conversations, test the host against a synthetic `CONTEXT_WINDOW_EXCEEDED` receipt. The host persists a compaction checkpoint and allocates a new operation ID for the shortened request. If the final receipt is missing, look up the original operation first. [Model continuation](MODEL_CONTINUATION.en.md)
|
|
21
|
+
|
|
22
|
+
## Roll back
|
|
23
|
+
|
|
24
|
+
Stop admission and drain active work before restoring the previous application artifact. Preserve operations, authorizations and configuration revisions recorded during the upgrade. Existing read paths remain available to older hosts. Consumers of the new diagnostic should tolerate an absent field. Recheck readiness and an existing operation after restart. [Release notes](RELEASE_NOTES_v0.11.0.en.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# 从 Core v0.10.1 升级到 v0.11.0
|
|
2
|
+
|
|
3
|
+
[English](UPGRADE_v0.11.0.en.md)
|
|
4
|
+
|
|
5
|
+
## 更新 Core
|
|
6
|
+
|
|
7
|
+
1. 记录当前镜像摘要或 npm 包版本,以及它使用的配置和数据卷。在现有维护流程中暂停接收任务、排空已接受的工作,保留原制品和可恢复的持久化备份。
|
|
8
|
+
2. 按原部署方式切换到 `v0.11.0` 标签对应的镜像、源码,或宿主依赖 `bailinghub@0.11.0`。从 0.10.1 升级无需新增 SQL 迁移。更早的版本仍需逐版核对已发布的迁移。
|
|
9
|
+
3. 启动后确认 `/health/ready` 返回 200,再恢复接单。自定义宿主可使用已有模型目录和回执接口读取新增信息。业务系统原有的授权流程和模型服务的输出预算继续适用。[部署运维](OPERATIONS.md)
|
|
10
|
+
|
|
11
|
+
## 用现有记录验收
|
|
12
|
+
|
|
13
|
+
| 操作 | 预期结果 |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| 在「任务 → 会话」打开一条有消息的历史会话 | 能识别消息来源及角色,并直接看到最新消息。如记录含关联任务,可进入追溯。 |
|
|
16
|
+
| 在「调度流」筛选失败状态和一条已知路由 | 列表只显示匹配任务。键盘聚焦状态标签可查看原始状态值。 |
|
|
17
|
+
| 在模型服务配置中选定凭证和调用模型 | 支持的路由会显示已核实的窗口。若来源未知,核实后手动填写,或将新服务暂存为停用。 |
|
|
18
|
+
| 用有对应服务权限的帐号读取 `GET /usage/v1/model/models` | 按 `service_id` 核对 `context_window_tokens`、服务修订和原有输出预算。窗口是输入与输出合计;旧服务可返回 `null`。 |
|
|
19
|
+
|
|
20
|
+
若接入方要实现长会话恢复,先通过测试回执核对其对 `CONTEXT_WINDOW_EXCEEDED` 的处理。由宿主保存压缩检查点并为缩短后的新请求分配新操作号。缺少最终回执时先查询原操作;用合成数据验证这一流程即可。[模型续跑](MODEL_CONTINUATION.md)
|
|
21
|
+
|
|
22
|
+
## 回退
|
|
23
|
+
|
|
24
|
+
停止新接单并排空后切回先前保存的应用制品,保留本次运行期间的操作、授权和配置修订。旧版界面及宿主仍可使用原读取路径;依赖新增诊断的处理逻辑需接受字段缺失。启动后重新核对就绪状态和一笔原有记录。[版本说明](RELEASE_NOTES_v0.11.0.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Upgrade Core from v0.10.1 to v0.11.1
|
|
2
|
+
|
|
3
|
+
[简体中文](UPGRADE_v0.11.1.md)
|
|
4
|
+
|
|
5
|
+
## Update Core
|
|
6
|
+
|
|
7
|
+
1. Record the current image digest or npm version, configuration and data volumes. Use your usual maintenance procedure to stop admitting tasks, drain accepted work, and retain the previous artifact and a restorable backup of persistent data.
|
|
8
|
+
2. Update the image or source checkout to the `v0.11.1` release, or pin an embedding host to `bailinghub@0.11.1`. Upgrading from 0.10.1 requires no new SQL migration. For older versions, check the migration instructions for each intervening release.
|
|
9
|
+
3. Confirm that `/health/ready` returns 200 before resuming admission. Hosts can read the model window and diagnostic through their existing catalog and receipt APIs. Existing business authorization and model output budgets continue to apply. [Operations](OPERATIONS.en.md)
|
|
10
|
+
|
|
11
|
+
## Verify image identity
|
|
12
|
+
|
|
13
|
+
For a Docker deployment, inspect `ghcr.io/bailinghub/bailinghub:0.11.1` with `docker buildx imagetools inspect`. Find the digest beside the `linux/amd64` platform. It should match the manifest digest shown when inspecting the same version on the Aliyun ACR registry used in your Compose file. The top-level GHCR digest covers the complete index, including the build attestation. Repeat this check for `bailing-demo-business` if you use the demo. A deployment using the 0.11.0 GHCR image can follow the same steps.
|
|
14
|
+
|
|
15
|
+
## Check existing records
|
|
16
|
+
|
|
17
|
+
| Action | Expected result |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| Open a conversation with recorded messages under Tasks → Conversations. | The view identifies the channel and message roles and opens at the latest message. Follow an associated task to its trace when available. |
|
|
20
|
+
| Filter dispatches by a failure status and a known route. | Only matching tasks appear. Focus the status label with the keyboard to see its raw value. |
|
|
21
|
+
| Select a credential and invocation model in model service settings. | A supported route shows the verified window. For an unknown route, enter a verified value manually or save the new service as inactive. |
|
|
22
|
+
| Read `GET /usage/v1/model/models` using an account entitled to the service. | Match `service_id` and check `context_window_tokens`, the service revision and the existing output budget. The window covers input and output combined. Older registrations may return `null`. |
|
|
23
|
+
|
|
24
|
+
To support recovery of long conversations, test the host against a synthetic `CONTEXT_WINDOW_EXCEEDED` receipt. The host persists a compaction checkpoint and allocates a new operation ID for the shortened request. If the final receipt is missing, look up the original operation first. [Model continuation](MODEL_CONTINUATION.en.md)
|
|
25
|
+
|
|
26
|
+
## Roll back
|
|
27
|
+
|
|
28
|
+
Stop admission and drain active work before restoring the previous application artifact. Preserve operations, authorizations and configuration revisions recorded during the upgrade. Existing read paths remain available to older hosts. Consumers of the new diagnostic should tolerate an absent field. Recheck readiness and an existing operation after restart. [Release notes](RELEASE_NOTES_v0.11.1.en.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# 从 Core v0.10.1 升级到 v0.11.1
|
|
2
|
+
|
|
3
|
+
[English](UPGRADE_v0.11.1.en.md)
|
|
4
|
+
|
|
5
|
+
## 更新 Core
|
|
6
|
+
|
|
7
|
+
1. 记录当前镜像摘要或 npm 包版本,以及它使用的配置和数据卷。在现有维护流程中暂停接收任务、排空已接受的工作,保留原制品和可恢复的持久化备份。
|
|
8
|
+
2. 按原部署方式切换到 `v0.11.1` 标签对应的镜像、源码,或宿主依赖 `bailinghub@0.11.1`。从 0.10.1 升级无需新增 SQL 迁移。更早的版本仍需逐版核对已发布的迁移。
|
|
9
|
+
3. 启动后确认 `/health/ready` 返回 200,再恢复接单。自定义宿主可使用已有模型目录和回执接口读取新增信息。业务系统原有的授权流程和模型服务的输出预算继续适用。[部署运维](OPERATIONS.md)
|
|
10
|
+
|
|
11
|
+
## 核对容器镜像
|
|
12
|
+
|
|
13
|
+
Docker 部署可运行 `docker buildx imagetools inspect ghcr.io/bailinghub/bailinghub:0.11.1`,找到 `linux/amd64` 平台条目旁的摘要。对 Compose 文件中的同版本阿里云 ACR 镜像运行同一命令,其清单摘要应与这个平台摘要一致。GHCR 顶层摘要覆盖包含构建证明的完整索引。使用示例业务时,对 `bailing-demo-business` 重复核对。已采用 GHCR 0.11.0 镜像的部署也可按此步骤升级。
|
|
14
|
+
|
|
15
|
+
## 用现有记录验收
|
|
16
|
+
|
|
17
|
+
| 操作 | 预期结果 |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| 在「任务 → 会话」打开一条有消息的历史会话 | 能识别消息来源及角色,并直接看到最新消息。如记录含关联任务,可进入追溯。 |
|
|
20
|
+
| 在「调度流」筛选失败状态和一条已知路由 | 列表只显示匹配任务。键盘聚焦状态标签可查看原始状态值。 |
|
|
21
|
+
| 在模型服务配置中选定凭证和调用模型 | 支持的路由会显示已核实的窗口。若来源未知,核实后手动填写,或将新服务暂存为停用。 |
|
|
22
|
+
| 用有对应服务权限的帐号读取 `GET /usage/v1/model/models` | 按 `service_id` 核对 `context_window_tokens`、服务修订和原有输出预算。窗口是输入与输出合计;旧服务可返回 `null`。 |
|
|
23
|
+
|
|
24
|
+
若接入方要实现长会话恢复,先通过测试回执核对其对 `CONTEXT_WINDOW_EXCEEDED` 的处理。由宿主保存压缩检查点并为缩短后的新请求分配新操作号。缺少最终回执时先查询原操作;用合成数据验证这一流程即可。[模型续跑](MODEL_CONTINUATION.md)
|
|
25
|
+
|
|
26
|
+
## 回退
|
|
27
|
+
|
|
28
|
+
停止新接单并排空后切回先前保存的应用制品,保留本次运行期间的操作、授权和配置修订。旧版界面及宿主仍可使用原读取路径;依赖新增诊断的处理逻辑需接受字段缺失。启动后重新核对就绪状态和一笔原有记录。[版本说明](RELEASE_NOTES_v0.11.1.md)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Public security assessment evidence
|
|
2
|
+
|
|
3
|
+
The `Publish security assessment evidence` workflow evaluates the public
|
|
4
|
+
`bailinghub/bailinghub` repository against OSPS Baseline 2026-08, including
|
|
5
|
+
maturity levels 1, 2 and 3. It uses the signed `openssf/github-repo` evaluator
|
|
6
|
+
version 0.33.2 and the official GRC reusable publisher.
|
|
7
|
+
|
|
8
|
+
The publishing destination is
|
|
9
|
+
[bailinghub/core](https://grc.store/targets/bailinghub/core).
|
|
10
|
+
The first successful publication registers that target. Before that run, an
|
|
11
|
+
absent target page is not evidence of a completed assessment.
|
|
12
|
+
|
|
13
|
+
## Identity and permissions
|
|
14
|
+
|
|
15
|
+
Only this repository's `refs/heads/main` is bound to the corresponding GRC
|
|
16
|
+
namespace. The reusable workflow isolates the evaluator (read-only repository
|
|
17
|
+
token) from the signing/publishing job (OIDC). No long-lived credential or
|
|
18
|
+
organization administrator token is provided. Source code licenses are
|
|
19
|
+
unchanged; published assessment output uses CC0-1.0.
|
|
20
|
+
|
|
21
|
+
GitHub statically validates permissions of every nested job, even a skipped
|
|
22
|
+
optional job. The caller therefore declares `security-events: write` required
|
|
23
|
+
by the official report job, but `upload-sarif: false` keeps that job disabled.
|
|
24
|
+
The evaluator and signing jobs do not receive this scope.
|
|
25
|
+
|
|
26
|
+
GRC currently requires the exact `@v1` workflow reference in its signing
|
|
27
|
+
identity. It rejects a commit-pinned caller. The reviewed tag resolved to
|
|
28
|
+
`0cbfef2f58ea147021d3657d7b18ed89920f2f6d` on 2026-11-11.
|
|
29
|
+
Review upstream changes to this trust root before relying on later runs.
|
|
30
|
+
|
|
31
|
+
## Running and interpreting it
|
|
32
|
+
|
|
33
|
+
Pull requests modifying the workflow run an unsigned dry run. Manual runs
|
|
34
|
+
default to dry-run mode; select `dry_run=false` on main to publish. Evidence
|
|
35
|
+
document changes on main and the weekly schedule publish fresh assessments.
|
|
36
|
+
There is no production deployment or product release in this workflow.
|
|
37
|
+
|
|
38
|
+
The scanner reads GitHub repository state and the current default branch;
|
|
39
|
+
a dry run on a pull request does not assess the pull request's proposed source
|
|
40
|
+
as if it had already merged. Published coordinates carry the triggering main
|
|
41
|
+
commit, and each result also needs its collection time and repository evidence
|
|
42
|
+
checked when reviewing a possible concurrent branch update.
|
|
43
|
+
|
|
44
|
+
A green publishing job means a result was stored, not that the baseline passed.
|
|
45
|
+
Read each requirement's verdict, evidence, coverage and assessed scope.
|
|
46
|
+
Failed, Needs Review, Unknown and Not Run outcomes must remain visible.
|
|
47
|
+
The restricted token cannot observe every administrative control; supplement
|
|
48
|
+
such gaps with independently collected, current evidence.
|
|
49
|
+
|
|
50
|
+
Covering all maturity tags is not a claim of meeting Level 3, receiving
|
|
51
|
+
certification, or earning a Security Slam badge. The evaluator itself warns
|
|
52
|
+
that higher-level checks are less rigorously tested. Manual governance
|
|
53
|
+
requirements, including genuine non-author human review, cannot be satisfied
|
|
54
|
+
by an automated scan or by changing a status label.
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
|
|
21
21
|
**你能看到什么**
|
|
22
22
|
|
|
23
|
-
-
|
|
23
|
+
- 「最近会话」按最近活动排列客户端、网页助手、企微和其他业务渠道。选择来源后点会话标题,在右侧阅读正文和执行轨迹。客户端按轮查看关联授权。网页助手未回复时,有关联任务的提问也能打开执行轨迹。
|
|
24
24
|
- 原授权记录仍可单独查询;未同步或没有原文的旧历史不会被显示为完整对话。
|
|
25
|
-
-
|
|
25
|
+
- 在「调度流」按任务状态、精确路由和创建时间筛选全部已记录的任务。点击任务摘要查看单次执行详情。
|
|
26
26
|
- 执行轨迹、工具调用、审批、知识引用、消息总账。
|
|
27
27
|
- debug bundle / debug report。
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bailinghub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Open-source ACC runtime and agent control plane for existing business systems.",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"release:consistency:test": "node --test scripts/check-release-consistency.test.mjs",
|
|
92
92
|
"release:audit": "npm run release:consistency && npm run release:consistency:test && npm run images:policy:test && npm run public-content:denylist:test && npm run security:scan && npm run oss:guard && node scripts/release-audit.mjs && npm run package:artifact:check",
|
|
93
93
|
"github:verify": "node scripts/verify-github-repo.mjs",
|
|
94
|
-
"release:check": "npm run notices:check && npm run assets:check && npm run audit:deps && npm run audit:deps:test && npm run docx:vendor:verify-upstream && npm run docx:test && npm run client-api:contract && npm run client-api:ecosystem:clone && npm run typecheck && npm run installer:secrets:test && npm run doctor:deployment:typecheck && npm run doctor:deployment:test && npm run doctor:upgrade-plan:typecheck && npm run doctor:upgrade-plan:test && npm test && npm run widget:renderer:test && npm run web-admin:check && npm run docx:browser:test && npm run notification:console:test && npm run docs:check && npm run examples:check && npm run sdk:test && npm run sdk:test7 && npm run sdk:test-node && npm run sdk:test-python && npm run sdk:test-runtime && npm run sdk:test-p1 && npm run release:audit && npm run oss:verify && npm run github:verify",
|
|
94
|
+
"release:check": "npm run notices:check && npm run assets:check && npm run audit:deps && npm run audit:deps:test && npm run docx:vendor:verify-upstream && npm run docx:test && npm run client-api:contract && npm run client-api:ecosystem:clone && npm run typecheck && npm run installer:secrets:test && npm run doctor:deployment:typecheck && npm run doctor:deployment:test && npm run doctor:upgrade-plan:typecheck && npm run doctor:upgrade-plan:test && npm test && npm run widget:renderer:test && npm run web-admin:check && npm run docx:browser:test && npm run notification:console:test && npm run docs:check && npm run examples:check && npm run sdk:test && npm run sdk:test7 && npm run sdk:test-node && npm run sdk:test-python && npm run sdk:test-runtime && npm run sdk:test-p1 && npm run sdk:test-declarations && npm run sdk:artifacts:check && npm run release:audit && npm run oss:verify && npm run github:verify",
|
|
95
95
|
"images:build": "sh scripts/publish-images.sh",
|
|
96
96
|
"images:publish": "BAILING_PUSH_IMAGES=1 sh scripts/publish-images.sh",
|
|
97
97
|
"images:publish-mysql": "BAILING_PUSH_IMAGES=1 sh scripts/publish-mysql-image.sh",
|
|
@@ -117,7 +117,9 @@
|
|
|
117
117
|
"notification:console:test": "node scripts/notification-console-test.mjs",
|
|
118
118
|
"doctor:upgrade-plan": "tsx scripts/doctor.ts --upgrade-plan",
|
|
119
119
|
"doctor:upgrade-plan:test": "node --import tsx --test scripts/doctor-upgrade-plan.test.ts",
|
|
120
|
-
"doctor:upgrade-plan:typecheck": "tsc --noEmit --strict --noUncheckedIndexedAccess --noUnusedLocals --skipLibCheck --target ES2022 --module ESNext --moduleResolution Bundler --lib ES2022 --types node scripts/doctor-upgrade-plan.ts scripts/doctor-upgrade-plan.test.ts"
|
|
120
|
+
"doctor:upgrade-plan:typecheck": "tsc --noEmit --strict --noUncheckedIndexedAccess --noUnusedLocals --skipLibCheck --target ES2022 --module ESNext --moduleResolution Bundler --lib ES2022 --types node scripts/doctor-upgrade-plan.ts scripts/doctor-upgrade-plan.test.ts",
|
|
121
|
+
"sdk:test-declarations": "php sdk/php/tests/declaration-serialization.php | tsx scripts/sdk-declaration-contract-test.ts && php sdk/php7/tests/declaration-serialization.php | tsx scripts/sdk-declaration-contract-test.ts && node --test sdk/node/tests/declaration.test.mjs && PYTHONDONTWRITEBYTECODE=1 python3 sdk/python/tests/test_declaration.py",
|
|
122
|
+
"sdk:artifacts:check": "node --test scripts/check-php-sdk-artifacts.test.mjs && node scripts/check-php-sdk-artifacts.mjs"
|
|
121
123
|
},
|
|
122
124
|
"dependencies": {
|
|
123
125
|
"mammoth": "file:vendor/bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz",
|
|
@@ -115,6 +115,12 @@ const englishCompanions = {
|
|
|
115
115
|
'docs/UPGRADE_v0.9.4.md': 'docs/UPGRADE_v0.9.4.en.md',
|
|
116
116
|
'docs/RELEASE_NOTES_v0.10.0.md': 'docs/RELEASE_NOTES_v0.10.0.en.md',
|
|
117
117
|
'docs/UPGRADE_v0.10.0.md': 'docs/UPGRADE_v0.10.0.en.md',
|
|
118
|
+
'docs/RELEASE_NOTES_v0.10.1.md': 'docs/RELEASE_NOTES_v0.10.1.en.md',
|
|
119
|
+
'docs/UPGRADE_v0.10.1.md': 'docs/UPGRADE_v0.10.1.en.md',
|
|
120
|
+
'docs/RELEASE_NOTES_v0.11.1.md': 'docs/RELEASE_NOTES_v0.11.1.en.md',
|
|
121
|
+
'docs/UPGRADE_v0.11.1.md': 'docs/UPGRADE_v0.11.1.en.md',
|
|
122
|
+
'docs/RELEASE_NOTES_v0.11.0.md': 'docs/RELEASE_NOTES_v0.11.0.en.md',
|
|
123
|
+
'docs/UPGRADE_v0.11.0.md': 'docs/UPGRADE_v0.11.0.en.md',
|
|
118
124
|
'docs/MODEL_OUTPUT_BUDGET.md': 'docs/MODEL_OUTPUT_BUDGET.en.md',
|
|
119
125
|
'docs/MODEL_CONTINUATION.md': 'docs/MODEL_CONTINUATION.en.md',
|
|
120
126
|
'docs/UPGRADE_v0.9.1.md': 'docs/UPGRADE_v0.9.1.en.md',
|
|
@@ -9,7 +9,7 @@ REGISTRY="${BAILING_IMAGE_REGISTRY:-$DEFAULT_REGISTRY}"
|
|
|
9
9
|
NAMESPACE="${BAILING_IMAGE_NAMESPACE:-$DEFAULT_NAMESPACE}"
|
|
10
10
|
PACKAGE_VERSION="$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' package.json | head -1)"
|
|
11
11
|
TAG="${BAILING_IMAGE_TAG:-$PACKAGE_VERSION}"
|
|
12
|
-
[ -n "$TAG" ] || TAG="0.
|
|
12
|
+
[ -n "$TAG" ] || TAG="0.11.1"
|
|
13
13
|
MYSQL_TAG="${BAILING_MYSQL_IMAGE_TAG:-8.4}"
|
|
14
14
|
MYSQL_IMAGE="${BAILING_MYSQL_IMAGE:-$REGISTRY/$NAMESPACE/bailing-mysql:$MYSQL_TAG}"
|
|
15
15
|
PLATFORM="${BAILING_IMAGE_PLATFORM:-linux/amd64}"
|