@get-bb/plugin-sdk 0.5.31 → 0.6.9
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/README.md +8 -4
- package/bundled-types/bb-plugin-sdk-app.d.ts +434 -253
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +457 -0
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +26 -9
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +2 -2
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +9 -12
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +11 -10
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +32 -10
- package/bundled-types/bb-plugin-sdk-testing.d.ts +9 -4
- package/bundled-types/bb-plugin-sdk.d.ts +469 -261
- package/dist/app.js +2 -0
- package/dist/internal/composer-customization-validation.js +37 -27
- package/dist/internal/composer-handle.js +531 -0
- package/dist/internal/host-policy.js +0 -1
- package/dist/internal/plugin-app-collector.js +42 -27
- package/dist/provider-bridge-acp.js +14 -60
- package/dist/provider-bridge-testing.js +12 -61
- package/dist/provider-bridge.js +12 -55
- package/dist/testing/app.js +801 -139
- package/dist/testing/index.js +6 -3
- package/package.json +8 -2
package/dist/testing/index.js
CHANGED
|
@@ -31,7 +31,6 @@ var RESERVED_BB_CLI_COMMANDS = [
|
|
|
31
31
|
"guide",
|
|
32
32
|
"help",
|
|
33
33
|
"machine",
|
|
34
|
-
"manager",
|
|
35
34
|
"marketplace",
|
|
36
35
|
"plugin",
|
|
37
36
|
"project",
|
|
@@ -3872,7 +3871,7 @@ function createFakePluginHostInternal(options, sharedState) {
|
|
|
3872
3871
|
async setSettings(values) {
|
|
3873
3872
|
await setSettingsValues(values);
|
|
3874
3873
|
},
|
|
3875
|
-
async callRpc(method, input) {
|
|
3874
|
+
async callRpc(method, input, options2 = {}) {
|
|
3876
3875
|
const record = rpcHandlers.get(method);
|
|
3877
3876
|
if (!record) {
|
|
3878
3877
|
return throwRpcError({
|
|
@@ -3889,7 +3888,11 @@ function createFakePluginHostInternal(options, sharedState) {
|
|
|
3889
3888
|
);
|
|
3890
3889
|
let result;
|
|
3891
3890
|
try {
|
|
3892
|
-
result = await record.handler(validatedInput
|
|
3891
|
+
result = await record.handler(validatedInput, {
|
|
3892
|
+
experimental_caller: options2.experimental_caller ?? {
|
|
3893
|
+
kind: "client"
|
|
3894
|
+
}
|
|
3895
|
+
});
|
|
3893
3896
|
} catch (error) {
|
|
3894
3897
|
return throwRpcError({
|
|
3895
3898
|
code: "handler_error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@get-bb/plugin-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"homepage": "https://github.com/get-bb/bb#readme",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/get-bb/bb/issues"
|
|
@@ -74,6 +74,12 @@
|
|
|
74
74
|
"import": "./dist/internal/composer-customization-validation.js",
|
|
75
75
|
"default": "./dist/internal/composer-customization-validation.js"
|
|
76
76
|
},
|
|
77
|
+
"./internal/composer-handle": {
|
|
78
|
+
"source": "./src/internal/composer-handle.ts",
|
|
79
|
+
"types": "./bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts",
|
|
80
|
+
"import": "./dist/internal/composer-handle.js",
|
|
81
|
+
"default": "./dist/internal/composer-handle.js"
|
|
82
|
+
},
|
|
77
83
|
"./internal/composer-view": {
|
|
78
84
|
"source": "./src/internal/composer-view.ts",
|
|
79
85
|
"types": "./bundled-types/bb-plugin-sdk-internal-composer-view.d.ts",
|
|
@@ -129,7 +135,7 @@
|
|
|
129
135
|
},
|
|
130
136
|
"dependencies": {
|
|
131
137
|
"cross-spawn": "^7.0.6",
|
|
132
|
-
"zod": "^4.
|
|
138
|
+
"zod": "^4.6.5"
|
|
133
139
|
},
|
|
134
140
|
"devDependencies": {
|
|
135
141
|
"@bb/domain": "workspace:*",
|