@get-bb/plugin-sdk 0.6.90 → 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.
@@ -62,7 +62,6 @@ declare const appSettingsSchema: z$1.ZodObject<{
62
62
  }>>;
63
63
  providerOrder: z$1.ZodArray<z$1.ZodString>;
64
64
  showDiagnosticEvents: z$1.ZodBoolean;
65
- showGitChanges: z$1.ZodBoolean;
66
65
  showKeyboardHints: z$1.ZodBoolean;
67
66
  steerActiveThreadOnEnter: z$1.ZodBoolean;
68
67
  streamerMode: z$1.ZodBoolean;
@@ -89,7 +88,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
89
88
  }>>;
90
89
  providerOrder: z$1.ZodArray<z$1.ZodString>;
91
90
  showDiagnosticEvents: z$1.ZodBoolean;
92
- showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
93
91
  showKeyboardHints: z$1.ZodBoolean;
94
92
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
95
93
  steerActiveThreadOnEnter: z$1.ZodBoolean;
@@ -114,7 +112,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
114
112
  flat: "flat";
115
113
  }>>;
116
114
  providerOrder: z$1.ZodArray<z$1.ZodString>;
117
- showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
118
115
  showKeyboardHints: z$1.ZodBoolean;
119
116
  showUnhandledProviderEvents: z$1.ZodBoolean;
120
117
  steerActiveThreadOnEnter: z$1.ZodBoolean;
@@ -233,6 +230,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
233
230
  "settings.open": "settings.open";
234
231
  "settings.openServers": "settings.openServers";
235
232
  "sidebar.toggle": "sidebar.toggle";
233
+ "terminal.find": "terminal.find";
236
234
  "terminal.open": "terminal.open";
237
235
  "thread.archive": "thread.archive";
238
236
  "thread.jump.1": "thread.jump.1";
@@ -529,6 +527,7 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
529
527
  performanceDiagnostics: "performanceDiagnostics";
530
528
  serverMove: "serverMove";
531
529
  sidebarMultiSelect: "sidebarMultiSelect";
530
+ threadRowMetadata: "threadRowMetadata";
532
531
  timelinePush: "timelinePush";
533
532
  unreadDividerAtAnswer: "unreadDividerAtAnswer";
534
533
  websocketCompression: "websocketCompression";
@@ -541,6 +540,7 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
541
540
  performanceDiagnostics: "performanceDiagnostics";
542
541
  serverMove: "serverMove";
543
542
  sidebarMultiSelect: "sidebarMultiSelect";
543
+ threadRowMetadata: "threadRowMetadata";
544
544
  timelinePush: "timelinePush";
545
545
  unreadDividerAtAnswer: "unreadDividerAtAnswer";
546
546
  websocketCompression: "websocketCompression";
@@ -10362,6 +10362,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10362
10362
  "settings.open": "settings.open";
10363
10363
  "settings.openServers": "settings.openServers";
10364
10364
  "sidebar.toggle": "sidebar.toggle";
10365
+ "terminal.find": "terminal.find";
10365
10366
  "terminal.open": "terminal.open";
10366
10367
  "thread.archive": "thread.archive";
10367
10368
  "thread.jump.1": "thread.jump.1";
@@ -10434,6 +10435,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10434
10435
  performanceDiagnostics: "performanceDiagnostics";
10435
10436
  serverMove: "serverMove";
10436
10437
  sidebarMultiSelect: "sidebarMultiSelect";
10438
+ threadRowMetadata: "threadRowMetadata";
10437
10439
  timelinePush: "timelinePush";
10438
10440
  unreadDividerAtAnswer: "unreadDividerAtAnswer";
10439
10441
  websocketCompression: "websocketCompression";
@@ -10461,7 +10463,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10461
10463
  }>>;
10462
10464
  providerOrder: z$1.ZodArray<z$1.ZodString>;
10463
10465
  showDiagnosticEvents: z$1.ZodBoolean;
