@get-bb/plugin-sdk 0.6.138 → 0.6.141

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.
@@ -10252,6 +10252,32 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
10252
10252
  first_run: "first_run";
10253
10253
  replay: "replay";
10254
10254
  }>;
10255
+ exit_code: z$1.ZodOptional<z$1.ZodNumber>;
10256
+ failure_detail: z$1.ZodOptional<z$1.ZodEnum<{
10257
+ account_unavailable: "account_unavailable";
10258
+ already_used: "already_used";
10259
+ denied: "denied";
10260
+ disk_full: "disk_full";
10261
+ exit_nonzero: "exit_nonzero";
10262
+ expired: "expired";
10263
+ expired_code: "expired_code";
10264
+ in_progress: "in_progress";
10265
+ invalid_code: "invalid_code";
10266
+ login_failed: "login_failed";
10267
+ network: "network";
10268
+ not_found: "not_found";
10269
+ npm_error: "npm_error";
10270
+ other: "other";
10271
+ permission: "permission";
10272
+ profile_unavailable: "profile_unavailable";
10273
+ rate_limited: "rate_limited";
10274
+ service_unavailable: "service_unavailable";
10275
+ signal: "signal";
10276
+ superseded: "superseded";
10277
+ unauthorized: "unauthorized";
10278
+ unavailable: "unavailable";
10279
+ verification_failed: "verification_failed";
10280
+ }>>;
10255
10281
  failure_reason: z$1.ZodOptional<z$1.ZodEnum<{
10256
10282
  command_failed: "command_failed";
10257
10283
  host_unavailable: "host_unavailable";
@@ -10321,6 +10347,32 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
10321
10347
  first_run: "first_run";
10322
10348
  replay: "replay";
10323
10349
  }>;
10350
+ exit_code: z$1.ZodOptional<z$1.ZodNumber>;
10351
+ failure_detail: z$1.ZodOptional<z$1.ZodEnum<{
10352
+ account_unavailable: "account_unavailable";
10353
+ already_used: "already_used";
10354
+ denied: "denied";
10355
+ disk_full: "disk_full";
10356
+ exit_nonzero: "exit_nonzero";
10357
+ expired: "expired";
10358
+ expired_code: "expired_code";
10359
+ in_progress: "in_progress";
10360
+ invalid_code: "invalid_code";
10361
+ login_failed: "login_failed";
10362
+ network: "network";
10363
+ not_found: "not_found";
10364
+ npm_error: "npm_error";
10365
+ other: "other";
10366
+ permission: "permission";
10367
+ profile_unavailable: "profile_unavailable";
10368
+ rate_limited: "rate_limited";
10369
+ service_unavailable: "service_unavailable";
10370
+ signal: "signal";
10371
+ superseded: "superseded";
10372
+ unauthorized: "unauthorized";
10373
+ unavailable: "unavailable";
10374
+ verification_failed: "verification_failed";
10375
+ }>>;
10324
10376
  failure_reason: z$1.ZodOptional<z$1.ZodEnum<{
10325
10377
  command_failed: "command_failed";
10326
10378
  host_unavailable: "host_unavailable";
@@ -19449,15 +19501,20 @@ interface PluginSettingsSectionProps {
19449
19501
  /**
19450
19502
  * Internal to bb's bundled connect plugin; not part of the plugin API.
19451
19503
  * Set only when the setup guide renders the section; call it when a setup
19452
- * attempt fails, with the stage that failed.
19504
+ * attempt fails, with the stage that failed and, when known, why.
19453
19505
  */
19454
- internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage) => void;
19506
+ internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
19455
19507
  }
19456
19508
  /**
19457
19509
  * Stage of a setup guide section's setup attempt that failed.
19458
19510
  * Internal to bb's bundled connect plugin; not part of the plugin API.
19459
19511
  */
19460
19512
  type InternalDoNotUseSetupFailureStage = "pairing" | "sign_in" | "turn_on";
19513
+ /**
19514
+ * Why a setup guide section's setup attempt failed: a fixed code, never a
19515
+ * message. Internal to bb's bundled connect plugin; not part of the plugin API.
19516
+ */
19517
+ type InternalDoNotUseSetupFailureDetail = "account_unavailable" | "already_used" | "denied" | "expired" | "expired_code" | "invalid_code" | "login_failed" | "network" | "other" | "profile_unavailable" | "rate_limited" | "service_unavailable" | "superseded" | "unauthorized";
19461
19518
  /**
19462
19519
  * Props passed to an `experimental_appOverlay` component.
19463
19520
  *
@@ -19475,8 +19532,8 @@ interface InternalDoNotUseSetupGuideSectionProps {
19475
19532
  onPhone: boolean;
19476
19533
  /** Call when the user starts setting up this section. */
19477
19534
  onSetupStarted: () => void;
19478
- /** Call when a setup attempt fails, with the stage that failed. */
19479
- onSetupFailed: (stage: InternalDoNotUseSetupFailureStage) => void;
19535
+ /** Call when a setup attempt fails, with the stage that failed and, when known, why. */
19536
+ onSetupFailed: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
19480
19537
  }
