@get-bb/plugin-sdk 0.6.23 → 0.6.31
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 +10 -2
- package/bundled-types/bb-plugin-sdk-app.d.ts +459 -11
- package/bundled-types/bb-plugin-sdk-host.d.ts +30 -3
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +1 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +2 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +27 -1
- package/bundled-types/bb-plugin-sdk.d.ts +469 -11
- package/dist/app.js +4 -0
- package/dist/host.js +111 -11
- package/dist/internal/host-policy.js +5 -2
- package/dist/provider-bridge-acp.js +133 -42
- package/dist/provider-bridge-testing.js +8 -2
- package/dist/provider-bridge.js +3 -1
- package/dist/testing/app.js +35 -1
- package/dist/testing/index.js +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,8 +22,9 @@ write into a composer the user picks use `useComposers()`, one handle per
|
|
|
22
22
|
composer on screen.
|
|
23
23
|
Any mounted plugin component can use
|
|
24
24
|
`useBbNavigate().openThreadPanel(...)` to request one of the
|
|
25
|
-
same plugin's registered
|
|
26
|
-
|
|
25
|
+
same plugin's registered panel actions: `threadPanelAction` in a thread,
|
|
26
|
+
`experimental_newThreadPanelAction` on the New thread screen. It returns false
|
|
27
|
+
on plugin pages, which have no panel actions.
|
|
27
28
|
|
|
28
29
|
Use `UrlLink` for a real anchor that applies BB's current
|
|
29
30
|
in-app/external-browser preference on ordinary HTTP(S) activation, or
|
|
@@ -48,6 +49,13 @@ the current host accepted the intent. Targets never infer an ambient workspace.
|
|
|
48
49
|
The frontend harness records both methods and accepts `openFilePreview` and
|
|
49
50
|
`openFileExternally` behavior options.
|
|
50
51
|
|
|
52
|
+
To show a terminal beside your UI, create it with `useSdk().terminals.create`
|
|
53
|
+
in the thread, environment, or host directory you want, then call
|
|
54
|
+
`useBbNavigate().experimental_openTerminal({ terminalId })`. It resolves
|
|
55
|
+
whether the current surface selected the terminal's tab; thread surfaces accept
|
|
56
|
+
only their own thread's terminals. The harness records the call and accepts an
|
|
57
|
+
`openTerminal` behavior option.
|
|
58
|
+
|
|
51
59
|
A nav panel's `fixedTabs` entries must include the containing nav
|
|
52
60
|
panel's `id` as `panelId`; each entry is also a stable reference to that
|
|
53
61
|
plugin's own tab. Give a targeted tab an `experimental_target.validate` type guard, call
|