10464
- showGitChanges: z$1.ZodBoolean;
10465
10466
  showKeyboardHints: z$1.ZodBoolean;
10466
10467
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
10467
10468
  steerActiveThreadOnEnter: z$1.ZodBoolean;
@@ -10532,6 +10533,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10532
10533
  "settings.open": "settings.open";
10533
10534
  "settings.openServers": "settings.openServers";
10534
10535
  "sidebar.toggle": "sidebar.toggle";
10536
+ "terminal.find": "terminal.find";
10535
10537
  "terminal.open": "terminal.open";
10536
10538
  "thread.archive": "thread.archive";
10537
10539
  "thread.jump.1": "thread.jump.1";
@@ -10630,6 +10632,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10630
10632
  "settings.open": "settings.open";
10631
10633
  "settings.openServers": "settings.openServers";
10632
10634
  "sidebar.toggle": "sidebar.toggle";
10635
+ "terminal.find": "terminal.find";
10633
10636
  "terminal.open": "terminal.open";
10634
10637
  "thread.archive": "thread.archive";
10635
10638
  "thread.jump.1": "thread.jump.1";
@@ -21628,26 +21631,6 @@ interface PluginThreadListProps {
21628
21631
  */
21629
21632
  searchQuery: string;
21630
21633
  }
21631
- /**
21632
- * Props passed to an `experimental_threadHeaderAction` component, rendered in
21633
- * the thread header's action row.
21634
- */
21635
- interface PluginThreadHeaderActionProps {
21636
- /**
21637
- * The thread this header belongs to. Never null: the slot is not rendered
21638
- * on the compose screen or other non-thread routes. A split layout renders
21639
- * one header per pane, so the component mounts once per visible thread,
21640
- * each with its own id — keep per-thread state in the component, never in a
21641
- * module-level singleton.
21642
- */
21643
- threadId: string;
21644
- projectId: string;
21645
- /**
21646
- * True on phone-width viewports and coarse pointers. Collapse to an
21647
- * icon-sized control when it is true — the row is short.
21648
- */
21649
- isCompactViewport: boolean;
21650
- }
21651
21634
  /** JavaScript world a Browser page expression runs in. */
21652
21635
  type ExperimentalPluginBrowserPageWorld = "isolated" | "main";