19481
19538
  type ExperimentalPageTitle = ({
19482
19539
  title: string;
@@ -20349,6 +20406,22 @@ interface PluginNavPanelRegistration {
20349
20406
  * throwing headerContent is hidden without breaking the title bar.
20350
20407
  */
20351
20408
  headerContent?: ComponentType<PluginNavPanelProps>;
20409
+ /**
20410
+ * Component rendered in the shared title bar instead of the panel icon,
20411
+ * title and `experimental_usePageTitle` text, such as a breadcrumb. The
20412
+ * window title still comes from `experimental_usePageTitle` or the panel
20413
+ * title. A crash restores the default title without breaking the page.
20414
+ * Experimental: see docs/api_to_audit.md.
20415
+ */
20416
+ experimental_headerTitle?: ComponentType<PluginNavPanelProps>;
20417
+ /**
20418
+ * When true, the panel gets no navigation entry (sidebar, rail, More and
20419
+ * the navigation arrangement) and no command palette entry. Its route
20420
+ * `/plugins/<pluginId>/<path>/*` still renders with its title bar, right
20421
+ * panel and splits; open it with `useBbNavigate().toPluginPanel(path)`.
20422
+ * Experimental: see docs/api_to_audit.md.
20423
+ */
20424
+ experimental_hideFromNavigation?: boolean;
20352
20425
  }
20353
20426
  /**
20354
20427
  * Context handed to a thread action tab's `run`.
@@ -21206,6 +21279,55 @@ interface ExperimentalThreadInfoSectionRegistration {
21206
21279
  order?: number;
21207
21280
  component: ComponentType<ExperimentalThreadInfoProps>;
21208
21281
  }
21282
+ /**
21283
+ * Props passed to an `experimental_threadHeaderRow` component, rendered
21284
+ * between a thread's header and its timeline.
21285
+ */
21286
+ interface ExperimentalThreadHeaderRowProps {
21287
+ /**
21288
+ * The thread shown in the pane. A split layout renders a header row per
21289
+ * pane, so the component mounts once per visible thread; keep per-thread
21290
+ * state in the component, never in a module-level singleton.
21291
+ */
21292
+ threadId: string;
21293
+ projectId: string;
21294
+ /** The thread's environment, null when it has none. */
21295
+ environment: ExperimentalThreadEnvironment | null;
21296
+ }
21297
+ /**
21298
+ * A full-width row directly under the header of every thread pane, above the
21299
+ * timeline, such as a tab strip of the threads that share an environment.
21300
+ * Rows stack in order. Return null to take no space for this thread. A crash
21301
+ * removes only this row for that thread.
21302
+ */
21303
+ interface ExperimentalThreadHeaderRowRegistration {
21304
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
21305
+ id: string;
21306
+ /** Ascending; unset sorts last; ties keep registration order. */
21307
+ order?: number;
21308
+ component: ComponentType<ExperimentalThreadHeaderRowProps>;
21309
+ }
21310
+ /**
21311
+ * Props passed to an `experimental_threadHeaderTitle` component, the same
21312
+ * props a header row receives.
21313
+ */
21314
+ type ExperimentalThreadHeaderTitleProps = ExperimentalThreadHeaderRowProps;
21315
+ /**
21316
+ * Replaces the thread title text in the header of every thread pane, such as
21317
+ * a `project › workspace` breadcrumb. bb keeps the rest of the header: the
21318
+ * Thread actions menu after the title, header actions, pane controls, the
21319
+ * right-panel toggle and the window drag region. While the user renames the
21320
+ * thread, bb shows its rename field instead. Double-click does not start a
21321
+ * rename on a plugin title, and dragging a split pane starts only from parts
21322
+ * that are not links, buttons or inputs. When several plugins register one,
21323
+ * the first in plugin order wins. A crash shows bb's title for that thread.
21324
+ * The window title stays the thread title.
21325
+ */
21326
+ interface ExperimentalThreadHeaderTitleRegistration {
21327
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
21328
+ id: string;
21329
+ component: ComponentType<ExperimentalThreadHeaderTitleProps>;
21330
+ }
21209
21331
  /**
21210
21332
  * Props passed to an `experimental_threadContextCardRow` or
21211
21333
  * `experimental_threadContextCardSection` component.
@@ -22897,6 +23019,18 @@ interface PluginAppSlots {
22897
23019
  * docs/api_to_audit.md.
22898
23020
  */
22899
23021
  experimental_threadInfoSection(registration: ExperimentalThreadInfoSectionRegistration): void;
23022
+ /**
23023
+ * Add a full-width row under the header of every thread pane, above the
23024
+ * timeline (see {@link ExperimentalThreadHeaderRowRegistration}).
23025
+ * Experimental: see docs/api_to_audit.md.
23026
+ */
23027
+ experimental_threadHeaderRow(registration: ExperimentalThreadHeaderRowRegistration): void;
23028
+ /**
23029
+ * Replace the thread title text in the header of every thread pane (see
23030
+ * {@link ExperimentalThreadHeaderTitleRegistration}). Experimental: see
23031
+ * docs/api_to_audit.md.
23032
+ */
23033
+ experimental_threadHeaderTitle(registration: ExperimentalThreadHeaderTitleRegistration): void;
22900
23034
  /**
22901
23035
  * Add a row to the thread context card of every thread pane (see
22902
23036
  * {@link ExperimentalThreadContextCardRowRegistration}). Experimental: see
@@ -25037,4 +25171,4 @@ declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
25037
25171
  declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
25038
25172
 
25039
25173
  export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_CollapsibleStackCard, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_FilePreview, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadExtensionState, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
25040
- export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
25174
+ export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
@@ -6,7 +6,7 @@
6
6
  // and read the real source: https://github.com/get-bb/bb
7
7
 
8
8
  import * as _get_bb_plugin_sdk from '@get-bb/plugin-sdk';
9
- import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
9
+ import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
10
10
  import { ComponentType } from 'react';
11
11
  import { z } from 'zod';
12
12
 
@@ -110,6 +110,8 @@ interface CollectedPluginAppRegistrations {
110
110
  threadInfoRows: ExperimentalThreadInfoRowRegistration[];
111
111
  threadRowMetadata: ExperimentalThreadRowMetadataRegistration<unknown>[];
112
112
  threadInfoSections: ExperimentalThreadInfoSectionRegistration[];
113
+ threadHeaderRows: ExperimentalThreadHeaderRowRegistration[];
114
+ threadHeaderTitles: ExperimentalThreadHeaderTitleRegistration[];
113
115
  threadContextCardRows: ExperimentalThreadContextCardRowRegistration[];
114
116
  threadContextCardSections: ExperimentalThreadContextCardSectionRegistration[];
115
117
  threadActions: PluginThreadActionRegistration<unknown>[];
@@ -6,7 +6,7 @@
6
6
  // and read the real source: https://github.com/get-bb/bb
7
7
 
8
8
  import * as _get_bb_plugin_sdk from '@get-bb/plugin-sdk';
9
- import { ExperimentalSidebarFooterItemRegistration, PluginNavPanelRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, BbNavigate, ExperimentalFilePreviewOptions, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, ExperimentalThreadContextKind, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, ExperimentalComposerRendererApi, ExperimentalSidebarNavigationItem, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState, ExperimentalLiveFileTarget, ExperimentalFilePreviewFile, ExperimentalServers, ExperimentalPanelController, ExperimentalPanelTabs, JsonValue, ExperimentalPageTitle, ExperimentalOpenTabOptions, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationTarget } from '@get-bb/plugin-sdk';
9
+ import { ExperimentalSidebarFooterItemRegistration, PluginNavPanelRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, BbNavigate, ExperimentalFilePreviewOptions, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, ExperimentalThreadContextKind, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, ExperimentalComposerRendererApi, ExperimentalSidebarNavigationItem, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState, ExperimentalLiveFileTarget, ExperimentalFilePreviewFile, ExperimentalServers, ExperimentalPanelController, ExperimentalPanelTabs, JsonValue, ExperimentalPageTitle, ExperimentalOpenTabOptions, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationTarget } from '@get-bb/plugin-sdk';
10
10
  import { ComponentType, ReactNode } from 'react';
11
11
  import { RenderResult } from '@testing-library/react';
12
12
 
@@ -244,6 +244,8 @@ interface CapturedPluginApp {
244
244
  threadInfoRows: ExperimentalThreadInfoRowRegistration[];
245
245
  threadRowMetadata: ExperimentalThreadRowMetadataRegistration<unknown>[];
246
246
  threadInfoSections: ExperimentalThreadInfoSectionRegistration[];
247
+ threadHeaderRows: ExperimentalThreadHeaderRowRegistration[];
248
+ threadHeaderTitles: ExperimentalThreadHeaderTitleRegistration[];
247
249
  threadContextCardRows: ExperimentalThreadContextCardRowRegistration[];
248
250
  threadContextCardSections: ExperimentalThreadContextCardSectionRegistration[];
249
251
  threadActions: PluginThreadActionRegistration<unknown>[];
@@ -10467,6 +10467,32 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
10467
10467
  first_run: "first_run";
10468
10468
  replay: "replay";
10469
10469
  }>;
10470
+ exit_code: z$1.ZodOptional<z$1.ZodNumber>;
10471
+ failure_detail: z$1.ZodOptional<z$1.ZodEnum<{
10472
+ account_unavailable: "account_unavailable";
10473
+ already_used: "already_used";
10474
+ denied: "denied";
10475
+ disk_full: "disk_full";
10476
+ exit_nonzero: "exit_nonzero";
10477
+ expired: "expired";
10478
+ expired_code: "expired_code";
10479
+ in_progress: "in_progress";
10480
+ invalid_code: "invalid_code";
10481
+ login_failed: "login_failed";
10482
+ network: "network";
10483
+ not_found: "not_found";
10484
+ npm_error: "npm_error";
10485
+ other: "other";
10486
+ permission: "permission";
10487
+ profile_unavailable: "profile_unavailable";
10488
+ rate_limited: "rate_limited";
10489
+ service_unavailable: "service_unavailable";
10490
+ signal: "signal";
10491
+ superseded: "superseded";
10492
+ unauthorized: "unauthorized";
10493
+ unavailable: "unavailable";
10494
+ verification_failed: "verification_failed";
10495
+ }>>;
10470
10496
  failure_reason: z$1.ZodOptional<z$1.ZodEnum<{
10471
10497
  command_failed: "command_failed";
10472
10498
  host_unavailable: "host_unavailable";
@@ -10536,6 +10562,32 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
10536
10562
  first_run: "first_run";
10537
10563
  replay: "replay";
10538
10564
  }>;
10565
+ exit_code: z$1.ZodOptional<z$1.ZodNumber>;
10566
+ failure_detail: z$1.ZodOptional<z$1.ZodEnum<{
10567
+ account_unavailable: "account_unavailable";
10568
+ already_used: "already_used";
10569
+ denied: "denied";
10570
+ disk_full: "disk_full";
10571
+ exit_nonzero: "exit_nonzero";
10572
+ expired: "expired";
10573
+ expired_code: "expired_code";
10574
+ in_progress: "in_progress";
10575
+ invalid_code: "invalid_code";
10576
+ login_failed: "login_failed";
10577
+ network: "network";
10578
+ not_found: "not_found";
10579
+ npm_error: "npm_error";
10580
+ other: "other";
10581
+ permission: "permission";
10582
+ profile_unavailable: "profile_unavailable";
10583
+ rate_limited: "rate_limited";
10584
+ service_unavailable: "service_unavailable";
10585
+ signal: "signal";
10586
+ superseded: "superseded";
10587
+ unauthorized: "unauthorized";
10588
+ unavailable: "unavailable";
10589
+ verification_failed: "verification_failed";
10590
+ }>>;
10539
10591
  failure_reason: z$1.ZodOptional<z$1.ZodEnum<{
10540
10592
  command_failed: "command_failed";
10541
10593
  host_unavailable: "host_unavailable";
@@ -22052,15 +22104,20 @@ interface PluginSettingsSectionProps {
22052
22104
  /**
22053
22105
  * Internal to bb's bundled connect plugin; not part of the plugin API.
22054
22106
  * Set only when the setup guide renders the section; call it when a setup
22055
- * attempt fails, with the stage that failed.
22107
+ * attempt fails, with the stage that failed and, when known, why.
22056
22108
  */
22057
- internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage) => void;
22109
+ internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
22058
22110
  }
