@get-bb/plugin-sdk 0.6.75 → 0.6.79

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.
@@ -504,6 +504,7 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
504
504
  compactExpiredCache: "compactExpiredCache";
505
505
  performanceDiagnostics: "performanceDiagnostics";
506
506
  serverMove: "serverMove";
507
+ sidebarMultiSelect: "sidebarMultiSelect";
507
508
  timelinePush: "timelinePush";
508
509
  }>, z$1.ZodBoolean>;
509
510
  type Experiments = z$1.infer<typeof experimentsSchema>;
@@ -512,6 +513,7 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
512
513
  compactExpiredCache: "compactExpiredCache";
513
514
  performanceDiagnostics: "performanceDiagnostics";
514
515
  serverMove: "serverMove";
516
+ sidebarMultiSelect: "sidebarMultiSelect";
515
517
  timelinePush: "timelinePush";
516
518
  }> & z$1.core.$partial, z$1.ZodBoolean>;
517
519
  type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
@@ -4107,11 +4109,13 @@ declare const providerInfoSchema: z$1.ZodObject<{
4107
4109
  pluginId: z$1.ZodString;
4108
4110
  reasoningLevels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
4109
4111
  description: z$1.ZodOptional<z$1.ZodString>;
4112
+ icon: z$1.ZodOptional<z$1.ZodString>;
4110
4113
  id: z$1.ZodString;
4111
4114
  label: z$1.ZodString;
4112
4115
  }, z$1.core.$strip>>>;
4113
4116
  serviceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
4114
4117
  description: z$1.ZodOptional<z$1.ZodString>;
4118
+ icon: z$1.ZodOptional<z$1.ZodString>;
4115
4119
  id: z$1.ZodString;
4116
4120
  label: z$1.ZodString;
4117
4121
  }, z$1.core.$strip>>>;
@@ -4461,6 +4465,13 @@ type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<S
4461
4465
  type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
4462
4466
  interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
4463
4467
  readonly experimental_description?: string;
4468
+ /**
4469
+ * Host contracts only. When true and the daemon's response has not arrived
4470
+ * within half of the call's transport timeout, bb cancels the call and sends
4471
+ * it once more, the retry core uses for its own read-only daemon commands.
4472
+ * Declare it only for reads that are safe to run twice.
4473
+ */
4474
+ readonly experimental_retryable?: boolean;
4464
4475
  readonly input: InputSchema;
4465
4476
  readonly output: OutputSchema;
4466
4477
  }
@@ -7745,11 +7756,13 @@ declare const hostDaemonCommandRegistry: {
7745
7756
  type: z$1.ZodLiteral<"host.list_skills">;
7746
7757
  }, z$1.core.$strict>, z$1.ZodObject<{
7747
7758
  skills: z$1.ZodArray<z$1.ZodObject<{
7759
+ contentSha256: z$1.ZodString;
7748
7760
  description: z$1.ZodNullable<z$1.ZodString>;
7749
7761
  filePath: z$1.ZodString;
7750
7762
  id: z$1.ZodString;
7751
7763
  linked: z$1.ZodBoolean;
7752
7764
  name: z$1.ZodString;
7765
+ realPath: z$1.ZodString;
7753
7766
  rootKind: z$1.ZodEnum<{
7754
7767
  "bb-builtin": "bb-builtin";
7755
7768
  "bb-data-dir": "bb-data-dir";
@@ -7804,11 +7817,13 @@ declare const hostDaemonCommandRegistry: {
7804
7817
  }, z$1.core.$strict>], "kind">>;
7805
7818
  projectSkillsTruncated: z$1.ZodBoolean;
7806
7819
  sharedSkills: z$1.ZodArray<z$1.ZodObject<{
7820
+ contentSha256: z$1.ZodString;
7807
7821
  description: z$1.ZodNullable<z$1.ZodString>;
7808
7822
  filePath: z$1.ZodString;
7809
7823
  id: z$1.ZodString;
7810
7824
  linked: z$1.ZodBoolean;
7811
7825
  name: z$1.ZodString;
7826
+ realPath: z$1.ZodString;
7812
7827
  rootKind: z$1.ZodEnum<{
7813
7828
  "bb-builtin": "bb-builtin";
7814
7829
  "bb-data-dir": "bb-data-dir";
@@ -10351,11 +10366,13 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
10351
10366
  pluginId: z$1.ZodString;
10352
10367
  reasoningLevels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10353
10368
  description: z$1.ZodOptional<z$1.ZodString>;
10369
+ icon: z$1.ZodOptional<z$1.ZodString>;
10354
10370
  id: z$1.ZodString;
10355
10371
  label: z$1.ZodString;
10356
10372
  }, z$1.core.$strip>>>;
10357
10373
  serviceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10358
10374
  description: z$1.ZodOptional<z$1.ZodString>;
10375
+ icon: z$1.ZodOptional<z$1.ZodString>;
10359
10376
  id: z$1.ZodString;
10360
10377
  label: z$1.ZodString;
10361
10378
  }, z$1.core.$strip>>>;
@@ -10804,6 +10821,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10804
10821
  compactExpiredCache: "compactExpiredCache";
10805
10822
  performanceDiagnostics: "performanceDiagnostics";
10806
10823
  serverMove: "serverMove";
10824
+ sidebarMultiSelect: "sidebarMultiSelect";
10807
10825
  timelinePush: "timelinePush";
10808
10826
  }>, z$1.ZodBoolean>;
10809
10827
  featureFlags: z$1.ZodObject<{
@@ -11396,11 +11414,13 @@ declare const systemProviderCatalogEntrySchema: z$1.ZodObject<{
11396
11414
  pluginId: z$1.ZodString;
11397
11415
  reasoningLevels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
11398
11416
  description: z$1.ZodOptional<z$1.ZodString>;
11417
+ icon: z$1.ZodOptional<z$1.ZodString>;
11399
11418
  id: z$1.ZodString;
11400
11419
  label: z$1.ZodString;
11401
11420
  }, z$1.core.$strip>>>;
11402
11421
  serviceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
11403
11422
  description: z$1.ZodOptional<z$1.ZodString>;
11423
+ icon: z$1.ZodOptional<z$1.ZodString>;
11404
11424
  id: z$1.ZodString;
11405
11425
  label: z$1.ZodString;
11406
11426
  }, z$1.core.$strip>>>;
@@ -20480,6 +20500,16 @@ interface PluginSidebarSplitLayout {
20480
20500
  isFocused: boolean;
20481
20501
  }[];
20482
20502
  }
20503
+ /** Options for {@link PluginSdkApp.experimental_useSidebarThreadSplit}. */
20504
+ interface PluginSidebarThreadSplitOptions {
20505
+ /**
20506
+ * Every thread a drag from this row carries, in list order, when the row is
20507
+ * part of a multi-row selection; include the row's own thread. With more
20508
+ * than one thread the drag offers no split or replace targets and drops
20509
+ * onto a composer as one mention per thread. Omit for a single-row drag.
20510
+ */
20511
+ dragThreadIds?: readonly string[];
20512
+ }
20483
20513
  /**
20484
20514
  * Drag-to-split support for one row, plus where that thread currently sits in
20485
20515
  * the split layout.
@@ -21003,10 +21033,13 @@ interface ExperimentalComposerEditor {
21003
21033
  focus(): boolean;
21004
21034
  /** Focus the editor with the caret at the end of the draft. */
21005
21035
  focusEnd(): void;
21006
- /** Whether a thread dragged from the sidebar can be dropped now. */
21036
+ /** Whether threads dragged from the sidebar can be dropped now. */
21007
21037
  acceptsThreadDrop(): boolean;
21008
- /** Insert a dropped thread at the viewport point `x`, `y`. */
21009
- insertDroppedThread(thread: ExperimentalDroppedThreadMention, x: number, y: number): void;
21038
+ /**
21039
+ * Insert one mention per dropped thread, in order, starting at the viewport
21040
+ * point `x`, `y`. A drag from a multi-row sidebar selection drops several.
21041
+ */
21042
+ insertDroppedThreads(threads: readonly ExperimentalDroppedThreadMention[], x: number, y: number): void;
21010
21043
  openPopup(pluginId: string, popupId: string): boolean;
21011
21044
  closePopup(pluginId: string): boolean;
21012
21045
  isPopupOpen(): boolean;
