@get-bb/plugin-sdk 0.6.52 → 0.6.54

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.
@@ -170,7 +170,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
170
170
  }, z$1.core.$strict>]>;
171
171
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
172
172
 
173
- declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.threadListProvider", "infoPanel.collapsedSections"];
173
+ declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "infoPanel.collapsedSections"];
174
174
  type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
175
175
  interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
176
176
  schema: Schema;
@@ -203,6 +203,7 @@ declare const uiPreferenceDefinitions: {
203
203
  readonly "sidebar.hiddenFooterItems": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
204
204
  readonly "sidebar.pluginPanelOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
205
205
  readonly "sidebar.visiblePluginPanels": UiPreferenceDefinition<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>>;
206
+ readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
206
207
  readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
207
208
  readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
208
209
  };
@@ -1328,6 +1329,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1328
1329
  description: z$1.ZodString;
1329
1330
  error: z$1.ZodOptional<z$1.ZodString>;
1330
1331
  familyId: z$1.ZodOptional<z$1.ZodString>;
1332
+ foreground: z$1.ZodBoolean;
1331
1333
  id: z$1.ZodString;
1332
1334
  outputFile: z$1.ZodOptional<z$1.ZodString>;
1333
1335
  parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
@@ -2093,6 +2095,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2093
2095
  description: z$1.ZodString;
2094
2096
  error: z$1.ZodOptional<z$1.ZodString>;
2095
2097
  familyId: z$1.ZodOptional<z$1.ZodString>;
2098
+ foreground: z$1.ZodBoolean;
2096
2099
  id: z$1.ZodString;
2097
2100
  outputFile: z$1.ZodOptional<z$1.ZodString>;
2098
2101
  parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
@@ -2324,6 +2327,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2324
2327
  description: z$1.ZodString;
2325
2328
  error: z$1.ZodOptional<z$1.ZodString>;
2326
2329
  familyId: z$1.ZodOptional<z$1.ZodString>;
2330
+ foreground: z$1.ZodBoolean;
2327
2331
  id: z$1.ZodString;
2328
2332
  outputFile: z$1.ZodOptional<z$1.ZodString>;
2329
2333
  parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
@@ -2422,6 +2426,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2422
2426
  description: z$1.ZodString;
2423
2427
  error: z$1.ZodOptional<z$1.ZodString>;
2424
2428
  familyId: z$1.ZodOptional<z$1.ZodString>;
2429
+ foreground: z$1.ZodBoolean;
2425
2430
  id: z$1.ZodString;
2426
2431
  outputFile: z$1.ZodOptional<z$1.ZodString>;
2427
2432
  parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
@@ -7388,6 +7393,7 @@ declare const hostDaemonCommandRegistry: {
7388
7393
  }, z$1.core.$strict>], "operation">, z$1.ZodObject<{}, z$1.core.$strict>, "settled", false>;
7389
7394
  "host.list_files": HostDaemonCommandDescriptor<"host.list_files", z$1.ZodObject<{
7390
7395
  excludeNames: z$1.ZodArray<z$1.ZodString>;
7396
+ followRootSymlink: z$1.ZodBoolean;
7391
7397
  includeHidden: z$1.ZodBoolean;
7392
7398
  limit: z$1.ZodNumber;
7393
7399
  path: z$1.ZodString;
@@ -7462,6 +7468,7 @@ declare const hostDaemonCommandRegistry: {
7462
7468
  path: z$1.ZodString;
7463
7469
  }, z$1.core.$strip>>;
7464
7470
  parent: z$1.ZodNullable<z$1.ZodString>;
7471
+ roots: z$1.ZodArray<z$1.ZodString>;
7465
7472
  }, z$1.core.$strip>, "onlineRpc", true>;
7466
7473
  "host.paths_exist": HostDaemonCommandDescriptor<"host.paths_exist", z$1.ZodObject<{
7467
7474
  paths: z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>;
@@ -8011,6 +8018,7 @@ declare const hostDaemonCommandRegistry: {
8011
8018
  allow: "allow";
8012
8019
  deny: "deny";
8013
8020
  }>;
8021
+ followRootSymlink: z$1.ZodBoolean;
8014
8022
  path: z$1.ZodString;
8015
8023
  rootPath: z$1.ZodString;
8016
8024
  type: z$1.ZodLiteral<"host.read_file_relative">;
@@ -9157,6 +9165,7 @@ declare const hostDirectoryListingSchema: z$1.ZodObject<{
9157
9165
  path: z$1.ZodString;
9158
9166
  }, z$1.core.$strip>>;
9159
9167
  parent: z$1.ZodNullable<z$1.ZodString>;
9168
+ roots: z$1.ZodArray<z$1.ZodString>;
9160
9169
  }, z$1.core.$strip>;