22059
22111
  /**
22060
22112
  * Stage of a setup guide section's setup attempt that failed.
22061
22113
  * Internal to bb's bundled connect plugin; not part of the plugin API.
22062
22114
  */
22063
22115
  type InternalDoNotUseSetupFailureStage = "pairing" | "sign_in" | "turn_on";
22116
+ /**
22117
+ * Why a setup guide section's setup attempt failed: a fixed code, never a
22118
+ * message. Internal to bb's bundled connect plugin; not part of the plugin API.
22119
+ */
22120
+ type InternalDoNotUseSetupFailureDetail = "account_unavailable" | "already_used" | "denied" | "expired" | "expired_code" | "invalid_code" | "login_failed" | "network" | "other" | "profile_unavailable" | "rate_limited" | "service_unavailable" | "superseded" | "unauthorized";
22064
22121
  /**
22065
22122
  * Props passed to an `experimental_appOverlay` component.
22066
22123
  *
@@ -22078,8 +22135,8 @@ interface InternalDoNotUseSetupGuideSectionProps {
22078
22135
  onPhone: boolean;
22079
22136
  /** Call when the user starts setting up this section. */
22080
22137
  onSetupStarted: () => void;
22081
- /** Call when a setup attempt fails, with the stage that failed. */
22082
- onSetupFailed: (stage: InternalDoNotUseSetupFailureStage) => void;
22138
+ /** Call when a setup attempt fails, with the stage that failed and, when known, why. */
22139
+ onSetupFailed: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
22083
22140
  }
