@get-bb/plugin-sdk 0.6.31 → 0.6.33
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 +43 -276
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +1 -3
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +2 -30
- package/bundled-types/bb-plugin-sdk.d.ts +42 -272
- package/dist/app.js +0 -12
- package/dist/internal/plugin-app-collector.js +0 -22
- package/dist/testing/app.js +0 -98
- package/package.json +1 -1
|
@@ -167,7 +167,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
167
167
|
}, z$1.core.$strict>]>;
|
|
168
168
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
169
169
|
|
|
170
|
-
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.
|
|
170
|
+
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.threadListProvider", "infoPanel.collapsedSections"];
|
|
171
171
|
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
172
172
|
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
173
173
|
schema: Schema;
|
|
@@ -209,8 +209,6 @@ declare const uiPreferenceDefinitions: {
|
|
|
209
209
|
readonly "sidebar.hiddenFooterItems": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
210
210
|
readonly "sidebar.pluginPanelOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
211
211
|
readonly "sidebar.visiblePluginPanels": UiPreferenceDefinition<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>>;
|
|
212
|
-
readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
213
|
-
readonly "sidebar.headerProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
214
212
|
readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
215
213
|
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
216
214
|
};
|
|
@@ -303,6 +301,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
303
301
|
"thread.search": "thread.search";
|
|
304
302
|
"window.find": "window.find";
|
|
305
303
|
"window.new": "window.new";
|
|
304
|
+
"window.reload": "window.reload";
|
|
306
305
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
307
306
|
}>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
|
|
308
307
|
platform: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -557,14 +556,12 @@ type Environment = z$1.infer<typeof environmentSchema>;
|
|
|
557
556
|
|
|
558
557
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
559
558
|
changelogPreview: "changelogPreview";
|
|
560
|
-
navigationRail: "navigationRail";
|
|
561
559
|
performanceDiagnostics: "performanceDiagnostics";
|
|
562
560
|
serverMove: "serverMove";
|
|
563
561
|
}>, z$1.ZodBoolean>;
|
|
564
562
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
565
563
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
566
564
|
changelogPreview: "changelogPreview";
|
|
567
|
-
navigationRail: "navigationRail";
|
|
568
565
|
performanceDiagnostics: "performanceDiagnostics";
|
|
569
566
|
serverMove: "serverMove";
|
|
570
567
|
}> & z$1.core.$partial, z$1.ZodBoolean>;
|
|
@@ -5311,6 +5308,10 @@ declare const promptHistoryListResponseSchema: z$1.ZodObject<{
|
|
|
5311
5308
|
}>>;
|
|
5312
5309
|
}, z$1.core.$strip>], "type">>;
|
|
5313
5310
|
projectId: z$1.ZodString;
|
|
5311
|
+
scope: z$1.ZodEnum<{
|
|
5312
|
+
project: "project";
|
|
5313
|
+
thread: "thread";
|
|
5314
|
+
}>;
|
|
5314
5315
|
threadId: z$1.ZodString;
|
|
5315
5316
|
}, z$1.core.$strip>>;
|
|
5316
5317
|
nextCursor: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10549,6 +10550,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10549
10550
|
"thread.search": "thread.search";
|
|
10550
10551
|
"window.find": "window.find";
|
|
10551
10552
|
"window.new": "window.new";
|
|
10553
|
+
"window.reload": "window.reload";
|
|
10552
10554
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
10553
10555
|
}>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
|
|
10554
10556
|
desktopOnly: z$1.ZodBoolean;
|
|
@@ -10595,7 +10597,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10595
10597
|
}, z$1.core.$strict>>;
|
|
10596
10598
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10597
10599
|
changelogPreview: "changelogPreview";
|
|
10598
|
-
navigationRail: "navigationRail";
|
|
10599
10600
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10600
10601
|
serverMove: "serverMove";
|
|
10601
10602
|
}>, z$1.ZodBoolean>;
|
|
@@ -10708,6 +10709,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10708
10709
|
"thread.search": "thread.search";
|
|
10709
10710
|
"window.find": "window.find";
|
|
10710
10711
|
"window.new": "window.new";
|
|
10712
|
+
"window.reload": "window.reload";
|
|
10711
10713
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
10712
10714
|
}>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
|
|
10713
10715
|
platform: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -10804,6 +10806,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10804
10806
|
"thread.search": "thread.search";
|
|
10805
10807
|
"window.find": "window.find";
|
|
10806
10808
|
"window.new": "window.new";
|
|
10809
|
+
"window.reload": "window.reload";
|
|
10807
10810
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
10808
10811
|
}>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
|
|
10809
10812
|
desktopOnly: z$1.ZodBoolean;
|
|
@@ -11589,6 +11592,7 @@ declare const timelineSystemRowSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
11589
11592
|
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
11590
11593
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11591
11594
|
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11595
|
+
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11592
11596
|
createdAt: z$1.ZodNumber;
|
|
11593
11597
|
detail: z$1.ZodNullable<z$1.ZodString>;
|
|
11594
11598
|
id: z$1.ZodString;
|
|
@@ -11682,6 +11686,7 @@ declare const timelineCommandWorkRowSchema: z$1.ZodObject<{
|
|
|
11682
11686
|
callId: z$1.ZodString;
|
|
11683
11687
|
command: z$1.ZodString;
|
|
11684
11688
|
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11689
|
+
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11685
11690
|
createdAt: z$1.ZodNumber;
|
|
11686
11691
|
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
11687
11692
|
exitCode: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -11743,6 +11748,7 @@ declare const timelineToolWorkRowSchema: z$1.ZodObject<{
|
|
|
11743
11748
|
}>>;
|
|
11744
11749
|
callId: z$1.ZodString;
|
|
11745
11750
|
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11751
|
+
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11746
11752
|
createdAt: z$1.ZodNumber;
|
|
11747
11753
|
id: z$1.ZodString;
|
|
11748
11754
|
kind: z$1.ZodLiteral<"work">;
|
|
@@ -11812,6 +11818,7 @@ declare const timelineFileChangeWorkRowSchema: z$1.ZodObject<{
|
|
|
11812
11818
|
movePath: z$1.ZodNullable<z$1.ZodString>;
|
|
11813
11819
|
path: z$1.ZodString;
|
|
11814
11820
|
}, z$1.core.$strip>;
|
|
11821
|
+
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11815
11822
|
createdAt: z$1.ZodNumber;
|
|
11816
11823
|
id: z$1.ZodString;
|
|
11817
11824
|
kind: z$1.ZodLiteral<"work">;
|
|
@@ -12415,7 +12422,7 @@ interface TimelineDelegationWorkRow extends TimelineWorkRowBase {
|
|
|
12415
12422
|
description: string | null;
|
|
12416
12423
|
output: string;
|
|
12417
12424
|
completedAt: number | null;
|
|
12418
|
-
childRows: TimelineRow[];
|
|
12425
|
+
childRows: TimelineRow[] | null;
|
|
12419
12426
|
presentation?: TimelineRowPresentation;
|
|
12420
12427
|
}
|
|
12421
12428
|
declare const timelineWorkflowWorkRowSchema: z$1.ZodObject<{
|
|
@@ -14949,6 +14956,10 @@ declare const threadTimelineQuerySchema: z$1.ZodObject<{
|
|
|
14949
14956
|
afterSequence: z$1.ZodOptional<z$1.ZodString>;
|
|
14950
14957
|
beforeAnchorId: z$1.ZodOptional<z$1.ZodString>;
|
|
14951
14958
|
beforeAnchorSeq: z$1.ZodOptional<z$1.ZodString>;
|
|
14959
|
+
deferContent: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14960
|
+
false: "false";
|
|
14961
|
+
true: "true";
|
|
14962
|
+
}>>;
|
|
14952
14963
|
includeNestedRows: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14953
14964
|
false: "false";
|
|
14954
14965
|
true: "true";
|
|
@@ -14962,6 +14973,11 @@ declare const threadTimelineQuerySchema: z$1.ZodObject<{
|
|
|
14962
14973
|
type ThreadTimelineQuery = z$1.infer<typeof threadTimelineQuerySchema>;
|
|
14963
14974
|
declare const timelineTurnSummaryDetailsQuerySchema: z$1.ZodObject<{
|
|
14964
14975
|
beforeCursor: z$1.ZodOptional<z$1.ZodString>;
|
|
14976
|
+
deferContent: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14977
|
+
false: "false";
|
|
14978
|
+
true: "true";
|
|
14979
|
+
}>>;
|
|
14980
|
+
itemId: z$1.ZodOptional<z$1.ZodString>;
|
|
14965
14981
|
sourceSeqEnd: z$1.ZodString;
|
|
14966
14982
|
sourceSeqStart: z$1.ZodString;
|
|
14967
14983
|
turnId: z$1.ZodString;
|
|
@@ -15828,6 +15844,13 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
|
|
|
15828
15844
|
}, z$1.core.$strict>;
|
|
15829
15845
|
}, z$1.core.$strip>;
|
|
15830
15846
|
type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
|
|
15847
|
+
declare const threadConversationOutlineQuerySchema: z$1.ZodObject<{
|
|
15848
|
+
role: z$1.ZodOptional<z$1.ZodEnum<{
|
|
15849
|
+
assistant: "assistant";
|
|
15850
|
+
user: "user";
|
|
15851
|
+
}>>;
|
|
15852
|
+
}, z$1.core.$strip>;
|
|
15853
|
+
type ThreadConversationOutlineQuery = z$1.infer<typeof threadConversationOutlineQuerySchema>;
|
|
15831
15854
|
declare const threadConversationOutlineResponseSchema: z$1.ZodObject<{
|
|
15832
15855
|
items: z$1.ZodArray<z$1.ZodObject<{
|
|
15833
15856
|
attachmentSummary: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -17807,6 +17830,10 @@ interface ThreadStoragePathsArgs extends ThreadStoragePathsQuery {
|
|
|
17807
17830
|
signal?: AbortSignal;
|
|
17808
17831
|
threadId: string;
|
|
17809
17832
|
}
|
|
17833
|
+
interface ThreadConversationOutlineArgs extends ThreadConversationOutlineQuery {
|
|
17834
|
+
signal?: AbortSignal;
|
|
17835
|
+
threadId: string;
|
|
17836
|
+
}
|
|
17810
17837
|
interface ThreadTimelineTurnSummaryDetailsArgs extends TimelineTurnSummaryDetailsQuery {
|
|
17811
17838
|
signal?: AbortSignal;
|
|
17812
17839
|
threadId: string;
|
|
@@ -17947,7 +17974,7 @@ interface ThreadsArea {
|
|
|
17947
17974
|
cancelPlan(args: ThreadActionArgs): Promise<ThreadBannerActionResult>;
|
|
17948
17975
|
clearContext(args: ThreadActionArgs): Promise<ThreadBannerActionResult>;
|
|
17949
17976
|
clearGoal(args: ThreadActionArgs): Promise<ThreadBannerActionResult>;
|
|
17950
|
-
conversationOutline(args:
|
|
17977
|
+
conversationOutline(args: ThreadConversationOutlineArgs): Promise<ThreadConversationOutlineResult>;
|
|
17951
17978
|
count(args?: ThreadCountArgs): Promise<ThreadCountResult>;
|
|
17952
17979
|
defaultExecutionOptions(args: ThreadStatusArgs): Promise<ThreadDefaultExecutionOptionsResult>;
|
|
17953
17980
|
delete(args: ThreadDeleteArgs): Promise<ThreadDeleteResult>;
|
|
@@ -18180,198 +18207,6 @@ interface ExperimentalSidebarFooterDisclosureProps {
|
|
|
18180
18207
|
/** Hide this disclosure without affecting another plugin's open disclosure. */
|
|
18181
18208
|
dismiss(): void;
|
|
18182
18209
|
}
|
|
18183
|
-
/** Display and accessibility metadata for a host-owned sidebar shortcut. */
|
|
18184
|
-
interface ExperimentalSidebarNavigationShortcut {
|
|
18185
|
-
label: string;
|
|
18186
|
-
ariaKeyShortcuts: string;
|
|
18187
|
-
}
|
|
18188
|
-
/** Host-owned behavior represented by one sidebar navigation item. */
|
|
18189
|
-
type ExperimentalSidebarNavigationAction = {
|
|
18190
|
-
kind: "new-thread";
|
|
18191
|
-
} | {
|
|
18192
|
-
kind: "search-threads";
|
|
18193
|
-
} | {
|
|
18194
|
-
kind: "open-extensions";
|
|
18195
|
-
} | {
|
|
18196
|
-
kind: "open-skills";
|
|
18197
|
-
} | {
|
|
18198
|
-
kind: "open-plugin-panel";
|
|
18199
|
-
pluginId: string;
|
|
18200
|
-
panelId: string;
|
|
18201
|
-
};
|
|
18202
|
-
/**
|
|
18203
|
-
* Semantic icon identity for one sidebar navigation item. Render it with
|
|
18204
|
-
* {@link PluginSdkApp.experimental_SidebarNavigationIcon} to match bb's
|
|
18205
|
-
* artwork, including panel icons with plugin branding as their fallback.
|
|
18206
|
-
*/
|
|
18207
|
-
type ExperimentalSidebarNavigationIcon = {
|
|
18208
|
-
kind: "host";
|
|
18209
|
-
name: "extensions" | "new-thread" | "search" | "skills";
|
|
18210
|
-
} | {
|
|
18211
|
-
kind: "plugin";
|
|
18212
|
-
pluginId: string;
|
|
18213
|
-
icon: string | null;
|
|
18214
|
-
};
|
|
18215
|
-
/** One host-owned destination or action a plugin may arrange. */
|
|
18216
|
-
interface ExperimentalSidebarNavigationItem {
|
|
18217
|
-
/**
|
|
18218
|
-
* Arrangement key, stable across reloads: `__bb__/new-thread`,
|
|
18219
|
-
* `__bb__/search-threads`, `__bb__/extensions`, `__bb__/skills`,
|
|
18220
|
-
* `__bb__/automations`, or `<pluginId>/<panelId>`. The same keys appear in
|
|
18221
|
-
* the `sidebar.pluginPanelOrder` and `sidebar.visiblePluginPanels`
|
|
18222
|
-
* settings.
|
|
18223
|
-
*/
|
|
18224
|
-
id: string;
|
|
18225
|
-
label: string;
|
|
18226
|
-
icon: ExperimentalSidebarNavigationIcon;
|
|
18227
|
-
action: ExperimentalSidebarNavigationAction;
|
|
18228
|
-
isDisabled: boolean;
|
|
18229
|
-
/**
|
|
18230
|
-
* False when the user hid the item from the sidebar. Draw hidden items in an
|
|
18231
|
-
* overflow menu rather than dropping them, so they stay reachable.
|
|
18232
|
-
*/
|
|
18233
|
-
isVisible: boolean;
|
|
18234
|
-
/**
|
|
18235
|
-
* A plugin panel remembered from the last session whose bundle has not
|
|
18236
|
-
* registered yet. Activating it does nothing until it loads.
|
|
18237
|
-
*/
|
|
18238
|
-
isLoading: boolean;
|
|
18239
|
-
/**
|
|
18240
|
-
* The plugin that contributed this panel; null for bb's own items. Gates
|
|
18241
|
-
* `openDetails` and `disablePlugin`.
|
|
18242
|
-
*/
|
|
18243
|
-
pluginId: string | null;
|
|
18244
|
-
shortcut: ExperimentalSidebarNavigationShortcut | null;
|
|
18245
|
-
/**
|
|
18246
|
-
* The panel's `experimental_sidebarAccessory`, already wrapped in the host's
|
|
18247
|
-
* crash boundary. Null for bb's items, panels without an accessory, and on
|
|
18248
|
-
* compact viewports. Keep it within one line, about 4rem by 1.25rem.
|
|
18249
|
-
*/
|
|
18250
|
-
experimental_Accessory: ComponentType | null;
|
|
18251
|
-
}
|
|
18252
|
-
/** How the host should activate a sidebar navigation item. */
|
|
18253
|
-
interface ExperimentalSidebarNavigationActivationOptions {
|
|
18254
|
-
openInSplit: boolean;
|
|
18255
|
-
}
|
|
18256
|
-
/**
|
|
18257
|
-
* Host behavior for sidebar navigation items (see
|
|
18258
|
-
* {@link ExperimentalSidebarNavigationState}). Unknown item ids are ignored.
|
|
18259
|
-
* Calls made after the calling component unmounts do nothing.
|
|
18260
|
-
*/
|
|
18261
|
-
interface ExperimentalSidebarNavigationActions {
|
|
18262
|
-
/**
|
|
18263
|
-
* Run the item's host behavior and close the mobile sidebar drawer.
|
|
18264
|
-
* `openInSplit` is ignored where splits are unavailable, and disabled or
|
|
18265
|
-
* loading items do nothing.
|
|
18266
|
-
*/
|
|
18267
|
-
activate(itemId: string, options: ExperimentalSidebarNavigationActivationOptions): void;
|
|
18268
|
-
/** Hide or show one item. Persists to `sidebar.visiblePluginPanels`. */
|
|
18269
|
-
setVisible(itemId: string, isVisible: boolean): void;
|
|
18270
|
-
/**
|
|
18271
|
-
* Save a new order. Pass item ids in the order you want; unknown ids are
|
|
18272
|
-
* dropped and ids you leave out keep their relative order after the ones
|
|
18273
|
-
* you pass. Persists to `sidebar.pluginPanelOrder`.
|
|
18274
|
-
*/
|
|
18275
|
-
setOrder(itemIds: readonly string[]): void;
|
|
18276
|
-
/** Open bb's customize editor, which reorders and hides items. */
|
|
18277
|
-
openCustomize(): void;
|
|
18278
|
-
/** Open the owning plugin's details. Does nothing when `pluginId` is null. */
|
|
18279
|
-
openDetails(itemId: string): void;
|
|
18280
|
-
/**
|
|
18281
|
-
* Disable the owning plugin, leave its panel if it is open, and show a
|
|
18282
|
-
* toast. Rejects after the host's error toast when disabling fails. Does
|
|
18283
|
-
* nothing when `pluginId` is null.
|
|
18284
|
-
*/
|
|
18285
|
-
disablePlugin(itemId: string): Promise<void>;
|
|
18286
|
-
}
|
|
18287
|
-
/** What {@link PluginSdkApp.experimental_useSidebarNavigation} returns. */
|
|
18288
|
-
interface ExperimentalSidebarNavigationState {
|
|
18289
|
-
/** Every item in the user's saved order, visible and hidden. */
|
|
18290
|
-
items: readonly ExperimentalSidebarNavigationItem[];
|
|
18291
|
-
/** The item whose destination the route currently shows, or null. */
|
|
18292
|
-
activeItemId: string | null;
|
|
18293
|
-
/**
|
|
18294
|
-
* True while the user holds the app command modifier, when bb's own rows
|
|
18295
|
-
* reveal their `shortcut` labels. Show yours at the same time.
|
|
18296
|
-
*/
|
|
18297
|
-
isShortcutModifierHeld: boolean;
|
|
18298
|
-
actions: ExperimentalSidebarNavigationActions;
|
|
18299
|
-
}
|
|
18300
|
-
/**
|
|
18301
|
-
* Per-item drag-to-split support (see
|
|
18302
|
-
* {@link PluginSdkApp.experimental_useSidebarNavigationSplit}). Same contract
|
|
18303
|
-
* as {@link PluginSidebarThreadSplit}.
|
|
18304
|
-
*/
|
|
18305
|
-
interface ExperimentalSidebarNavigationSplit {
|
|
18306
|
-
/**
|
|
18307
|
-
* Spread onto the item's interactive element. Empty when the item cannot
|
|
18308
|
-
* open in a pane, so spreading it is always safe.
|
|
18309
|
-
*/
|
|
18310
|
-
splitProps: {
|
|
18311
|
-
onPointerDown?: (event: react.PointerEvent<HTMLElement>) => void;
|
|
18312
|
-
};
|
|
18313
|
-
/**
|
|
18314
|
-
* False for items that cannot open in a pane (Search, Plugins, Skills), on
|
|
18315
|
-
* compact viewports, and when splits are unavailable.
|
|
18316
|
-
*/
|
|
18317
|
-
isAvailable: boolean;
|
|
18318
|
-
/** Where this item's destination sits in the split layout, or null. */
|
|
18319
|
-
layout: {
|
|
18320
|
-
panes: readonly PluginSidebarSplitPane[];
|
|
18321
|
-
} | null;
|
|
18322
|
-
}
|
|
18323
|
-
/** Options for {@link PluginSdkApp.experimental_useSidebarNavigationSplit}. */
|
|
18324
|
-
interface ExperimentalSidebarNavigationSplitOptions {
|
|
18325
|
-
/**
|
|
18326
|
-
* `sidebar` (the default) engages the drag once the pointer leaves the
|
|
18327
|
-
* sidebar, so a row list with its own drag-to-reorder keeps working.
|
|
18328
|
-
* `distance` engages after a short movement in any direction; use it for
|
|
18329
|
-
* rows inside a menu or popover that covers the main area.
|
|
18330
|
-
*/
|
|
18331
|
-
activation?: "distance" | "sidebar";
|
|
18332
|
-
/** Called when the drag engages, for example to close the menu the row is in. */
|
|
18333
|
-
onDragStart?: () => void;
|
|
18334
|
-
}
|
|
18335
|
-
/** Props for {@link PluginSdkApp.experimental_SidebarNavigationIcon}. */
|
|
18336
|
-
interface ExperimentalSidebarNavigationIconProps {
|
|
18337
|
-
icon: ExperimentalSidebarNavigationIcon;
|
|
18338
|
-
className?: string;
|
|
18339
|
-
}
|
|
18340
|
-
/**
|
|
18341
|
-
* Props passed to an `experimental_sidebarNavigation` component. Read the
|
|
18342
|
-
* items and their actions with
|
|
18343
|
-
* {@link PluginSdkApp.experimental_useSidebarNavigation}.
|
|
18344
|
-
*/
|
|
18345
|
-
interface ExperimentalSidebarNavigationProps {
|
|
18346
|
-
isCompactViewport: boolean;
|
|
18347
|
-
/**
|
|
18348
|
-
* Renders bb's bundled Navigation plugin, or nothing while it is disabled.
|
|
18349
|
-
* Kept for plugins written before `experimental_useSidebarNavigation`;
|
|
18350
|
-
* render items from that hook instead. Scheduled for removal.
|
|
18351
|
-
*
|
|
18352
|
-
* @deprecated
|
|
18353
|
-
*/
|
|
18354
|
-
experimental_Original: ComponentType;
|
|
18355
|
-
}
|
|
18356
|
-
/**
|
|
18357
|
-
* Props passed to an `experimental_sidebarHeader` component, rendered in the
|
|
18358
|
-
* sidebar's header row between the sidebar toggle (and the macOS window
|
|
18359
|
-
* controls) and bb's back and forward buttons.
|
|
18360
|
-
*/
|
|
18361
|
-
interface ExperimentalSidebarHeaderProps {
|
|
18362
|
-
/**
|
|
18363
|
-
* Width in px of the space the component may use, updated when the sidebar
|
|
18364
|
-
* resizes or the window chrome changes. It can be smaller than
|
|
18365
|
-
* `controlSize` in a narrow sidebar.
|
|
18366
|
-
*/
|
|
18367
|
-
width: number;
|
|
18368
|
-
/**
|
|
18369
|
-
* Width and height in px of the header's own buttons, equal to the
|
|
18370
|
-
* `--bb-sidebar-control-size` CSS variable. Size your controls to match.
|
|
18371
|
-
*/
|
|
18372
|
-
controlSize: number;
|
|
18373
|
-
isCompactViewport: boolean;
|
|
18374
|
-
}
|
|
18375
18210
|
/**
|
|
18376
18211
|
* Props passed to an `experimental_threadList` component — the sidebar's
|
|
18377
18212
|
* scrolling thread area, replaced wholesale by one plugin.
|
|
@@ -18753,13 +18588,12 @@ interface PluginNavPanelRegistration {
|
|
|
18753
18588
|
*/
|
|
18754
18589
|
fixedTabs?: readonly PluginFixedTabDeclaration[];
|
|
18755
18590
|
/**
|
|
18756
|
-
* Optional presentational component
|
|
18757
|
-
* panel's sidebar
|
|
18758
|
-
* value through the ordinary SDK hooks without coupling
|
|
18759
|
-
* host sidebar. The host
|
|
18760
|
-
* to a small, single-line box
|
|
18761
|
-
*
|
|
18762
|
-
* do not render controls or rely on unbounded content here.
|
|
18591
|
+
* Optional presentational component for a narrow live value next to this
|
|
18592
|
+
* panel's entry in the sidebar. It receives no props so it can own that
|
|
18593
|
+
* value through the ordinary SDK hooks without coupling its state to the
|
|
18594
|
+
* host sidebar. The host still validates it, but no host surface currently
|
|
18595
|
+
* mounts it. Keep it to a small, single-line box; do not render controls or
|
|
18596
|
+
* rely on unbounded content here.
|
|
18763
18597
|
*
|
|
18764
18598
|
* Experimental: see docs/api_to_audit.md.
|
|
18765
18599
|
*/
|
|
@@ -19510,41 +19344,6 @@ interface PluginThreadListRegistration {
|
|
|
19510
19344
|
description?: string;
|
|
19511
19345
|
component: ComponentType<PluginThreadListProps>;
|
|
19512
19346
|
}
|
|
19513
|
-
/**
|
|
19514
|
-
* Replace the navigation controls above the sidebar thread list. Exclusive:
|
|
19515
|
-
* bb ships its own rows as the bundled Navigation plugin
|
|
19516
|
-
* (`navigation/navigation`). By default the first registered provider other
|
|
19517
|
-
* than Navigation is active, falling back to Navigation; the user can pin one
|
|
19518
|
-
* provider under Settings → Appearance → Navigation. A pinned provider that is
|
|
19519
|
-
* disabled or removed falls back to Navigation; a crashing provider is
|
|
19520
|
-
* replaced by a placeholder with a Reload button.
|
|
19521
|
-
*/
|
|
19522
|
-
interface ExperimentalSidebarNavigationRegistration {
|
|
19523
|
-
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
19524
|
-
id: string;
|
|
19525
|
-
/** Label shown in Settings → Appearance and capability details. */
|
|
19526
|
-
title: string;
|
|
19527
|
-
/** Optional one-line description shown with the provider choice. */
|
|
19528
|
-
description?: string;
|
|
19529
|
-
component: ComponentType<ExperimentalSidebarNavigationProps>;
|
|
19530
|
-
}
|
|
19531
|
-
/**
|
|
19532
|
-
* Render a component in the sidebar's header row, between the sidebar toggle
|
|
19533
|
-
* and bb's back and forward buttons. Exclusive: the user picks at most one
|
|
19534
|
-
* header under Settings → Appearance, and by default the header shows only
|
|
19535
|
-
* bb's own controls. Content is clipped to the row, so it cannot move the
|
|
19536
|
-
* thread list or bb's controls. On macOS the empty space keeps dragging the
|
|
19537
|
-
* window; buttons, links, and inputs do not.
|
|
19538
|
-
*/
|
|
19539
|
-
interface ExperimentalSidebarHeaderRegistration {
|
|
19540
|
-
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
19541
|
-
id: string;
|
|
19542
|
-
/** Label shown in Settings → Appearance and capability details. */
|
|
19543
|
-
title: string;
|
|
19544
|
-
/** Optional one-line description shown with the provider choice. */
|
|
19545
|
-
description?: string;
|
|
19546
|
-
component: ComponentType<ExperimentalSidebarHeaderProps>;
|
|
19547
|
-
}
|
|
19548
19347
|
/**
|
|
19549
19348
|
* Register this plugin as a viewer/editor for file extensions. By default,
|
|
19550
19349
|
* matching files render the first applicable opener in deterministic slot
|
|
@@ -19986,14 +19785,6 @@ interface PluginAppSlots {
|
|
|
19986
19785
|
experimental_newThreadPanelAction(registration: PluginNewThreadPanelActionRegistration): void;
|
|
19987
19786
|
pendingInteraction(registration: PluginPendingInteractionRegistration): void;
|
|
19988
19787
|
sidebarFooterAction(registration: PluginSidebarFooterActionRegistration): void;
|
|
19989
|
-
/** Replace the bounded sidebar navigation controls. */
|
|
19990
|
-
experimental_sidebarNavigation(registration: ExperimentalSidebarNavigationRegistration): void;
|
|
19991
|
-
/**
|
|
19992
|
-
* Render a component in the sidebar header row (see
|
|
19993
|
-
* {@link ExperimentalSidebarHeaderRegistration}). Experimental: see
|
|
19994
|
-
* docs/api_to_audit.md.
|
|
19995
|
-
*/
|
|
19996
|
-
experimental_sidebarHeader(registration: ExperimentalSidebarHeaderRegistration): void;
|
|
19997
19788
|
/**
|
|
19998
19789
|
* Replace the sidebar's thread list (see
|
|
19999
19790
|
* {@link PluginThreadListRegistration}). Experimental: see
|
|
@@ -21221,27 +21012,6 @@ interface PluginSdkApp {
|
|
|
21221
21012
|
* Experimental: see docs/api_to_audit.md.
|
|
21222
21013
|
*/
|
|
21223
21014
|
experimental_useSidebarThreadSplit(threadId: string): PluginSidebarThreadSplit;
|
|
21224
|
-
/**
|
|
21225
|
-
* The sidebar navigation items in the user's saved order, the active item,
|
|
21226
|
-
* and the host actions that activate, hide, reorder, and customize them
|
|
21227
|
-
* (see {@link ExperimentalSidebarNavigationState}). One model shared by
|
|
21228
|
-
* every caller in the sidebar. Items keep their identity while unchanged.
|
|
21229
|
-
* Outside the sidebar it returns no items and actions that do nothing.
|
|
21230
|
-
* Experimental: see docs/api_to_audit.md.
|
|
21231
|
-
*/
|
|
21232
|
-
experimental_useSidebarNavigation(): ExperimentalSidebarNavigationState;
|
|
21233
|
-
/**
|
|
21234
|
-
* Per-item drag-to-split support for navigation items (see
|
|
21235
|
-
* {@link ExperimentalSidebarNavigationSplit}). Call it once per rendered
|
|
21236
|
-
* item. Experimental: see docs/api_to_audit.md.
|
|
21237
|
-
*/
|
|
21238
|
-
experimental_useSidebarNavigationSplit(itemId: string, options?: ExperimentalSidebarNavigationSplitOptions): ExperimentalSidebarNavigationSplit;
|
|
21239
|
-
/**
|
|
21240
|
-
* bb's artwork for a navigation item's icon: bb's glyphs for its own items,
|
|
21241
|
-
* and the panel's explicit icon, falling back to plugin branding, for plugin panels. Experimental:
|
|
21242
|
-
* see docs/api_to_audit.md.
|
|
21243
|
-
*/
|
|
21244
|
-
experimental_SidebarNavigationIcon: ComponentType<ExperimentalSidebarNavigationIconProps>;
|
|
21245
21015
|
/**
|
|
21246
21016
|
* Whether the composer holds an unsent draft for one thread (see
|
|
21247
21017
|
* {@link PluginSidebarThreadDraftState}). Per row, because a draft is
|
|
@@ -21456,9 +21226,6 @@ declare const experimental_useSidebarThreads: (options?: {
|
|
|
21456
21226
|
declare const experimental_useSidebarThreadActions: () => PluginSidebarThreadActions;
|
|
21457
21227
|
declare const experimental_useSidebarThreadPullRequest: (threadId: string) => PluginSidebarThreadPullRequestState;
|
|
21458
21228
|
declare const experimental_useSidebarThreadSplit: (threadId: string) => PluginSidebarThreadSplit;
|
|
21459
|
-
declare const experimental_useSidebarNavigation: () => ExperimentalSidebarNavigationState;
|
|
21460
|
-
declare const experimental_useSidebarNavigationSplit: (itemId: string, options?: ExperimentalSidebarNavigationSplitOptions) => ExperimentalSidebarNavigationSplit;
|
|
21461
|
-
declare const experimental_SidebarNavigationIcon: react.ComponentType<ExperimentalSidebarNavigationIconProps>;
|
|
21462
21229
|
declare const useSidebarThreadDraft: (threadId: string) => PluginSidebarThreadDraftState;
|
|
21463
21230
|
declare const useSidebarThreadDraftIds: () => ReadonlySet<string>;
|
|
21464
21231
|
declare const useSidebarThreadRowStatus: (threadId: string) => PluginSidebarThreadRowStatus | null;
|
|
@@ -21472,5 +21239,5 @@ declare const experimental_useProviders: () => PluginProvidersState;
|
|
|
21472
21239
|
declare const experimental_useCodeTheme: () => PluginCodeThemeState;
|
|
21473
21240
|
declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
21474
21241
|
|
|
21475
|
-
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker,
|
|
21476
|
-
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, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration,
|
|
21242
|
+
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SourceCode, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_useAppPanel, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarThreadActions, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
21243
|
+
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, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, 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, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration,
|
|
9
|
+
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
10
10
|
|
|
11
11
|
type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
|
|
12
12
|
interface ExperimentalSidebarFooterRuntimeSnapshot {
|
|
@@ -68,8 +68,6 @@ interface CollectedPluginAppRegistrations {
|
|
|
68
68
|
pendingInteractions: PluginPendingInteractionRegistration[];
|
|
69
69
|
sidebarFooterActions: PluginSidebarFooterActionRegistration[];
|
|
70
70
|
experimentalSidebarFooterItems: CollectedExperimentalSidebarFooterItem[];
|
|
71
|
-
experimentalSidebarNavigations: ExperimentalSidebarNavigationRegistration[];
|
|
72
|
-
experimentalSidebarHeaders: ExperimentalSidebarHeaderRegistration[];
|
|
73
71
|
threadLists: PluginThreadListRegistration[];
|
|
74
72
|
threadHeaderActions: PluginThreadHeaderActionRegistration[];
|
|
75
73
|
browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { ReactNode, ComponentType } from 'react';
|
|
9
9
|
import { RenderResult } from '@testing-library/react';
|
|
10
|
-
import { ExperimentalSidebarFooterItemRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration,
|
|
10
|
+
import { ExperimentalSidebarFooterItemRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, PluginMessageActionRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, ExperimentalOpenFixedTabOptions, JsonValue, BbNavigate, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, PluginSidebarPullRequest, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, PluginEnvironmentProvidersState, PluginSidebarThreadActions } from '@get-bb/plugin-sdk';
|
|
11
11
|
|
|
12
12
|
type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
|
|
13
13
|
interface ExperimentalSidebarFooterRuntimeSnapshot {
|
|
@@ -162,17 +162,6 @@ interface SidebarActionCall {
|
|
|
162
162
|
pinned?: boolean;
|
|
163
163
|
read?: boolean;
|
|
164
164
|
}
|
|
165
|
-
/**
|
|
166
|
-
* One recorded `experimental_useSidebarNavigation()` action, or a split drag
|
|
167
|
-
* started from `experimental_useSidebarNavigationSplit()` (`beginSplitDrag`).
|
|
168
|
-
*/
|
|
169
|
-
interface SidebarNavigationCall {
|
|
170
|
-
method: keyof ExperimentalSidebarNavigationActions | "beginSplitDrag";
|
|
171
|
-
itemId?: string;
|
|
172
|
-
itemIds?: string[];
|
|
173
|
-
isVisible?: boolean;
|
|
174
|
-
openInSplit?: boolean;
|
|
175
|
-
}
|
|
176
165
|
type TestClipboard = (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
177
166
|
/**
|
|
178
167
|
* Install the test runtime at `globalThis.__bbPluginRuntime.pluginSdkApp`,
|
|
@@ -193,8 +182,6 @@ interface CapturedPluginApp {
|
|
|
193
182
|
pendingInteractions: PluginPendingInteractionRegistration[];
|
|
194
183
|
sidebarFooterActions: PluginSidebarFooterActionRegistration[];
|
|
195
184
|
experimentalSidebarFooterItems: CollectedExperimentalSidebarFooterItem[];
|
|
196
|
-
experimentalSidebarNavigations: ExperimentalSidebarNavigationRegistration[];
|
|
197
|
-
experimentalSidebarHeaders: ExperimentalSidebarHeaderRegistration[];
|
|
198
185
|
threadLists: PluginThreadListRegistration[];
|
|
199
186
|
threadHeaderActions: PluginThreadHeaderActionRegistration[];
|
|
200
187
|
browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
|
|
@@ -352,16 +339,6 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
352
339
|
sidebarShortcuts?: Record<string, PluginSidebarThreadShortcut>;
|
|
353
340
|
/** The split layout `useSidebarSplitLayout()` reports. Omitted → null. */
|
|
354
341
|
sidebarSplitLayout?: PluginSidebarSplitLayout;
|
|
355
|
-
/**
|
|
356
|
-
* Items and the active item `experimental_useSidebarNavigation()` reports.
|
|
357
|
-
* Omitted → no items. Actions are recorded in
|
|
358
|
-
* `inspection.sidebarNavigationCalls` and do not change the items.
|
|
359
|
-
*/
|
|
360
|
-
sidebarNavigation?: {
|
|
361
|
-
items?: readonly ExperimentalSidebarNavigationItem[];
|
|
362
|
-
activeItemId?: string | null;
|
|
363
|
-
isShortcutModifierHeld?: boolean;
|
|
364
|
-
};
|
|
365
342
|
/**
|
|
366
343
|
* The environment provider catalog `useEnvironmentProviders()` reports.
|
|
367
344
|
* Omitted → a ready, empty list. Pass `{ status: "loading" }` to test that
|
|
@@ -416,11 +393,6 @@ interface RenderedSlotInspectionState {
|
|
|
416
393
|
readonly experimental_fixedTabOpenCalls: ExperimentalFixedTabOpenCall[];
|
|
417
394
|
/** Every `experimental_useSidebarThreadActions()` call, in order. */
|
|
418
395
|
readonly sidebarActionCalls: SidebarActionCall[];
|
|
419
|
-
/**
|
|
420
|
-
* Every `experimental_useSidebarNavigation()` action and navigation split
|
|
421
|
-
* drag, in order.
|
|
422
|
-
*/
|
|
423
|
-
readonly sidebarNavigationCalls: SidebarNavigationCall[];
|
|
424
396
|
/** Every `useSdk()` call, in order, as `"<area>.<method>"`. */
|
|
425
397
|
readonly sdkCalls: SdkCall[];
|
|
426
398
|
/** Every `experimental_copyToClipboard()` write, in order. */
|
|
@@ -447,4 +419,4 @@ declare function renderSlot<Props extends object, Contract extends PluginRpcCont
|
|
|
447
419
|
}, props: Props, options?: RenderSlotOptions<Contract>): RenderedSlot;
|
|
448
420
|
|
|
449
421
|
export { installTestPluginRuntime, loadPluginApp, mountPluginContentScripts, renderSlot };
|
|
450
|
-
export type { CapturedPluginApp, ComposerLog, ContentScriptTestMountOptions, ContentScriptThreadRowStatusCall, ExperimentalFixedTabOpenCall, MountedPluginContentScripts, NavigateCall, PluginAppSource, PluginRpcTestHandlers, PluginSdkTestFakes, RenderSlotOptions, RenderedSlot, RenderedSlotBehaviorDrivers, RenderedSlotInspectionState, RenderedSlotLifecycleControls, RpcCall, SdkCall, SidebarActionCall
|
|
422
|
+
export type { CapturedPluginApp, ComposerLog, ContentScriptTestMountOptions, ContentScriptThreadRowStatusCall, ExperimentalFixedTabOpenCall, MountedPluginContentScripts, NavigateCall, PluginAppSource, PluginRpcTestHandlers, PluginSdkTestFakes, RenderSlotOptions, RenderedSlot, RenderedSlotBehaviorDrivers, RenderedSlotInspectionState, RenderedSlotLifecycleControls, RpcCall, SdkCall, SidebarActionCall };
|