@@ -21043,7 +21076,7 @@ interface ExperimentalComposerThreadLinkTarget {
21043
21076
  interface ExperimentalComposerThreadLink extends ExperimentalComposerThreadLinkTarget {
21044
21077
  label: string;
21045
21078
  }
21046
- /** The thread an app drag dropped onto the composer. */
21079
+ /** A thread an app drag dropped onto the composer. */
21047
21080
  interface ExperimentalDroppedThreadMention {
21048
21081
  threadId: string;
21049
21082
  label: string;
@@ -23009,6 +23042,13 @@ interface PluginSdkApp {
23009
23042
  */
23010
23043
  useRealtimeConnectionState(): PluginRealtimeConnectionState;
23011
23044
  useSettings(): PluginSettingsState;
23045
+ /**
23046
+ * Whether the bb experiment `key` is on (Settings → Experiments,
23047
+ * `bb settings experiment <key>`), following live changes. False while the
23048
+ * app config loads and for keys this bb does not know. Experimental: see
23049
+ * docs/api_to_audit.md.
23050
+ */
23051
+ experimental_useExperiment(key: string): boolean;
23012
23052
  useBbContext(): BbContext;
23013
23053
  /**
23014
23054
  * The id of the plugin that owns the calling component: the same id
@@ -23155,7 +23195,7 @@ interface PluginSdkApp {
23155
23195
  * Call it once per rendered row, like the built-in sidebar does.
23156
23196
  * Experimental: see docs/api_to_audit.md.
23157
23197
  */
23158
- experimental_useSidebarThreadSplit(threadId: string): PluginSidebarThreadSplit;
23198
+ experimental_useSidebarThreadSplit(threadId: string, options?: PluginSidebarThreadSplitOptions): PluginSidebarThreadSplit;
23159
23199
  /**
23160
23200
  * The sidebar navigation items in the user's saved order, the active item,
23161
23201
  * and the host actions that activate, hide, reorder, and customize them
@@ -23565,7 +23605,8 @@ declare const experimental_useThreadActionRegistrations: () => readonly PluginTh
23565
23605
  declare const experimental_ThreadActionsMenu: react.ComponentType<PluginThreadActionsMenuProps>;
23566
23606
  declare const experimental_ThreadActionsContextMenu: react.ComponentType<PluginThreadActionsContextMenuProps>;
23567
23607
 
23568
- declare const experimental_useSidebarThreadSplit: (threadId: string) => PluginSidebarThreadSplit;
23608
+ declare const experimental_useExperiment: (key: string) => boolean;
23609
+ declare const experimental_useSidebarThreadSplit: (threadId: string, options?: PluginSidebarThreadSplitOptions) => PluginSidebarThreadSplit;
23569
23610
  declare const experimental_useSidebarNavigation: () => ExperimentalSidebarNavigationState;
23570
23611
  declare const experimental_useSidebarNavigationSplit: (itemId: string, options?: ExperimentalSidebarNavigationSplitOptions) => ExperimentalSidebarNavigationSplit;
23571
23612
  declare const experimental_SidebarNavigationIcon: react.ComponentType<ExperimentalSidebarNavigationIconProps>;
@@ -23584,5 +23625,5 @@ declare const experimental_useCodeTheme: () => PluginCodeThemeState;
23584
23625
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
23585
23626
  declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
23586
23627
 
23587
- export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
23588
- export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabOpenOptions, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
23628
+ export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
23629
+ export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabOpenOptions, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
@@ -118,6 +118,13 @@ type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<S
118
118
  type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
119
119
  interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
120
120
  readonly experimental_description?: string;
121
+ /**
122
+ * Host contracts only. When true and the daemon's response has not arrived
123
+ * within half of the call's transport timeout, bb cancels the call and sends
124
+ * it once more, the retry core uses for its own read-only daemon commands.
125
+ * Declare it only for reads that are safe to run twice.
126
+ */
127
+ readonly experimental_retryable?: boolean;
121
128
  readonly input: InputSchema;
122
129
  readonly output: OutputSchema;
123
130
  }
@@ -807,6 +807,13 @@ interface StandardSchemaV1Issue {
807
807
  type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
808
808
  interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
809
809
  readonly experimental_description?: string;
810
+ /**
811
+ * Host contracts only. When true and the daemon's response has not arrived
812
+ * within half of the call's transport timeout, bb cancels the call and sends
813
+ * it once more, the retry core uses for its own read-only daemon commands.
814
+ * Declare it only for reads that are safe to run twice.
815
+ */
816
+ readonly experimental_retryable?: boolean;
810
817
  readonly input: InputSchema;
811
818
  readonly output: OutputSchema;
812
819
  }
@@ -1399,6 +1406,12 @@ interface PluginProviderOptionDescriptor {
1399
1406
  id: string;
1400
1407
  label: string;
1401
1408
  description?: string;
1409
+ /** Host glyph name (`"Zap"`) or declared icon (`"<pluginId>/<name>"`, an
1410
+ * entry of this plugin's `bb.branding.experimental_icons`; any other plugin
1411
+ * id or an undeclared name fails the load) shown beside a selected service
1412
+ * tier. Host glyphs draw filled. Ignored for reasoning levels. Defaults to
1413
+ * `"Zap"`. */
1414
+ experimental_icon?: string;
1402
1415
  }
1403
1416
  /**
1404
1417
  * Payload schemas for one extension kind this provider emits, keyed by the
@@ -1950,6 +1963,12 @@ declare function adoptHttpRouteResponse(value: unknown): Response;
1950
1963
  declare function undeclaredIconProblem(pluginId: string, declaredIconNames: ReadonlySet<string>, glyph: string): string | null;
1951
1964
  /** `bb.providers.register` refusal for an icon {@link undeclaredIconProblem} rejects. */
1952
1965
  declare function providerIconRefusalMessage(providerId: string, problem: string): string;
1966
+ /**
1967
+ * `bb.providers.register` refusal for the provider icon or a service tier
1968
+ * icon {@link undeclaredIconProblem} rejects, or null when every icon is
1969
+ * acceptable.
1970
+ */
1971
+ declare function providerDeclarationIconRefusal(pluginId: string, declaredIconNames: ReadonlySet<string>, declaration: NormalizedPluginProviderDeclaration): string | null;
1953
1972
  /**
1954
1973
  * `bb.providers.register` refusal for a plugin whose manifest declares no
1955
1974
  * `bb.host` entry: a declaration is metadata, and the bridge it runs on is
@@ -2139,5 +2158,5 @@ declare function readPluginRpcRefusal(error: unknown): PluginRpcError | null;
2139
2158
  declare function validateRpcValue(schema: StandardSchemaV1, value: unknown, phase: "input" | "output", fail: (error: PluginRpcError) => never): Promise<unknown>;
2140
2159
  declare function normalizeRpcJsonResult(value: unknown, fail: (error: PluginRpcError) => never): JsonValue;
2141
2160
 
2142
- export { ENVIRONMENT_PROVIDER_DESCRIPTION_MAX_CHARS, ENVIRONMENT_PROVIDER_DISPLAY_NAME_MAX_CHARS, ENVIRONMENT_PROVIDER_ID_PATTERN, ENVIRONMENT_PROVIDER_REQUIREMENT_NAMES, KV_VALUE_MAX_BYTES, MACHINE_PROVIDER_DESCRIPTION_MAX_CHARS, PLUGIN_AGENT_STATUS_LABEL_MAX_CHARS, PLUGIN_MENTION_TRIGGER_VALUES, PLUGIN_PROVIDER_BRIDGE_OPTIONS_MAX_BYTES, PLUGIN_PROVIDER_COMPOSER_ACTION_VALUES, PLUGIN_PROVIDER_DISPLAY_NAME_MAX_CHARS, PLUGIN_PROVIDER_ENV_MAX_ENTRIES, PLUGIN_PROVIDER_ENV_NAME_PATTERN, PLUGIN_PROVIDER_PERMISSION_MODE_VALUES, PLUGIN_PROVIDER_REASONING_LEVEL_VALUES, PROVIDER_ID_PATTERN, RESERVED_AGENT_TOOL_NAMES, RESERVED_BB_CLI_COMMANDS, SETTING_KEY_PATTERN, adoptHttpRouteResponse, aiServiceAlreadyRegisteredMessage, coerceStoredPluginSettingValue, deriveValidatedProviderOptions, enforcePluginCliOutputLimit, environmentCompositionSchema, isPluginMentionTrigger, isStandardSchema, normalizeAgentToolRegistration, normalizeCliRegistration, normalizeHttpRouteRegistration, normalizeInteractionRequest, normalizeMentionProviderRegistration, normalizePluginAgentConfiguration, normalizeRealtimePayload, normalizeRpcJsonResult, normalizeRpcRegistration, normalizeWebSocketRouteRegistration, parsePluginRowPresentation, pluginCliCollisionWarning, pluginHookAlreadyRegisteredMessage, providerAlreadyRegisteredMessage, providerIconRefusalMessage, providerWithoutBridgeMessage, publishRpcMethod, readPluginRpcRefusal, readRpcPublicationOptions, registerSettingDescriptors, runPluginStorageMigrations, storePluginHook, summarizeStandardIssues, undeclaredIconProblem, validateBackgroundServiceRegistration, validatePluginAiServiceDeclaration, validatePluginEnvironmentProviderDeclaration, validatePluginMachineProviderDeclaration, validatePluginProviderDeclaration, validatePluginProviderEnvEntries, validateProviderEnvContribution, validateRpcValue, validateScheduleRegistration, validateServerAccessProviderDeclaration, validateSettingsUpdate };
2161
+ export { ENVIRONMENT_PROVIDER_DESCRIPTION_MAX_CHARS, ENVIRONMENT_PROVIDER_DISPLAY_NAME_MAX_CHARS, ENVIRONMENT_PROVIDER_ID_PATTERN, ENVIRONMENT_PROVIDER_REQUIREMENT_NAMES, KV_VALUE_MAX_BYTES, MACHINE_PROVIDER_DESCRIPTION_MAX_CHARS, PLUGIN_AGENT_STATUS_LABEL_MAX_CHARS, PLUGIN_MENTION_TRIGGER_VALUES, PLUGIN_PROVIDER_BRIDGE_OPTIONS_MAX_BYTES, PLUGIN_PROVIDER_COMPOSER_ACTION_VALUES, PLUGIN_PROVIDER_DISPLAY_NAME_MAX_CHARS, PLUGIN_PROVIDER_ENV_MAX_ENTRIES, PLUGIN_PROVIDER_ENV_NAME_PATTERN, PLUGIN_PROVIDER_PERMISSION_MODE_VALUES, PLUGIN_PROVIDER_REASONING_LEVEL_VALUES, PROVIDER_ID_PATTERN, RESERVED_AGENT_TOOL_NAMES, RESERVED_BB_CLI_COMMANDS, SETTING_KEY_PATTERN, adoptHttpRouteResponse, aiServiceAlreadyRegisteredMessage, coerceStoredPluginSettingValue, deriveValidatedProviderOptions, enforcePluginCliOutputLimit, environmentCompositionSchema, isPluginMentionTrigger, isStandardSchema, normalizeAgentToolRegistration, normalizeCliRegistration, normalizeHttpRouteRegistration, normalizeInteractionRequest, normalizeMentionProviderRegistration, normalizePluginAgentConfiguration, normalizeRealtimePayload, normalizeRpcJsonResult, normalizeRpcRegistration, normalizeWebSocketRouteRegistration, parsePluginRowPresentation, pluginCliCollisionWarning, pluginHookAlreadyRegisteredMessage, providerAlreadyRegisteredMessage, providerDeclarationIconRefusal, providerIconRefusalMessage, providerWithoutBridgeMessage, publishRpcMethod, readPluginRpcRefusal, readRpcPublicationOptions, registerSettingDescriptors, runPluginStorageMigrations, storePluginHook, summarizeStandardIssues, undeclaredIconProblem, validateBackgroundServiceRegistration, validatePluginAiServiceDeclaration, validatePluginEnvironmentProviderDeclaration, validatePluginMachineProviderDeclaration, validatePluginProviderDeclaration, validatePluginProviderEnvEntries, validateProviderEnvContribution, validateRpcValue, validateScheduleRegistration, validateServerAccessProviderDeclaration, validateSettingsUpdate };
2143
2162
  export type { NormalizedPluginAiService, NormalizedPluginEnvironmentComposition, NormalizedPluginEnvironmentProvider, NormalizedPluginEnvironmentProviderRequirements, NormalizedPluginInteractionRequest, NormalizedPluginMachineProvider, NormalizedPluginProviderDeclaration };
@@ -89,6 +89,13 @@ type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<S
89
89
  type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
90
90
  interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
91
91
  readonly experimental_description?: string;
92
+ /**
93
+ * Host contracts only. When true and the daemon's response has not arrived
94
+ * within half of the call's transport timeout, bb cancels the call and sends
95
+ * it once more, the retry core uses for its own read-only daemon commands.
96
+ * Declare it only for reads that are safe to run twice.
97
+ */
98
+ readonly experimental_retryable?: boolean;
92
99
  readonly input: InputSchema;
93
100
  readonly output: OutputSchema;
94
101
  }
@@ -440,6 +440,7 @@ interface AcpDialect {
440
440
  readonly clientRequestMethods?: readonly string[];
441
441
  handleClientRequest?(method: string, params: unknown): AcpClientRequestOutcome | undefined;
442
442
  maintenance?: AcpMaintenanceDialect;
443
+ presentModel?(model: AvailableModel): AvailableModel;
443
444
  }
444
445
  interface AcpClientRequestOutcome {
445
446
  result: Record<string, unknown>;
@@ -440,6 +440,7 @@ interface AcpDialect {
440
440
  readonly clientRequestMethods?: readonly string[];
441
441
  handleClientRequest?(method: string, params: unknown): AcpClientRequestOutcome | undefined;
442
442
  maintenance?: AcpMaintenanceDialect;
443
+ presentModel?(model: AvailableModel): AvailableModel;
443
444
  }
444
445
  interface AcpClientRequestOutcome {
445
446
  result: Record<string, unknown>;
@@ -5235,5 +5235,46 @@ declare const claudeTaskToolOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
5235
5235
  }, z.core.$loose>]>;
5236
5236
  type ClaudeTaskToolOutput = z.infer<typeof claudeTaskToolOutputSchema>;
5237
5237
 
5238
- export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PLUGIN_INTERACTION_MAX_TITLE_LENGTH, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, commandListParamsSchema, commandListResultSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, killPortableProcess as experimental_killPortableProcess, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, searchPresentation as experimental_searchPresentation, spawnPortableProcess as experimental_spawnPortableProcess, toolPresentation as experimental_toolPresentation, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
5239
- export type { ApprovalInteractionOutcome, ApprovalPendingInteractionPayload, AvailableModel, BackgroundTaskStatus, BackgroundTaskUsage, BoundedLineReaderArgs, BridgeCapabilities, BridgeErrorData, BridgeExecutionOptions, BridgeGrammarVersions, BridgeJsonRpcResponse, BridgeSendError, BridgeSteerMode, BridgeToolCallRequest, BuildInteractiveResponseArgs, ClaudeTaskToolOutput, ClientTurnRequestId, ContextCategory, ContextEntry, ContextSnapshot, DecodedInteractiveRequest, DeltaBackgroundTaskShape, DeltaDelegationShape, DeltaExtensionShape, DeltaFileChange, DeltaFileReadShape, DeltaItemKey, DeltaItemShape, DeltaItemShapeType, DeltaNoTurnFallback, DeltaOutputChannel, DeltaPlanStepsShape, DeltaPresentation, DeltaProgressSnapshot, DeltaSearchShape, DeltaTextChannel, DynamicTool, ExtensionKind, AcpLaunchSpec as HostDaemonAcpLaunchSpec, InitializeResult, InstructionMode, InteractionRequestPayload, JsonObject, JsonRpcMessage, JsonValue, ModelReasoningEffort, ModelServiceTier, NpmGlobalPackageProbe, PendingInteractionApprovalDecision, PendingInteractionApprovalSubject, PendingInteractionCommandAction, PendingInteractionGrantablePermissionProfile, PendingInteractionGrantedPermissionProfile, PendingInteractionPayload, PendingInteractionRequestedPermissionProfile, PendingInteractionResolution, PendingInteractionUserQuestionQuestion, PermissionEscalation, PermissionMode, PreparedProviderCommandDispatch, PromptInput, ProviderBridgeContext, ProviderBridgeDefinition, ProviderBridgeEntry, ProviderErrorCategory, ProviderErrorInfo, ProviderHealth, ProviderHealthResult, ProviderInboundRequest, ProviderInstallationAction, ProviderInstallationActionKind, ProviderInstallationCommand, ProviderInstallationRequirement, ProviderInstallationRunParams, ProviderInstallationRunResult, ProviderInstallationSource, ProviderInstallationStatus, ProviderInstallationStatusParams, ProviderInstallationVerification, ProviderInteractionOutcome, ProviderMaintenanceParams, ProviderPostInitializeRequest, ProviderRateLimitState, ProviderRateLimitStatus, ProviderRateLimitWindow, ProviderRawEvent, ProviderRawEventCoverage, ProviderRawEventDescription, ProviderRecoveryHint, ProviderRecoveryKind, ProviderRecoveryNotification, ProviderRuntimeEvent, ProviderUsage, ProviderUsageResult, ProviderUsageWindow, ProviderVisibilityMetadata, ReasoningLevel, RuntimePermissionPolicy, RuntimePermissionScope, ServiceTier, ThreadDelta, ThreadDeltaKind, ThreadDeltaNotificationParams, ThreadEventContextWindowUsage, ThreadEventItemPresentation, ThreadEventItemStatus, ThreadEventPlanStep, ThreadEventSearchMode, ThreadEventTokenUsageBreakdown, ThreadEventTurnStatus, ThreadEventUserContent, UserQuestionInteractionOutcome, UserQuestionPendingInteractionPayload, UserQuestionPendingInteractionResolution, WorkflowAgentSnapshot, WorkflowAgentState, WorkflowPhaseSnapshot, WorkflowProgressSnapshot };
5238
+ interface SkillScanRoot {
5239
+ path: string;
5240
+ shape: "command" | "command-file" | "skill" | "skill-directory" | "skill-file" | "skill-recursive";
5241
+ boundaryPath: string | null;
5242
+ skipIfManifest?: string;
5243
+ fallbackName?: string;
5244
+ }
5245
+ interface SkillFile {
5246
+ filePath: string;
5247
+ realPath: string;
5248
+ name: string;
5249
+ linked: boolean;
5250
+ }
5251
+ interface IndexedSkillFile extends SkillFile {
5252
+ contentSha256: string;
5253
+ content: string;
5254
+ }
5255
+ declare function scanSkillFiles(root: SkillScanRoot): Promise<IndexedSkillFile[]>;
5256
+ interface SkillMentionCandidate {
5257
+ start: number;
5258
+ end: number;
5259
+ resource: {
5260
+ kind: string;
5261
+ source?: unknown;
5262
+ trigger?: unknown;
5263
+ name?: unknown;
5264
+ };
5265
+ }
5266
+ interface SelectedSkillMention extends SkillMentionCandidate {
5267
+ resource: {
5268
+ kind: "command";
5269
+ source: "skill";
5270
+ trigger: "$" | "/";
5271
+ name: string;
5272
+ };
5273
+ }
5274
+ declare function selectedSkillMentions(input: {
5275
+ text: string;
5276
+ mentions: readonly SkillMentionCandidate[];
5277
+ }): SelectedSkillMention[];
5278
+
5279
+ export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PLUGIN_INTERACTION_MAX_TITLE_LENGTH, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, commandListParamsSchema, commandListResultSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, killPortableProcess as experimental_killPortableProcess, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, scanSkillFiles as experimental_scanSkillFiles, searchPresentation as experimental_searchPresentation, selectedSkillMentions as experimental_selectedSkillMentions, spawnPortableProcess as experimental_spawnPortableProcess, toolPresentation as experimental_toolPresentation, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
5280
+ export type { ApprovalInteractionOutcome, ApprovalPendingInteractionPayload, AvailableModel, BackgroundTaskStatus, BackgroundTaskUsage, BoundedLineReaderArgs, BridgeCapabilities, BridgeErrorData, BridgeExecutionOptions, BridgeGrammarVersions, BridgeJsonRpcResponse, BridgeSendError, BridgeSteerMode, BridgeToolCallRequest, BuildInteractiveResponseArgs, ClaudeTaskToolOutput, ClientTurnRequestId, ContextCategory, ContextEntry, ContextSnapshot, DecodedInteractiveRequest, DeltaBackgroundTaskShape, DeltaDelegationShape, DeltaExtensionShape, DeltaFileChange, DeltaFileReadShape, DeltaItemKey, DeltaItemShape, DeltaItemShapeType, DeltaNoTurnFallback, DeltaOutputChannel, DeltaPlanStepsShape, DeltaPresentation, DeltaProgressSnapshot, DeltaSearchShape, DeltaTextChannel, DynamicTool, IndexedSkillFile as ExperimentalIndexedSkillFile, SkillScanRoot as ExperimentalSkillScanRoot, ExtensionKind, AcpLaunchSpec as HostDaemonAcpLaunchSpec, InitializeResult, InstructionMode, InteractionRequestPayload, JsonObject, JsonRpcMessage, JsonValue, ModelReasoningEffort, ModelServiceTier, NpmGlobalPackageProbe, PendingInteractionApprovalDecision, PendingInteractionApprovalSubject, PendingInteractionCommandAction, PendingInteractionGrantablePermissionProfile, PendingInteractionGrantedPermissionProfile, PendingInteractionPayload, PendingInteractionRequestedPermissionProfile, PendingInteractionResolution, PendingInteractionUserQuestionQuestion, PermissionEscalation, PermissionMode, PreparedProviderCommandDispatch, PromptInput, ProviderBridgeContext, ProviderBridgeDefinition, ProviderBridgeEntry, ProviderErrorCategory, ProviderErrorInfo, ProviderHealth, ProviderHealthResult, ProviderInboundRequest, ProviderInstallationAction, ProviderInstallationActionKind, ProviderInstallationCommand, ProviderInstallationRequirement, ProviderInstallationRunParams, ProviderInstallationRunResult, ProviderInstallationSource, ProviderInstallationStatus, ProviderInstallationStatusParams, ProviderInstallationVerification, ProviderInteractionOutcome, ProviderMaintenanceParams, ProviderPostInitializeRequest, ProviderRateLimitState, ProviderRateLimitStatus, ProviderRateLimitWindow, ProviderRawEvent, ProviderRawEventCoverage, ProviderRawEventDescription, ProviderRecoveryHint, ProviderRecoveryKind, ProviderRecoveryNotification, ProviderRuntimeEvent, ProviderUsage, ProviderUsageResult, ProviderUsageWindow, ProviderVisibilityMetadata, ReasoningLevel, RuntimePermissionPolicy, RuntimePermissionScope, ServiceTier, ThreadDelta, ThreadDeltaKind, ThreadDeltaNotificationParams, ThreadEventContextWindowUsage, ThreadEventItemPresentation, ThreadEventItemStatus, ThreadEventPlanStep, ThreadEventSearchMode, ThreadEventTokenUsageBreakdown, ThreadEventTurnStatus, ThreadEventUserContent, UserQuestionInteractionOutcome, UserQuestionPendingInteractionPayload, UserQuestionPendingInteractionResolution, WorkflowAgentSnapshot, WorkflowAgentState, WorkflowPhaseSnapshot, WorkflowProgressSnapshot };
@@ -364,6 +364,8 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
364
364
  * report as holding an unsent draft. Omitted → none.
365
365
  */
366
366
  sidebarDraftThreadIds?: readonly string[];
367
+ /** Experiment keys `experimental_useExperiment()` reports as on. Omitted → none. */
368
+ experiments?: readonly string[];
367
369
  /**
368
370
  * Row statuses `useSidebarThreadRowStatus()` reports, keyed by thread id.
369
371
  * Omitted → every thread reports null.
@@ -530,6 +530,13 @@ interface StandardSchemaV1Issue {
530
530
  type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
531
531
  interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
532
532
  readonly experimental_description?: string;
533
+ /**
534
+ * Host contracts only. When true and the daemon's response has not arrived
535
+ * within half of the call's transport timeout, bb cancels the call and sends
536
+ * it once more, the retry core uses for its own read-only daemon commands.
537
+ * Declare it only for reads that are safe to run twice.
538
+ */
539
+ readonly experimental_retryable?: boolean;
533
540
  readonly input: InputSchema;
534
541
  readonly output: OutputSchema;
535
542
  }