22084
22141
  type ExperimentalPageTitle = ({
22085
22142
  title: string;
@@ -22952,6 +23009,22 @@ interface PluginNavPanelRegistration {
22952
23009
  * throwing headerContent is hidden without breaking the title bar.
22953
23010
  */
22954
23011
  headerContent?: ComponentType<PluginNavPanelProps>;
23012
+ /**
23013
+ * Component rendered in the shared title bar instead of the panel icon,
23014
+ * title and `experimental_usePageTitle` text, such as a breadcrumb. The
23015
+ * window title still comes from `experimental_usePageTitle` or the panel
23016
+ * title. A crash restores the default title without breaking the page.
23017
+ * Experimental: see docs/api_to_audit.md.
23018
+ */
23019
+ experimental_headerTitle?: ComponentType<PluginNavPanelProps>;
23020
+ /**
23021
+ * When true, the panel gets no navigation entry (sidebar, rail, More and
23022
+ * the navigation arrangement) and no command palette entry. Its route
23023
+ * `/plugins/<pluginId>/<path>/*` still renders with its title bar, right
23024
+ * panel and splits; open it with `useBbNavigate().toPluginPanel(path)`.
23025
+ * Experimental: see docs/api_to_audit.md.
23026
+ */
23027
+ experimental_hideFromNavigation?: boolean;
22955
23028
  }
22956
23029
  /**
22957
23030
  * Context handed to a thread action tab's `run`.
@@ -23809,6 +23882,55 @@ interface ExperimentalThreadInfoSectionRegistration {
23809
23882
  order?: number;
23810
23883
  component: ComponentType<ExperimentalThreadInfoProps>;
23811
23884
  }
23885
+ /**
23886
+ * Props passed to an `experimental_threadHeaderRow` component, rendered
23887
+ * between a thread's header and its timeline.
23888
+ */
23889
+ interface ExperimentalThreadHeaderRowProps {
23890
+ /**
23891
+ * The thread shown in the pane. A split layout renders a header row per
23892
+ * pane, so the component mounts once per visible thread; keep per-thread
23893
+ * state in the component, never in a module-level singleton.
23894
+ */
23895
+ threadId: string;
23896
+ projectId: string;
23897
+ /** The thread's environment, null when it has none. */
23898
+ environment: ExperimentalThreadEnvironment | null;
23899
+ }
23900
+ /**
23901
+ * A full-width row directly under the header of every thread pane, above the
23902
+ * timeline, such as a tab strip of the threads that share an environment.
23903
+ * Rows stack in order. Return null to take no space for this thread. A crash
23904
+ * removes only this row for that thread.
23905
+ */
23906
+ interface ExperimentalThreadHeaderRowRegistration {
23907
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
23908
+ id: string;
23909
+ /** Ascending; unset sorts last; ties keep registration order. */
23910
+ order?: number;
23911
+ component: ComponentType<ExperimentalThreadHeaderRowProps>;
23912
+ }
23913
+ /**
23914
+ * Props passed to an `experimental_threadHeaderTitle` component, the same
23915
+ * props a header row receives.
23916
+ */
23917
+ type ExperimentalThreadHeaderTitleProps = ExperimentalThreadHeaderRowProps;
23918
+ /**
23919
+ * Replaces the thread title text in the header of every thread pane, such as
23920
+ * a `project › workspace` breadcrumb. bb keeps the rest of the header: the
23921
+ * Thread actions menu after the title, header actions, pane controls, the
23922
+ * right-panel toggle and the window drag region. While the user renames the
23923
+ * thread, bb shows its rename field instead. Double-click does not start a
23924
+ * rename on a plugin title, and dragging a split pane starts only from parts
23925
+ * that are not links, buttons or inputs. When several plugins register one,
23926
+ * the first in plugin order wins. A crash shows bb's title for that thread.
23927
+ * The window title stays the thread title.
23928
+ */
23929
+ interface ExperimentalThreadHeaderTitleRegistration {
23930
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
23931
+ id: string;
23932
+ component: ComponentType<ExperimentalThreadHeaderTitleProps>;
23933
+ }
23812
23934
  /**
23813
23935
  * Props passed to an `experimental_threadContextCardRow` or
23814
23936
  * `experimental_threadContextCardSection` component.
@@ -25500,6 +25622,18 @@ interface PluginAppSlots {
25500
25622
  * docs/api_to_audit.md.
25501
25623
  */
25502
25624
  experimental_threadInfoSection(registration: ExperimentalThreadInfoSectionRegistration): void;
25625
+ /**
25626
+ * Add a full-width row under the header of every thread pane, above the
25627
+ * timeline (see {@link ExperimentalThreadHeaderRowRegistration}).
25628
+ * Experimental: see docs/api_to_audit.md.
25629
+ */
25630
+ experimental_threadHeaderRow(registration: ExperimentalThreadHeaderRowRegistration): void;
25631
+ /**
25632
+ * Replace the thread title text in the header of every thread pane (see
25633
+ * {@link ExperimentalThreadHeaderTitleRegistration}). Experimental: see
25634
+ * docs/api_to_audit.md.
25635
+ */
25636
+ experimental_threadHeaderTitle(registration: ExperimentalThreadHeaderTitleRegistration): void;
25503
25637
  /**
25504
25638
  * Add a row to the thread context card of every thread pane (see
25505
25639
  * {@link ExperimentalThreadContextCardRowRegistration}). Experimental: see
@@ -27764,4 +27898,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
27764
27898
  };
27765
27899
 
27766
27900
  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, getHostPathBasename as experimental_getHostPathBasename, getHostPathComparisonKey as experimental_getHostPathComparisonKey, getHostPathDirname as experimental_getHostPathDirname, getRelativeHostPath as experimental_getRelativeHostPath, isHostPathWithin as experimental_isHostPathWithin, joinHostPath as experimental_joinHostPath, normalizeHostPath as experimental_normalizeHostPath, resolveHostPath as experimental_resolveHostPath };
27767
- 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, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, 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, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, 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, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, 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, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, 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, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
27901
+ 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, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, 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, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, 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, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, 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, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, 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, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
@@ -386,7 +386,9 @@ var NAV_PANEL_REGISTRATION_KEYS = {
386
386
  experimental_useBadge: true,
387
387
  experimental_usePageTitle: true,
388
388
  experimental_sidebar: true,
389
- headerContent: true
389
+ headerContent: true,
390
+ experimental_headerTitle: true,
391
+ experimental_hideFromNavigation: true
390
392
  };
391
393
  var RENAMED_NAV_PANEL_KEYS = /* @__PURE__ */ new Map([
392
394
  ["experimental_fixedTabs", 'was renamed to "fixedTabs" in SDK 0.4.16']
@@ -504,6 +506,8 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
504
506
  threadInfoRows: [],
505
507
  threadRowMetadata: [],
506
508
  threadInfoSections: [],
509
+ threadHeaderRows: [],
510
+ threadHeaderTitles: [],
507
511
  threadContextCardRows: [],
508
512
  threadContextCardSections: [],
509
513
  threadActions: [],
@@ -545,6 +549,8 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
545
549
  threadInfoRow: /* @__PURE__ */ new Set(),
546
550
  threadRowMetadata: /* @__PURE__ */ new Set(),
547
551
  threadInfoSection: /* @__PURE__ */ new Set(),
552
+ threadHeaderRow: /* @__PURE__ */ new Set(),
553
+ threadHeaderTitle: /* @__PURE__ */ new Set(),
548
554
  threadContextCardRow: /* @__PURE__ */ new Set(),
549
555
  threadContextCardSection: /* @__PURE__ */ new Set(),
550
556
  threadAction: /* @__PURE__ */ new Set(),
@@ -768,6 +774,16 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
768
774
  `${kind}: "experimental_sidebar" must be a React component function when set`
769
775
  );
770
776
  }
777
+ if (registration.experimental_headerTitle !== void 0 && typeof registration.experimental_headerTitle !== "function") {
778
+ throw new Error(
779
+ `${kind}: "experimental_headerTitle" must be a React component function when set`
780
+ );
781
+ }
782
+ if (registration.experimental_hideFromNavigation !== void 0 && typeof registration.experimental_hideFromNavigation !== "boolean") {
783
+ throw new Error(
784
+ `${kind}: "experimental_hideFromNavigation" must be a boolean when set`
785
+ );
786
+ }
771
787
  if (registration.experimental_usePageTitle !== void 0 && typeof registration.experimental_usePageTitle !== "function") {
772
788
  throw new Error(
773
789
  `${kind}: "experimental_usePageTitle" must be a React hook function when set`
@@ -819,7 +835,11 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
819
835
  experimental_usePageTitle: registration.experimental_usePageTitle
820
836
  } : {},
821
837
  ...registration.experimental_sidebar !== void 0 ? { experimental_sidebar: registration.experimental_sidebar } : {},
822
- ...registration.headerContent !== void 0 ? { headerContent: registration.headerContent } : {}
838
+ ...registration.headerContent !== void 0 ? { headerContent: registration.headerContent } : {},
839
+ ...registration.experimental_headerTitle !== void 0 ? {
840
+ experimental_headerTitle: registration.experimental_headerTitle
841
+ } : {},
842
+ ...registration.experimental_hideFromNavigation === true ? { experimental_hideFromNavigation: true } : {}
823
843
  });
824
844
  },
