@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 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 thread-panel actions; it returns false when the
26
- current surface has no thread side panel.
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