@@ -692,6 +699,12 @@ interface PluginProviderOptionDescriptor {
692
699
  id: string;
693
700
  label: string;
694
701
  description?: string;
702
+ /** Host glyph name (`"Zap"`) or declared icon (`"<pluginId>/<name>"`, an
703
+ * entry of this plugin's `bb.branding.experimental_icons`; any other plugin
704
+ * id or an undeclared name fails the load) shown beside a selected service
705
+ * tier. Host glyphs draw filled. Ignored for reasoning levels. Defaults to
706
+ * `"Zap"`. */
707
+ experimental_icon?: string;
695
708
  }
696
709
  /**
697
710
  * Payload schemas for one extension kind this provider emits, keyed by the
@@ -525,6 +525,7 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
525
525
  compactExpiredCache: "compactExpiredCache";
526
526
  performanceDiagnostics: "performanceDiagnostics";
527
527
  serverMove: "serverMove";
528
+ sidebarMultiSelect: "sidebarMultiSelect";
528
529
  timelinePush: "timelinePush";
529
530
  }>, z$1.ZodBoolean>;
530
531
  type Experiments = z$1.infer<typeof experimentsSchema>;
@@ -533,6 +534,7 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
533
534
  compactExpiredCache: "compactExpiredCache";
534
535
  performanceDiagnostics: "performanceDiagnostics";
535
536
  serverMove: "serverMove";
537
+ sidebarMultiSelect: "sidebarMultiSelect";
536
538
  timelinePush: "timelinePush";
537
539
  }> & z$1.core.$partial, z$1.ZodBoolean>;
538
540
  type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
@@ -4209,11 +4211,13 @@ declare const providerInfoSchema: z$1.ZodObject<{
4209
4211
  pluginId: z$1.ZodString;
4210
4212
  reasoningLevels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
4211
4213
  description: z$1.ZodOptional<z$1.ZodString>;
4214
+ icon: z$1.ZodOptional<z$1.ZodString>;
4212
4215
  id: z$1.ZodString;
4213
4216
  label: z$1.ZodString;
4214
4217
  }, z$1.core.$strip>>>;
4215
4218
  serviceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
4216
4219
  description: z$1.ZodOptional<z$1.ZodString>;
4220
+ icon: z$1.ZodOptional<z$1.ZodString>;
4217
4221
  id: z$1.ZodString;
4218
4222
  label: z$1.ZodString;
4219
4223
  }, z$1.core.$strip>>>;
@@ -4598,6 +4602,13 @@ type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<S
4598
4602
  type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
4599
4603
  interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
4600
4604
  readonly experimental_description?: string;
4605
+ /**
4606
+ * Host contracts only. When true and the daemon's response has not arrived
4607
+ * within half of the call's transport timeout, bb cancels the call and sends
4608
+ * it once more, the retry core uses for its own read-only daemon commands.
4609
+ * Declare it only for reads that are safe to run twice.
4610
+ */
4611
+ readonly experimental_retryable?: boolean;
4601
4612
  readonly input: InputSchema;