825
845
  experimental_tab(registration) {
@@ -959,6 +979,25 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
959
979
  component: requireComponent(kind, registration.component)
960
980
  });
961
981
  },
982
+ experimental_threadHeaderRow(registration) {
983
+ const kind = "slots.experimental_threadHeaderRow";
984
+ const id = requireSlotId(kind, registration?.id);
985
+ requireUniqueId(kind, seenIds.threadHeaderRow, id);
986
+ collected.threadHeaderRows.push({
987
+ id,
988
+ ...requireOptionalOrder(kind, registration.order),
989
+ component: requireComponent(kind, registration.component)
990
+ });
991
+ },
992
+ experimental_threadHeaderTitle(registration) {
993
+ const kind = "slots.experimental_threadHeaderTitle";
994
+ const id = requireSlotId(kind, registration?.id);
995
+ requireUniqueId(kind, seenIds.threadHeaderTitle, id);
996
+ collected.threadHeaderTitles.push({
997
+ id,
998
+ component: requireComponent(kind, registration.component)
999
+ });
1000
+ },
962
1001
  experimental_threadContextCardRow(registration) {
963
1002
  const kind = "slots.experimental_threadContextCardRow";
964
1003
  const id = requireSlotId(kind, registration?.id);
@@ -15235,7 +15235,19 @@ function createAcpDeltaTranslator(options = {}) {
15235
15235
  })
