@get-bb/plugin-sdk 0.6.89 → 0.6.94

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.
@@ -47,7 +47,6 @@ declare const appSettingsSchema: z$1.ZodObject<{
47
47
  }>>;
48
48
  providerOrder: z$1.ZodArray<z$1.ZodString>;
49
49
  showDiagnosticEvents: z$1.ZodBoolean;
50
- showGitChanges: z$1.ZodBoolean;
51
50
  showKeyboardHints: z$1.ZodBoolean;
52
51
  steerActiveThreadOnEnter: z$1.ZodBoolean;
53
52
  streamerMode: z$1.ZodBoolean;
@@ -74,7 +73,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
74
73
  }>>;
75
74
  providerOrder: z$1.ZodArray<z$1.ZodString>;
76
75
  showDiagnosticEvents: z$1.ZodBoolean;
77
- showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
78
76
  showKeyboardHints: z$1.ZodBoolean;
79
77
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
80
78
  steerActiveThreadOnEnter: z$1.ZodBoolean;
@@ -99,7 +97,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
99
97
  flat: "flat";
100
98
  }>>;
101
99
  providerOrder: z$1.ZodArray<z$1.ZodString>;
102
- showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
103
100
  showKeyboardHints: z$1.ZodBoolean;
104
101
  showUnhandledProviderEvents: z$1.ZodBoolean;
105
102
  steerActiveThreadOnEnter: z$1.ZodBoolean;
@@ -146,7 +143,7 @@ declare const uiPreferenceDefinitions: {
146
143
  readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
147
144
  readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
148
145
  readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
149
- readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
146
+ readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
150
147
  };
151
148
  type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
152
149
  interface UiPreferenceEntry<Key extends UiPreferenceKey = UiPreferenceKey> {
@@ -165,7 +162,6 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
165
162
  "browser.reload": "browser.reload";
166
163
  "composer.focus": "composer.focus";
167
164
  "dataDirectory.open": "dataDirectory.open";
168
- "diff.toggle": "diff.toggle";
169
165
  "file.quickOpen": "file.quickOpen";
170
166
  "history.back": "history.back";
171
167
  "history.forward": "history.forward";
@@ -219,6 +215,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
219
215
  "settings.open": "settings.open";
220
216
  "settings.openServers": "settings.openServers";
221
217
  "sidebar.toggle": "sidebar.toggle";
218
+ "terminal.find": "terminal.find";
222
219
  "terminal.open": "terminal.open";
223
220
  "thread.archive": "thread.archive";
224
221
  "thread.jump.1": "thread.jump.1";
@@ -503,23 +500,29 @@ declare const environmentSchema: z$1.ZodObject<{
503
500
  type Environment = z$1.infer<typeof environmentSchema>;
504
501
 
505
502
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
503
+ applicationLinks: "applicationLinks";
506
504
  changelogPreview: "changelogPreview";
507
505
  compactExpiredCache: "compactExpiredCache";
508
506
  performanceDiagnostics: "performanceDiagnostics";
509
507
  serverMove: "serverMove";
510
508
  sidebarMultiSelect: "sidebarMultiSelect";
509
+ threadRowMetadata: "threadRowMetadata";
511
510
  timelinePush: "timelinePush";
512
511
  unreadDividerAtAnswer: "unreadDividerAtAnswer";
512
+ websocketCompression: "websocketCompression";
513
513
  }>, z$1.ZodBoolean>;
514
514
  type Experiments = z$1.infer<typeof experimentsSchema>;
515
515
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
516
+ applicationLinks: "applicationLinks";
516
517
  changelogPreview: "changelogPreview";
517
518
  compactExpiredCache: "compactExpiredCache";
518
519
  performanceDiagnostics: "performanceDiagnostics";
519
520
  serverMove: "serverMove";
520
521
  sidebarMultiSelect: "sidebarMultiSelect";
522
+ threadRowMetadata: "threadRowMetadata";
521
523
  timelinePush: "timelinePush";
522
524
  unreadDividerAtAnswer: "unreadDividerAtAnswer";
525
+ websocketCompression: "websocketCompression";
523
526
  }> & z$1.core.$partial, z$1.ZodBoolean>;
524
527
  type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
525
528
 
@@ -10120,7 +10123,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10120
10123
  "browser.reload": "browser.reload";
10121
10124
  "composer.focus": "composer.focus";
10122
10125
  "dataDirectory.open": "dataDirectory.open";