9161
9170
  type HostDirectoryListing = z$1.infer<typeof hostDirectoryListingSchema>;
9162
9171
  declare const hostDiscoveredReposResponseSchema: z$1.ZodObject<{
@@ -18629,6 +18638,222 @@ interface ExperimentalSidebarFooterDisclosureProps {
18629
18638
  /** Hide this disclosure without affecting another plugin's open disclosure. */
18630
18639
  dismiss(): void;
18631
18640
  }
18641
+ /** Display and accessibility metadata for a host-owned sidebar shortcut. */
18642
+ interface ExperimentalSidebarNavigationShortcut {
18643
+ label: string;
18644
+ ariaKeyShortcuts: string;
18645
+ }
18646
+ /** Host-owned behavior represented by one sidebar navigation item. */
18647
+ type ExperimentalSidebarNavigationAction = {
18648
+ kind: "new-thread";
18649
+ } | {
18650
+ kind: "search-threads";
18651
+ } | {
18652
+ kind: "open-extensions";
18653
+ } | {
18654
+ kind: "open-skills";
18655
+ } | {
18656
+ kind: "open-plugin-panel";
18657
+ pluginId: string;
18658
+ panelId: string;
18659
+ };
18660
+ /**
18661
+ * Semantic icon identity for one sidebar navigation item. Render it with
18662
+ * {@link PluginSdkApp.experimental_SidebarNavigationIcon} to match bb's
18663
+ * artwork, including panel icons with plugin branding as their fallback.
18664
+ */
18665
+ type ExperimentalSidebarNavigationIcon = {
18666
+ kind: "host";
18667
+ name: "extensions" | "new-thread" | "search" | "skills";
18668
+ } | {
18669
+ kind: "plugin";
18670
+ pluginId: string;
18671
+ icon: string | null;
18672
+ };
18673
+ /** One host-owned destination or action a navigation provider arranges. */
18674
+ interface ExperimentalSidebarNavigationItem {
18675
+ /**
18676
+ * Arrangement key, stable across reloads: `__bb__/new-thread`,
18677
+ * `__bb__/search-threads`, `__bb__/extensions`, `__bb__/skills`,
18678
+ * `__bb__/automations`, or `<pluginId>/<panelId>`. The same keys appear in
18679
+ * the `sidebar.pluginPanelOrder` and `sidebar.visiblePluginPanels`
18680
+ * settings.
18681
+ */
18682
+ id: string;
18683
+ label: string;
18684
+ icon: ExperimentalSidebarNavigationIcon;
18685
+ action: ExperimentalSidebarNavigationAction;
18686
+ isDisabled: boolean;
18687
+ /**
18688
+ * False when the user hid the item. Draw hidden items in an overflow menu
18689
+ * rather than dropping them, so they stay reachable. New thread is always
18690
+ * visible.
18691
+ */
18692
+ isVisible: boolean;
18693
+ /**
18694
+ * A plugin panel remembered from the last session whose bundle has not
18695
+ * registered yet. Activating it does nothing until it loads.
18696
+ */
18697
+ isLoading: boolean;
18698
+ /**
18699
+ * The plugin that contributed this panel; null for bb's own items. Gates
18700
+ * `openDetails` and `disablePlugin`.
18701
+ */
18702
+ pluginId: string | null;
18703
+ shortcut: ExperimentalSidebarNavigationShortcut | null;
18704
+ /**
18705
+ * The panel's current {@link PluginNavPanelRegistration.experimental_useBadge}
18706
+ * value, or null. Add `label` to the item's accessible name when you draw
18707
+ * it.
18708
+ */
18709
+ badge: ExperimentalBadge | null;
18710
+ }
18711
+ /** How the host should activate a sidebar navigation item. */
18712
+ interface ExperimentalSidebarNavigationActivationOptions {
18713
+ openInSplit: boolean;
18714
+ }
18715
+ /**
18716
+ * Host behavior for sidebar navigation items (see
18717
+ * {@link ExperimentalSidebarNavigationState}). Unknown item ids are ignored.
18718
+ * Calls made after the calling component unmounts do nothing.
18719
+ */
18720
+ interface ExperimentalSidebarNavigationActions {
18721
+ /**
18722
+ * Run the item's host behavior. Plugin panels close the mobile sidebar
18723
+ * drawer; Plugins and Skills swap the list beside the navigation.
18724
+ * `openInSplit` is ignored where splits are unavailable, and disabled or
18725
+ * loading items do nothing.
18726
+ */
18727
+ activate(itemId: string, options: ExperimentalSidebarNavigationActivationOptions): void;
18728
+ /**
18729
+ * Return to the thread list and the last thread or new thread screen the
18730
+ * user had open before visiting Settings, Plugins, Skills, or a plugin
18731
+ * panel.
18732
+ */
18733
+ goHome(): void;
18734
+ /** Hide or show one item. Persists to `sidebar.visiblePluginPanels`. */
18735
+ setVisible(itemId: string, isVisible: boolean): void;
18736
+ /**
18737
+ * Save a new order. Pass item ids in the order you want; unknown ids are
18738
+ * dropped and ids you leave out keep their relative order after the ones
18739
+ * you pass. Persists to `sidebar.pluginPanelOrder`.
18740
+ */
18741
+ setOrder(itemIds: readonly string[]): void;
18742
+ /**
18743
+ * Open bb's customize editor, which reorders and hides items, beside the
18744
+ * navigation. It waits for an open menu to close and returns focus to the
18745
+ * control that opened it.
18746
+ */
18747
+ openCustomize(): void;
18748
+ /** Open the owning plugin's details. Does nothing when `pluginId` is null. */
18749
+ openDetails(itemId: string): void;
18750
+ /**
18751
+ * Disable the owning plugin, leave its panel if it is open, and show a
18752
+ * toast. Rejects after the host's error toast when disabling fails. Does
18753
+ * nothing when `pluginId` is null.
18754
+ */
18755
+ disablePlugin(itemId: string): Promise<void>;
18756
+ }
18757
+ /** What {@link PluginSdkApp.experimental_useSidebarNavigation} returns. */
18758
+ interface ExperimentalSidebarNavigationState {
18759
+ /** Every item in the user's saved order, visible and hidden. */
18760
+ items: readonly ExperimentalSidebarNavigationItem[];
18761
+ /** The item whose destination the route currently shows, or null. */
18762
+ activeItemId: string | null;
18763
+ /**
18764
+ * True on the thread list's routes: a thread, the new thread screen, or a
18765
+ * project page. Settings, Plugins, Skills, and plugin panels are not home.
18766
+ */
18767
+ isHomeActive: boolean;
18768
+ /**
18769
+ * True while the user holds the app command modifier, when bb's own
18770
+ * navigation reveals its `shortcut` labels. Show yours at the same time.
18771
+ */
18772
+ isShortcutModifierHeld: boolean;
18773
+ actions: ExperimentalSidebarNavigationActions;
18774
+ }
18775
+ /**
18776
+ * Per-item drag-to-split support (see
18777
+ * {@link PluginSdkApp.experimental_useSidebarNavigationSplit}). Same contract
18778
+ * as {@link PluginSidebarThreadSplit}.
18779
+ */
18780
+ interface ExperimentalSidebarNavigationSplit {
18781
+ /**
18782
+ * Spread onto the item's interactive element. Empty when the item cannot
18783
+ * open in a pane, so spreading it is always safe.
18784
+ */
18785
+ splitProps: {
18786
+ onPointerDown?: (event: react.PointerEvent<HTMLElement>) => void;
18787
+ };
18788
+ /**
18789
+ * False for items that cannot open in a pane (Search, Plugins, Skills), on
18790
+ * compact viewports, and when splits are unavailable.
18791
+ */
18792
+ isAvailable: boolean;
18793
+ /** Where this item's destination sits in the split layout, or null. */
18794
+ layout: {
18795
+ panes: readonly PluginSidebarSplitPane[];
18796
+ } | null;
18797
+ }
18798
+ /** Options for {@link PluginSdkApp.experimental_useSidebarNavigationSplit}. */
18799
+ interface ExperimentalSidebarNavigationSplitOptions {
18800
+ /**
18801
+ * `sidebar` (the default) engages the drag once the pointer leaves the
18802
+ * sidebar, so a row list with its own drag-to-reorder keeps working.
18803
+ * `distance` engages after a short movement in any direction; use it for
18804
+ * rows inside a menu or popover that covers the main area.
18805
+ */
18806
+ activation?: "distance" | "sidebar";
18807
+ /** Called when the drag engages, for example to close the menu the row is in. */
18808
+ onDragStart?: () => void;
18809
+ }
18810
+ /** Props for {@link PluginSdkApp.experimental_SidebarNavigationIcon}. */
18811
+ interface ExperimentalSidebarNavigationIconProps {
18812
+ icon: ExperimentalSidebarNavigationIcon;
18813
+ className?: string;
18814
+ }
18815
+ /**
18816
+ * Where a sidebar navigation provider draws (see
18817
+ * {@link ExperimentalSidebarNavigationRegistration.placement}).
18818
+ */
18819
+ type ExperimentalSidebarNavigationPlacement = "list" | "rail";
18820
+ /**
18821
+ * Props passed to an `experimental_sidebarNavigation` component. Read the
18822
+ * items and their actions with
18823
+ * {@link PluginSdkApp.experimental_useSidebarNavigation}.
18824
+ */
18825
+ interface ExperimentalSidebarNavigationProps {
18826
+ isCompactViewport: boolean;
18827
+ placement: ExperimentalSidebarNavigationPlacement;
18828
+ /**
18829
+ * Renders the bundled Navigation plugin's provider for the same placement,
18830
+ * Rail or Top list, or nothing when that plugin is disabled. Kept for
18831
+ * plugins written before `experimental_useSidebarNavigation`; render items
18832
+ * from that hook instead. Scheduled for removal.
18833
+ *
18834
+ * @deprecated
18835
+ */
18836
+ experimental_Original: ComponentType;
18837
+ }
18838
+ /**
18839
+ * Props passed to a navigation's `headerComponent`, rendered in the sidebar's
18840
+ * header row between the sidebar toggle (and the macOS window controls) and
18841
+ * bb's back and forward buttons.
18842
+ */
18843
+ interface ExperimentalSidebarHeaderProps {
18844
+ /**
18845
+ * Width in px of the space the component may use, updated when the sidebar
18846
+ * resizes or the window chrome changes. It can be smaller than
18847
+ * `controlSize` in a narrow sidebar.
18848
+ */
18849
+ width: number;
18850
+ /**
18851
+ * Width and height in px of the header's own buttons, equal to the
18852
+ * `--bb-sidebar-control-size` CSS variable. Size your controls to match.
18853
+ */
18854
+ controlSize: number;
18855
+ isCompactViewport: boolean;
18856
+ }
18632
18857
  /**
18633
18858
  * Props passed to an `experimental_threadList` component — the sidebar's
18634
18859
  * scrolling thread area, replaced wholesale by one plugin.
@@ -19032,6 +19257,41 @@ type PluginFixedTabRegistration<Target extends JsonValue$1 = never> = Experiment
19032
19257
  };
19033
19258
  /** A fixed tab with either no target or an owner-validated JSON target. */
19034
19259
  type PluginFixedTabDeclaration = PluginFixedTabRegistration | PluginFixedTabRegistration<JsonValue$1>;
19260
+ /**
19261
+ * How urgent an {@link ExperimentalBadge} is. bb picks the colors: `neutral`
19262
+ * (the default) for counts and new items, `warning` for something due or
19263
+ * degraded, and `critical` for something failing or waiting on the user.
19264
+ *
19265
+ * Experimental: see docs/api_to_audit.md.
19266
+ */
19267
+ type ExperimentalBadgeTone = "critical" | "neutral" | "warning";
19268
+ /**
19269
+ * A live value the host draws on a nav panel's navigation entry. Set at most
19270
+ * one of `count` and `text`; with neither, bb draws a dot.
19271
+ *
19272
+ * Experimental: see docs/api_to_audit.md.
19273
+ */
19274
+ interface ExperimentalBadge {
19275
+ /**
19276
+ * Positive integer drawn on the entry, shown as `9+` above 9 on the rail and
19277
+ * `99+` above 99 in lists.
19278
+ */
19279
+ count?: number;
19280
+ /**
19281
+ * A short visible value, at most 8 characters, such as "NEW", "73%", or
19282
+ * "3/5". Lists draw it; the icon-only rail draws a dot and puts `label` in
19283
+ * the tooltip.
19284
+ */
19285
+ text?: string;
19286
+ /** Defaults to `neutral`. */
19287
+ tone?: ExperimentalBadgeTone;
19288
+ /**
19289
+ * Text for the destination's tooltip and accessible name, such as
19290
+ * "3 open tasks". Required because the drawn badge is hidden from assistive
19291
+ * technology.
19292
+ */
19293
+ label: string;
19294
+ }
19035
19295
  interface PluginNavPanelRegistration {
19036
19296
  /** Unique within the plugin; letters, digits, `-`, `_`. */
19037
19297
  id: string;
@@ -19053,16 +19313,19 @@ interface PluginNavPanelRegistration {
19053
19313
  */
19054
19314
  fixedTabs?: readonly PluginFixedTabDeclaration[];
19055
19315
  /**
19056
- * Optional presentational component for a narrow live value next to this
19057
- * panel's entry in the sidebar. It receives no props so it can own that
19058
- * value through the ordinary SDK hooks without coupling its state to the
19059
- * host sidebar. The host still validates it, but no host surface currently
19060
- * mounts it. Keep it to a small, single-line box; do not render controls or
19061
- * rely on unbounded content here.
19316
+ * Optional React hook that returns this panel's navigation badge, or `null`
19317
+ * for none. The host calls it once in your plugin's scope for every
19318
+ * registered panel, including ones hidden under More, so it can own an RPC
19319
+ * query and realtime subscription through the ordinary SDK hooks. The value
19320
+ * reaches every navigation provider as the item's `badge`; bb's draw a
19321
+ * count or a dot on the entry, a dot on More while the panel is hidden
19322
+ * there, and `label` in the tooltip and accessible name. A hook that throws
19323
+ * or returns an invalid badge is treated as a crashed slot and shows no
19324
+ * badge.
19062
19325
  *
19063
19326
  * Experimental: see docs/api_to_audit.md.
19064
19327
  */
19065
- experimental_sidebarAccessory?: ComponentType;
19328
+ experimental_useBadge?: () => ExperimentalBadge | null;
19066
19329
  /**
19067
19330
  * Optional component rendered on the right side of the shared title bar
19068
19331
  * (e.g. a sync button or a count). Contained separately from the body: a
@@ -20018,6 +20281,50 @@ interface PluginThreadListRegistration {
20018
20281
  description?: string;
20019
20282
  component: ComponentType<PluginThreadListProps>;
20020
20283
  }
20284
+ /**
20285
+ * Draw the sidebar's navigation: New thread, Plugins, Skills, Automations,
20286
+ * plugin panels, and More, plus optional controls in the sidebar header.
20287
+ * Exclusive: bb's bundled Navigation plugin registers Rail
20288
+ * (`navigation/rail`, the default) and Top list (`navigation/top-list`)
20289
+ * through this slot. By default the first provider from another plugin is
20290
+ * active, falling back to Rail; the user can pin one provider under Settings →
20291
+ * Appearance → Navigation. A pinned provider that is disabled or removed falls
20292
+ * back the same way, and a crashing provider is replaced by the Navigation
20293
+ * plugin's provider for the same placement.
20294
+ *
20295
+ * `placement` decides the layout around the component, so bb can lay out the
20296
+ * sidebar before the plugin loads:
20297
+ *
20298
+ * - `rail`: a fixed-width column on the sidebar's left edge that stays when
20299
+ * the sidebar collapses. bb draws Settings at the bottom of the column;
20300
+ * draw Home with `actions.goHome()`. On macOS, wide windows frame the
20301
+ * sidebar and page below a title bar.
20302
+ * - `list` (the default): the area above the thread list. Settings is a
20303
+ * footer action, the Settings, Plugins, and Skills lists start with a Back
20304
+ * to app row, and collapsing hides the whole sidebar.
20305
+ *
20306
+ * Draw New thread yourself, in `component` or `headerComponent`. bb's Rail
20307
+ * puts it in its header; Top list draws it as a row.
20308
+ */
20309
+ interface ExperimentalSidebarNavigationRegistration {
20310
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
20311
+ id: string;
20312
+ /** Label shown in Settings → Appearance and capability details. */
20313
+ title: string;
20314
+ /** Optional one-line description shown with the provider choice. */
20315
+ description?: string;
20316
+ placement?: ExperimentalSidebarNavigationPlacement;
20317
+ component: ComponentType<ExperimentalSidebarNavigationProps>;
20318
+ /**
20319
+ * Rendered in the sidebar's header row while this navigation is active,
20320
+ * between the sidebar toggle and bb's back and forward buttons. Content is
20321
+ * clipped to the row, so it cannot move the thread list or bb's controls.
20322
+ * On macOS the empty space keeps dragging the window; buttons, links, and
20323
+ * inputs do not. A crashing header is replaced by the header of the
20324
+ * bundled Navigation plugin's provider for the same placement.
20325
+ */
20326
+ headerComponent?: ComponentType<ExperimentalSidebarHeaderProps>;
20327
+ }
20021
20328
  /**
20022
20329
  * Register this plugin as a viewer/editor for file extensions. By default,
20023
20330
  * matching files render the first applicable opener in deterministic slot
@@ -20042,8 +20349,9 @@ interface PluginFileOpenerRegistration {
20042
20349
  * text — the native file preview and every plugin that calls
20043
20350
  * `experimental_SourceCode`. Like `experimental_threadList` this slot is
20044
20351
  * **exclusive**: one renderer at a time. Registering activates it while the
20045
- * plugin is enabled; if several are registered the first in deterministic slot
20046
- * order wins. A missing, disabled, or crashing replacement falls back to BB's
20352
+ * plugin is enabled; if several are registered, one from a plugin the user
20353
+ * installed wins over one bundled with bb, then the first in deterministic
20354
+ * slot order. A missing, disabled, or crashing replacement falls back to BB's
20047
20355
  * renderer, and a replacement can render `Original` to delegate
20048
20356
  * per call (behind its own setting, by language, by size — whatever it needs).
20049
20357
  */
@@ -20489,6 +20797,12 @@ interface PluginAppSlots {
20489
20797
  * docs/api_to_audit.md for what to audit before the prefix drops.
20490
20798
  */
20491
20799
  experimental_threadList(registration: PluginThreadListRegistration): void;
20800
+ /**
20801
+ * Draw the sidebar navigation and its header controls (see
20802
+ * {@link ExperimentalSidebarNavigationRegistration}). Experimental: see
20803
+ * docs/api_to_audit.md.
20804
+ */
20805
+ experimental_sidebarNavigation(registration: ExperimentalSidebarNavigationRegistration): void;
20492
20806
  /**
20493
20807
  * Render a component in the thread header's action row (see
20494
20808
  * {@link PluginThreadHeaderActionRegistration}). Experimental: see
@@ -21794,6 +22108,27 @@ interface PluginSdkApp {
21794
22108
  * Experimental: see docs/api_to_audit.md.
21795
22109
  */
21796
22110
  experimental_useSidebarThreadSplit(threadId: string): PluginSidebarThreadSplit;
22111
+ /**
22112
+ * The sidebar navigation items in the user's saved order, the active item,
22113
+ * and the host actions that activate, hide, reorder, and customize them
22114
+ * (see {@link ExperimentalSidebarNavigationState}). One model shared by
22115
+ * every navigation provider, bb's included. Items keep their identity while
22116
+ * unchanged. Outside the sidebar it returns no items and actions that do
22117
+ * nothing. Experimental: see docs/api_to_audit.md.
22118
+ */
22119
+ experimental_useSidebarNavigation(): ExperimentalSidebarNavigationState;
22120
+ /**
22121
+ * Per-item drag-to-split support for navigation items (see
22122
+ * {@link ExperimentalSidebarNavigationSplit}). Call it once per rendered
22123
+ * item. Experimental: see docs/api_to_audit.md.
22124
+ */
22125
+ experimental_useSidebarNavigationSplit(itemId: string, options?: ExperimentalSidebarNavigationSplitOptions): ExperimentalSidebarNavigationSplit;
22126
+ /**
22127
+ * bb's artwork for a navigation item's icon: bb's glyphs for its own items,
22128
+ * and the panel's explicit icon, falling back to plugin branding, for
22129
+ * plugin panels. Experimental: see docs/api_to_audit.md.
22130
+ */
22131
+ experimental_SidebarNavigationIcon: ComponentType<ExperimentalSidebarNavigationIconProps>;
21797
22132
  /**
21798
22133
  * Whether the composer holds an unsent draft for one thread (see
21799
22134
  * {@link PluginSidebarThreadDraftState}). Per row, because a draft is
@@ -22040,6 +22375,9 @@ declare const experimental_ThreadActionsContextMenu: react.ComponentType<PluginT
22040
22375
 
22041
22376
  declare const experimental_useSidebarThreadPullRequest: (threadId: string) => PluginSidebarThreadPullRequestState;
22042
22377
  declare const experimental_useSidebarThreadSplit: (threadId: string) => PluginSidebarThreadSplit;
22378
+ declare const experimental_useSidebarNavigation: () => ExperimentalSidebarNavigationState;
22379
+ declare const experimental_useSidebarNavigationSplit: (itemId: string, options?: ExperimentalSidebarNavigationSplitOptions) => ExperimentalSidebarNavigationSplit;
22380
+ declare const experimental_SidebarNavigationIcon: react.ComponentType<ExperimentalSidebarNavigationIconProps>;
22043
22381
  declare const useSidebarThreadDraft: (threadId: string) => PluginSidebarThreadDraftState;
22044
22382
  declare const useSidebarThreadDraftIds: () => ReadonlySet<string>;
22045
22383
  declare const useSidebarThreadRowStatus: (threadId: string) => PluginSidebarThreadRowStatus | null;
@@ -22055,5 +22393,5 @@ declare const experimental_useCodeTheme: () => PluginCodeThemeState;
22055
22393
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
22056
22394
  declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
22057
22395
 
22058
- export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
22059
- export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, 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, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
22396
+ export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
22397
+ export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalVoiceInputTextareaProps, 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, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, 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 { z } from 'zod';
9
- import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
9
+ import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
10
10
 
11
11
  type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
12
12
  interface ExperimentalSidebarFooterRuntimeSnapshot {
@@ -69,6 +69,7 @@ interface CollectedPluginAppRegistrations {
69
69
  sidebarFooterActions: PluginSidebarFooterActionRegistration[];
70
70
  experimentalSidebarFooterItems: CollectedExperimentalSidebarFooterItem[];
71
71
  threadLists: PluginThreadListRegistration[];
72
+ experimentalSidebarNavigations: CollectedSidebarNavigationRegistration[];
72
73
  threadHeaderActions: PluginThreadHeaderActionRegistration[];
73
74
  threadActions: PluginThreadActionRegistration<unknown>[];
74
75
  browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
@@ -86,6 +87,9 @@ interface CollectedPluginAppRegistrations {
86
87
  machineProviderInputs: PluginMachineProviderInputsRegistration[];
87
88
  contentScripts: PluginContentScriptRegistration[];
88
89
  }
90
+ interface CollectedSidebarNavigationRegistration extends ExperimentalSidebarNavigationRegistration {
91
+ placement: ExperimentalSidebarNavigationPlacement;
92
+ }
89
93
  declare function getCollectedSidebarFooterItems(registrations: object): readonly CollectedSidebarFooterItem[] | null;
90
94
  /**
91
95
  * Run a plugin app definition against the canonical validating collector.
@@ -93,7 +97,7 @@ declare function getCollectedSidebarFooterItems(registrations: object): readonly
93
97
  * registration accepted by one cannot be rejected or normalized differently
94
98
  * by the other.
95
99
  */
96
- declare function collectPluginAppRegistrations(definition: PluginAppDefinition, onComposerCustomizationRejected?: (reason: string) => void): CollectedPluginAppRegistrations;
100
+ declare function collectPluginAppRegistrations(definition: PluginAppDefinition, onWarning?: (message: string) => void): CollectedPluginAppRegistrations;
97
101
 
98
102
  export { adaptSidebarFooterAction, collectPluginAppRegistrations, getCollectedSidebarFooterItems };
99
- export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot };
103
+ export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, CollectedSidebarNavigationRegistration, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot };
@@ -149,6 +149,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
149
149
  description: z.ZodString;
150
150
  error: z.ZodOptional<z.ZodString>;
151
151
  familyId: z.ZodString;
152
+ foreground: z.ZodOptional<z.ZodBoolean>;
152
153
  outputFile: z.ZodOptional<z.ZodString>;
153
154
  skipTranscript: z.ZodBoolean;
154
155
  status: z.ZodEnum<{
@@ -149,6 +149,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
149
149
  description: z.ZodString;
150
150
  error: z.ZodOptional<z.ZodString>;
151
151
  familyId: z.ZodString;
152
+ foreground: z.ZodOptional<z.ZodBoolean>;
152
153
  outputFile: z.ZodOptional<z.ZodString>;
153
154
  skipTranscript: z.ZodBoolean;
154
155
  status: z.ZodEnum<{
@@ -336,6 +336,7 @@ declare const threadEventBackgroundTaskItemSchema: z.ZodObject<{
336
336
  description: z.ZodString;
337
337
  error: z.ZodOptional<z.ZodString>;
338
338
  familyId: z.ZodOptional<z.ZodString>;
339
+ foreground: z.ZodBoolean;
339
340
  id: z.ZodString;
340
341
  outputFile: z.ZodOptional<z.ZodString>;
341
342
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -1022,6 +1023,7 @@ declare const threadEventItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1022
1023
  description: z.ZodString;
1023
1024
  error: z.ZodOptional<z.ZodString>;
1024
1025
  familyId: z.ZodOptional<z.ZodString>;
1026
+ foreground: z.ZodBoolean;
1025
1027
  id: z.ZodString;
1026
1028
  outputFile: z.ZodOptional<z.ZodString>;
1027
1029
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -1853,6 +1855,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
1853
1855
  description: z.ZodString;
1854
1856
  error: z.ZodOptional<z.ZodString>;
1855
1857
  familyId: z.ZodOptional<z.ZodString>;
1858
+ foreground: z.ZodBoolean;
1856
1859
  id: z.ZodString;
1857
1860
  outputFile: z.ZodOptional<z.ZodString>;
1858
1861
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -2618,6 +2621,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
2618
2621
  description: z.ZodString;
2619
2622
  error: z.ZodOptional<z.ZodString>;
2620
2623
  familyId: z.ZodOptional<z.ZodString>;
2624
+ foreground: z.ZodBoolean;
2621
2625
  id: z.ZodString;
2622
2626
  outputFile: z.ZodOptional<z.ZodString>;
2623
2627
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -2849,6 +2853,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
2849
2853
  description: z.ZodString;
2850
2854
  error: z.ZodOptional<z.ZodString>;
2851
2855
  familyId: z.ZodOptional<z.ZodString>;
2856
+ foreground: z.ZodBoolean;
2852
2857
  id: z.ZodString;
2853
2858
  outputFile: z.ZodOptional<z.ZodString>;
2854
2859
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -2947,6 +2952,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
2947
2952
  description: z.ZodString;
2948
2953
  error: z.ZodOptional<z.ZodString>;
2949
2954
  familyId: z.ZodOptional<z.ZodString>;
2955
+ foreground: z.ZodBoolean;
2950
2956
  id: z.ZodString;
2951
2957
  outputFile: z.ZodOptional<z.ZodString>;
2952
2958
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -4290,6 +4296,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4290
4296
  description: z.ZodString;
4291
4297
  error: z.ZodOptional<z.ZodString>;
4292
4298
  familyId: z.ZodString;
4299
+ foreground: z.ZodOptional<z.ZodBoolean>;
4293
4300
  outputFile: z.ZodOptional<z.ZodString>;
4294
4301
  skipTranscript: z.ZodBoolean;
4295
4302
  status: z.ZodEnum<{
@@ -4497,6 +4504,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4497
4504
  description: z.ZodString;
4498
4505
  error: z.ZodOptional<z.ZodString>;
4499
4506
  familyId: z.ZodString;
4507
+ foreground: z.ZodOptional<z.ZodBoolean>;
4500
4508
  outputFile: z.ZodOptional<z.ZodString>;
4501
4509
  skipTranscript: z.ZodBoolean;
4502
4510
  status: z.ZodEnum<{
@@ -4667,6 +4675,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4667
4675
  description: z.ZodString;
4668
4676
  error: z.ZodOptional<z.ZodString>;
4669
4677
  familyId: z.ZodString;
4678
+ foreground: z.ZodOptional<z.ZodBoolean>;
4670
4679
  outputFile: z.ZodOptional<z.ZodString>;
4671
4680
  skipTranscript: z.ZodBoolean;
4672
4681
  status: z.ZodEnum<{