15236
15236
  ];
15237
15237
  }
15238
- const mergedType = classifyCall(context, merged).item.type;
15238
+ const classified = classifyCall(context, merged);
15239
+ const mergedType = classified.item.type;
15240
+ const previous = open === void 0 ? void 0 : classifyCall(context, open.event);
15241
+ const refreshed = [];
15242
+ if (previous?.item.type === "command" && classified.item.type === "command" && (previous.item.command !== classified.item.command || previous.presentation.title !== classified.presentation.title)) {
15243
+ refreshed.push({
15244
+ kind: "item.open",
15245
+ key: { providerItemId: event.toolCallId },
15246
+ item: classified.item,
15247
+ presentation: classified.presentation,
15248
+ noTurnFallback: noTurnFallbackFor(rawEvent)
15249
+ });
15250
+ }
15239
15251
  mergedToolCalls.set(key, {
15240
15252
  event: merged,
15241
15253
  openedType: open?.openedType ?? mergedType,
@@ -15246,7 +15258,11 @@ function createAcpDeltaTranslator(options = {}) {
15246
15258
  if (event.status === "in_progress" && mergedType === "command" && open?.openedType === "command") {
15247
15259
  const normalizedEvent = dialect.normalizeCommandEvent?.(event, merged) ?? event;
15248
15260
  const streamed = extractAcpStreamedCommandOutput(normalizedEvent);
15249
- return streamed === void 0 ? suppressedUnhandled(rawEvent) : [
15261
+ if (streamed === void 0) {
15262
+ return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
15263
+ }
15264
+ return [
15265
+ ...refreshed,
15250
15266
  {
15251
15267
  kind: "command.outputSnapshot",
15252
15268
  key: { providerItemId: event.toolCallId },
@@ -15257,7 +15273,7 @@ function createAcpDeltaTranslator(options = {}) {
15257
15273
  const progressEvent = dialect.normalizeToolCallEvent?.(event, merged) ?? event;
15258
15274
  const progressText = extractAcpToolCallOutputText(progressEvent);
15259
15275
  if (progressText === void 0) {
15260
- return suppressedUnhandled(rawEvent);
15276
+ return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
15261
15277
  }
15262
15278
  if (mergedType !== "command" && mergedType !== "fileChange") {
15263
15279
  return [
@@ -15271,7 +15287,7 @@ function createAcpDeltaTranslator(options = {}) {
15271
15287
  }
15272
15288
  ];
15273
15289
  }
15274
- return suppressedUnhandled(rawEvent);
15290
+ return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
15275
15291
  }
15276
15292
  case "plan": {
15277
15293
  const parsed = acpPlanUpdateSchema.safeParse(update);
@@ -15376,8 +15392,10 @@ function createAcpDeltaTranslator(options = {}) {
15376
15392
  function translateAcpEvent(event, context) {
15377
15393
  const errorEnvelope = errorEnvelopeSchema.safeParse(event);
15378
15394
  if (errorEnvelope.success) {
15395
+ const closed = flushOpenTurnWork(context, "failed");
15379
15396
  clearThreadCalls(context);
15380
15397
  return [
15398
+ ...closed,
15381
15399
  {
15382
15400
  kind: "provider.error",
15383
15401
  message: "Provider error",
@@ -15398,9 +15416,10 @@ function createAcpDeltaTranslator(options = {}) {
15398
15416
  if (!params.success) {
15399
15417
  return [];
15400
15418
  }
15419
+ const closed = flushOpenTurnWork(context, "interrupted");
15401
15420
  clearThreadCalls(context);
15402
15421
  filesAddedThisTurn.clear();
15403
- return [{ kind: "turn.open" }];
15422
+ return [...closed, { kind: "turn.open" }];
15404
15423
  }
15405
15424
  case ACP_PROMPT_INTERRUPTED_METHOD: {
15406
15425
  const params = acpTurnStartedNotificationParamsSchema.safeParse(
@@ -15427,8 +15446,10 @@ function createAcpDeltaTranslator(options = {}) {
15427
15446
  if (!params.success) {
15428
15447
  return [];
15429
15448
  }
15449
+ const closed = flushOpenTurnWork(context, "interrupted");
15430
15450
  clearThreadCalls(context);
15431
15451
  return [
15452
+ ...closed,
15432
15453
  { kind: "turn.open" },
15433
15454
  {
15434
15455
  kind: "item.open",
@@ -15235,7 +15235,19 @@ function createAcpDeltaTranslator(options = {}) {
15235
15235
  })
15236
15236
  ];
15237
15237
  }
15238
- const mergedType = classifyCall(context, merged).item.type;
15238
+ const classified = classifyCall(context, merged);
15239
+ const mergedType = classified.item.type;
15240
+ const previous = open === void 0 ? void 0 : classifyCall(context, open.event);
15241
+ const refreshed = [];
15242
+ if (previous?.item.type === "command" && classified.item.type === "command" && (previous.item.command !== classified.item.command || previous.presentation.title !== classified.presentation.title)) {
15243
+ refreshed.push({
15244
+ kind: "item.open",
15245
+ key: { providerItemId: event.toolCallId },
15246
+ item: classified.item,
15247
+ presentation: classified.presentation,
15248
+ noTurnFallback: noTurnFallbackFor(rawEvent)
15249
+ });
15250
+ }
15239
15251
  mergedToolCalls.set(key, {
15240
15252
  event: merged,
15241
15253
  openedType: open?.openedType ?? mergedType,
@@ -15246,7 +15258,11 @@ function createAcpDeltaTranslator(options = {}) {
15246
15258
  if (event.status === "in_progress" && mergedType === "command" && open?.openedType === "command") {
15247
15259
  const normalizedEvent = dialect.normalizeCommandEvent?.(event, merged) ?? event;
15248
15260
  const streamed = extractAcpStreamedCommandOutput(normalizedEvent);
15249
- return streamed === void 0 ? suppressedUnhandled(rawEvent) : [
15261
+ if (streamed === void 0) {
15262
+ return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
15263
+ }
15264
+ return [
15265
+ ...refreshed,
15250
15266
  {
15251
15267
  kind: "command.outputSnapshot",
15252
15268
  key: { providerItemId: event.toolCallId },
@@ -15257,7 +15273,7 @@ function createAcpDeltaTranslator(options = {}) {
15257
15273
  const progressEvent = dialect.normalizeToolCallEvent?.(event, merged) ?? event;
15258
15274
  const progressText = extractAcpToolCallOutputText(progressEvent);
15259
15275
  if (progressText === void 0) {
15260
- return suppressedUnhandled(rawEvent);
15276
+ return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
15261
15277
  }
15262
15278
  if (mergedType !== "command" && mergedType !== "fileChange") {
15263
15279
  return [
@@ -15271,7 +15287,7 @@ function createAcpDeltaTranslator(options = {}) {
15271
15287
  }
15272
15288
  ];
15273
15289
  }
15274
- return suppressedUnhandled(rawEvent);
15290
+ return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
15275
15291
  }
15276
15292
  case "plan": {
15277
15293
  const parsed = acpPlanUpdateSchema.safeParse(update);
@@ -15376,8 +15392,10 @@ function createAcpDeltaTranslator(options = {}) {
15376
15392
  function translateAcpEvent(event, context) {
15377
15393
  const errorEnvelope = errorEnvelopeSchema.safeParse(event);
15378
15394
  if (errorEnvelope.success) {
15395
+ const closed = flushOpenTurnWork(context, "failed");
15379
15396
  clearThreadCalls(context);
15380
15397
  return [
15398
+ ...closed,
15381
15399
  {
15382
15400
  kind: "provider.error",
15383
15401
  message: "Provider error",
@@ -15398,9 +15416,10 @@ function createAcpDeltaTranslator(options = {}) {
15398
15416
  if (!params.success) {
15399
15417
  return [];
15400
15418
  }
15419
+ const closed = flushOpenTurnWork(context, "interrupted");
15401
15420
  clearThreadCalls(context);
15402
15421
  filesAddedThisTurn.clear();
15403
- return [{ kind: "turn.open" }];
15422
+ return [...closed, { kind: "turn.open" }];
15404
15423
  }
15405
15424
  case ACP_PROMPT_INTERRUPTED_METHOD: {
15406
15425
  const params = acpTurnStartedNotificationParamsSchema.safeParse(
@@ -15427,8 +15446,10 @@ function createAcpDeltaTranslator(options = {}) {
15427
15446
  if (!params.success) {
15428
15447
  return [];
15429
15448
  }
15449
+ const closed = flushOpenTurnWork(context, "interrupted");
15430
15450
  clearThreadCalls(context);
15431
15451
  return [
15452
+ ...closed,
15432
15453
  { kind: "turn.open" },
15433
15454
  {
15434
15455
  kind: "item.open",
@@ -3847,7 +3847,9 @@ var NAV_PANEL_REGISTRATION_KEYS = {
3847
3847
  experimental_useBadge: true,
3848
3848
  experimental_usePageTitle: true,
3849
3849
  experimental_sidebar: true,
3850
- headerContent: true
3850
+ headerContent: true,
3851
+ experimental_headerTitle: true,
3852
+ experimental_hideFromNavigation: true
3851
3853
  };
3852
3854
  var RENAMED_NAV_PANEL_KEYS = /* @__PURE__ */ new Map([
3853
3855
  ["experimental_fixedTabs", 'was renamed to "fixedTabs" in SDK 0.4.16']
@@ -3965,6 +3967,8 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
3965
3967
  threadInfoRows: [],
3966
3968
  threadRowMetadata: [],
3967
3969
  threadInfoSections: [],
3970
+ threadHeaderRows: [],
3971
+ threadHeaderTitles: [],
3968
3972
  threadContextCardRows: [],
3969
3973
  threadContextCardSections: [],
3970
3974
  threadActions: [],
@@ -4006,6 +4010,8 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
4006
4010
  threadInfoRow: /* @__PURE__ */ new Set(),
4007
4011
  threadRowMetadata: /* @__PURE__ */ new Set(),
4008
4012
  threadInfoSection: /* @__PURE__ */ new Set(),
4013
+ threadHeaderRow: /* @__PURE__ */ new Set(),
4014
+ threadHeaderTitle: /* @__PURE__ */ new Set(),
4009
4015
  threadContextCardRow: /* @__PURE__ */ new Set(),
4010
4016
  threadContextCardSection: /* @__PURE__ */ new Set(),
4011
4017
  threadAction: /* @__PURE__ */ new Set(),
@@ -4229,6 +4235,16 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
4229
4235
  `${kind}: "experimental_sidebar" must be a React component function when set`
4230
4236
  );
4231
4237
  }
4238
+ if (registration.experimental_headerTitle !== void 0 && typeof registration.experimental_headerTitle !== "function") {
4239
+ throw new Error(
4240
+ `${kind}: "experimental_headerTitle" must be a React component function when set`
4241
+ );
4242
+ }
4243
+ if (registration.experimental_hideFromNavigation !== void 0 && typeof registration.experimental_hideFromNavigation !== "boolean") {
4244
+ throw new Error(
4245
+ `${kind}: "experimental_hideFromNavigation" must be a boolean when set`
4246
+ );
4247
+ }
4232
4248
  if (registration.experimental_usePageTitle !== void 0 && typeof registration.experimental_usePageTitle !== "function") {
4233
4249
  throw new Error(
4234
4250
  `${kind}: "experimental_usePageTitle" must be a React hook function when set`
@@ -4280,7 +4296,11 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
4280
4296
  experimental_usePageTitle: registration.experimental_usePageTitle
4281
4297
  } : {},
4282
4298
  ...registration.experimental_sidebar !== void 0 ? { experimental_sidebar: registration.experimental_sidebar } : {},
4283
- ...registration.headerContent !== void 0 ? { headerContent: registration.headerContent } : {}
4299
+ ...registration.headerContent !== void 0 ? { headerContent: registration.headerContent } : {},
4300
+ ...registration.experimental_headerTitle !== void 0 ? {
4301
+ experimental_headerTitle: registration.experimental_headerTitle
4302
+ } : {},
4303
+ ...registration.experimental_hideFromNavigation === true ? { experimental_hideFromNavigation: true } : {}
4284
4304
  });
4285
4305
  },
4286
4306
  experimental_tab(registration) {
@@ -4420,6 +4440,25 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
4420
4440
  component: requireComponent(kind, registration.component)
4421
4441
  });
4422
4442
  },
4443
+ experimental_threadHeaderRow(registration) {
4444
+ const kind = "slots.experimental_threadHeaderRow";
4445
+ const id = requireSlotId(kind, registration?.id);
4446
+ requireUniqueId(kind, seenIds.threadHeaderRow, id);
4447
+ collected.threadHeaderRows.push({
4448
+ id,
4449
+ ...requireOptionalOrder(kind, registration.order),
4450
+ component: requireComponent(kind, registration.component)
4451
+ });
4452
+ },
4453
+ experimental_threadHeaderTitle(registration) {
4454
+ const kind = "slots.experimental_threadHeaderTitle";
4455
+ const id = requireSlotId(kind, registration?.id);
4456
+ requireUniqueId(kind, seenIds.threadHeaderTitle, id);
4457
+ collected.threadHeaderTitles.push({
4458
+ id,
4459
+ component: requireComponent(kind, registration.component)
4460
+ });
4461
+ },
4423
4462
  experimental_threadContextCardRow(registration) {
4424
4463
  const kind = "slots.experimental_threadContextCardRow";
4425
4464
  const id = requireSlotId(kind, registration?.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.6.138",
3
+ "version": "0.6.141",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"