@get-bb/plugin-sdk 0.6.164 → 0.6.169
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 +1 -1
- package/bundled-types/bb-plugin-sdk-app.d.ts +137 -106
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +6 -6
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +5 -2
- package/bundled-types/bb-plugin-sdk-internal-thread-event-gate.d.ts +1 -1
- package/bundled-types/bb-plugin-sdk-internal-thread-status.d.ts +2 -2
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +7 -3
- package/bundled-types/bb-plugin-sdk.d.ts +166 -133
- package/dist/internal/host-policy.js +10 -11
- package/dist/internal/plugin-app-collector.js +15 -3
- package/dist/testing/app.js +20 -4
- package/dist/testing/index.js +10 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ thread-context action tab resolves against `experimental_newThreadPanelAction`
|
|
|
28
28
|
with the same id. `toggleTab(options)` closes the panel when that tab is
|
|
29
29
|
showing and otherwise opens it, and `close()` closes the panel. Commands,
|
|
30
30
|
thread actions, message actions and panel actions receive the same controller
|
|
31
|
-
as `
|
|
31
|
+
as `panel`.
|
|
32
32
|
|
|
33
33
|
Use `UrlLink` for a real anchor that applies BB's current
|
|
34
34
|
in-app/external-browser preference on ordinary HTTP(S) activation, or
|
|
@@ -215,7 +215,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
215
215
|
}, z$1.core.$strict>]>;
|
|
216
216
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
217
217
|
|
|
218
|
-
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "sidebar.updates.providerCli", "sidebar.updates.skipped", "composer.provider", "infoPanel.collapsedSections", "threadContextCard.pinned"];
|
|
218
|
+
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "sidebar.updates.providerCli", "sidebar.updates.skipped", "composer.provider", "infoPanel.collapsedSections", "threadContextCard.pinned", "threadContextCard.collapsedSections"];
|
|
219
219
|
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
220
220
|
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
221
221
|
schema: Schema;
|
|
@@ -254,6 +254,7 @@ declare const uiPreferenceDefinitions: {
|
|
|
254
254
|
readonly "sidebar.updates.skipped": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
255
255
|
readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
|
|
256
256
|
readonly "threadContextCard.pinned": UiPreferenceDefinition<z$1.ZodBoolean>;
|
|
257
|
+
readonly "threadContextCard.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
257
258
|
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
258
259
|
};
|
|
259
260
|
type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
|
|
@@ -4997,7 +4998,7 @@ declare const skillListResponseSchema: z$1.ZodObject<{
|
|
|
4997
4998
|
manageable: z$1.ZodBoolean;
|
|
4998
4999
|
name: z$1.ZodString;
|
|
4999
5000
|
pluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
5000
|
-
|
|
5001
|
+
providers: z$1.ZodArray<z$1.ZodString>;
|
|
5001
5002
|
registrySkillId: z$1.ZodNullable<z$1.ZodString>;
|
|
5002
5003
|
scope: z$1.ZodEnum<{
|
|
5003
5004
|
"bb-builtin": "bb-builtin";
|
|
@@ -9854,8 +9855,10 @@ declare const pluginCatalogInstallPlanSchema: z$1.ZodDiscriminatedUnion<[z$1.Zod
|
|
|
9854
9855
|
}, z$1.core.$strip>], "kind">;
|
|
9855
9856
|
type PluginCatalogInstallPlan = z$1.infer<typeof pluginCatalogInstallPlanSchema>;
|
|
9856
9857
|
declare const pluginMarketplaceSchema: z$1.ZodObject<{
|
|
9858
|
+
canDisable: z$1.ZodBoolean;
|
|
9857
9859
|
description: z$1.ZodNullable<z$1.ZodString>;
|
|
9858
9860
|
displayName: z$1.ZodString;
|
|
9861
|
+
enabled: z$1.ZodBoolean;
|
|
9859
9862
|
entryCount: z$1.ZodNumber;
|
|
9860
9863
|
lastAttemptAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
9861
9864
|
lastError: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -9875,8 +9878,10 @@ type PluginMarketplace = z$1.infer<typeof pluginMarketplaceSchema>;
|
|
|
9875
9878
|
declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
|
|
9876
9879
|
error: z$1.ZodNullable<z$1.ZodString>;
|
|
9877
9880
|
marketplace: z$1.ZodObject<{
|
|
9881
|
+
canDisable: z$1.ZodBoolean;
|
|
9878
9882
|
description: z$1.ZodNullable<z$1.ZodString>;
|
|
9879
9883
|
displayName: z$1.ZodString;
|
|
9884
|
+
enabled: z$1.ZodBoolean;
|
|
9880
9885
|
entryCount: z$1.ZodNumber;
|
|
9881
9886
|
lastAttemptAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
9882
9887
|
lastError: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -18954,6 +18959,10 @@ interface PluginMarketplaceRefreshArgs {
|
|
|
18954
18959
|
interface PluginMarketplaceRemoveArgs {
|
|
18955
18960
|
name: string;
|
|
18956
18961
|
}
|
|
18962
|
+
interface PluginMarketplaceSetEnabledArgs {
|
|
18963
|
+
name: string;
|
|
18964
|
+
enabled: boolean;
|
|
18965
|
+
}
|
|
18957
18966
|
interface PluginReloadArgs {
|
|
18958
18967
|
pluginId?: string;
|
|
18959
18968
|
}
|
|
@@ -19027,6 +19036,7 @@ type PluginCatalogInstallPlanResult = PluginCatalogInstallPlan;
|
|
|
19027
19036
|
type PluginMarketplaceListResult = PluginMarketplace[];
|
|
19028
19037
|
type PluginMarketplaceAddResult = PluginMarketplace;
|
|
19029
19038
|
type PluginMarketplaceRefreshResult = PluginMarketplaceRefreshResult$1[];
|
|
19039
|
+
type PluginMarketplaceSetEnabledResult = PluginMarketplace;
|
|
19030
19040
|
interface PluginMarketplaceRemoveResult {
|
|
19031
19041
|
convertedPluginIds: string[];
|
|
19032
19042
|
}
|
|
@@ -19042,6 +19052,7 @@ interface PluginMarketplacesArea {
|
|
|
19042
19052
|
list(args?: PluginMarketplaceListArgs): Promise<PluginMarketplaceListResult>;
|
|
19043
19053
|
refresh(args?: PluginMarketplaceRefreshArgs): Promise<PluginMarketplaceRefreshResult>;
|
|
19044
19054
|
remove(args: PluginMarketplaceRemoveArgs): Promise<PluginMarketplaceRemoveResult>;
|
|
19055
|
+
setEnabled(args: PluginMarketplaceSetEnabledArgs): Promise<PluginMarketplaceSetEnabledResult>;
|
|
19045
19056
|
}
|
|
19046
19057
|
interface PluginInstallJobsArea {
|
|
19047
19058
|
cancel(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
|
|
@@ -20069,7 +20080,7 @@ interface BbSdkAreas extends BbRealtime {
|
|
|
20069
20080
|
type PluginMentionTrigger = "!" | "#" | "$" | "@" | "~";
|
|
20070
20081
|
|
|
20071
20082
|
/**
|
|
20072
|
-
* The `@get-bb/plugin-sdk/app` contract
|
|
20083
|
+
* The `@get-bb/plugin-sdk/app` contract — pure types with no
|
|
20073
20084
|
* side effects. The BB app imports these to keep its real implementation in
|
|
20074
20085
|
* sync (`satisfies PluginSdkApp`). Plugin authors import the same shapes through
|
|
20075
20086
|
* `@get-bb/plugin-sdk/app`.
|
|
@@ -20084,21 +20095,10 @@ interface PluginHomepageSectionProps {
|
|
|
20084
20095
|
/**
|
|
20085
20096
|
* Props passed to a `settingsSection` component.
|
|
20086
20097
|
*
|
|
20087
|
-
*
|
|
20098
|
+
* Deliberately empty while sections read live app state through SDK hooks;
|
|
20099
|
+
* versioned additive like the other slot props.
|
|
20088
20100
|
*/
|
|
20089
20101
|
interface PluginSettingsSectionProps {
|
|
20090
|
-
/**
|
|
20091
|
-
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
20092
|
-
* Set only when the setup guide renders the section; call it when the user
|
|
20093
|
-
* starts setting it up.
|
|
20094
|
-
*/
|
|
20095
|
-
internal_DO_NOT_USE_onSetupStarted?: () => void;
|
|
20096
|
-
/**
|
|
20097
|
-
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
20098
|
-
* Set only when the setup guide renders the section; call it when a setup
|
|
20099
|
-
* attempt fails, with the stage that failed and, when known, why.
|
|
20100
|
-
*/
|
|
20101
|
-
internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
|
|
20102
20102
|
}
|
|
20103
20103
|
/**
|
|
20104
20104
|
* Stage of a setup guide section's setup attempt that failed.
|
|
@@ -21024,11 +21024,9 @@ interface PluginNavPanelRegistration {
|
|
|
21024
21024
|
* The action is thread-only and is never offered on the root New thread
|
|
21025
21025
|
* screen, so `threadId` is always present.
|
|
21026
21026
|
*/
|
|
21027
|
-
interface ExperimentalThreadTabActionContext {
|
|
21027
|
+
interface ExperimentalThreadTabActionContext extends ExperimentalPluginActionContext {
|
|
21028
21028
|
/** The thread whose panel launcher invoked the action. */
|
|
21029
21029
|
threadId: string;
|
|
21030
|
-
/** The side panel of the thread view that invoked the action. */
|
|
21031
|
-
experimental_panel: ExperimentalPanelController;
|
|
21032
21030
|
}
|
|
21033
21031
|
/** Where a plugin tab belongs. Navigation panels are owned by the registering plugin. */
|
|
21034
21032
|
type ExperimentalTabContext = {
|
|
@@ -21060,9 +21058,7 @@ type ExperimentalTabLifecycle<Props, Context> = {
|
|
|
21060
21058
|
}>;
|
|
21061
21059
|
/** Default persisted params when opened without explicit params. */
|
|
21062
21060
|
params?: JsonValue$1;
|
|
21063
|
-
run?(context: Context &
|
|
21064
|
-
experimental_panel: ExperimentalPanelController;
|
|
21065
|
-
}): void | Promise<void>;
|
|
21061
|
+
run?(context: Context & ExperimentalPluginActionContext): void | Promise<void>;
|
|
21066
21062
|
};
|
|
21067
21063
|
type ExperimentalTabContextProps<C extends ExperimentalTabContext> = C extends {
|
|
21068
21064
|
kind: "thread";
|
|
@@ -21086,9 +21082,7 @@ type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" |
|
|
|
21086
21082
|
params: JsonValue$1 | null;
|
|
21087
21083
|
}>;
|
|
21088
21084
|
params?: JsonValue$1;
|
|
21089
|
-
run?(context: ExperimentalTabContextProps<C> &
|
|
21090
|
-
experimental_panel: ExperimentalPanelController;
|
|
21091
|
-
}): void | Promise<void>;
|
|
21085
|
+
run?(context: ExperimentalTabContextProps<C> & ExperimentalPluginActionContext): void | Promise<void>;
|
|
21092
21086
|
experimental_target?: never;
|
|
21093
21087
|
});
|
|
21094
21088
|
/** One registration for pinned destinations and actions opening closable instances. */
|
|
@@ -21117,14 +21111,13 @@ type ExperimentalTabRegistration = ExperimentalTabCommon & (({
|
|
|
21117
21111
|
experimental_target?: ExperimentalFixedTabTargetContract<JsonValue$1>;
|
|
21118
21112
|
}))));
|
|
21119
21113
|
/** Context handed to an `experimental_newThreadPanelAction`'s `run`. */
|
|
21120
|
-
|
|
21114
|
+
/**
|
|
21115
|
+
* `panel` is the New thread screen's side panel. Address this
|
|
21116
|
+
* action's tab as `{ id, context: { kind: "thread" }, availability: "action" }`.
|
|
21117
|
+
*/
|
|
21118
|
+
interface PluginNewThreadPanelActionContext extends ExperimentalPluginActionContext {
|
|
21121
21119
|
/** Project selected in the root composer; null in projectless compose. */
|
|
21122
21120
|
projectId: string | null;
|
|
21123
|
-
/**
|
|
21124
|
-
* The New thread screen's side panel. Address this action's tab as
|
|
21125
|
-
* `{ id, context: { kind: "thread" }, availability: "action" }`.
|
|
21126
|
-
*/
|
|
21127
|
-
experimental_panel: ExperimentalPanelController;
|
|
21128
21121
|
}
|
|
21129
21122
|
/** Registration for the root New thread screen's panel Actions list. */
|
|
21130
21123
|
interface PluginNewThreadPanelActionRegistration {
|
|
@@ -21159,8 +21152,11 @@ interface PluginPendingInteractionRegistration {
|
|
|
21159
21152
|
id: string;
|
|
21160
21153
|
component: ComponentType<PluginPendingInteractionProps>;
|
|
21161
21154
|
}
|
|
21162
|
-
/**
|
|
21163
|
-
|
|
21155
|
+
/**
|
|
21156
|
+
* Context handed to a `sidebarFooterAction`'s `run`. `navigate` and
|
|
21157
|
+
* `panel` act on the focused surface, as for commands.
|
|
21158
|
+
*/
|
|
21159
|
+
interface PluginSidebarFooterActionContext extends ExperimentalPluginActionContext {
|
|
21164
21160
|
/**
|
|
21165
21161
|
* Navigate to this plugin's detail page in Tools, where declarative settings
|
|
21166
21162
|
* and `settingsSection` slots render.
|
|
@@ -21186,8 +21182,11 @@ interface PluginSidebarFooterActionRegistration {
|
|
|
21186
21182
|
*/
|
|
21187
21183
|
run(context: PluginSidebarFooterActionContext): void | Promise<void>;
|
|
21188
21184
|
}
|
|
21189
|
-
/**
|
|
21190
|
-
|
|
21185
|
+
/**
|
|
21186
|
+
* Context handed to an experimental sidebar-footer action. `navigate` and
|
|
21187
|
+
* `panel` act on the focused surface, as for commands.
|
|
21188
|
+
*/
|
|
21189
|
+
interface ExperimentalSidebarFooterActionContext extends ExperimentalPluginActionContext {
|
|
21191
21190
|
/** Navigate to this plugin's detail page in Tools. */
|
|
21192
21191
|
openPluginDetails(): void;
|
|
21193
21192
|
}
|
|
@@ -21652,8 +21651,8 @@ interface PluginSidebarThreadDraftState {
|
|
|
21652
21651
|
* the content-script context's `experimental_setThreadRowStatus` (see
|
|
21653
21652
|
* {@link PluginSdkApp.useSidebarThreadRowStatus}). bb's row draws it in
|
|
21654
21653
|
* place of the draft glyph while it is set; a replaced list should do the
|
|
21655
|
-
* same so a status
|
|
21656
|
-
*
|
|
21654
|
+
* same so a status another plugin set does not vanish when the list changes
|
|
21655
|
+
* hands. No bundled plugin sets one; only content scripts can.
|
|
21657
21656
|
*/
|
|
21658
21657
|
type PluginSidebarThreadRowStatus = PluginComposerThreadRowStatus;
|
|
21659
21658
|
/**
|
|
@@ -21952,8 +21951,12 @@ type ExperimentalThreadContextKind = "banner" | "card";
|
|
|
21952
21951
|
* `experimental_threadInfoRow`. Render one or more
|
|
21953
21952
|
* `experimental_ThreadContextCardRow` elements, or null to show nothing for
|
|
21954
21953
|
* this thread. bb draws the card and places it, and mounts rows only in panes
|
|
21955
|
-
* whose thread context kind is `card`.
|
|
21956
|
-
*
|
|
21954
|
+
* whose thread context kind is `card`. The card is behind the "Thread context
|
|
21955
|
+
* card" experiment, off by default, and never shows on a phone (a compact
|
|
21956
|
+
* viewport with a coarse pointer); every other pane uses the `banner` kind, so
|
|
21957
|
+
* register an `experimental_threadContextSegment` or
|
|
21958
|
+
* `experimental_threadInfoRow` as well to reach it. A crash removes only this
|
|
21959
|
+
* row for that thread.
|
|
21957
21960
|
*/
|
|
21958
21961
|
interface ExperimentalThreadContextCardRowRegistration {
|
|
21959
21962
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
@@ -21970,16 +21973,20 @@ interface ExperimentalThreadContextCardRowRegistration {
|
|
|
21970
21973
|
component: ComponentType<ExperimentalThreadContextCardProps>;
|
|
21971
21974
|
}
|
|
21972
21975
|
/**
|
|
21973
|
-
* A
|
|
21974
|
-
* counterpart of `experimental_threadInfoSection`.
|
|
21975
|
-
*
|
|
21976
|
-
*
|
|
21976
|
+
* A section of the thread context card, below its rows; the card's
|
|
21977
|
+
* counterpart of `experimental_threadInfoSection`. Render one
|
|
21978
|
+
* `experimental_InfoSection`, or null to hide the section for this thread. In
|
|
21979
|
+
* the card, bb draws the section's label as a button that folds it and a
|
|
21980
|
+
* divider above it. Sections start open; bb remembers the ones the person folds
|
|
21981
|
+
* by `pluginId/id` across threads and restarts. While folded, the component
|
|
21982
|
+
* stays mounted and the `experimental_InfoSection` children unmount. Like
|
|
21983
|
+
* card rows, sections mount only where the card shows: behind the "Thread
|
|
21984
|
+
* context card" experiment, off by default, and never on a phone. A crash
|
|
21985
|
+
* removes only this section for that thread.
|
|
21977
21986
|
*/
|
|
21978
21987
|
interface ExperimentalThreadContextCardSectionRegistration {
|
|
21979
21988
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
21980
21989
|
id: string;
|
|
21981
|
-
/** Heading bb draws above the section's rows. */
|
|
21982
|
-
title: string;
|
|
21983
21990
|
/**
|
|
21984
21991
|
* Sections sort by `group` (string compare), then by `order` within a group
|
|
21985
21992
|
* (unset sorts last), then by registration order, with bb's own sections
|
|
@@ -22172,36 +22179,25 @@ interface PluginThreadActionDataInput {
|
|
|
22172
22179
|
threadIds: readonly string[];
|
|
22173
22180
|
}
|
|
22174
22181
|
/** What a registration's `item` receives for each thread it is shown for. */
|
|
22175
|
-
|
|
22182
|
+
/**
|
|
22183
|
+
* `panel` is the focused surface's side panel, as for plugin
|
|
22184
|
+
* commands. Thread menus are not inside a side panel, so calls return false
|
|
22185
|
+
* when the focused surface has no such tab.
|
|
22186
|
+
*/
|
|
22187
|
+
interface PluginThreadActionItemInput<Data> extends ExperimentalPluginActionContext {
|
|
22176
22188
|
thread: PluginThreadActionTarget;
|
|
22177
22189
|
/** What `useData` last returned; undefined when the registration has none. */
|
|
22178
22190
|
data: Data;
|
|
22179
|
-
/** The registering plugin's `useSdk()` client. */
|
|
22180
|
-
sdk: PluginBrowserBbSdk;
|
|
22181
|
-
/** The registering plugin's `useBbNavigate()`. */
|
|
22182
|
-
navigate: BbNavigate;
|
|
22183
|
-
/**
|
|
22184
|
-
* The focused surface's side panel, as for plugin commands. Thread menus
|
|
22185
|
-
* are not inside a side panel, so calls return false when the focused
|
|
22186
|
-
* surface has no such tab.
|
|
22187
|
-
*/
|
|
22188
|
-
experimental_panel: ExperimentalPanelController;
|
|
22189
22191
|
}
|
|
22190
22192
|
/**
|
|
22191
22193
|
* What a registration's `experimental_bulkItem` receives for a selection
|
|
22192
22194
|
* of several threads.
|
|
22193
22195
|
*/
|
|
22194
|
-
interface PluginThreadActionBulkItemInput<Data> {
|
|
22196
|
+
interface PluginThreadActionBulkItemInput<Data> extends ExperimentalPluginActionContext {
|
|
22195
22197
|
/** The selected threads in the surface's list order; always two or more. */
|
|
22196
22198
|
threads: readonly PluginThreadActionTarget[];
|
|
22197
22199
|
/** What `useData` last returned; undefined when the registration has none. */
|
|
22198
22200
|
data: Data;
|
|
22199
|
-
/** The registering plugin's `useSdk()` client. */
|
|
22200
|
-
sdk: PluginBrowserBbSdk;
|
|
22201
|
-
/** The registering plugin's `useBbNavigate()`, as for `item`. */
|
|
22202
|
-
navigate: BbNavigate;
|
|
22203
|
-
/** The focused surface's side panel, as for `item`. */
|
|
22204
|
-
experimental_panel: ExperimentalPanelController;
|
|
22205
22201
|
}
|
|
22206
22202
|
/**
|
|
22207
22203
|
* Add an action to every thread actions menu: the thread header's menu, the
|
|
@@ -23246,8 +23242,34 @@ interface ExperimentalMessageMetadataRegistration {
|
|
|
23246
23242
|
}
|
|
23247
23243
|
/** A timeline a `messageAction` can show in; see {@link PluginMessageActionRegistration.experimental_surfaces}. */
|
|
23248
23244
|
type ExperimentalMessageActionSurface = "embedded-chat" | "thread-view";
|
|
23245
|
+
/**
|
|
23246
|
+
* What every plugin callback's context carries besides its own fields:
|
|
23247
|
+
* commands, message actions, thread actions, panel and New thread panel
|
|
23248
|
+
* actions, sidebar footer actions, and composer commands and menu items.
|
|
23249
|
+
* Experimental: see docs/api_to_audit.md.
|
|
23250
|
+
*/
|
|
23251
|
+
interface ExperimentalPluginActionContext {
|
|
23252
|
+
/** The registering plugin's `useSdk()` client. */
|
|
23253
|
+
sdk: PluginBrowserBbSdk;
|
|
23254
|
+
/**
|
|
23255
|
+
* The registering plugin's `useBbNavigate()`, bound to the surface that
|
|
23256
|
+
* invoked the callback, so terminals, files and links open there.
|
|
23257
|
+
*/
|
|
23258
|
+
navigate: BbNavigate;
|
|
23259
|
+
/** The side panel of the surface that invoked the callback. */
|
|
23260
|
+
panel: ExperimentalPanelController;
|
|
23261
|
+
}
|
|
23262
|
+
/**
|
|
23263
|
+
* Context handed to a composer command's or composer menu item's `run`.
|
|
23264
|
+
* `navigate` and `panel` act on the surface showing the
|
|
23265
|
+
* composer.
|
|
23266
|
+
*/
|
|
23267
|
+
interface ExperimentalComposerActionContext extends ExperimentalPluginActionContext {
|
|
23268
|
+
/** The handling composer, bound to this plugin like `useComposer()`. */
|
|
23269
|
+
composer: PluginComposerApi;
|
|
23270
|
+
}
|
|
23249
23271
|
/** Context handed to a `messageAction`'s `run`. */
|
|
23250
|
-
interface PluginMessageActionContext {
|
|
23272
|
+
interface PluginMessageActionContext extends ExperimentalPluginActionContext {
|
|
23251
23273
|
/** The thread whose timeline surfaced the action. */
|
|
23252
23274
|
threadId: string;
|
|
23253
23275
|
message: ThreadChatMessageReference;
|
|
@@ -23256,8 +23278,6 @@ interface PluginMessageActionContext {
|
|
|
23256
23278
|
* the exact text the user highlighted inside `message`.
|
|
23257
23279
|
*/
|
|
23258
23280
|
selectedText?: string;
|
|
23259
|
-
/** The side panel of the thread view whose timeline surfaced the action. */
|
|
23260
|
-
experimental_panel: ExperimentalPanelController;
|
|
23261
23281
|
/**
|
|
23262
23282
|
* The composer of the thread the message is in, or null when that thread's
|
|
23263
23283
|
* composer is not available on this surface. The same handle
|
|
@@ -23292,21 +23312,20 @@ interface PluginMessageActionRegistration {
|
|
|
23292
23312
|
*/
|
|
23293
23313
|
run(context: PluginMessageActionContext): void | Promise<void>;
|
|
23294
23314
|
}
|
|
23295
|
-
/**
|
|
23296
|
-
|
|
23315
|
+
/**
|
|
23316
|
+
* Current context for palette and keyboard command invocations. `navigate`
|
|
23317
|
+
* and `panel` act on the focused surface: the thread view or
|
|
23318
|
+
* New thread screen in focus, or the focused plugin page. On the New thread
|
|
23319
|
+
* screen, a `{ context: { kind: "thread" }, availability: "action" }` tab
|
|
23320
|
+
* resolves against `experimental_newThreadPanelAction` with the same id, so
|
|
23321
|
+
* register both slots with the same id to support commands on both screens.
|
|
23322
|
+
* Panel calls return false when the focused surface has no such tab or no
|
|
23323
|
+
* side panel; guard with `isAvailable` rather than assuming.
|
|
23324
|
+
*/
|
|
23325
|
+
interface PluginCommandContext extends ExperimentalPluginActionContext {
|
|
23297
23326
|
/** The thread in view, or null on a surface without one. */
|
|
23298
23327
|
threadId: string | null;
|
|
23299
23328
|
projectId: string | null;
|
|
23300
|
-
/**
|
|
23301
|
-
* The focused surface's side panel: the thread view or New thread screen
|
|
23302
|
-
* in focus, or the focused plugin page. On the New thread screen, a
|
|
23303
|
-
* `{ context: { kind: "thread" }, availability: "action" }` tab resolves
|
|
23304
|
-
* against `experimental_newThreadPanelAction` with the same id, so register
|
|
23305
|
-
* both slots with the same id to support commands on both screens. Calls
|
|
23306
|
-
* return false when the focused surface has no such tab or no side panel;
|
|
23307
|
-
* guard with `isAvailable` rather than assuming.
|
|
23308
|
-
*/
|
|
23309
|
-
experimental_panel: ExperimentalPanelController;
|
|
23310
23329
|
}
|
|
23311
23330
|
/** A default keyboard shortcut. Omitted modifiers are false. */
|
|
23312
23331
|
interface PluginCommandShortcut {
|
|
@@ -23369,9 +23388,7 @@ interface ExperimentalComposerCommandRegistration {
|
|
|
23369
23388
|
* Runs with the handling composer, bound to this plugin like `useComposer()`.
|
|
23370
23389
|
* Errors (sync or async) are contained and logged.
|
|
23371
23390
|
*/
|
|
23372
|
-
run(context:
|
|
23373
|
-
composer: PluginComposerApi;
|
|
23374
|
-
}): void | Promise<void>;
|
|
23391
|
+
run(context: ExperimentalComposerActionContext): void | Promise<void>;
|
|
23375
23392
|
}
|
|
23376
23393
|
/** Registers commands for bb's command palette. */
|
|
23377
23394
|
interface PluginAppCommands {
|
|
@@ -23642,13 +23659,13 @@ interface PluginAppSlots {
|
|
|
23642
23659
|
*/
|
|
23643
23660
|
experimental_threadHeaderTitle(registration: ExperimentalThreadHeaderTitleRegistration): void;
|
|
23644
23661
|
/**
|
|
23645
|
-
* Add a row to the thread context card
|
|
23662
|
+
* Add a row to the thread context card, in panes that show one (see
|
|
23646
23663
|
* {@link ExperimentalThreadContextCardRowRegistration}). Experimental: see
|
|
23647
23664
|
* docs/api_to_audit.md.
|
|
23648
23665
|
*/
|
|
23649
23666
|
experimental_threadContextCardRow(registration: ExperimentalThreadContextCardRowRegistration): void;
|
|
23650
23667
|
/**
|
|
23651
|
-
* Add a
|
|
23668
|
+
* Add a section to the thread context card, in panes that show one (see
|
|
23652
23669
|
* {@link ExperimentalThreadContextCardSectionRegistration}). Experimental:
|
|
23653
23670
|
* see docs/api_to_audit.md.
|
|
23654
23671
|
*/
|
|
@@ -23932,9 +23949,7 @@ interface ComposerPlusMenuItem {
|
|
|
23932
23949
|
/** Accessible description for the host-rendered row. */
|
|
23933
23950
|
description?: string;
|
|
23934
23951
|
disabled?: boolean | ((composer: PluginComposerApi) => boolean);
|
|
23935
|
-
run(context:
|
|
23936
|
-
composer: PluginComposerApi;
|
|
23937
|
-
}): void | Promise<void>;
|
|
23952
|
+
run(context: ExperimentalComposerActionContext): void | Promise<void>;
|
|
23938
23953
|
}
|
|
23939
23954
|
/**
|
|
23940
23955
|
* Host-rendered row in the menu next to the composer's send button, for
|
|
@@ -23949,9 +23964,7 @@ interface ComposerSendMenuItem {
|
|
|
23949
23964
|
/** Accessible description for the host-rendered row. */
|
|
23950
23965
|
description?: string;
|
|
23951
23966
|
disabled?: boolean | ((composer: PluginComposerApi) => boolean);
|
|
23952
|
-
run(context:
|
|
23953
|
-
composer: PluginComposerApi;
|
|
23954
|
-
}): void | Promise<void>;
|
|
23967
|
+
run(context: ExperimentalComposerActionContext): void | Promise<void>;
|
|
23955
23968
|
}
|
|
23956
23969
|
interface ComposerRichTextSpec {
|
|
23957
23970
|
/** Content-derived paint: match ranges receive `className`; text is never mutated. */
|
|
@@ -24344,7 +24357,7 @@ interface ThreadChatMessageAction {
|
|
|
24344
24357
|
* Props of the host-owned `ThreadChat` component — one thread's chat
|
|
24345
24358
|
* (timeline, and for the composer variants the full send/queue/draft
|
|
24346
24359
|
* engine), rendered by the BB app inside a plugin slot. This is the
|
|
24347
|
-
* deliberate exception to the no-host-components rule
|
|
24360
|
+
* deliberate exception to the no-host-components rule: a stable
|
|
24348
24361
|
* product capability, not a UI kit. Versioned additive like slot props;
|
|
24349
24362
|
* internal timeline rows, query hooks, and prompt-box configuration are
|
|
24350
24363
|
* deliberately not exposed.
|
|
@@ -24559,7 +24572,7 @@ interface NewThreadRequest {
|
|
|
24559
24572
|
* rendered by the BB app inside a plugin slot.
|
|
24560
24573
|
*
|
|
24561
24574
|
* It is the create-side counterpart to `ThreadChat`: same deliberate
|
|
24562
|
-
* exception to the no-host-components rule
|
|
24575
|
+
* exception to the no-host-components rule, same additive versioning.
|
|
24563
24576
|
*/
|
|
24564
24577
|
interface NewThreadComposerProps {
|
|
24565
24578
|
/**
|
|
@@ -24881,10 +24894,23 @@ interface ExperimentalPanelTabIconProps {
|
|
|
24881
24894
|
/** An {@link ExperimentalPanelTab.key}; renders nothing for a closed tab. */
|
|
24882
24895
|
tabKey: string;
|
|
24883
24896
|
}
|
|
24897
|
+
/** A plugin nav panel page; see {@link BbContext.experimental_pluginPanel}. */
|
|
24898
|
+
interface ExperimentalPluginPanelPage {
|
|
24899
|
+
pluginId: string;
|
|
24900
|
+
/** The panel's registered `path`. */
|
|
24901
|
+
path: string;
|
|
24902
|
+
/** The location inside the panel, percent-encoded like the component's `subPath` prop; empty at the panel's root. */
|
|
24903
|
+
subPath: string;
|
|
24904
|
+
}
|
|
24884
24905
|
/** Current app selection, derived from the route. */
|
|
24885
24906
|
interface BbContext {
|
|
24886
24907
|
projectId: string | null;
|
|
24887
24908
|
threadId: string | null;
|
|
24909
|
+
/**
|
|
24910
|
+
* The plugin nav panel the route shows (any plugin's), or null on other
|
|
24911
|
+
* pages. Experimental: see docs/api_to_audit.md.
|
|
24912
|
+
*/
|
|
24913
|
+
experimental_pluginPanel: ExperimentalPluginPanelPage | null;
|
|
24888
24914
|
}
|
|
24889
24915
|
interface BbNavigate {
|
|
24890
24916
|
/**
|
|
@@ -24910,14 +24936,17 @@ interface BbNavigate {
|
|
|
24910
24936
|
}): void;
|
|
24911
24937
|
/**
|
|
24912
24938
|
* Navigate to the root compose surface (the new-thread screen). Pass
|
|
24913
|
-
* `initialPrompt` to seed the composer draft (serialized
|
|
24914
|
-
* and section mention tokens become pills) and
|
|
24915
|
-
* composer on arrival — the pairing behind
|
|
24916
|
-
* points that drop the user into chat with a
|
|
24917
|
-
* `projectId` makes that project the composer's
|
|
24918
|
-
* files the new thread in a section and pin state
|
|
24919
|
-
*
|
|
24920
|
-
*
|
|
24939
|
+
* `initialPrompt` to seed the composer draft when it is empty (serialized
|
|
24940
|
+
* thread, project, and section mention tokens become pills) and
|
|
24941
|
+
* `focusPrompt` to focus the composer on arrival — the pairing behind
|
|
24942
|
+
* "Create via chat" style entry points that drop the user into chat with a
|
|
24943
|
+
* prefilled prompt. `projectId` makes that project the composer's
|
|
24944
|
+
* selection; `placement` files the new thread in a section and pin state.
|
|
24945
|
+
* Without `placement`, the screen keeps the placement it already shows,
|
|
24946
|
+
* unless `environmentId` or `hostId` is set, which resets it to unpinned
|
|
24947
|
+
* and outside sections. `environmentId` reuses that environment and
|
|
24948
|
+
* `hostId` picks a machine for a new one (`environmentId` wins when both
|
|
24949
|
+
* are set).
|
|
24921
24950
|
*/
|
|
24922
24951
|
toCompose(options?: {
|
|
24923
24952
|
projectId?: string;
|
|
@@ -25464,9 +25493,9 @@ interface PluginSdkApp {
|
|
|
25464
25493
|
*/
|
|
25465
25494
|
experimental_saveFile(request: ExperimentalSaveFileRequest): Promise<ExperimentalSaveFileOutcome>;
|
|
25466
25495
|
/**
|
|
25467
|
-
* The host-owned chat component (see {@link ThreadChatProps})
|
|
25468
|
-
*
|
|
25469
|
-
*
|
|
25496
|
+
* The host-owned chat component (see {@link ThreadChatProps}): bb's own
|
|
25497
|
+
* chat, not a generic UI kit. Generic primitives stay vendored from the BB
|
|
25498
|
+
* registry.
|
|
25470
25499
|
*/
|
|
25471
25500
|
ThreadChat: ComponentType<ThreadChatProps>;
|
|
25472
25501
|
/**
|
|
@@ -25549,10 +25578,12 @@ interface PluginSdkApp {
|
|
|
25549
25578
|
*/
|
|
25550
25579
|
experimental_Diff: ComponentType<DiffProps>;
|
|
25551
25580
|
/**
|
|
25552
|
-
* The thread Info tab
|
|
25581
|
+
* The section frame of the thread Info tab and the thread context card (see
|
|
25553
25582
|
* {@link ExperimentalInfoSectionProps}), the one bb's own sections use.
|
|
25554
|
-
* Inside an `experimental_threadInfoSection` it collapses, and
|
|
25555
|
-
*
|
|
25583
|
+
* Inside an `experimental_threadInfoSection` it collapses, and inside an
|
|
25584
|
+
* `experimental_threadContextCardSection` it folds in the card's style; the
|
|
25585
|
+
* host remembers either per registration. Experimental: see
|
|
25586
|
+
* docs/api_to_audit.md.
|
|
25556
25587
|
*/
|
|
25557
25588
|
experimental_InfoSection: ComponentType<ExperimentalInfoSectionProps>;
|
|
25558
25589
|
/**
|
|
@@ -25814,4 +25845,4 @@ declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
|
25814
25845
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
25815
25846
|
|
|
25816
25847
|
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_CollapsibleStackCard, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_FilePreview, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_matchesShortcutKey, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_sliceUtf16Head, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadExtensionState, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
25817
|
-
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageActionSurface, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutKeyEvent, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
25848
|
+
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerActionContext, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageActionSurface, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginActionContext, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginPanelPage, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutKeyEvent, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
@@ -1326,8 +1326,8 @@ interface PluginCliRegistration {
|
|
|
1326
1326
|
rendersHelp?: boolean;
|
|
1327
1327
|
run(argv: string[], ctx: PluginCliContext): PluginCliResult | Promise<PluginCliResult>;
|
|
1328
1328
|
}
|
|
1329
|
-
/** Per-turn context handed to bb.agents context providers
|
|
1330
|
-
/** MCP-style content parts a native tool may return
|
|
1329
|
+
/** Per-turn context handed to bb.agents context providers. */
|
|
1330
|
+
/** MCP-style content parts a native tool may return. */
|
|
1331
1331
|
type PluginAgentToolContentPart = {
|
|
1332
1332
|
type: "text";
|
|
1333
1333
|
text: string;
|
|
@@ -1340,7 +1340,7 @@ type PluginAgentToolResult = string | {
|
|
|
1340
1340
|
content: PluginAgentToolContentPart[];
|
|
1341
1341
|
isError?: boolean;
|
|
1342
1342
|
};
|
|
1343
|
-
/** Per-call context handed to a native tool's execute
|
|
1343
|
+
/** Per-call context handed to a native tool's execute. */
|
|
1344
1344
|
interface PluginAgentToolContext {
|
|
1345
1345
|
threadId: string;
|
|
1346
1346
|
projectId: string;
|
|
@@ -1772,7 +1772,7 @@ interface ExperimentalPluginProviderEnvEntry {
|
|
|
1772
1772
|
reason: string;
|
|
1773
1773
|
}
|
|
1774
1774
|
type PluginMentionTrigger = "!" | "#" | "$" | "@" | "~";
|
|
1775
|
-
/** Search context handed to a mention provider
|
|
1775
|
+
/** Search context handed to a mention provider. `projectId`/
|
|
1776
1776
|
* `threadId` are null when the composer has not committed one yet. */
|
|
1777
1777
|
interface PluginMentionSearchContext {
|
|
1778
1778
|
trigger: PluginMentionTrigger;
|
|
@@ -1840,14 +1840,14 @@ interface PluginMentionProviderRegistration {
|
|
|
1840
1840
|
/** Options for one `complete` call. */
|
|
1841
1841
|
interface PluginAiCompleteOptions {
|
|
1842
1842
|
/**
|
|
1843
|
-
* Aborted when bb stops waiting: the task timed out (
|
|
1843
|
+
* Aborted when bb stops waiting: the task timed out (8 seconds for titles
|
|
1844
1844
|
* and commit messages) or the request was cancelled. Pass it to `fetch`.
|
|
1845
1845
|
*/
|
|
1846
1846
|
readonly signal: AbortSignal;
|
|
1847
1847
|
}
|
|
1848
1848
|
/** Options for one `transcribe` call. */
|
|
1849
1849
|
interface PluginAiTranscribeOptions {
|
|
1850
|
-
/** Aborted when bb stops waiting (
|
|
1850
|
+
/** Aborted when bb stops waiting (70 seconds) or the request was cancelled. */
|
|
1851
1851
|
readonly signal: AbortSignal;
|
|
1852
1852
|
/**
|
|
1853
1853
|
* Vocabulary the speaker is likely to use (names, identifiers), for
|
|
@@ -71,6 +71,9 @@ type PluginNavPanelFixedTabRegistration = {
|
|
|
71
71
|
layout?: "flush" | "padded";
|
|
72
72
|
experimental_target?: _get_bb_plugin_sdk.ExperimentalFixedTabTargetContract<_get_bb_plugin_sdk.JsonValue>;
|
|
73
73
|
};
|
|
74
|
+
interface CollectedThreadContextCardSectionRegistration extends ExperimentalThreadContextCardSectionRegistration {
|
|
75
|
+
legacyTitle: string | null;
|
|
76
|
+
}
|
|
74
77
|
type CollectedPluginProviderIconRegistration = Omit<PluginProviderIconRegistration, "providerKind"> & {
|
|
75
78
|
providerKind: PluginProviderIconRegistration["providerKind"] | "all";
|
|
76
79
|
};
|
|
@@ -116,7 +119,7 @@ interface CollectedPluginAppRegistrations {
|
|
|
116
119
|
threadHeaderRows: ExperimentalThreadHeaderRowRegistration[];
|
|
117
120
|
threadHeaderTitles: ExperimentalThreadHeaderTitleRegistration[];
|
|
118
121
|
threadContextCardRows: ExperimentalThreadContextCardRowRegistration[];
|
|
119
|
-
threadContextCardSections:
|
|
122
|
+
threadContextCardSections: CollectedThreadContextCardSectionRegistration[];
|
|
120
123
|
threadActions: PluginThreadActionRegistration<unknown>[];
|
|
121
124
|
browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
|
|
122
125
|
fileOpeners: PluginFileOpenerRegistration[];
|
|
@@ -141,4 +144,4 @@ interface CollectedSidebarNavigationRegistration extends ExperimentalSidebarNavi
|
|
|
141
144
|
declare function collectPluginAppRegistrations(definition: PluginAppDefinition, onWarning?: (message: string) => void): CollectedPluginAppRegistrations;
|
|
142
145
|
|
|
143
146
|
export { adaptSidebarFooterAction, collectPluginAppRegistrations, getCollectedSidebarFooterItems };
|
|
144
|
-
export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginMessageActionRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, CollectedSidebarNavigationRegistration, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot, LegacyNavPanelRegistration, LegacyThreadHeaderActionRegistration, LegacyThreadPanelActionRegistration };
|
|
147
|
+
export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginMessageActionRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, CollectedSidebarNavigationRegistration, CollectedThreadContextCardSectionRegistration, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot, LegacyNavPanelRegistration, LegacyThreadHeaderActionRegistration, LegacyThreadPanelActionRegistration };
|