@get-bb/plugin-sdk 0.6.37 → 0.6.39
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/bundled-types/bb-plugin-sdk-app.d.ts +207 -280
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +1 -10
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +9 -23
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +606 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +32 -90
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +11 -10
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +66 -220
- package/bundled-types/bb-plugin-sdk-testing.d.ts +7 -3
- package/bundled-types/bb-plugin-sdk.d.ts +225 -283
- package/dist/internal/host-policy.js +13 -7
- package/dist/provider-bridge-acp-next.js +24029 -0
- package/dist/provider-bridge-acp.js +959 -873
- package/dist/provider-bridge-testing.js +571 -510
- package/dist/provider-bridge.js +633 -559
- package/dist/testing/index.js +15 -7
- package/package.json +8 -1
|
@@ -1042,13 +1042,12 @@ function validateProviderFallbackModels(providerId, value) {
|
|
|
1042
1042
|
`provider "${providerId}" ${field}.supportedReasoningEfforts[${effortIndex}] must be { reasoningEffort, description }`
|
|
1043
1043
|
);
|
|
1044
1044
|
}
|
|
1045
|
-
const
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
const level = reasoningEffort;
|
|
1045
|
+
const level = requireNonBlankString({
|
|
1046
|
+
providerId,
|
|
1047
|
+
field: `${field}.supportedReasoningEfforts[${effortIndex}].reasoningEffort`,
|
|
1048
|
+
value: Reflect.get(effort, "reasoningEffort")
|
|
1049
|
+
});
|
|
1050
|
+
const label = Reflect.get(effort, "label");
|
|
1052
1051
|
if (levels.has(level)) {
|
|
1053
1052
|
throw new Error(
|
|
1054
1053
|
`provider "${providerId}" ${field}.supportedReasoningEfforts repeats ${JSON.stringify(level)}`
|
|
@@ -1057,6 +1056,13 @@ function validateProviderFallbackModels(providerId, value) {
|
|
|
1057
1056
|
levels.add(level);
|
|
1058
1057
|
return Object.freeze({
|
|
1059
1058
|
reasoningEffort: level,
|
|
1059
|
+
...label === void 0 ? {} : {
|
|
1060
|
+
label: requireNonBlankString({
|
|
1061
|
+
providerId,
|
|
1062
|
+
field: `${field}.supportedReasoningEfforts[${effortIndex}].label`,
|
|
1063
|
+
value: label
|
|
1064
|
+
})
|
|
1065
|
+
},
|
|
1060
1066
|
description: requireNonBlankString({
|
|
1061
1067
|
providerId,
|
|
1062
1068
|
field: `${field}.supportedReasoningEfforts[${effortIndex}].description`,
|