10123
- "diff.toggle": "diff.toggle";
10124
10126
  "file.quickOpen": "file.quickOpen";
10125
10127
  "history.back": "history.back";
10126
10128
  "history.forward": "history.forward";
@@ -10174,6 +10176,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10174
10176
  "settings.open": "settings.open";
10175
10177
  "settings.openServers": "settings.openServers";
10176
10178
  "sidebar.toggle": "sidebar.toggle";
10179
+ "terminal.find": "terminal.find";
10177
10180
  "terminal.open": "terminal.open";
10178
10181
  "thread.archive": "thread.archive";
10179
10182
  "thread.jump.1": "thread.jump.1";
@@ -10240,13 +10243,16 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10240
10243
  }, z$1.core.$strict>;
10241
10244
  }, z$1.core.$strict>>;
10242
10245
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10246
+ applicationLinks: "applicationLinks";
10243
10247
  changelogPreview: "changelogPreview";
10244
10248
  compactExpiredCache: "compactExpiredCache";
10245
10249
  performanceDiagnostics: "performanceDiagnostics";
10246
10250
  serverMove: "serverMove";
10247
10251
  sidebarMultiSelect: "sidebarMultiSelect";
10252
+ threadRowMetadata: "threadRowMetadata";
10248
10253
  timelinePush: "timelinePush";
10249
10254
  unreadDividerAtAnswer: "unreadDividerAtAnswer";
10255
+ websocketCompression: "websocketCompression";
10250
10256
  }>, z$1.ZodBoolean>;
10251
10257
  featureFlags: z$1.ZodObject<{
10252
10258
  initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
@@ -10271,7 +10277,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10271
10277
  }>>;
10272
10278
  providerOrder: z$1.ZodArray<z$1.ZodString>;
10273
10279
  showDiagnosticEvents: z$1.ZodBoolean;
10274
- showGitChanges: z$1.ZodBoolean;
10275
10280
  showKeyboardHints: z$1.ZodBoolean;
10276
10281
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
10277
10282
  steerActiveThreadOnEnter: z$1.ZodBoolean;
@@ -10289,7 +10294,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10289
10294
  "browser.reload": "browser.reload";
10290
10295
  "composer.focus": "composer.focus";
10291
10296
  "dataDirectory.open": "dataDirectory.open";
10292
- "diff.toggle": "diff.toggle";
10293
10297
  "file.quickOpen": "file.quickOpen";
10294
10298
  "history.back": "history.back";
10295
10299
  "history.forward": "history.forward";
@@ -10343,6 +10347,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10343
10347
  "settings.open": "settings.open";
10344
10348
  "settings.openServers": "settings.openServers";
10345
10349
  "sidebar.toggle": "sidebar.toggle";
10350
+ "terminal.find": "terminal.find";
10346
10351
  "terminal.open": "terminal.open";
10347
10352
  "thread.archive": "thread.archive";
10348
10353
  "thread.jump.1": "thread.jump.1";
@@ -10388,7 +10393,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10388
10393
  "browser.reload": "browser.reload";
10389
10394
  "composer.focus": "composer.focus";
10390
10395
  "dataDirectory.open": "dataDirectory.open";
10391
- "diff.toggle": "diff.toggle";
10392
10396
  "file.quickOpen": "file.quickOpen";
10393
10397
  "history.back": "history.back";
10394
10398
  "history.forward": "history.forward";
@@ -10442,6 +10446,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10442
10446
  "settings.open": "settings.open";
10443
10447
  "settings.openServers": "settings.openServers";
10444
10448
  "sidebar.toggle": "sidebar.toggle";
10449
+ "terminal.find": "terminal.find";
10445
10450
  "terminal.open": "terminal.open";
10446
10451
  "thread.archive": "thread.archive";
10447
10452
  "thread.jump.1": "thread.jump.1";