4602
4613
  readonly output: OutputSchema;
4603
4614
  }
@@ -7931,11 +7942,13 @@ declare const hostDaemonCommandRegistry: {
7931
7942
  type: z$1.ZodLiteral<"host.list_skills">;
7932
7943
  }, z$1.core.$strict>, z$1.ZodObject<{
7933
7944
  skills: z$1.ZodArray<z$1.ZodObject<{
7945
+ contentSha256: z$1.ZodString;
7934
7946
  description: z$1.ZodNullable<z$1.ZodString>;
7935
7947
  filePath: z$1.ZodString;
7936
7948
  id: z$1.ZodString;
7937
7949
  linked: z$1.ZodBoolean;
7938
7950
  name: z$1.ZodString;
7951
+ realPath: z$1.ZodString;
7939
7952
  rootKind: z$1.ZodEnum<{
7940
7953
  "bb-builtin": "bb-builtin";
7941
7954
  "bb-data-dir": "bb-data-dir";
@@ -7990,11 +8003,13 @@ declare const hostDaemonCommandRegistry: {
7990
8003
  }, z$1.core.$strict>], "kind">>;
7991
8004
  projectSkillsTruncated: z$1.ZodBoolean;
7992
8005
  sharedSkills: z$1.ZodArray<z$1.ZodObject<{
8006
+ contentSha256: z$1.ZodString;
7993
8007
  description: z$1.ZodNullable<z$1.ZodString>;
7994
8008
  filePath: z$1.ZodString;
7995
8009
  id: z$1.ZodString;
7996
8010
  linked: z$1.ZodBoolean;
7997
8011
  name: z$1.ZodString;
8012
+ realPath: z$1.ZodString;
7998
8013
  rootKind: z$1.ZodEnum<{
7999
8014
  "bb-builtin": "bb-builtin";
8000
8015
  "bb-data-dir": "bb-data-dir";
@@ -10537,11 +10552,13 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
10537
10552
  pluginId: z$1.ZodString;
10538
10553
  reasoningLevels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10539
10554
  description: z$1.ZodOptional<z$1.ZodString>;
10555
+ icon: z$1.ZodOptional<z$1.ZodString>;
10540
10556
  id: z$1.ZodString;
10541
10557
  label: z$1.ZodString;
10542
10558
  }, z$1.core.$strip>>>;
10543
10559
  serviceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10544
10560
  description: z$1.ZodOptional<z$1.ZodString>;
10561
+ icon: z$1.ZodOptional<z$1.ZodString>;
10545
10562
  id: z$1.ZodString;
10546
10563
  label: z$1.ZodString;
10547
10564
  }, z$1.core.$strip>>>;
@@ -10990,6 +11007,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10990
11007
  compactExpiredCache: "compactExpiredCache";
10991
11008
  performanceDiagnostics: "performanceDiagnostics";
10992
11009
  serverMove: "serverMove";
11010
+ sidebarMultiSelect: "sidebarMultiSelect";
10993
11011
  timelinePush: "timelinePush";
10994
11012
  }>, z$1.ZodBoolean>;
10995
11013
  featureFlags: z$1.ZodObject<{
@@ -11582,11 +11600,13 @@ declare const systemProviderCatalogEntrySchema: z$1.ZodObject<{
11582
11600
  pluginId: z$1.ZodString;
11583
11601
  reasoningLevels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
11584
11602
  description: z$1.ZodOptional<z$1.ZodString>;
11603
+ icon: z$1.ZodOptional<z$1.ZodString>;
11585
11604
  id: z$1.ZodString;
11586
11605
  label: z$1.ZodString;
11587
11606
  }, z$1.core.$strip>>>;
11588
11607
  serviceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
11589
11608
  description: z$1.ZodOptional<z$1.ZodString>;
11609
+ icon: z$1.ZodOptional<z$1.ZodString>;
11590
11610
  id: z$1.ZodString;
11591
11611
  label: z$1.ZodString;
11592
11612
  }, z$1.core.$strip>>>;
@@ -20250,6 +20270,12 @@ interface PluginProviderOptionDescriptor {
20250
20270
  id: string;
20251
20271
  label: string;
20252
20272
  description?: string;
20273
+ /** Host glyph name (`"Zap"`) or declared icon (`"<pluginId>/<name>"`, an
20274
+ * entry of this plugin's `bb.branding.experimental_icons`; any other plugin
20275
+ * id or an undeclared name fails the load) shown beside a selected service
20276
+ * tier. Host glyphs draw filled. Ignored for reasoning levels. Defaults to
20277
+ * `"Zap"`. */
20278
+ experimental_icon?: string;
20253
20279
  }
20254
20280
  /**
20255
20281
  * Payload schemas for one extension kind this provider emits, keyed by the
@@ -23011,6 +23037,16 @@ interface PluginSidebarSplitLayout {
23011
23037
  isFocused: boolean;
23012
23038
  }[];
23013
23039
  }
23040
+ /** Options for {@link PluginSdkApp.experimental_useSidebarThreadSplit}. */
23041
+ interface PluginSidebarThreadSplitOptions {
23042
+ /**
23043
+ * Every thread a drag from this row carries, in list order, when the row is
23044
+ * part of a multi-row selection; include the row's own thread. With more
23045
+ * than one thread the drag offers no split or replace targets and drops
23046
+ * onto a composer as one mention per thread. Omit for a single-row drag.
23047
+ */
23048
+ dragThreadIds?: readonly string[];
23049
+ }
23014
23050
  /**
23015
23051
  * Drag-to-split support for one row, plus where that thread currently sits in
23016
23052
  * the split layout.
@@ -23534,10 +23570,13 @@ interface ExperimentalComposerEditor {
23534
23570
  focus(): boolean;
23535
23571
  /** Focus the editor with the caret at the end of the draft. */
23536
23572
  focusEnd(): void;
23537
- /** Whether a thread dragged from the sidebar can be dropped now. */
23573
+ /** Whether threads dragged from the sidebar can be dropped now. */
23538
23574
  acceptsThreadDrop(): boolean;
23539
- /** Insert a dropped thread at the viewport point `x`, `y`. */
23540
- insertDroppedThread(thread: ExperimentalDroppedThreadMention, x: number, y: number): void;
23575
+ /**
23576
+ * Insert one mention per dropped thread, in order, starting at the viewport
23577
+ * point `x`, `y`. A drag from a multi-row sidebar selection drops several.
23578
+ */
23579
+ insertDroppedThreads(threads: readonly ExperimentalDroppedThreadMention[], x: number, y: number): void;
23541
23580
  openPopup(pluginId: string, popupId: string): boolean;
23542
23581
  closePopup(pluginId: string): boolean;
23543
23582
  isPopupOpen(): boolean;
@@ -23574,7 +23613,7 @@ interface ExperimentalComposerThreadLinkTarget {
23574
23613
  interface ExperimentalComposerThreadLink extends ExperimentalComposerThreadLinkTarget {
23575
23614
  label: string;
23576
23615
  }
23577
- /** The thread an app drag dropped onto the composer. */
23616
+ /** A thread an app drag dropped onto the composer. */
23578
23617
  interface ExperimentalDroppedThreadMention {
23579
23618
  threadId: string;
23580
23619
  label: string;
@@ -25540,6 +25579,13 @@ interface PluginSdkApp {
25540
25579
  */
25541
25580
  useRealtimeConnectionState(): PluginRealtimeConnectionState;
25542
25581
  useSettings(): PluginSettingsState;
25582
+ /**
25583
+ * Whether the bb experiment `key` is on (Settings → Experiments,
25584
+ * `bb settings experiment <key>`), following live changes. False while the
25585
+ * app config loads and for keys this bb does not know. Experimental: see
25586
+ * docs/api_to_audit.md.
25587
+ */
25588
+ experimental_useExperiment(key: string): boolean;
25543
25589
  useBbContext(): BbContext;
25544
25590
  /**
25545
25591
  * The id of the plugin that owns the calling component: the same id
@@ -25686,7 +25732,7 @@ interface PluginSdkApp {
25686
25732
  * Call it once per rendered row, like the built-in sidebar does.
25687
25733
  * Experimental: see docs/api_to_audit.md.
25688
25734
  */
25689
- experimental_useSidebarThreadSplit(threadId: string): PluginSidebarThreadSplit;
25735
+ experimental_useSidebarThreadSplit(threadId: string, options?: PluginSidebarThreadSplitOptions): PluginSidebarThreadSplit;
25690
25736
  /**
25691
25737
  * The sidebar navigation items in the user's saved order, the active item,
25692
25738
  * and the host actions that activate, hide, reorder, and customize them
@@ -26257,4 +26303,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
26257
26303
  };
26258
26304
 
26259
26305
  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 };
26260
- 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, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabOpenOptions, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, 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, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
26306
+ 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, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabOpenOptions, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, 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, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
package/dist/app.js CHANGED
@@ -297,6 +297,9 @@ var experimental_ThreadActionsMenu = runtimeComponent(
297
297
  var experimental_ThreadActionsContextMenu = runtimeComponent(
298
298
  "experimental_ThreadActionsContextMenu"
299
299
  );
300
+ var experimental_useExperiment = runtimeFunction(
301
+ "experimental_useExperiment"
302
+ );
300
303
  var experimental_useSidebarThreadSplit = runtimeFunction(
301
304
  "experimental_useSidebarThreadSplit"
302
305
  );
@@ -393,6 +396,7 @@ export {
393
396
  experimental_useComposerContributions,
394
397
  experimental_useComposerMentionSearch,
395
398
  experimental_useComposerRenderer,
399
+ experimental_useExperiment,
396
400
  experimental_useFixedTabTarget,
397
401
  experimental_usePluginId,
398
402
  experimental_useProviders,
@@ -833,10 +833,21 @@ function validateProviderOptionDescriptors(args) {
833
833
  field: `${field}[${index}].description`,
834
834
  value: record.description
835
835
  });
836
+ const icon = record.experimental_icon === void 0 ? void 0 : requireNonBlankString({
837
+ providerId,
838
+ field: `${field}[${index}].experimental_icon`,
839
+ value: record.experimental_icon
840
+ });
841
+ if (icon !== void 0 && !isNamespacedGlyph(icon) && /[/\\]/u.test(icon)) {
842
+ throw new Error(
843
+ `provider "${providerId}" ${field}[${index}].experimental_icon must be a host glyph name ("Zap") or a declared icon ("<pluginId>/<name>")`
844
+ );
845
+ }
836
846
  return Object.freeze({
837
847
  id,
838
848
  label,
839
- ...description === void 0 ? {} : { description }
849
+ ...description === void 0 ? {} : { description },
850
+ ...icon === void 0 ? {} : { experimental_icon: icon }
840
851
  });
841
852
  }
842
853
  );
@@ -1846,6 +1857,23 @@ function undeclaredIconProblem(pluginId, declaredIconNames, glyph) {
1846
1857
  function providerIconRefusalMessage(providerId, problem) {
1847
1858
  return `provider "${providerId}" icon ${problem}`;
1848
1859
  }
1860
+ function providerDeclarationIconRefusal(pluginId, declaredIconNames, declaration) {
1861
+ const iconProblem = declaration.icon === void 0 ? null : undeclaredIconProblem(pluginId, declaredIconNames, declaration.icon);
1862
+ if (iconProblem !== null) {
1863
+ return providerIconRefusalMessage(declaration.id, iconProblem);
1864
+ }
1865
+ for (const [index, tier] of (declaration.serviceTiers ?? []).entries()) {
1866
+ const tierProblem = tier.experimental_icon === void 0 ? null : undeclaredIconProblem(
1867
+ pluginId,
1868
+ declaredIconNames,
1869
+ tier.experimental_icon
1870
+ );
1871
+ if (tierProblem !== null) {
1872
+ return `provider "${declaration.id}" serviceTiers[${index}].experimental_icon ${tierProblem}`;
1873
+ }
1874
+ }
1875
+ return null;
1876
+ }
1849
1877
  function agentToolIconRefusalMessage(toolName, problem) {
1850
1878
  return `tool "${toolName}" presentation.icon ${problem}`;
1851
1879
  }
@@ -2834,6 +2862,7 @@ export {
2834
2862
  pluginCliCollisionWarning,
2835
2863
  pluginHookAlreadyRegisteredMessage,
2836
2864
  providerAlreadyRegisteredMessage,
2865
+ providerDeclarationIconRefusal,
2837
2866
  providerIconRefusalMessage,
2838
2867
  providerWithoutBridgeMessage,
2839
2868
  publishRpcMethod,
@@ -2905,7 +2905,8 @@ var providerStringsSchema = z20.object({
2905
2905
  var providerOptionDescriptorSchema = z20.object({
2906
2906
  id: z20.string().min(1),
2907
2907
  label: z20.string().min(1),
2908
- description: z20.string().min(1).optional()
2908
+ description: z20.string().min(1).optional(),
2909
+ icon: z20.string().min(1).optional()
2909
2910
  });
2910
2911
  var providerExtensionKindInfoSchema = z20.object({
2911
2912
  item: z20.boolean(),
@@ -13696,9 +13697,23 @@ function compactionOutcomeForEndTurn(dialect, agentMessage) {
13696
13697
  }
13697
13698
  return OMP_COMPACTION_NOOP_PATTERN.test(text) ? { status: "skipped", detail: text } : { status: "failed", error: text };
13698
13699
  }
13700
+ function presentProviderPrefixedModel(model) {
13701
+ const separator = model.id.indexOf("/");
13702
+ if (separator <= 0) {
13703
+ return model;
13704
+ }
13705
+ const routeProviderId = model.id.slice(0, separator);
13706
+ const prefix = `${routeProviderId}/`;
13707
+ return {
13708
+ ...model,
13709
+ displayName: model.displayName.startsWith(prefix) ? model.displayName.slice(prefix.length) : model.displayName,
13710
+ routeProviderId
13711
+ };
13712
+ }
13699
13713
  var OMP_ACP_DIALECT = {
13700
13714
  id: "omp",
13701
- commandResult: ompCommandResult
13715
+ commandResult: ompCommandResult,
13716
+ presentModel: presentProviderPrefixedModel
13702
13717
  };
13703
13718
  var openCodeCommandRawOutputSchema = z43.object({
13704
13719
  output: z43.unknown().optional(),
@@ -13731,7 +13746,8 @@ function normalizeOpenCodeCommandEvent(event) {
13731
13746
  }
13732
13747
  var OPENCODE_ACP_DIALECT = {
13733
13748
  id: "opencode",
13734
- normalizeCommandEvent: normalizeOpenCodeCommandEvent
13749
+ normalizeCommandEvent: normalizeOpenCodeCommandEvent,
13750
+ presentModel: presentProviderPrefixedModel
13735
13751
  };
13736
13752
  var BUILT_IN_DIALECTS = [
13737
13753
  GENERIC_ACP_DIALECT,
@@ -23962,10 +23978,11 @@ function decodeAcpBridgeJsonRpcRequest(raw) {
23962
23978
  };
23963
23979
  }
23964
23980
  async function handleModelList(id, params, dialectId) {
23965
- const resolvedDialectId = resolveAcpDialect({
23981
+ const dialect = resolveAcpDialect({
23966
23982
  dialectId,
23967
23983
  command: params.optionsAgent?.command ?? params.agent?.command ?? ""
23968
- }).id;
23984
+ });
23985
+ const resolvedDialectId = dialect.id;
23969
23986
  const declaredOptions = () => params.optionsAgent ? loadDeclaredSessionOptions(
23970
23987
  params.optionsAgent,
23971
23988
  params.parameterizedModelPicker,
@@ -23979,10 +23996,13 @@ async function handleModelList(id, params, dialectId) {
23979
23996
  id,
23980
23997
  splitPrimaryModels(
23981
23998
  withDeclaredOptions(
23982
- applyConfiguredReasoningToModels(models, {
23983
- reasoningCli: params.reasoningCli,
23984
- nativeReasoning: params.nativeReasoning
23985
- }),
23999
+ applyConfiguredReasoningToModels(
24000
+ models.map((model) => dialect.presentModel?.(model) ?? model),
24001
+ {
24002
+ reasoningCli: params.reasoningCli,
24003
+ nativeReasoning: params.nativeReasoning
24004
+ }
24005
+ ),
23986
24006
  await declaredOptions()
23987
24007
  ),
23988
24008
  params.primaryModels
@@ -2905,7 +2905,8 @@ var providerStringsSchema = z20.object({
2905
2905
  var providerOptionDescriptorSchema = z20.object({
2906
2906
  id: z20.string().min(1),
2907
2907
  label: z20.string().min(1),
2908
- description: z20.string().min(1).optional()
2908
+ description: z20.string().min(1).optional(),
2909
+ icon: z20.string().min(1).optional()
2909
2910
  });
2910
2911
  var providerExtensionKindInfoSchema = z20.object({
2911
2912
  item: z20.boolean(),
@@ -13696,9 +13697,23 @@ function compactionOutcomeForEndTurn(dialect, agentMessage) {
13696
13697
  }
13697
13698
  return OMP_COMPACTION_NOOP_PATTERN.test(text) ? { status: "skipped", detail: text } : { status: "failed", error: text };
13698
13699
  }
13700
+ function presentProviderPrefixedModel(model) {
13701
+ const separator = model.id.indexOf("/");
13702
+ if (separator <= 0) {
13703
+ return model;
13704
+ }
13705
+ const routeProviderId = model.id.slice(0, separator);
13706
+ const prefix = `${routeProviderId}/`;
13707
+ return {
13708
+ ...model,
13709
+ displayName: model.displayName.startsWith(prefix) ? model.displayName.slice(prefix.length) : model.displayName,
13710
+ routeProviderId
13711
+ };
13712
+ }
13699
13713
  var OMP_ACP_DIALECT = {
13700
13714
  id: "omp",
13701
- commandResult: ompCommandResult
13715
+ commandResult: ompCommandResult,
13716
+ presentModel: presentProviderPrefixedModel
13702
13717
  };
13703
13718
  var openCodeCommandRawOutputSchema = z43.object({
13704
13719
  output: z43.unknown().optional(),
@@ -13731,7 +13746,8 @@ function normalizeOpenCodeCommandEvent(event) {
13731
13746
  }
13732
13747
  var OPENCODE_ACP_DIALECT = {
13733
13748
  id: "opencode",
13734
- normalizeCommandEvent: normalizeOpenCodeCommandEvent
13749
+ normalizeCommandEvent: normalizeOpenCodeCommandEvent,
13750
+ presentModel: presentProviderPrefixedModel
13735
13751
  };
13736
13752
  var BUILT_IN_DIALECTS = [
13737
13753
  GENERIC_ACP_DIALECT,
@@ -23962,10 +23978,11 @@ function decodeAcpBridgeJsonRpcRequest(raw) {
23962
23978
  };
23963
23979
  }
23964
23980
  async function handleModelList(id, params, dialectId) {
23965
- const resolvedDialectId = resolveAcpDialect({
23981
+ const dialect = resolveAcpDialect({
23966
23982
  dialectId,
23967
23983
  command: params.optionsAgent?.command ?? params.agent?.command ?? ""
23968
- }).id;
23984
+ });
23985
+ const resolvedDialectId = dialect.id;
23969
23986
  const declaredOptions = () => params.optionsAgent ? loadDeclaredSessionOptions(
23970
23987
  params.optionsAgent,
23971
23988
  params.parameterizedModelPicker,
@@ -23979,10 +23996,13 @@ async function handleModelList(id, params, dialectId) {
23979
23996
  id,
23980
23997
  splitPrimaryModels(
23981
23998
  withDeclaredOptions(
23982
- applyConfiguredReasoningToModels(models, {
23983
- reasoningCli: params.reasoningCli,
23984
- nativeReasoning: params.nativeReasoning
23985
- }),
23999
+ applyConfiguredReasoningToModels(
24000
+ models.map((model) => dialect.presentModel?.(model) ?? model),
24001
+ {
24002
+ reasoningCli: params.reasoningCli,
24003
+ nativeReasoning: params.nativeReasoning
24004
+ }
24005
+ ),
23986
24006
  await declaredOptions()
23987
24007
  ),
23988
24008
  params.primaryModels
@@ -2008,7 +2008,8 @@ var providerStringsSchema = z18.object({
2008
2008
  var providerOptionDescriptorSchema = z18.object({
2009
2009
  id: z18.string().min(1),
2010
2010
  label: z18.string().min(1),
2011
- description: z18.string().min(1).optional()
2011
+ description: z18.string().min(1).optional(),
2012
+ icon: z18.string().min(1).optional()
2012
2013
  });
2013
2014
  var providerExtensionKindInfoSchema = z18.object({
2014
2015
  item: z18.boolean(),
@@ -661,11 +661,11 @@ function describeResultContentBlock(block) {
661
661
  if (!type) {
662
662
  return null;
663
663
  }
664
- const path9 = getStringProperty(block, "path");
664
+ const path10 = getStringProperty(block, "path");
665
665
  const toolName = getStringProperty(block, "tool_name");
666
666
  const url = getStringProperty(block, "url") ?? getStringProperty(block, "imageUrl");
667
- if (path9) {
668
- return `[${type}: ${path9}]`;
667
+ if (path10) {
668
+ return `[${type}: ${path10}]`;
669
669
  }
670
670
  if (toolName) {
671
671
  return `[${type}: ${toolName}]`;
@@ -3425,7 +3425,8 @@ var providerStringsSchema = z22.object({
3425
3425
  var providerOptionDescriptorSchema = z22.object({
3426
3426
  id: z22.string().min(1),
3427
3427
  label: z22.string().min(1),
3428
- description: z22.string().min(1).optional()
3428
+ description: z22.string().min(1).optional(),
3429
+ icon: z22.string().min(1).optional()
3429
3430
  });
3430
3431
  var providerExtensionKindInfoSchema = z22.object({
3431
3432
  item: z22.boolean(),
@@ -3847,9 +3848,9 @@ function presentationDetail(text) {
3847
3848
  function withTitle(presentation, title) {
3848
3849
  return title === void 0 ? presentation : { ...presentation, title };
3849
3850
  }
3850
- function presentationFileName(path9) {
3851
- const segments = path9.split("/").filter((segment) => segment.length > 0);
3852
- return segments[segments.length - 1] ?? path9;
3851
+ function presentationFileName(path10) {
3852
+ const segments = path10.split("/").filter((segment) => segment.length > 0);
3853
+ return segments[segments.length - 1] ?? path10;
3853
3854
  }
3854
3855
  var COMPACTION_PRESENTATION = {
3855
3856
  label: { pending: "Compacting context", completed: "Compacted context" },
@@ -3859,13 +3860,13 @@ var REASONING_PRESENTATION = {
3859
3860
  label: { pending: "Thinking", completed: "Thought" },
3860
3861
  icon: { glyph: "Brain" }
3861
3862
  };
3862
- function fileReadPresentation(path9) {
3863
+ function fileReadPresentation(path10) {
3863
3864
  return withTitle(
3864
3865
  {
3865
3866
  label: { pending: "Reading file", completed: "Read file" },
3866
3867
  icon: { glyph: "FileText" }
3867
3868
  },
3868
- presentationTitle(presentationFileName(path9))
3869
+ presentationTitle(presentationFileName(path10))
3869
3870
  );
3870
3871
  }
3871
3872
  function searchPresentation(args) {
@@ -8520,13 +8521,13 @@ var logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding,
8520
8521
  }
8521
8522
  };
8522
8523
  var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
8523
- for (const { path: path9, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
8524
- const pathString = typeof path9 === "string" ? path9 : path9.toString();
8524
+ for (const { path: path10, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
8525
+ const pathString = typeof path10 === "string" ? path10 : path10.toString();
8525
8526
  if (append || outputFiles.has(pathString)) {
8526
- appendFileSync(path9, serializedResult);
8527
+ appendFileSync(path10, serializedResult);
8527
8528
  } else {
8528
8529
  outputFiles.add(pathString);
8529
- writeFileSync(path9, serializedResult);
8530
+ writeFileSync(path10, serializedResult);
8530
8531
  }
8531
8532
  }
8532
8533
  };
@@ -12271,6 +12272,129 @@ var claudeTaskToolOutputSchema = z37.union([
12271
12272
  claudeTaskListOutputSchema,
12272
12273
  claudeTaskUpdateOutputSchema
12273
12274
  ]);
12275
+
12276
+ // ../skill-index/src/index.ts
12277
+ import { createHash } from "node:crypto";
12278
+ import fs2 from "node:fs/promises";
12279
+ import path9 from "node:path";
12280
+ var SKILL_FILE_NAME = "SKILL.md";
12281
+ var MAX_SCAN_DEPTH = 24;
12282
+ var MAX_SCAN_ENTRY_COUNT = 1e3;
12283
+ var MAX_SKILL_FILE_BYTES = 25 * 1024 * 1024;
12284
+ function isWithinSkillBoundary(boundary, candidate) {
12285
+ const relative = path9.relative(boundary, candidate);
12286
+ return relative === "" || !relative.startsWith(`..${path9.sep}`) && relative !== ".." && !path9.isAbsolute(relative);
12287
+ }
12288
+ async function resolveSkillPath(filePath, boundaryPath) {
12289
+ const realPath = await fs2.realpath(filePath).catch(() => null);
12290
+ if (realPath === null || boundaryPath === null) return realPath;
12291
+ const boundary = await fs2.realpath(boundaryPath).catch(() => null);
12292
+ return boundary !== null && isWithinSkillBoundary(boundary, realPath) ? realPath : null;
12293
+ }
12294
+ async function isSymbolicLinkPath(filePath) {
12295
+ return (await fs2.lstat(filePath).catch(() => null))?.isSymbolicLink() ?? false;
12296
+ }
12297
+ async function findSkillFiles(root) {
12298
+ const files = [];
12299
+ const visited = /* @__PURE__ */ new Set();
12300
+ let remainingEntries = MAX_SCAN_ENTRY_COUNT;
12301
+ const charged = (entry) => root.shape === "command" || root.shape === "skill-recursive" && (entry.isDirectory() || entry.isSymbolicLink());
12302
+ if (await resolveSkillPath(root.path, root.boundaryPath) === null) {
12303
+ return files;
12304
+ }
12305
+ const rootLinked = await isSymbolicLinkPath(root.path);
12306
+ async function add(filePath, name, linked) {
12307
+ const realPath = await resolveSkillPath(filePath, root.boundaryPath);
12308
+ if (realPath === null) return;
12309
+ const stat = await fs2.stat(realPath).catch(() => null);
12310
+ if (!stat?.isFile()) return;
12311
+ files.push({
12312
+ filePath,
12313
+ realPath,
12314
+ name,
12315
+ linked: linked || await isSymbolicLinkPath(filePath)
12316
+ });
12317
+ }
12318
+ async function walk(directory, depth, linked) {
12319
+ if (depth > MAX_SCAN_DEPTH) return;
12320
+ const leaf = root.shape === "skill-directory" || root.shape === "skill" && depth === 1;
12321
+ const realPath = await resolveSkillPath(directory, root.boundaryPath);
12322
+ if (realPath === null || !leaf && visited.has(realPath)) return;
12323
+ const stat = await fs2.stat(realPath).catch(() => null);
12324
+ if (!stat?.isDirectory()) return;
12325
+ if (!leaf) visited.add(realPath);
12326
+ if (depth > 0 && root.skipIfManifest !== void 0 && (await fs2.stat(path9.join(directory, root.skipIfManifest)).catch(() => null))?.isFile()) {
12327
+ return;
12328
+ }
12329
+ const handle = await fs2.opendir(directory).catch(() => null);
12330
+ if (handle === null) return;
12331
+ const entries = [];
12332
+ for await (const entry of handle) {
12333
+ if (entry.name === ".git" || entry.name === "node_modules") continue;
12334
+ if (charged(entry)) {
12335
+ if (remainingEntries === 0) continue;
12336
+ remainingEntries -= 1;
12337
+ }
12338
+ entries.push(entry);
12339
+ }
12340
+ entries.sort((a2, b) => a2.name.localeCompare(b.name));
12341
+ if ((leaf || root.shape === "skill-recursive") && entries.some((entry) => entry.name === SKILL_FILE_NAME)) {
12342
+ await add(
12343
+ path9.join(directory, SKILL_FILE_NAME),
12344
+ path9.basename(directory),
12345
+ linked
12346
+ );
12347
+ }
12348
+ if (leaf) return;
12349
+ for (const entry of entries) {
12350
+ const entryPath = path9.join(directory, entry.name);
12351
+ const target = await resolveSkillPath(entryPath, root.boundaryPath);
12352
+ if (target === null) continue;
12353
+ const entryStat = await fs2.stat(target).catch(() => null);
12354
+ const entryLinked = linked || entry.isSymbolicLink();
12355
+ if (entryStat?.isDirectory()) {
12356
+ await walk(entryPath, depth + 1, entryLinked);
12357
+ } else if (root.shape === "command" && entry.name.endsWith(".md")) {
12358
+ await add(
12359
+ entryPath,
12360
+ path9.relative(root.path, entryPath).slice(0, -3).split(path9.sep).join(":"),
12361
+ entryLinked
12362
+ );
12363
+ }
12364
+ }
12365
+ }
12366
+ if (root.shape === "skill-file" || root.shape === "command-file") {
12367
+ await add(
12368
+ root.path,
12369
+ root.fallbackName ?? path9.basename(root.path, ".md"),
12370
+ rootLinked
12371
+ );
12372
+ } else {
12373
+ await walk(root.path, 0, rootLinked);
12374
+ }
12375
+ return files;
12376
+ }
12377
+ async function scanSkillFiles(root) {
12378
+ const indexed = [];
12379
+ for (const file of await findSkillFiles(root)) {
12380
+ const stat = await fs2.stat(file.realPath).catch(() => null);
12381
+ if (stat === null || stat.size > MAX_SKILL_FILE_BYTES) continue;
12382
+ const bytes = await fs2.readFile(file.realPath).catch(() => null);
12383
+ if (bytes === null || bytes.length > MAX_SKILL_FILE_BYTES) continue;
12384
+ indexed.push({
12385
+ ...file,
12386
+ content: bytes.toString("utf8"),
12387
+ contentSha256: createHash("sha256").update(bytes).digest("hex")
12388
+ });
12389
+ }
12390
+ return indexed;
12391
+ }
12392
+ function selectedSkillMentions(input) {
12393
+ return input.mentions.filter((mention) => {
12394
+ const { start, end, resource } = mention;
12395
+ return resource.kind === "command" && resource.source === "skill" && typeof resource.name === "string" && (resource.trigger === "/" || resource.trigger === "$") && Number.isInteger(start) && Number.isInteger(end) && start >= 0 && start < end && end <= input.text.length && input.text.slice(start, end) === `${resource.trigger}${resource.name}`;
12396
+ });
12397
+ }
12274
12398
  export {
12275
12399
  BRIDGE_INBOUND_REQUEST_METHODS,
12276
12400
  BRIDGE_JSON_RPC_ERRORS,
@@ -12362,7 +12486,9 @@ export {
12362
12486
  readCliVersion as experimental_readCliVersion,
12363
12487
  experimental_recordProviderChildIo,
12364
12488
  resolveExecutablePath as experimental_resolveExecutablePath,
12489
+ scanSkillFiles as experimental_scanSkillFiles,
12365
12490
  searchPresentation as experimental_searchPresentation,
12491
+ selectedSkillMentions as experimental_selectedSkillMentions,
12366
12492
  spawnPortableProcess as experimental_spawnPortableProcess,
12367
12493
  toolPresentation as experimental_toolPresentation,
12368
12494
  versionFrom as experimental_versionFrom,
@@ -5530,6 +5530,9 @@ var testPluginSdkApp = {
5530
5530
  useSettings() {
5531
5531
  return useSlotEnv("useSettings").settingsState;
5532
5532
  },
5533
+ experimental_useExperiment(key) {
5534
+ return useSlotEnv("experimental_useExperiment").experiments.has(key);
5535
+ },
5533
5536
  useBbContext() {
5534
5537
  return useSlotEnv("useBbContext").bbContext;
5535
5538
  },
@@ -6582,6 +6585,7 @@ ${block}
6582
6585
  threadActions: options.threadActions ?? NO_THREAD_ACTIONS,
6583
6586
  threadActionRegistrations: options.threadActionRegistrations ?? NO_THREAD_ACTION_REGISTRATIONS,
6584
6587
  sidebarDraftThreadIds,
6588
+ experiments: new Set(options.experiments ?? []),
6585
6589
  sidebarRowStatuses,
6586
6590
  sidebarShortcuts,
6587
6591
  sidebarSplitLayout: options.sidebarSplitLayout ?? null,
@@ -974,10 +974,21 @@ function validateProviderOptionDescriptors(args) {
974
974
  field: `${field}[${index}].description`,
975
975
  value: record.description
976
976
  });
977
+ const icon = record.experimental_icon === void 0 ? void 0 : requireNonBlankString({
978
+ providerId,
979
+ field: `${field}[${index}].experimental_icon`,
980
+ value: record.experimental_icon
981
+ });
982
+ if (icon !== void 0 && !isNamespacedGlyph(icon) && /[/\\]/u.test(icon)) {
983
+ throw new Error(
984
+ `provider "${providerId}" ${field}[${index}].experimental_icon must be a host glyph name ("Zap") or a declared icon ("<pluginId>/<name>")`
985
+ );
986
+ }
977
987
  return Object.freeze({
978
988
  id,
979
989
  label,
980
- ...description === void 0 ? {} : { description }
990
+ ...description === void 0 ? {} : { description },
991
+ ...icon === void 0 ? {} : { experimental_icon: icon }
981
992
  });
982
993
  }
983
994
  );
@@ -1967,6 +1978,23 @@ function undeclaredIconProblem(pluginId, declaredIconNames, glyph) {
1967
1978
  function providerIconRefusalMessage(providerId, problem) {
1968
1979
  return `provider "${providerId}" icon ${problem}`;
1969
1980
  }
1981
+ function providerDeclarationIconRefusal(pluginId, declaredIconNames, declaration) {
1982
+ const iconProblem = declaration.icon === void 0 ? null : undeclaredIconProblem(pluginId, declaredIconNames, declaration.icon);
1983
+ if (iconProblem !== null) {
1984
+ return providerIconRefusalMessage(declaration.id, iconProblem);
1985
+ }
1986
+ for (const [index, tier] of (declaration.serviceTiers ?? []).entries()) {
1987
+ const tierProblem = tier.experimental_icon === void 0 ? null : undeclaredIconProblem(
1988
+ pluginId,
1989
+ declaredIconNames,
1990
+ tier.experimental_icon
1991
+ );
1992
+ if (tierProblem !== null) {
1993
+ return `provider "${declaration.id}" serviceTiers[${index}].experimental_icon ${tierProblem}`;
1994
+ }
1995
+ }
1996
+ return null;
1997
+ }
1970
1998
  function agentToolIconRefusalMessage(toolName, problem) {
1971
1999
  return `tool "${toolName}" presentation.icon ${problem}`;
1972
2000
  }
@@ -3335,9 +3363,13 @@ function createFakePluginHostInternal(options, sharedState) {
3335
3363
  function registerProviderDeclaration(declaration) {
3336
3364
  assertLive();
3337
3365
  const normalized = validatePluginProviderDeclaration(declaration);
3338
- const iconProblem = normalized.icon === void 0 ? null : undeclaredIconProblem(pluginId, declaredIconNames, normalized.icon);
3339
- if (iconProblem !== null) {
3340
- throw new Error(providerIconRefusalMessage(normalized.id, iconProblem));
3366
+ const iconRefusal = providerDeclarationIconRefusal(
3367
+ pluginId,
3368
+ declaredIconNames,
3369
+ normalized
3370
+ );
3371
+ if (iconRefusal !== null) {
3372
+ throw new Error(iconRefusal);
3341
3373
  }
3342
3374
  if (options.experimental_hostEntry === false) {
3343
3375
  throw new Error(providerWithoutBridgeMessage(normalized.id));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.6.75",
3
+ "version": "0.6.79",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"
@@ -163,6 +163,7 @@
163
163
  "@bb/provider-bridge-protocol": "workspace:*",
164
164
  "@bb/sdk": "workspace:*",
165
165
  "@bb/server-contract": "workspace:*",
166
+ "@bb/skill-index": "workspace:*",
166
167
  "@bb/tsconfig": "workspace:*",
167
168
  "@testing-library/react": "^16.3.2",
168
169
  "@types/better-sqlite3": "^7.6.12",