21653
21636
  interface ExperimentalPluginBrowserPageEvaluateOptions {
@@ -22676,27 +22659,61 @@ interface PluginSidebarThreadShortcut {
22676
22659
  ariaKeyshortcuts: string;
22677
22660
  }
22678
22661
  /**
22679
- * Render a plugin component in the thread header's action row.
22680
- *
22681
- * The frontend sibling of the backend `bb.ui.registerThreadAction`, which
22682
- * renders a host-owned button and runs server-side. Use that one for "do a
22683
- * thing"; use this one when the control must draw live state.
22684
- *
22685
- * The host places it at the left end of the action row, before the workspace
22686
- * button, git actions, the panel toggle, maximize, and close. That row is a
22687
- * 48px chrome row with 28px controls: render one inline control that fits, and
22688
- * put anything taller in a portalled popover.
22662
+ * Props passed to an `experimental_threadRowMetadata` component, rendered on a
22663
+ * thread's row in a thread list: bb's sidebar and any list that draws
22664
+ * {@link PluginSdkApp.experimental_ThreadRowMetadata}.
22689
22665
  */
22690
- interface PluginThreadHeaderActionRegistration {
22666
+ interface ExperimentalThreadRowMetadataProps<Data = undefined> {
22667
+ /** The row's thread, the same value the list renders. */
22668
+ thread: PluginSidebarThread;
22669
+ /** What `useData` last returned; undefined when the registration has none. */
22670
+ data: Data;
22671
+ }
22672
+ /** What a row metadata registration's `useData` receives. */
22673
+ interface ExperimentalThreadRowMetadataDataInput {
22674
+ /**
22675
+ * Every thread a list may draw a metadata line for: bb's active sidebar
22676
+ * threads in sidebar order, then any other thread whose line is mounted
22677
+ * (such as an archived row), deduplicated. Threads whose rows are not
22678
+ * rendered, like a windowed list's rows off screen, are included: load
22679
+ * them all in one batch so a row has its data, and its final height, when
22680
+ * it renders.
22681
+ */
22682
+ threads: readonly PluginSidebarThread[];
22683
+ }
22684
+ /**
22685
+ * A small item on a thread row's metadata line, under the title: a badge, not
22686
+ * a control. Items share one line, left to right, and the line clips at the
22687
+ * row's edge. bb's sidebar draws the line only while the `threadRowMetadata`
22688
+ * experiment is on and the user turns on Organize → Rows → Metadata, and only
22689
+ * on rows where an item shows something.
22690
+ * Load the line's data in `useData`, a React hook bb calls once for the
22691
+ * whole app while any list draws a metadata line, never per row; it
22692
+ * receives every thread a list may show, so read them in one batch (for
22693
+ * example one `experimental_useRpcKeyedQuery` over their keys). The
22694
+ * component is then a pure render of its thread and `data`; with `useData`
22695
+ * it first renders once `useData` has returned. A row that renders already
22696
+ * has its data, so rows keep their height as they scroll into view.
22697
+ * It hides the line while the row is renamed or customized and keeps it
22698
+ * visible on hover. Render null to show nothing for a thread. Keep
22699
+ * it to an icon and a few characters with a tooltip; clicks on it open the
22700
+ * thread like the rest of the row. A crash removes only this item for that
22701
+ * row.
22702
+ */
22703
+ interface ExperimentalThreadRowMetadataRegistration<Data = undefined> {
22691
22704
  /** Unique within the plugin; letters, digits, `-`, `_`. */
22692
22705
  id: string;
22693
22706
  /**
22694
- * Names the region the host wraps around your component (a labelled group).
22695
- * It does NOT label your control: an icon-only button still needs its own
22696
- * accessible name.
22707
+ * Items sort by `order` (unset sorts last), then registration order. The
22708
+ * first item starts the line.
22697
22709
  */
22698
- title: string;
22699
- component: ComponentType<PluginThreadHeaderActionProps>;
22710
+ order?: number;
22711
+ useData?(input: ExperimentalThreadRowMetadataDataInput): Data;
22712
+ component: ComponentType<ExperimentalThreadRowMetadataProps<Data>>;
22713
+ }
22714
+ /** Props for {@link PluginSdkApp.experimental_ThreadRowMetadata}. */
22715
+ interface ExperimentalThreadRowMetadataLineProps {
22716
+ thread: PluginSidebarThread;
22700
22717
  }
22701
22718
  /**
22702
22719
  * Props passed to an `experimental_threadInfoRow` or
@@ -22734,8 +22751,7 @@ interface ExperimentalThreadContextSegmentInput {
22734
22751
  projectId: string;
22735
22752
  /**
22736
22753
  * The thread's environment, or null when the thread has no environment,
22737
- * its host is not active, the environment is not a usable checkout, or the
22738
- * user turned off "Show Git changes and Commit button".
22754
+ * its host is not active, or the environment is not a usable checkout.
22739
22755
  */
22740
22756
  environment: ExperimentalThreadEnvironment | null;
22741
22757
  }
@@ -22963,7 +22979,8 @@ interface PluginThreadActionDataInput {
22963
22979
  /**
22964
22980
  * Every thread a visible surface currently shows actions for (sidebar rows
22965
22981
  * on screen, the open thread's header, open menus); a hidden sidebar
22966
- * contributes none. Sorted, deduplicated, and published once the set has
22982
+ * contributes none. A `"header"` action receives only the threads whose
22983
+ * header is on screen. Sorted, deduplicated, and published once the set has
22967
22984
  * been quiet for 32 ms (at most 100 ms after the first change), so rows
22968
22985
  * that mount a frame apart arrive together. Load per-thread state for these
22969
22986
  * ids, fetching only ids not loaded yet.
@@ -23016,6 +23033,9 @@ interface PluginThreadActionBulkItemInput<Data> {
23016
23033
  * derives the action for one thread from that thread and `data`, closing over
23017
23034
  * everything `run` needs, or returns null to hide it. A throw from either
23018
23035
  * drops only this registration.
23036
+ *
23037
+ * With `placement: "header"` the action is a button in the open thread's
23038
+ * header instead (see {@link PluginThreadActionPlacement}).
23019
23039
  */
23020
23040
  interface PluginThreadActionRegistration<Data = undefined> {
23021
23041
  /** Unique within the plugin; letters, digits, `-`, `_`. */
@@ -23033,6 +23053,8 @@ interface PluginThreadActionRegistration<Data = undefined> {
23033
23053
  */
23034
23054
  group: string;
23035
23055
  order?: number;
23056
+ /** Where the action shows; defaults to `"menu"`. */
23057
+ placement?: PluginThreadActionPlacement;
23036
23058
  useData?(input: PluginThreadActionDataInput): Data;
23037
23059
  item(input: PluginThreadActionItemInput<Data>): PluginThreadAction | null;
23038
23060
  /**
@@ -23045,6 +23067,21 @@ interface PluginThreadActionRegistration<Data = undefined> {
23045
23067
  */
23046
23068
  experimental_bulkItem?(input: PluginThreadActionBulkItemInput<Data>): PluginThreadAction | null;
23047
23069
  }
23070
+ /**
23071
+ * Where a thread action shows.
23072
+ *
23073
+ * - `"menu"`: every thread actions menu and the quick-action picker.
23074
+ * - `"header"`: only the open thread's header, as an outline button labelled
23075
+ * with the action's `label`, after the workspace's Open button. Several
23076
+ * header actions share one split button, the first as its main action. At
23077
+ * compact width and in narrow split panes the buttons fold into the
23078
+ * header's thread menu as rows at its top, after Open. `group` and `order`
23079
+ * sort header actions among themselves. Header actions never appear in
23080
+ * other menus, selection menus, `experimental_useThreadActions`, or the
23081
+ * quick-action picker, and an action that returns `choices` is left out
23082
+ * of the header.
23083
+ */
23084
+ type PluginThreadActionPlacement = "header" | "menu";
23048
23085
  /**
23049
23086
  * A thread action as {@link PluginSdkApp.experimental_useThreadActions}
23050
23087
  * returns it: `run` is bound to the caller's `requestRename` (or bb's rename
@@ -24342,18 +24379,19 @@ interface PluginAppSlots {
24342
24379
  * docs/api_to_audit.md.
24343
24380
  */
24344
24381
  experimental_sidebarNavigation(registration: ExperimentalSidebarNavigationRegistration): void;
24345
- /**
24346
- * Render a component in the thread header's action row (see
24347
- * {@link PluginThreadHeaderActionRegistration}). Experimental: see
24348
- * docs/api_to_audit.md.
24349
- */
24350
- experimental_threadHeaderAction(registration: PluginThreadHeaderActionRegistration): void;
24351
24382
  /**
24352
24383
  * Add context beside an existing thread's composer (see
24353
24384
  * {@link ExperimentalThreadContextSegmentRegistration}). Experimental: see
24354
24385
  * docs/api_to_audit.md.
24355
24386
  */
24356
24387
  experimental_threadContextSegment(registration: ExperimentalThreadContextSegmentRegistration): void;
24388
+ /**
24389
+ * Add a small item to the metadata line of every thread row in thread
24390
+ * lists (see
24391
+ * {@link ExperimentalThreadRowMetadataRegistration}). Experimental: see
24392
+ * docs/api_to_audit.md.
24393
+ */
24394
+ experimental_threadRowMetadata<Data = undefined>(registration: ExperimentalThreadRowMetadataRegistration<Data>): void;
24357
24395
  /**
24358
24396
  * Add a row to the thread Info tab's details block (see
24359
24397
  * {@link ExperimentalThreadInfoRowRegistration}). Experimental: see
@@ -25591,7 +25629,7 @@ interface ExperimentalRpcQueryState<T> {
25591
25629
  isLoading: boolean;
25592
25630
  /** A read attempt is active, including background refreshes. Keyed consumers share this activity for their method; offline-paused reads are not fetching. */
25593
25631
  isFetching: boolean;
25594
- /** 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. */
25632
+ /** 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. */
25595
25633
  refetch(): Promise<void>;
25596
25634
  }
25597
25635
  interface ExperimentalRpcKeyedQueryState<T, Selection = Record<string, T>> extends ExperimentalRpcQueryState<Selection> {
@@ -25663,7 +25701,7 @@ interface PluginSdkApp {
25663
25701
  experimental_useRpcQuery<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>): ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
25664
25702
  /** Call a mutating RPC through BB's query client; pending until the server acknowledges the write; matched reads refresh in the background. */
25665
25703
  experimental_useRpcMutation<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcMutationOptions<Contract, Method>): ExperimentalRpcMutationState<Contract[Method]>;
25666
- /** Cache each key independently and batch missing or invalidated keys in the same render. */
25704
+ /** 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. */
25667
25705
  experimental_useRpcKeyedQuery<Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
25668
25706
  contract: Contract;
25669
25707
  pluginId?: string;
@@ -25785,7 +25823,7 @@ interface PluginSdkApp {
25785
25823
  */
25786
25824
  experimental_useArchiveEnvironmentThreads(): (environmentId: string) => Promise<void>;
25787
25825
  /**
25788
- * Every thread action for one thread, in menu order (see
25826
+ * Every `"menu"` thread action for one thread, in menu order (see
25789
25827
  * {@link PluginThreadAction} for grouping): bb's own registrations first,
25790
25828
  * then plugins' in registration order. Registrations' `useData` hooks run
25791
25829
  * once for the app, so calling this per sidebar row costs one store
@@ -25794,8 +25832,9 @@ interface PluginSdkApp {
25794
25832
  */
25795
25833
  experimental_useThreadActions(thread: PluginThreadActionTarget, options?: PluginThreadActionsOptions): readonly PluginThreadActionEntry[];
25796
25834
  /**
25797
- * Every registered thread action with its static title and icon, in menu
25798
- * order and independent of any thread: what a quick-action picker lists.
25835
+ * Every registered `"menu"` thread action with its static title and icon,
25836
+ * in menu order and independent of any thread: what a quick-action picker
25837
+ * lists.
25799
25838
  * Experimental: see docs/api_to_audit.md.
25800
25839
  */
25801
25840
  experimental_useThreadActionRegistrations(): readonly PluginThreadActionRegistrationInfo[];
@@ -25939,6 +25978,15 @@ interface PluginSdkApp {
25939
25978
  * Experimental: see docs/api_to_audit.md.
25940
25979
  */
25941
25980
  experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
25981
+ /**
25982
+ * Every `experimental_threadRowMetadata` contribution for one thread row (see
25983
+ * {@link ExperimentalThreadRowMetadataRegistration}), the items bb's sidebar
25984
+ * draws on its rows' metadata line. Render it under your row's title, in
25985
+ * 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
25986
+ * bb's. It renders nothing when no plugin contributes an item.
25987
+ * Experimental: see docs/api_to_audit.md.
25988
+ */
25989
+ experimental_ThreadRowMetadata: ComponentType<ExperimentalThreadRowMetadataLineProps>;
25942
25990
  /**
25943
25991
  * bb's environment provider catalog (see
25944
25992
  * {@link PluginEnvironmentProvidersState}), the directory a thread's
@@ -26437,4 +26485,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
26437
26485
  };
26438
26486
 
26439
26487
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry };
26440
- export type { BbContext, BbNavigate, BbPluginApi, 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, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, 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, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
26488
+ export type { BbContext, BbNavigate, BbPluginApi, 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, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, 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, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
package/dist/app.js CHANGED
@@ -336,6 +336,9 @@ var ThreadTitle = runtimeComponent("ThreadTitle");
336
336
  var experimental_ThreadStatusGlyph = runtimeComponent(
337
337
  "experimental_ThreadStatusGlyph"
338
338
  );
339
+ var experimental_ThreadRowMetadata = runtimeComponent(
340
+ "experimental_ThreadRowMetadata"
341
+ );
339
342
  var useEnvironmentProviders = runtimeFunction(
340
343
  "useEnvironmentProviders"
341
344
  );
@@ -389,6 +392,7 @@ export {
389
392
  experimental_THREAD_INFO_SECTION_GROUPS,
390
393
  experimental_ThreadActionsContextMenu,
391
394
  experimental_ThreadActionsMenu,
395
+ experimental_ThreadRowMetadata,
392
396
  experimental_ThreadStatusGlyph,
393
397
  experimental_ThreadTitleText,
394
398
  experimental_VoiceInputButton,
package/dist/host.js CHANGED
@@ -906,6 +906,97 @@ function whichCommandSync(command, options = {}) {
906
906
  return void 0;
907
907
  }
908
908
 
909
+ // ../process-utils/src/node-network.ts
910
+ var NODE_NETWORK_FLAGS = {
911
+ "--use-system-ca": "NODE_USE_SYSTEM_CA",
912
+ "--use-env-proxy": "NODE_USE_ENV_PROXY"
913
+ };
914
+ var ENV_PROXY_FLAG = "--use-env-proxy";
915
+ var PROXY_KEYS = /* @__PURE__ */ new Set(["HTTP_PROXY", "HTTPS_PROXY"]);
916
+ var NO_PROXY_KEY = "NO_PROXY";
917
+ var LOOPBACK_HOSTS = ["localhost", "127.0.0.1", "::1", "[::1]"];
918
+ function isNodeNetworkFlag(arg) {
919
+ return Object.hasOwn(NODE_NETWORK_FLAGS, arg);
920
+ }
921
+ function isHttpProxyUrl(value) {
922
+ if (/[\r\n]/u.test(value)) return false;
923
+ try {
924
+ const url = new URL(value);
925
+ return (url.protocol === "http:" || url.protocol === "https:") && url.hostname !== "";
926
+ } catch {
927
+ return false;
928
+ }
929
+ }
930
+ function proxyEntries(env) {
931
+ return Object.entries(env).filter(
932
+ (entry) => PROXY_KEYS.has(entry[0].toUpperCase()) && entry[1] !== void 0 && entry[1] !== ""
933
+ );
934
+ }
935
+ function appendLoopback(value) {
936
+ const entries = value.split(/[\s,]+/u).filter(Boolean);
937
+ if (entries.includes("*")) return value;
938
+ const present = new Set(entries.map((entry) => entry.toLowerCase()));
939
+ return [
940
+ ...entries,
941
+ ...LOOPBACK_HOSTS.filter((host) => !present.has(host))
942
+ ].join(",");
943
+ }
944
+ function withLoopbackNoProxy(env) {
945
+ const result = { ...env };
946
+ const keys = Object.keys(result).filter(
947
+ (key) => key.toUpperCase() === NO_PROXY_KEY && result[key] !== void 0
948
+ );
949
+ for (const key of keys.length > 0 ? keys : [NO_PROXY_KEY])
950
+ result[key] = appendLoopback(result[key] ?? "");
951
+ return result;
952
+ }
953
+ function nodeNetworkLaunch(nodeArgs, env) {
954
+ const enabled = nodeArgs.filter(
955
+ (arg) => !isNodeNetworkFlag(arg) || env[NODE_NETWORK_FLAGS[arg]] !== "0"
956
+ );
957
+ if (!enabled.includes(ENV_PROXY_FLAG))
958
+ return { nodeArgs: enabled, env, rejectedProxyKeys: [] };
959
+ const proxies = proxyEntries(env);
960
+ const rejectedProxyKeys = proxies.filter(([, value]) => !isHttpProxyUrl(value)).map(([key]) => key);
961
+ if (rejectedProxyKeys.length > 0)
962
+ return {
963
+ nodeArgs: enabled.filter((arg) => arg !== ENV_PROXY_FLAG),
964
+ env,
965
+ rejectedProxyKeys
966
+ };
967
+ return {
968
+ nodeArgs: enabled,
969
+ env: proxies.length > 0 ? withLoopbackNoProxy(env) : env,
970
+ rejectedProxyKeys: []
971
+ };
972
+ }
973
+ var warnedProxyKeys = /* @__PURE__ */ new Set();
974
+ function prepareNodeNetworkLaunch(nodeArgs, env) {
975
+ const launch = nodeNetworkLaunch(nodeArgs, env);
976
+ const unwarned = launch.rejectedProxyKeys.filter(
977
+ (key) => !warnedProxyKeys.has(key)
978
+ );
979
+ if (unwarned.length > 0) {
980
+ for (const key of unwarned) warnedProxyKeys.add(key);
981
+ process.emitWarning(
982
+ `bb started a Node process without --use-env-proxy because ${unwarned.join(", ")} is not an http:// or https:// URL. Add the scheme, for example http://proxy.example:3128, so bb uses the proxy.`,
983
+ { code: "BB_INVALID_PROXY_ENV" }
984
+ );
985
+ }
986
+ return { nodeArgs: launch.nodeArgs, env: launch.env };
987
+ }
988
+ function prepareNodeNetworkCommand(args, env) {
989
+ const scriptIndex = args.findIndex(
990
+ (arg) => arg === "--" || !arg.startsWith("-")
991
+ );
992
+ const optionCount = scriptIndex < 0 ? args.length : scriptIndex;
993
+ const launch = prepareNodeNetworkLaunch(args.slice(0, optionCount), env);
994
+ return {
995
+ args: [...launch.nodeArgs, ...args.slice(optionCount)],
996
+ env: launch.env
997
+ };
998
+ }
999
+
909
1000
  // ../process-utils/src/host-toolchain.ts
910
1001
  var NETWORK_KEYS = [
911
1002
  "HTTP_PROXY",
@@ -1266,7 +1357,8 @@ var HostToolchain = class {
1266
1357
  if (/(?:^|[\\/])(?:npm|npx)-cli\.js$/u.test(args[0] ?? "")) {
1267
1358
  env.PATH = mergePath(dirname(file), env.PATH);
1268
1359
  }
1269
- return { command: file, args: [...args], env };
1360
+ const network = prepareNodeNetworkCommand(args, env);
1361
+ return { command: file, args: network.args, env: network.env };
1270
1362
  }
1271
1363
  };
1272
1364
  var toolchainKey = /* @__PURE__ */ Symbol.for("@bb/process-utils/host-toolchain");
@@ -501,6 +501,7 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
501
501
  threadHeaderActions: [],
502
502
  threadContextSegments: [],
503
503
  threadInfoRows: [],
504
+ threadRowMetadata: [],
504
505
  threadInfoSections: [],
505
506
  threadActions: [],
506
507
  browserToolbarActions: [],
@@ -537,6 +538,7 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
537
538
  threadHeaderAction: /* @__PURE__ */ new Set(),
538
539
  threadContextSegment: /* @__PURE__ */ new Set(),
539
540
  threadInfoRow: /* @__PURE__ */ new Set(),
541
+ threadRowMetadata: /* @__PURE__ */ new Set(),
540
542
  threadInfoSection: /* @__PURE__ */ new Set(),
541
543
  threadAction: /* @__PURE__ */ new Set(),
542
544
  browserToolbarAction: /* @__PURE__ */ new Set(),
@@ -657,6 +659,16 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
657
659
  onWarning(`Legacy threadPanelAction ignored: ${String(error)}`);
658
660
  }
659
661
  },
662
+ experimental_threadHeaderAction(registration) {
663
+ const kind = "slots.experimental_threadHeaderAction";
664
+ const id = requireSlotId(kind, registration?.id);
665
+ requireUniqueId(kind, seenIds.threadHeaderAction, id);
666
+ collected.threadHeaderActions.push({
667
+ id,
668
+ title: requireNonEmptyString(kind, "title", registration.title),
669
+ component: requireComponent(kind, registration.component)
670
+ });
671
+ },
660
672
  experimental_sidebarHeader(registration) {
661
673
  legacySidebarHeaders.push(
662
674
  collectTitledComponent(
@@ -862,16 +874,6 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
862
874
  ...headerComponent !== void 0 ? { headerComponent } : {}
863
875
  });
864
876
  },
865
- experimental_threadHeaderAction(registration) {
866
- const kind = "slots.experimental_threadHeaderAction";
867
- const id = requireSlotId(kind, registration?.id);
868
- requireUniqueId(kind, seenIds.threadHeaderAction, id);
869
- collected.threadHeaderActions.push({
870
- id,
871
- title: requireNonEmptyString(kind, "title", registration.title),
872
- component: requireComponent(kind, registration.component)
873
- });
874
- },
875
877
  experimental_threadContextSegment(registration) {
876
878
  const kind = "slots.experimental_threadContextSegment";
877
879
  const id = requireSlotId(kind, registration?.id);
@@ -905,6 +907,19 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
905
907
  ...registration.useVisible !== void 0 ? { useVisible: registration.useVisible } : {}
906
908
  });
907
909
  },