@@ -18737,8 +18742,7 @@ interface PluginNavPanelProps {
18737
18742
  * This slot is rendered only for an existing thread. Use
18738
18743
  * `experimental_newThreadPanelAction` for the root New thread screen.
18739
18744
  */
18740
- interface ExperimentalThreadActionTabProps {
18741
- threadId: string;
18745
+ interface ExperimentalThreadActionTabProps extends ExperimentalThreadTabProps {
18742
18746
  /**
18743
18747
  * The JSON `params` the tab was opened with (round-tripped through
18744
18748
  * persistence, so the tab restores across reloads); null when it was
@@ -18746,6 +18750,17 @@ interface ExperimentalThreadActionTabProps {
18746
18750
  */
18747
18751
  params: JsonValue$1 | null;
18748
18752
  }
18753
+ /** Props every thread tab receives, fixed or action. */
18754
+ interface ExperimentalThreadTabProps {
18755
+ threadId: string;
18756
+ /**
18757
+ * The thread's environment, taken from the thread so it is present on the
18758
+ * first render; null only when the thread has no environment. The tab reads
18759
+ * whatever it needs about the environment itself and handles loading and
18760
+ * failure there.
18761
+ */
18762
+ environment: ExperimentalThreadEnvironment | null;
18763
+ }
18749
18764
  /** Props passed to a panel tab opened by `experimental_newThreadPanelAction`. */
18750
18765
  interface PluginNewThreadPanelProps {
18751
18766
  /** Project selected in the root composer; null in projectless compose. */
@@ -19079,26 +19094,6 @@ interface PluginThreadListProps {
19079
19094
  */
19080
19095
  searchQuery: string;
19081
19096
  }
19082
- /**
19083
- * Props passed to an `experimental_threadHeaderAction` component, rendered in
19084
- * the thread header's action row.
19085
- */
19086
- interface PluginThreadHeaderActionProps {
19087
- /**
19088
- * The thread this header belongs to. Never null: the slot is not rendered
19089
- * on the compose screen or other non-thread routes. A split layout renders
19090
- * one header per pane, so the component mounts once per visible thread,
19091
- * each with its own id — keep per-thread state in the component, never in a
19092
- * module-level singleton.
19093
- */
19094
- threadId: string;
19095
- projectId: string;
19096
- /**
19097
- * True on phone-width viewports and coarse pointers. Collapse to an
19098
- * icon-sized control when it is true — the row is short.
19099
- */
19100
- isCompactViewport: boolean;
19101
- }
19102
19097
  /** JavaScript world a Browser page expression runs in. */
19103
19098
  type ExperimentalPluginBrowserPageWorld = "isolated" | "main";
19104
19099
  interface ExperimentalPluginBrowserPageEvaluateOptions {
@@ -19582,9 +19577,7 @@ type ExperimentalTabLifecycle<Props, Context> = {
19582
19577
  };
19583
19578
  type ExperimentalTabContextProps<C extends ExperimentalTabContext> = C extends {
19584
19579
  kind: "thread";
19585
- } ? {
19586
- threadId: string;
19587
- } : PluginNavPanelProps;
19580
+ } ? ExperimentalThreadTabProps : PluginNavPanelProps;
19588
19581
  type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" | "fixed"> = {
19589
19582
  id: string;
19590
19583
  title: string;
@@ -19614,21 +19607,11 @@ type ExperimentalTabRegistration = ExperimentalTabCommon & (({
19614
19607
  context: {
19615
19608
  kind: "thread";
19616
19609
  };
19617
- useVisible?(props: {
19618
- threadId: string;
19619
- }): boolean;
19620
- } & ((ExperimentalTabLifecycle<{
19621
- threadId: string;
19622
- }, {
19623
- threadId: string;
19624
- }> & {
19610
+ useVisible?(props: ExperimentalThreadTabProps): boolean;
19611
+ } & ((ExperimentalTabLifecycle<ExperimentalThreadTabProps, ExperimentalThreadTabProps> & {
19625
19612
  availability: "action";
19626
19613
  experimental_target?: never;
19627
- }) | (ExperimentalTabLifecycle<{
19628
- threadId: string;
19629
- }, {
19630
- threadId: string;
19631
- }> & {
19614
+ }) | (ExperimentalTabLifecycle<ExperimentalThreadTabProps, ExperimentalThreadTabProps> & {
19632
19615
  availability: "fixed";
19633
19616
  experimental_target?: ExperimentalFixedTabTargetContract<JsonValue$1>;
19634
19617
  }))) | ({
@@ -20139,27 +20122,61 @@ interface PluginSidebarThreadShortcut {
20139
20122
  ariaKeyshortcuts: string;
20140
20123
  }
20141
20124
  /**
20142
- * Render a plugin component in the thread header's action row.
20143
- *
20144
- * The frontend sibling of the backend `bb.ui.registerThreadAction`, which
20145
- * renders a host-owned button and runs server-side. Use that one for "do a
20146
- * thing"; use this one when the control must draw live state.
20147
- *
20148
- * The host places it at the left end of the action row, before the workspace
20149
- * button, git actions, the panel toggle, maximize, and close. That row is a
20150
- * 48px chrome row with 28px controls: render one inline control that fits, and
20151
- * put anything taller in a portalled popover.
20125
+ * Props passed to an `experimental_threadRowMetadata` component, rendered on a
20126
+ * thread's row in a thread list: bb's sidebar and any list that draws
20127
+ * {@link PluginSdkApp.experimental_ThreadRowMetadata}.
20128
+ */
20129
+ interface ExperimentalThreadRowMetadataProps<Data = undefined> {
20130
+ /** The row's thread, the same value the list renders. */
20131
+ thread: PluginSidebarThread;
20132
+ /** What `useData` last returned; undefined when the registration has none. */
20133
+ data: Data;
20134
+ }
20135
+ /** What a row metadata registration's `useData` receives. */
20136
+ interface ExperimentalThreadRowMetadataDataInput {
20137
+ /**
20138
+ * Every thread a list may draw a metadata line for: bb's active sidebar
20139
+ * threads in sidebar order, then any other thread whose line is mounted
20140
+ * (such as an archived row), deduplicated. Threads whose rows are not
20141
+ * rendered, like a windowed list's rows off screen, are included: load
20142
+ * them all in one batch so a row has its data, and its final height, when
20143
+ * it renders.
20144
+ */
20145
+ threads: readonly PluginSidebarThread[];
20146
+ }
20147
+ /**
20148
+ * A small item on a thread row's metadata line, under the title: a badge, not
20149
+ * a control. Items share one line, left to right, and the line clips at the
20150
+ * row's edge. bb's sidebar draws the line only while the `threadRowMetadata`
20151
+ * experiment is on and the user turns on Organize → Rows → Metadata, and only
20152
+ * on rows where an item shows something.
20153
+ * Load the line's data in `useData`, a React hook bb calls once for the
20154
+ * whole app while any list draws a metadata line, never per row; it
20155
+ * receives every thread a list may show, so read them in one batch (for
20156
+ * example one `experimental_useRpcKeyedQuery` over their keys). The
20157
+ * component is then a pure render of its thread and `data`; with `useData`
20158
+ * it first renders once `useData` has returned. A row that renders already
20159
+ * has its data, so rows keep their height as they scroll into view.
20160
+ * It hides the line while the row is renamed or customized and keeps it
20161
+ * visible on hover. Render null to show nothing for a thread. Keep
20162
+ * it to an icon and a few characters with a tooltip; clicks on it open the
20163
+ * thread like the rest of the row. A crash removes only this item for that
20164
+ * row.
20152
20165
  */
20153
- interface PluginThreadHeaderActionRegistration {
20166
+ interface ExperimentalThreadRowMetadataRegistration<Data = undefined> {
20154
20167
  /** Unique within the plugin; letters, digits, `-`, `_`. */
20155
20168
  id: string;
20156
20169
  /**
20157
- * Names the region the host wraps around your component (a labelled group).
20158
- * It does NOT label your control: an icon-only button still needs its own
20159
- * accessible name.
20170
+ * Items sort by `order` (unset sorts last), then registration order. The
20171
+ * first item starts the line.
20160
20172
  */
20161
- title: string;
20162
- component: ComponentType<PluginThreadHeaderActionProps>;
20173
+ order?: number;
20174
+ useData?(input: ExperimentalThreadRowMetadataDataInput): Data;
20175
+ component: ComponentType<ExperimentalThreadRowMetadataProps<Data>>;
20176
+ }
20177
+ /** Props for {@link PluginSdkApp.experimental_ThreadRowMetadata}. */
20178
+ interface ExperimentalThreadRowMetadataLineProps {
20179
+ thread: PluginSidebarThread;
20163
20180
  }
20164
20181
  /**
20165
20182
  * Props passed to an `experimental_threadInfoRow` or
@@ -20174,8 +20191,8 @@ interface ExperimentalThreadInfoProps {
20174
20191
  threadId: string;
20175
20192
  projectId: string;
20176
20193
  /**
20177
- * The thread's environment, or null when the thread has no environment,
20178
- * its host is not active, or the environment is not a usable checkout.
20194
+ * The thread's environment, taken from the thread; null only when the
20195
+ * thread has no environment. Read its state (host, checkout, git) yourself.
20179
20196
  */
20180
20197
  environment: ExperimentalThreadEnvironment | null;
20181
20198
  }
@@ -20197,8 +20214,7 @@ interface ExperimentalThreadContextSegmentInput {
20197
20214
  projectId: string;
20198
20215
  /**
20199
20216
  * The thread's environment, or null when the thread has no environment,
20200
- * its host is not active, the environment is not a usable checkout, or the
20201
- * user turned off "Show Git changes and Commit button".
20217
+ * its host is not active, or the environment is not a usable checkout.
20202
20218
  */
20203
20219
  environment: ExperimentalThreadEnvironment | null;
20204
20220
  }
@@ -20426,7 +20442,8 @@ interface PluginThreadActionDataInput {
20426
20442
  /**
20427
20443
  * Every thread a visible surface currently shows actions for (sidebar rows
20428
20444
  * on screen, the open thread's header, open menus); a hidden sidebar
20429
- * contributes none. Sorted, deduplicated, and published once the set has
20445
+ * contributes none. A `"header"` action receives only the threads whose
20446
+ * header is on screen. Sorted, deduplicated, and published once the set has
20430
20447
  * been quiet for 32 ms (at most 100 ms after the first change), so rows
20431
20448
  * that mount a frame apart arrive together. Load per-thread state for these
20432
20449
  * ids, fetching only ids not loaded yet.
@@ -20479,6 +20496,9 @@ interface PluginThreadActionBulkItemInput<Data> {
20479
20496
  * derives the action for one thread from that thread and `data`, closing over
20480
20497
  * everything `run` needs, or returns null to hide it. A throw from either
20481
20498
  * drops only this registration.
20499
+ *
20500
+ * With `placement: "header"` the action is a button in the open thread's
20501
+ * header instead (see {@link PluginThreadActionPlacement}).
20482
20502
  */
20483
20503
  interface PluginThreadActionRegistration<Data = undefined> {
20484
20504
  /** Unique within the plugin; letters, digits, `-`, `_`. */
@@ -20496,6 +20516,8 @@ interface PluginThreadActionRegistration<Data = undefined> {
20496
20516
  */
20497
20517
  group: string;
20498
20518
  order?: number;
20519
+ /** Where the action shows; defaults to `"menu"`. */
20520
+ placement?: PluginThreadActionPlacement;
20499
20521
  useData?(input: PluginThreadActionDataInput): Data;
20500
20522
  item(input: PluginThreadActionItemInput<Data>): PluginThreadAction | null;
20501
20523
  /**
@@ -20508,6 +20530,21 @@ interface PluginThreadActionRegistration<Data = undefined> {
20508
20530
  */
20509
20531
  experimental_bulkItem?(input: PluginThreadActionBulkItemInput<Data>): PluginThreadAction | null;
20510
20532
  }
20533
+ /**
20534
+ * Where a thread action shows.
20535
+ *
20536
+ * - `"menu"`: every thread actions menu and the quick-action picker.
20537
+ * - `"header"`: only the open thread's header, as an outline button labelled
20538
+ * with the action's `label`, after the workspace's Open button. Several
20539
+ * header actions share one split button, the first as its main action. At
20540
+ * compact width and in narrow split panes the buttons fold into the
20541
+ * header's thread menu as rows at its top, after Open. `group` and `order`
20542
+ * sort header actions among themselves. Header actions never appear in
20543
+ * other menus, selection menus, `experimental_useThreadActions`, or the
20544
+ * quick-action picker, and an action that returns `choices` is left out
20545
+ * of the header.
20546
+ */
20547
+ type PluginThreadActionPlacement = "header" | "menu";
20511
20548
  /**
20512
20549
  * A thread action as {@link PluginSdkApp.experimental_useThreadActions}
20513
20550
  * returns it: `run` is bound to the caller's `requestRename` (or bb's rename
@@ -21805,18 +21842,19 @@ interface PluginAppSlots {
21805
21842
  * docs/api_to_audit.md.
21806
21843
  */
21807
21844
  experimental_sidebarNavigation(registration: ExperimentalSidebarNavigationRegistration): void;
21808
- /**
21809
- * Render a component in the thread header's action row (see
21810
- * {@link PluginThreadHeaderActionRegistration}). Experimental: see
21811
- * docs/api_to_audit.md.
21812
- */
21813
- experimental_threadHeaderAction(registration: PluginThreadHeaderActionRegistration): void;
21814
21845
  /**
21815
21846
  * Add context beside an existing thread's composer (see
21816
21847
  * {@link ExperimentalThreadContextSegmentRegistration}). Experimental: see
21817
21848
  * docs/api_to_audit.md.
21818
21849
  */
21819
21850
  experimental_threadContextSegment(registration: ExperimentalThreadContextSegmentRegistration): void;
21851
+ /**
21852
+ * Add a small item to the metadata line of every thread row in thread
21853
+ * lists (see
21854
+ * {@link ExperimentalThreadRowMetadataRegistration}). Experimental: see
21855
+ * docs/api_to_audit.md.
21856
+ */
21857
+ experimental_threadRowMetadata<Data = undefined>(registration: ExperimentalThreadRowMetadataRegistration<Data>): void;
21820
21858
  /**
21821
21859
  * Add a row to the thread Info tab's details block (see
21822
21860
  * {@link ExperimentalThreadInfoRowRegistration}). Experimental: see
@@ -23009,8 +23047,10 @@ interface BbNavigate {
23009
23047
  hostId?: string;
23010
23048
  }): void;
23011
23049
  /**
23012
- * Open an HTTP(S) URL using this client's BB browser preference. Returns
23013
- * false for schemes the host does not own. Experimental: see
23050
+ * Open an HTTP(S) URL using this client's BB browser preference, or request
23051
+ * an application link on this device with confirmation unless its scheme is approved when
23052
+ * the applicationLinks experiment is enabled. Returns false
23053
+ * for blocked or unsupported schemes. True means handled, not launched. See
23014
23054
  * docs/api_to_audit.md.
23015
23055
  */
23016
23056
  openUrl(url: string): boolean;
@@ -23052,10 +23092,17 @@ interface ExperimentalRpcQueryState<T> {
23052
23092
  isLoading: boolean;
23053
23093
  /** A read attempt is active, including background refreshes. Keyed consumers share this activity for their method; offline-paused reads are not fetching. */
23054
23094
  isFetching: boolean;
23055
- /** Force a read regardless of freshness and wait for its attempt/retries. Keyed reads refresh the method's subscribed keys. Failures update error and retain data; this promise resolves rather than rejecting. */
23095
+ /** Force a read regardless of freshness and wait for its attempt/retries. Keyed reads refresh only this hook's keys, batched with other hooks refreshing in the same render. Failures update error and retain data; this promise resolves rather than rejecting. */
23056
23096
  refetch(): Promise<void>;
23057
23097
  }
23058
23098
  interface ExperimentalRpcKeyedQueryState<T, Selection = Record<string, T>> extends ExperimentalRpcQueryState<Selection> {
23099
+ /**
23100
+ * Read these keys again and keep every other loaded row, for retrying one
23101
+ * failed row without refreshing the rest. Keys must be among this query's
23102
+ * keys; others are ignored. Resolves once the read settles; failures update
23103
+ * `error` and retain data.
23104
+ */
23105
+ refetchKeys(keys: readonly string[]): Promise<void>;
23059
23106
  }
23060
23107
  interface ExperimentalRpcQueryOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
23061
23108
  contract: Contract;
@@ -23104,6 +23151,10 @@ interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
23104
23151
  * shims the specifier to that object on `globalThis.__bbPluginRuntime`.
23105
23152
  */
23106
23153
  interface PluginSdkApp {
23154
+ /** List URL schemes approved for this BB site in the viewing client's localStorage. Core Settings uses the same implementation. */
23155
+ experimental_getApplicationLinkApprovals(): Promise<string[]>;
23156
+ /** Revoke one scheme, or all with null, for this BB site on this client. Does not grant permission. */
23157
+ experimental_revokeApplicationLinkApproval(scheme: string | null): Promise<string[]>;
23107
23158
  experimental_PluginRpcCallError: typeof experimental_PluginRpcCallError;
23108
23159
  experimental_useRpcRefresh(): {
23109
23160
  refresh(): void;
@@ -23113,7 +23164,7 @@ interface PluginSdkApp {
23113
23164
  experimental_useRpcQuery<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>): ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
23114
23165
  /** Call a mutating RPC through BB's query client; pending until the server acknowledges the write; matched reads refresh in the background. */
23115
23166
  experimental_useRpcMutation<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcMutationOptions<Contract, Method>): ExperimentalRpcMutationState<Contract[Method]>;
23116
- /** Cache each key independently and batch missing or invalidated keys in the same render. */
23167
+ /** Cache each key independently and batch missing or invalidated keys in the same render. Each key is watched once while the hook holds it, so a changing key list subscribes only added keys and releases only removed ones. */
23117
23168
  experimental_useRpcKeyedQuery<Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
23118
23169
  contract: Contract;
23119
23170
  pluginId?: string;
@@ -23176,6 +23227,15 @@ interface PluginSdkApp {
23176
23227
  * the answer changes. Experimental: see docs/api_to_audit.md.
23177
23228
  */
23178
23229
  experimental_useCanOpenFileExternally(target: ExperimentalLiveFileTarget): boolean;
23230
+ /**
23231
+ * Whether the panel tab this component renders in is showing: it is the
23232
+ * selected tab of its pane and the side panel is open. False while the panel
23233
+ * is closed or suppressed, while another tab is selected, and outside a
23234
+ * panel tab. bb keeps a closed panel's tab mounted, so pause reads that only
23235
+ * feed what the tab draws while this is false. Works in fixed and action
23236
+ * tabs. Experimental: see docs/api_to_audit.md.
23237
+ */
23238
+ experimental_useTabVisible(): boolean;
23179
23239
  /**
23180
23240
  * The side panel of the surface the calling component renders in: the
23181
23241
  * thread view, the plugin page, or the New thread screen.
@@ -23226,7 +23286,7 @@ interface PluginSdkApp {
23226
23286
  */
23227
23287
  experimental_useArchiveEnvironmentThreads(): (environmentId: string) => Promise<void>;
23228
23288
  /**
23229
- * Every thread action for one thread, in menu order (see
23289
+ * Every `"menu"` thread action for one thread, in menu order (see
23230
23290
  * {@link PluginThreadAction} for grouping): bb's own registrations first,
23231
23291
  * then plugins' in registration order. Registrations' `useData` hooks run
23232
23292
  * once for the app, so calling this per sidebar row costs one store
@@ -23235,8 +23295,9 @@ interface PluginSdkApp {
23235
23295
  */
23236
23296
  experimental_useThreadActions(thread: PluginThreadActionTarget, options?: PluginThreadActionsOptions): readonly PluginThreadActionEntry[];
23237
23297
  /**
23238
- * Every registered thread action with its static title and icon, in menu
23239
- * order and independent of any thread: what a quick-action picker lists.
23298
+ * Every registered `"menu"` thread action with its static title and icon,
23299
+ * in menu order and independent of any thread: what a quick-action picker
23300
+ * lists.
23240
23301
  * Experimental: see docs/api_to_audit.md.
23241
23302
  */
23242
23303
  experimental_useThreadActionRegistrations(): readonly PluginThreadActionRegistrationInfo[];
@@ -23380,6 +23441,15 @@ interface PluginSdkApp {
23380
23441
  * Experimental: see docs/api_to_audit.md.
23381
23442
  */
23382
23443
  experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
23444
+ /**
23445
+ * Every `experimental_threadRowMetadata` contribution for one thread row (see
23446
+ * {@link ExperimentalThreadRowMetadataRegistration}), the items bb's sidebar
23447
+ * draws on its rows' metadata line. Render it under your row's title, in
23448
+ * a flex parent as wide as the line. Badges such as a pull request's status then appear on your rows as they do on
23449
+ * bb's. It renders nothing when no plugin contributes an item.
23450
+ * Experimental: see docs/api_to_audit.md.
23451
+ */
23452
+ experimental_ThreadRowMetadata: ComponentType<ExperimentalThreadRowMetadataLineProps>;
23383
23453
  /**
23384
23454
  * bb's environment provider catalog (see
23385
23455
  * {@link PluginEnvironmentProvidersState}), the directory a thread's
@@ -23688,6 +23758,7 @@ declare const experimental_usePluginId: () => string;
23688
23758
  declare const experimental_useQuestionFormHost: () => ExperimentalQuestionFormHost;
23689
23759
  declare const useBbNavigate: () => BbNavigate;
23690
23760
  declare const experimental_useCanOpenFileExternally: (target: ExperimentalLiveFileTarget) => boolean;
23761
+ declare const experimental_useTabVisible: () => boolean;
23691
23762
  declare const experimental_useAppPanel: () => ExperimentalPanelController;
23692
23763
  declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
23693
23764
  declare const useComposer: () => PluginComposerApi;
@@ -23731,12 +23802,15 @@ declare const useSidebarSplitLayout: () => PluginSidebarSplitLayout | null;
23731
23802
  declare const useSidebarThreadShortcut: (threadId: string) => PluginSidebarThreadShortcut | null;
23732
23803
  declare const ThreadTitle: react.ComponentType<PluginThreadTitleProps>;
23733
23804
  declare const experimental_ThreadStatusGlyph: react.ComponentType<PluginThreadStatusGlyphProps>;
23805
+ declare const experimental_ThreadRowMetadata: react.ComponentType<ExperimentalThreadRowMetadataLineProps>;
23734
23806
  declare const useEnvironmentProviders: () => PluginEnvironmentProvidersState;
23735
23807
  declare const useSdk: () => PluginBrowserBbSdk;
23736
23808
  declare const experimental_useProviders: () => PluginProvidersState;
23737
23809
  declare const experimental_useCodeTheme: () => PluginCodeThemeState;
23738
23810
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
23739
23811
  declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
23812
+ declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
23813
+ declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
23740
23814
 
23741
- export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, 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_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_saveFile, 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_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
23742
- 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, 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, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalShortcutHintProps, 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, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, 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, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
23815
+ export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, 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_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_revokeApplicationLinkApproval, experimental_saveFile, 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_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
23816
+ 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, 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, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalShortcutHintProps, 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, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, 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, PluginThreadStatusGlyphProps, 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 * as _get_bb_plugin_sdk from '@get-bb/plugin-sdk';
9
- import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, PluginThreadHeaderActionRegistration, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
9
+ import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
10
10
  import { ComponentType } from 'react';
11
11
  import { z } from 'zod';
12
12
 
@@ -49,6 +49,16 @@ interface LegacyThreadPanelActionRegistration {
49
49
  layout?: "flush" | "padded";
50
50
  run?(context: _get_bb_plugin_sdk.ExperimentalThreadTabActionContext): void | Promise<void>;
51
51
  }
52
+ interface LegacyThreadHeaderActionProps {
53
+ threadId: string;
54
+ projectId: string;
55
+ isCompactViewport: boolean;
56
+ }
57
+ interface LegacyThreadHeaderActionRegistration {
58
+ id: string;
59
+ title: string;
60
+ component: ComponentType<LegacyThreadHeaderActionProps>;
61
+ }
52
62
  type LegacyNavPanelRegistration = PluginNavPanelRegistration & {
53
63
  fixedTabs?: readonly PluginNavPanelFixedTabRegistration[];
54
64
  };
@@ -94,9 +104,10 @@ interface CollectedPluginAppRegistrations {
94
104
  experimentalSidebarFooterItems: CollectedExperimentalSidebarFooterItem[];
95
105
  threadLists: PluginThreadListRegistration[];
96
106
  experimentalSidebarNavigations: CollectedSidebarNavigationRegistration[];
97
- threadHeaderActions: PluginThreadHeaderActionRegistration[];
107
+ threadHeaderActions: LegacyThreadHeaderActionRegistration[];
98
108
  threadContextSegments: ExperimentalThreadContextSegmentRegistration[];
99
109
  threadInfoRows: ExperimentalThreadInfoRowRegistration[];
110
+ threadRowMetadata: ExperimentalThreadRowMetadataRegistration<unknown>[];
100
111
  threadInfoSections: ExperimentalThreadInfoSectionRegistration[];
101
112
  threadActions: PluginThreadActionRegistration<unknown>[];
102
113
  browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
@@ -121,4 +132,4 @@ interface CollectedSidebarNavigationRegistration extends ExperimentalSidebarNavi
121
132
  declare function collectPluginAppRegistrations(definition: PluginAppDefinition, onWarning?: (message: string) => void): CollectedPluginAppRegistrations;
122
133
 
123
134
  export { adaptSidebarFooterAction, collectPluginAppRegistrations, getCollectedSidebarFooterItems };
124
- export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, CollectedSidebarNavigationRegistration, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot, LegacyNavPanelRegistration, LegacyThreadPanelActionRegistration };
135
+ export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, CollectedSidebarNavigationRegistration, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot, LegacyNavPanelRegistration, LegacyThreadHeaderActionRegistration, LegacyThreadPanelActionRegistration };