910
+ experimental_threadRowMetadata(registration) {
911
+ const kind = "slots.experimental_threadRowMetadata";
912
+ const id = requireSlotId(kind, registration?.id);
913
+ requireUniqueId(kind, seenIds.threadRowMetadata, id);
914
+ if (registration.useData !== void 0 && typeof registration.useData !== "function")
915
+ throw new Error(`${kind}: "useData" must be a function`);
916
+ collected.threadRowMetadata.push({
917
+ id,
918
+ ...requireOptionalOrder(kind, registration.order),
919
+ ...registration.useData !== void 0 ? { useData: registration.useData } : {},
920
+ component: requireComponent(kind, registration.component)
921
+ });
922
+ },
908
923
  experimental_threadInfoRow(registration) {
909
924
  const kind = "slots.experimental_threadInfoRow";
910
925
  const id = requireSlotId(kind, registration?.id);
@@ -942,12 +957,16 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
942
957
  `${kind}: "experimental_bulkItem" must be a function`
943
958
  );
944
959
  }
960
+ if (registration.placement !== void 0 && registration.placement !== "menu" && registration.placement !== "header") {
961
+ throw new Error(`${kind}: "placement" must be "menu" or "header"`);
962
+ }
945
963
  collected.threadActions.push({
946
964
  id,
947
965
  title: requireNonEmptyString(kind, "title", registration.title),
948
966
  icon: requireNonEmptyString(kind, "icon", registration.icon),
949
967
  group: requireNonEmptyString(kind, "group", registration.group),
950
968
  ...requireOptionalOrder(kind, registration.order),
969
+ ...registration.placement !== void 0 ? { placement: registration.placement } : {},
951
970
  ...registration.useData !== void 0 ? { useData: registration.useData } : {},
952
971
  item: registration.item,
953
972
  ...registration.experimental_bulkItem !== void 0 ? {