@get-bb/plugin-sdk 0.6.109 → 0.6.112

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.
@@ -609,6 +609,7 @@ type Environment = z$1.infer<typeof environmentSchema>;
609
609
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
610
610
  applicationLinks: "applicationLinks";
611
611
  compactExpiredCache: "compactExpiredCache";
612
+ narrowPluginCss: "narrowPluginCss";
612
613
  performanceDiagnostics: "performanceDiagnostics";
613
614
  pluginUpdates: "pluginUpdates";
614
615
  serverMove: "serverMove";
@@ -624,6 +625,7 @@ type Experiments = z$1.infer<typeof experimentsSchema>;
624
625
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
625
626
  applicationLinks: "applicationLinks";
626
627
  compactExpiredCache: "compactExpiredCache";
628
+ narrowPluginCss: "narrowPluginCss";
627
629
  performanceDiagnostics: "performanceDiagnostics";
628
630
  pluginUpdates: "pluginUpdates";
629
631
  serverMove: "serverMove";
@@ -9914,6 +9916,10 @@ type SystemProvidersQuery = z$1.infer<typeof systemProvidersQuerySchema>;
9914
9916
  declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
9915
9917
  environmentId: z$1.ZodOptional<z$1.ZodString>;
9916
9918
  hostId: z$1.ZodOptional<z$1.ZodString>;
9919
+ preferCached: z$1.ZodOptional<z$1.ZodEnum<{
9920
+ false: "false";
9921
+ true: "true";
9922
+ }>>;
9917
9923
  projectId: z$1.ZodOptional<z$1.ZodString>;
9918
9924
  providerId: z$1.ZodOptional<z$1.ZodString>;
9919
9925
  selectedModel: z$1.ZodOptional<z$1.ZodString>;
@@ -10375,6 +10381,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10375
10381
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10376
10382
  applicationLinks: "applicationLinks";
10377
10383
  compactExpiredCache: "compactExpiredCache";
10384
+ narrowPluginCss: "narrowPluginCss";
10378
10385
  performanceDiagnostics: "performanceDiagnostics";
10379
10386
  pluginUpdates: "pluginUpdates";
10380
10387
  serverMove: "serverMove";
@@ -13429,7 +13436,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13429
13436
  type CreateQueuedMessageRequest = z$1.infer<typeof createQueuedMessageRequestSchema>;
13430
13437
  declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13431
13438
  expectedUpdatedAt: z$1.ZodNumber;
13432
- input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13439
+ input: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13433
13440
  mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
13434
13441
  end: z$1.ZodNumber;
13435
13442
  resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -13518,7 +13525,16 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13518
13525
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13519
13526
  "agent-only": "agent-only";
13520
13527
  }>>;
13521
- }, z$1.core.$strip>], "type">>;
13528
+ }, z$1.core.$strip>], "type">>>;
13529
+ model: z$1.ZodOptional<z$1.ZodString>;
13530
+ permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
13531
+ "accept-edits": "accept-edits";
13532
+ auto: "auto";
13533
+ full: "full";
13534
+ }>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
13535
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13536
+ sendAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
13537
+ serviceTier: z$1.ZodOptional<z$1.ZodString>;
13522
13538
  }, z$1.core.$strip>;
13523
13539
  type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
13524
13540
  declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
@@ -17678,6 +17694,7 @@ type ProviderModelsArgs = ({
17678
17694
  projectId?: string;
17679
17695
  }) & {
17680
17696
  providerId?: string;
17697
+ preferCached?: boolean;
17681
17698
  signal?: AbortSignal;
17682
17699
  };
17683
17700
  type ProviderListResult = ProviderInfo[];
@@ -18063,7 +18080,8 @@ interface SystemAttentionArgs {
18063
18080
  interface SystemConfigArgs {
18064
18081
  signal?: AbortSignal;
18065
18082
  }
18066
- interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
18083
+ interface SystemExecutionOptionsArgs extends Omit<SystemExecutionOptionsQuery, "preferCached"> {
18084
+ preferCached?: boolean;
18067
18085
  signal?: AbortSignal;
18068
18086
  }
18069
18087
  interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
@@ -19914,7 +19932,9 @@ interface ExperimentalSidebarFooter {
19914
19932
  /**
19915
19933
  * The one status bb would paint for a thread, already resolved through the
19916
19934
  * host's precedence (attention before work; plan and goal before the generic
19917
- * spinner). Draw your own glyph for it — the SDK ships no status component.
19935
+ * spinner). Draw it with {@link PluginSdkApp.experimental_ThreadStatusGlyph},
19936
+ * or resolve a row that folds in more through
19937
+ * {@link PluginSdkApp.experimental_resolveThreadStatus}.
19918
19938
  *
19919
19939
  * Treat an unrecognized value as "none": bb adds kinds over time, and an
19920
19940
  * older plugin must degrade to drawing nothing rather than throwing.
@@ -20230,11 +20250,61 @@ interface PluginThreadTitleProps {
20230
20250
  /** A thread in the sidebar's live view; renders nothing for an unknown id. */
20231
20251
  threadId: string;
20232
20252
  }
20253
+ /**
20254
+ * The fields of a {@link PluginSidebarThread} that
20255
+ * {@link PluginSdkApp.experimental_resolveThreadStatus} reads.
20256
+ */
20257
+ type PluginThreadStatusThread = Pick<PluginSidebarThread, "activity" | "hasPendingInteraction" | "isUnread" | "parentThreadId" | "queuedWork" | "runtimeStatus" | "status">;
20258
+ /** Input for {@link PluginSdkApp.experimental_resolveThreadStatus}. */
20259
+ interface PluginThreadStatusInput {
20260
+ /**
20261
+ * The row's own thread, or null for a group row (a collapsed section,
20262
+ * project, or environment) that stands only for `hiddenThreads`.
20263
+ */
20264
+ thread: PluginThreadStatusThread | null;
20265
+ /**
20266
+ * Threads the row stands for while they are hidden, such as a collapsed
20267
+ * parent's sub-threads. Their attention and work count toward the row;
20268
+ * their queued messages do not. Pass an empty array when nothing is hidden.
20269
+ */
20270
+ hiddenThreads: readonly PluginThreadStatusThread[];
20271
+ /**
20272
+ * Whether the composer holds an unsent draft for `thread` or any of
20273
+ * `hiddenThreads` (see {@link PluginSdkApp.useSidebarThreadDraft}).
20274
+ */
20275
+ hasUnsubmittedDraft: boolean;
20276
+ /**
20277
+ * The status another plugin set on the row (see
20278
+ * {@link PluginSdkApp.useSidebarThreadRowStatus}), or null.
20279
+ */
20280
+ rowStatus: PluginSidebarThreadRowStatus | null;
20281
+ }
20282
+ /** What bb's lists draw for a row (see {@link PluginThreadStatusInput}). */
20283
+ interface PluginThreadStatus {
20284
+ indicator: PluginSidebarThreadIndicator;
20285
+ /**
20286
+ * The input `rowStatus` when it shows in place of `indicator`: it replaces
20287
+ * every indicator except "runtime", "unread-error", and
20288
+ * "waiting-for-input". Null otherwise.
20289
+ */
20290
+ rowStatus: PluginSidebarThreadRowStatus | null;
20291
+ /**
20292
+ * The accessible label for what shows: `rowStatus`'s label, else the
20293
+ * indicator's; null when nothing shows.
20294
+ */
20295
+ label: string | null;
20296
+ /**
20297
+ * Whether the row's thread or a hidden thread is working, or the input
20298
+ * `rowStatus` has the "running" tone.
20299
+ */
20300
+ isWorking: boolean;
20301
+ }
20233
20302
  /**
20234
20303
  * Props for {@link PluginSdkApp.experimental_ThreadStatusGlyph}: bb's thread
20235
- * status glyph, the one its own lists draw. The caller resolves the
20236
- * indicator, so a row can fold in state the host does not know about, such
20237
- * as collapsed children or a client-local draft.
20304
+ * status glyph, the one its own lists draw. Pass the `indicator` and
20305
+ * `rowStatus` from {@link PluginSdkApp.experimental_resolveThreadStatus} to
20306
+ * fold in state a sidebar thread's `indicator` leaves out, such as collapsed
20307
+ * children or a client-local draft.
20238
20308
  */
20239
20309
  interface PluginThreadStatusGlyphProps {
20240
20310
  /** The indicator to draw; "none" draws nothing unless `rowStatus` shows. */
@@ -23879,6 +23949,13 @@ interface PluginSdkApp {
23879
23949
  * Experimental: see docs/api_to_audit.md.
23880
23950
  */
23881
23951
  experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
23952
+ /**
23953
+ * Resolves what bb's lists draw for a row through bb's own status
23954
+ * precedence, folding in hidden threads, a draft, and another plugin's row
23955
+ * status (see {@link PluginThreadStatusInput}). A pure function, not a
23956
+ * hook. Experimental: see docs/api_to_audit.md.
23957
+ */
23958
+ experimental_resolveThreadStatus(input: PluginThreadStatusInput): PluginThreadStatus;
23882
23959
  /**
23883
23960
  * Every `experimental_threadRowMetadata` contribution for one thread row (see
23884
23961
  * {@link ExperimentalThreadRowMetadataRegistration}), the items bb's sidebar
@@ -24166,6 +24243,8 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
24166
24243
  readonly storage: "3_storage";
24167
24244
  };
24168
24245
 
24246
+ declare function experimental_resolveThreadStatus({ thread, hiddenThreads, hasUnsubmittedDraft, rowStatus, }: PluginThreadStatusInput): PluginThreadStatus;
24247
+
24169
24248
  declare const experimental_Icon: react.ComponentType<ExperimentalIconProps>;
24170
24249
  declare const experimental_ProviderIcon: react.ComponentType<ExperimentalProviderIconProps>;
24171
24250
  declare const definePluginApp: PluginSdkApp["definePluginApp"];
@@ -24258,6 +24337,7 @@ declare const useSidebarSplitLayout: () => PluginSidebarSplitLayout | null;
24258
24337
  declare const useSidebarThreadShortcut: (threadId: string) => PluginSidebarThreadShortcut | null;
24259
24338
  declare const ThreadTitle: react.ComponentType<PluginThreadTitleProps>;
24260
24339
  declare const experimental_ThreadStatusGlyph: react.ComponentType<PluginThreadStatusGlyphProps>;
24340
+
24261
24341
  declare const experimental_ThreadRowMetadata: react.ComponentType<ExperimentalThreadRowMetadataLineProps>;
24262
24342
  declare const useEnvironmentProviders: () => PluginEnvironmentProvidersState;
24263
24343
  declare const useSdk: () => PluginBrowserBbSdk;
@@ -24268,5 +24348,5 @@ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => P
24268
24348
  declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
24269
24349
  declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
24270
24350
 
24271
- 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_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
24272
- export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
24351
+ 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_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
24352
+ export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
@@ -0,0 +1,316 @@
1
+ // Portable type declarations for `@get-bb/plugin-sdk`. Unpublished BB
2
+ // workspace contracts are flattened; public subpaths may reuse the
3
+ // package root without requiring any other @bb/* package.
4
+ //
5
+ // Confused by the API, or need a symbol that isn't here? Clone the BB repo
6
+ // and read the real source: https://github.com/get-bb/bb
7
+
8
+ import { z } from 'zod';
9
+
10
+ declare const environmentWorkspaceDisplayKindSchema: z.ZodEnum<{
11
+ "managed-worktree": "managed-worktree";
12
+ "unmanaged-worktree": "unmanaged-worktree";
13
+ other: "other";
14
+ }>;
15
+ type EnvironmentWorkspaceDisplayKind = z.infer<typeof environmentWorkspaceDisplayKindSchema>;
16
+
17
+ declare const threadStatusSchema: z.ZodEnum<{
18
+ active: "active";
19
+ error: "error";
20
+ idle: "idle";
21
+ pending: "pending";
22
+ starting: "starting";
23
+ stopping: "stopping";
24
+ }>;
25
+ type ThreadStatus = z.infer<typeof threadStatusSchema>;
26
+
27
+ declare const threadParentNotificationsSchema: z.ZodEnum<{
28
+ auto: "auto";
29
+ off: "off";
30
+ stuck: "stuck";
31
+ }>;
32
+ type ThreadParentNotifications = z.infer<typeof threadParentNotificationsSchema>;
33
+
34
+ declare const threadRuntimeDisplayStatusSchema: z.ZodEnum<{
35
+ "waiting-for-host": "waiting-for-host";
36
+ active: "active";
37
+ error: "error";
38
+ idle: "idle";
39
+ pending: "pending";
40
+ provisioning: "provisioning";
41
+ starting: "starting";
42
+ stopping: "stopping";
43
+ }>;
44
+
45
+ /**
46
+ * The three additions to {@link threadStatusValues} are display-only: they
47
+ * refine `active`/`idle` with host and workspace facts the durable status does
48
+ * not record.
49
+ *
50
+ * A never-started thread needs no such refinement — `pending` is a real thread
51
+ * status now, so it travels to the client as itself. It used to arrive as a
52
+ * separate `held` display status, derived from an `idle` thread holding a live
53
+ * dispatch hold; that derivation and the holds behind it are both gone.
54
+ */
55
+ type ThreadRuntimeDisplayStatus = z.infer<typeof threadRuntimeDisplayStatusSchema>;
56
+ declare const threadQueuedWorkSchema: z.ZodEnum<{
57
+ failed: "failed";
58
+ none: "none";
59
+ waiting: "waiting";
60
+ }>;
61
+ type ThreadQueuedWork = z.infer<typeof threadQueuedWorkSchema>;
62
+
63
+ /**
64
+ * A name the host resolves to a glyph, in this order: a name any plugin
65
+ * registered with `app.experimental_icons.register()`, then a built-in BB icon
66
+ * name (`"Zap"`), then a namespaced `"<pluginId>/<name>"` glyph naming an
67
+ * entry of that plugin's manifest `bb.branding.experimental_icons` map. A
68
+ * registration therefore shadows a built-in, and either shadows a declared
69
+ * icon of the same name. Names that resolve to none of the three fall back to
70
+ * the surface's generic icon.
71
+ *
72
+ * Declared icons and registrations are one vocabulary here: the same name
73
+ * works in `experimental_Icon`, in every field below, and — for a declared
74
+ * icon — in the tool, provider and bridge-row declarations that accept one.
75
+ * Declared icons need no frontend bundle and survive the plugin being stopped;
76
+ * registrations can be any React component but live only while the plugin's
77
+ * app bundle is loaded.
78
+ */
79
+ type BbIconName = string;
80
+ /**
81
+ * The one status bb would paint for a thread, already resolved through the
82
+ * host's precedence (attention before work; plan and goal before the generic
83
+ * spinner). Draw it with {@link PluginSdkApp.experimental_ThreadStatusGlyph},
84
+ * or resolve a row that folds in more through
85
+ * {@link PluginSdkApp.experimental_resolveThreadStatus}.
86
+ *
87
+ * Treat an unrecognized value as "none": bb adds kinds over time, and an
88
+ * older plugin must degrade to drawing nothing rather than throwing.
89
+ *
90
+ * "draft" and "working-draft" are never reported here: an unsubmitted composer
91
+ * draft is per-client state the host reads per row, which an array-wide view
92
+ * cannot. A thread holding a draft reports whatever it would report without
93
+ * one. "queued-failed" and "queued-waiting" are reported, with the same
94
+ * precedence bb's list uses (a failed send outranks the unread dot; a waiting
95
+ * message ranks just below it).
96
+ */
97
+ type PluginSidebarThreadIndicator = "background-agent" | "background-command" | "draft" | "goal" | "none" | "plan-mode" | "queued-failed" | "queued-waiting" | "runtime" | "unread-error" | "unread-success" | "waiting-for-input" | "workflow" | "working-draft";
98
+ /** Live work counts on a thread. All zero means nothing is running. */
99
+ interface PluginSidebarThreadActivity {
100
+ workflows: number;
101
+ backgroundAgents: number;
102
+ backgroundCommands: number;
103
+ planMode: number;
104
+ goals: number;
105
+ }
106
+ /**
107
+ * One thread in the sidebar's live view.
108
+ *
109
+ * A deliberate copy of the fields a sidebar needs — not a re-export of the
110
+ * host's internal thread row type, which changes whenever the app needs a
111
+ * field. Timestamps are epoch milliseconds.
112
+ */
113
+ interface PluginSidebarThread {
114
+ id: string;
115
+ projectId: string;
116
+ /** Null while a thread is still unnamed; pair with `titleFallback`. */
117
+ title: string | null;
118
+ titleFallback: string | null;
119
+ /**
120
+ * What bb shows for this thread as plain text: `title`, else
121
+ * `titleFallback`, else a short id, with any `@project:`, `@section:`, and
122
+ * `@thread:` mentions in it resolved to their names. Sort on it and use it
123
+ * for accessible names; render {@link PluginSdkApp.ThreadTitle} for the
124
+ * same text with mention chips.
125
+ */
126
+ displayTitle: string;
127
+ /** The thread this one was forked from or spawned under; null at the root. */
128
+ parentThreadId: string | null;
129
+ /**
130
+ * The thread whose lifecycle this one follows (a delegated child stops
131
+ * when its owner stops); null when the thread owns its own lifecycle.
132
+ */
133
+ lifecycleOwnerThreadId: string | null;
134
+ /**
135
+ * Which of this child's outcomes wake its parent: "auto" (every outcome),
136
+ * "stuck" (failures, interruptions, and blockers), or "off".
137
+ */
138
+ parentNotifications: ThreadParentNotifications;
139
+ /** The thread this one was forked from; null unless `originKind` is "fork". */
140
+ sourceThreadId: string | null;
141
+ sectionId: string | null;
142
+ /** How this thread came to exist under its parent; null for root threads. */
143
+ originKind: "fork" | null;
144
+ /** The plugin that spawned it, or null for non-plugin origins. */
145
+ originPluginId: string | null;
146
+ /** The agent provider this thread runs on; resolve it through
147
+ * {@link PluginSdkApp.experimental_useProviders} for a name and icon. */
148
+ providerId: string;
149
+ /**
150
+ * The thread's execution status. bb's list sorts busy threads ("starting",
151
+ * "active", "stopping") above idle ones. Treat an unknown value as "idle".
152
+ */
153
+ status: ThreadStatus;
154
+ /**
155
+ * `status` refined by host and environment state: adds "provisioning" and
156
+ * "waiting-for-host" for a thread whose machine is not ready. Treat an
157
+ * unknown value as `status`.
158
+ */
159
+ runtimeStatus: ThreadRuntimeDisplayStatus;
160
+ /**
161
+ * Whether a message is queued behind the running turn ("waiting") or a
162
+ * queued message failed to send ("failed"). "none" otherwise.
163
+ */
164
+ queuedWork: ThreadQueuedWork;
165
+ /** The agent is blocked on the user: an approval or a question. */
166
+ hasPendingInteraction: boolean;
167
+ activity: PluginSidebarThreadActivity;
168
+ indicator: PluginSidebarThreadIndicator;
169
+ /**
170
+ * The host's accessible label for `indicator`, e.g. "Thread needs user
171
+ * input"; null when the indicator is "none". Use it for `aria-label` so
172
+ * screen-reader text stays consistent across sidebars.
173
+ */
174
+ indicatorLabel: string | null;
175
+ isUnread: boolean;
176
+ isPinned: boolean;
177
+ /** When the thread was pinned (epoch ms); null when unpinned. */
178
+ pinnedAt: number | null;
179
+ /**
180
+ * The user's manual order among pinned threads (lexicographic, ascending);
181
+ * null for an unpinned thread or a pin that has never been reordered, which
182
+ * bb's list sorts after keyed pins by `pinnedAt`.
183
+ */
184
+ pinSortKey: string | null;
185
+ isArchived: boolean;
186
+ /** When the thread was archived (epoch ms); null when not archived. */
187
+ archivedAt: number | null;
188
+ /**
189
+ * The app-relative URL bb opens for this thread, e.g.
190
+ * `/projects/<projectId>/threads/<id>`. Put it on your row's anchor: the
191
+ * host routes a plain click in place, and middle-click, copy-link, and
192
+ * open-in-new-window work without further code.
193
+ */
194
+ href: string;
195
+ /**
196
+ * True for threads bb keeps out of its own list (internal helper threads a
197
+ * plugin spawned with `visibility: "hidden"`). The array includes them so a
198
+ * list that wants them can show them; bb's list filters them out.
199
+ */
200
+ isHidden: boolean;
201
+ environment: {
202
+ id: string | null;
203
+ name: string | null;
204
+ branchName: string | null;
205
+ /** The checkout's absolute path on its host; null when unknown. */
206
+ path: string | null;
207
+ /**
208
+ * True when the environment is a git worktree, which is what bb's
209
+ * "group by environment" clusters; false for a plain checkout; null when
210
+ * unknown.
211
+ */
212
+ isWorktree: boolean | null;
213
+ /**
214
+ * The id of the environment provider that produced this environment, or
215
+ * null for a project's own checkout. Resolve it against
216
+ * `GET /system/environment-providers` for a display name and icon.
217
+ */
218
+ providerId: string | null;
219
+ /** @deprecated Use providerId and the environment provider catalog instead. */
220
+ workspaceDisplayKind: EnvironmentWorkspaceDisplayKind | null;
221
+ } | null;
222
+ /**
223
+ * The machine this thread's work runs on, with the name resolved for you.
224
+ * Null when the thread has no environment yet, or when its host is not in
225
+ * the known-hosts list. Useful where a thread has no branch to show — a
226
+ * personal-project thread has a machine but no worktree.
227
+ */
228
+ host: {
229
+ id: string;
230
+ name: string;
231
+ } | null;
232
+ createdAt: number;
233
+ updatedAt: number;
234
+ lastReadAt: number | null;
235
+ latestAttentionAt: number;
236
+ }
237
+ /**
238
+ * The fields of a {@link PluginSidebarThread} that
239
+ * {@link PluginSdkApp.experimental_resolveThreadStatus} reads.
240
+ */
241
+ type PluginThreadStatusThread = Pick<PluginSidebarThread, "activity" | "hasPendingInteraction" | "isUnread" | "parentThreadId" | "queuedWork" | "runtimeStatus" | "status">;
242
+ /** Input for {@link PluginSdkApp.experimental_resolveThreadStatus}. */
243
+ interface PluginThreadStatusInput {
244
+ /**
245
+ * The row's own thread, or null for a group row (a collapsed section,
246
+ * project, or environment) that stands only for `hiddenThreads`.
247
+ */
248
+ thread: PluginThreadStatusThread | null;
249
+ /**
250
+ * Threads the row stands for while they are hidden, such as a collapsed
251
+ * parent's sub-threads. Their attention and work count toward the row;
252
+ * their queued messages do not. Pass an empty array when nothing is hidden.
253
+ */
254
+ hiddenThreads: readonly PluginThreadStatusThread[];
255
+ /**
256
+ * Whether the composer holds an unsent draft for `thread` or any of
257
+ * `hiddenThreads` (see {@link PluginSdkApp.useSidebarThreadDraft}).
258
+ */
259
+ hasUnsubmittedDraft: boolean;
260
+ /**
261
+ * The status another plugin set on the row (see
262
+ * {@link PluginSdkApp.useSidebarThreadRowStatus}), or null.
263
+ */
264
+ rowStatus: PluginSidebarThreadRowStatus | null;
265
+ }
266
+ /** What bb's lists draw for a row (see {@link PluginThreadStatusInput}). */
267
+ interface PluginThreadStatus {
268
+ indicator: PluginSidebarThreadIndicator;
269
+ /**
270
+ * The input `rowStatus` when it shows in place of `indicator`: it replaces
271
+ * every indicator except "runtime", "unread-error", and
272
+ * "waiting-for-input". Null otherwise.
273
+ */
274
+ rowStatus: PluginSidebarThreadRowStatus | null;
275
+ /**
276
+ * The accessible label for what shows: `rowStatus`'s label, else the
277
+ * indicator's; null when nothing shows.
278
+ */
279
+ label: string | null;
280
+ /**
281
+ * Whether the row's thread or a hidden thread is working, or the input
282
+ * `rowStatus` has the "running" tone.
283
+ */
284
+ isWorking: boolean;
285
+ }
286
+ /**
287
+ * The status another plugin's app-wide script set on a thread's row through
288
+ * the content-script context's `experimental_setThreadRowStatus` (see
289
+ * {@link PluginSdkApp.useSidebarThreadRowStatus}). bb's row draws it in
290
+ * place of the draft glyph while it is set; a replaced list should do the
291
+ * same so a status set by, say, the drafts or workflows plugin does not
292
+ * vanish when the list changes hands.
293
+ */
294
+ type PluginSidebarThreadRowStatus = PluginComposerThreadRowStatus;
295
+ /** Host-rendered status that temporarily replaces a thread's draft glyph. */
296
+ interface PluginComposerThreadRowStatus {
297
+ /**
298
+ * Always drawn as given: unlike the plugin-badged surfaces, this one has no
299
+ * preference for the plugin's own `bb.branding.icon`.
300
+ */
301
+ icon: BbIconName;
302
+ /** Accessible label for the status glyph. */
303
+ label: string;
304
+ /**
305
+ * Semantic host treatment for the status glyph. `running` automatically
306
+ * shimmers; terminal `success` and `error` tones are static. Defaults to the
307
+ * neutral tone.
308
+ */
309
+ tone?: "default" | "error" | "running" | "success";
310
+ }
311
+
312
+ declare function threadIndicatorLabel(indicator: PluginSidebarThreadIndicator): string | null;
313
+ declare function visibleThreadRowStatus(indicator: PluginSidebarThreadIndicator, rowStatus: PluginSidebarThreadRowStatus | null): PluginSidebarThreadRowStatus | null;
314
+ declare function experimental_resolveThreadStatus({ thread, hiddenThreads, hasUnsubmittedDraft, rowStatus, }: PluginThreadStatusInput): PluginThreadStatus;
315
+
316
+ export { experimental_resolveThreadStatus, threadIndicatorLabel, visibleThreadRowStatus };
@@ -700,6 +700,7 @@ type Environment = z$1.infer<typeof environmentSchema>;
700
700
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
701
701
  applicationLinks: "applicationLinks";
702
702
  compactExpiredCache: "compactExpiredCache";
703
+ narrowPluginCss: "narrowPluginCss";
703
704
  performanceDiagnostics: "performanceDiagnostics";
704
705
  pluginUpdates: "pluginUpdates";
705
706
  serverMove: "serverMove";
@@ -715,6 +716,7 @@ type Experiments = z$1.infer<typeof experimentsSchema>;
715
716
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
716
717
  applicationLinks: "applicationLinks";
717
718
  compactExpiredCache: "compactExpiredCache";
719
+ narrowPluginCss: "narrowPluginCss";
718
720
  performanceDiagnostics: "performanceDiagnostics";
719
721
  pluginUpdates: "pluginUpdates";
720
722
  serverMove: "serverMove";
@@ -10109,6 +10111,10 @@ type SystemProvidersQuery = z$1.infer<typeof systemProvidersQuerySchema>;
10109
10111
  declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
10110
10112
  environmentId: z$1.ZodOptional<z$1.ZodString>;
10111
10113
  hostId: z$1.ZodOptional<z$1.ZodString>;
10114
+ preferCached: z$1.ZodOptional<z$1.ZodEnum<{
10115
+ false: "false";
10116
+ true: "true";
10117
+ }>>;
10112
10118
  projectId: z$1.ZodOptional<z$1.ZodString>;
10113
10119
  providerId: z$1.ZodOptional<z$1.ZodString>;
10114
10120
  selectedModel: z$1.ZodOptional<z$1.ZodString>;
@@ -10570,6 +10576,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10570
10576
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10571
10577
  applicationLinks: "applicationLinks";
10572
10578
  compactExpiredCache: "compactExpiredCache";
10579
+ narrowPluginCss: "narrowPluginCss";
10573
10580
  performanceDiagnostics: "performanceDiagnostics";
10574
10581
  pluginUpdates: "pluginUpdates";
10575
10582
  serverMove: "serverMove";
@@ -13625,7 +13632,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13625
13632
  type CreateQueuedMessageRequest = z$1.infer<typeof createQueuedMessageRequestSchema>;
13626
13633
  declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13627
13634
  expectedUpdatedAt: z$1.ZodNumber;
13628
- input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13635
+ input: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13629
13636
  mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
13630
13637
  end: z$1.ZodNumber;
13631
13638
  resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -13714,7 +13721,16 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13714
13721
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13715
13722
  "agent-only": "agent-only";
13716
13723
  }>>;
13717
- }, z$1.core.$strip>], "type">>;
13724
+ }, z$1.core.$strip>], "type">>>;
13725
+ model: z$1.ZodOptional<z$1.ZodString>;
13726
+ permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
13727
+ "accept-edits": "accept-edits";
13728
+ auto: "auto";
13729
+ full: "full";
13730
+ }>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
13731
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13732
+ sendAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
13733
+ serviceTier: z$1.ZodOptional<z$1.ZodString>;
13718
13734
  }, z$1.core.$strip>;
13719
13735
  type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
13720
13736
  declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
@@ -17885,6 +17901,7 @@ type ProviderModelsArgs = ({
17885
17901
  projectId?: string;
17886
17902
  }) & {
17887
17903
  providerId?: string;
17904
+ preferCached?: boolean;
17888
17905
  signal?: AbortSignal;
17889
17906
  };
17890
17907
  type ProviderListResult = ProviderInfo[];
@@ -18270,7 +18287,8 @@ interface SystemAttentionArgs {
18270
18287
  interface SystemConfigArgs {
18271
18288
  signal?: AbortSignal;
18272
18289
  }
18273
- interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
18290
+ interface SystemExecutionOptionsArgs extends Omit<SystemExecutionOptionsQuery, "preferCached"> {
18291
+ preferCached?: boolean;
18274
18292
  signal?: AbortSignal;
18275
18293
  }
18276
18294
  interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
@@ -22475,7 +22493,9 @@ interface ExperimentalSidebarFooter {
22475
22493
  /**
22476
22494
  * The one status bb would paint for a thread, already resolved through the
22477
22495
  * host's precedence (attention before work; plan and goal before the generic
22478
- * spinner). Draw your own glyph for it — the SDK ships no status component.
22496
+ * spinner). Draw it with {@link PluginSdkApp.experimental_ThreadStatusGlyph},
22497
+ * or resolve a row that folds in more through
22498
+ * {@link PluginSdkApp.experimental_resolveThreadStatus}.
22479
22499
  *
22480
22500
  * Treat an unrecognized value as "none": bb adds kinds over time, and an
22481
22501
  * older plugin must degrade to drawing nothing rather than throwing.
@@ -22791,11 +22811,61 @@ interface PluginThreadTitleProps {
22791
22811
  /** A thread in the sidebar's live view; renders nothing for an unknown id. */
22792
22812
  threadId: string;
22793
22813
  }
22814
+ /**
22815
+ * The fields of a {@link PluginSidebarThread} that
22816
+ * {@link PluginSdkApp.experimental_resolveThreadStatus} reads.
22817
+ */
22818
+ type PluginThreadStatusThread = Pick<PluginSidebarThread, "activity" | "hasPendingInteraction" | "isUnread" | "parentThreadId" | "queuedWork" | "runtimeStatus" | "status">;
22819
+ /** Input for {@link PluginSdkApp.experimental_resolveThreadStatus}. */
22820
+ interface PluginThreadStatusInput {
22821
+ /**
22822
+ * The row's own thread, or null for a group row (a collapsed section,
22823
+ * project, or environment) that stands only for `hiddenThreads`.
22824
+ */
22825
+ thread: PluginThreadStatusThread | null;
22826
+ /**
22827
+ * Threads the row stands for while they are hidden, such as a collapsed
22828
+ * parent's sub-threads. Their attention and work count toward the row;
22829
+ * their queued messages do not. Pass an empty array when nothing is hidden.
22830
+ */
22831
+ hiddenThreads: readonly PluginThreadStatusThread[];
22832
+ /**
22833
+ * Whether the composer holds an unsent draft for `thread` or any of
22834
+ * `hiddenThreads` (see {@link PluginSdkApp.useSidebarThreadDraft}).
22835
+ */
22836
+ hasUnsubmittedDraft: boolean;
22837
+ /**
22838
+ * The status another plugin set on the row (see
22839
+ * {@link PluginSdkApp.useSidebarThreadRowStatus}), or null.
22840
+ */
22841
+ rowStatus: PluginSidebarThreadRowStatus | null;
22842
+ }
22843
+ /** What bb's lists draw for a row (see {@link PluginThreadStatusInput}). */
22844
+ interface PluginThreadStatus {
22845
+ indicator: PluginSidebarThreadIndicator;
22846
+ /**
22847
+ * The input `rowStatus` when it shows in place of `indicator`: it replaces
22848
+ * every indicator except "runtime", "unread-error", and
22849
+ * "waiting-for-input". Null otherwise.
22850
+ */
22851
+ rowStatus: PluginSidebarThreadRowStatus | null;
22852
+ /**
22853
+ * The accessible label for what shows: `rowStatus`'s label, else the
22854
+ * indicator's; null when nothing shows.
22855
+ */
22856
+ label: string | null;
22857
+ /**
22858
+ * Whether the row's thread or a hidden thread is working, or the input
22859
+ * `rowStatus` has the "running" tone.
22860
+ */
22861
+ isWorking: boolean;
22862
+ }
22794
22863
  /**
22795
22864
  * Props for {@link PluginSdkApp.experimental_ThreadStatusGlyph}: bb's thread
22796
- * status glyph, the one its own lists draw. The caller resolves the
22797
- * indicator, so a row can fold in state the host does not know about, such
22798
- * as collapsed children or a client-local draft.
22865
+ * status glyph, the one its own lists draw. Pass the `indicator` and
22866
+ * `rowStatus` from {@link PluginSdkApp.experimental_resolveThreadStatus} to
22867
+ * fold in state a sidebar thread's `indicator` leaves out, such as collapsed
22868
+ * children or a client-local draft.
22799
22869
  */
22800
22870
  interface PluginThreadStatusGlyphProps {
22801
22871
  /** The indicator to draw; "none" draws nothing unless `rowStatus` shows. */
@@ -26440,6 +26510,13 @@ interface PluginSdkApp {
26440
26510
  * Experimental: see docs/api_to_audit.md.
26441
26511
  */
26442
26512
  experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
26513
+ /**
26514
+ * Resolves what bb's lists draw for a row through bb's own status
26515
+ * precedence, folding in hidden threads, a draft, and another plugin's row
26516
+ * status (see {@link PluginThreadStatusInput}). A pure function, not a
26517
+ * hook. Experimental: see docs/api_to_audit.md.
26518
+ */
26519
+ experimental_resolveThreadStatus(input: PluginThreadStatusInput): PluginThreadStatus;
26443
26520
  /**
26444
26521
  * Every `experimental_threadRowMetadata` contribution for one thread row (see
26445
26522
  * {@link ExperimentalThreadRowMetadataRegistration}), the items bb's sidebar
@@ -26960,4 +27037,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
26960
27037
  };
26961
27038
 
26962
27039
  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 };
26963
- export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
27040
+ export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
package/dist/app.js CHANGED
@@ -106,6 +106,113 @@ var experimental_THREAD_INFO_SECTION_GROUPS = {
106
106
  storage: "3_storage"
107
107
  };
108
108
 
109
+ // src/internal/thread-status.ts
110
+ var INDICATOR_LABELS = {
111
+ "unread-error": "Unread thread failed",
112
+ "waiting-for-input": "Thread needs user input",
113
+ "working-draft": "Thread working with unsubmitted draft",
114
+ workflow: "Workflow running",
115
+ "background-agent": "Background agent running",
116
+ "background-command": "Background command running",
117
+ "plan-mode": "Plan mode active",
118
+ goal: "Goal active",
119
+ runtime: "Thread working",
120
+ "queued-failed": "Queued message failed to send",
121
+ "queued-waiting": "Thread has a message waiting to send",
122
+ draft: "Thread has unsubmitted draft",
123
+ "unread-success": "Unread thread succeeded"
124
+ };
125
+ var RUNNING_RUNTIME_STATUSES = {
126
+ active: true,
127
+ provisioning: true,
128
+ starting: true,
129
+ stopping: true,
130
+ error: false,
131
+ idle: false,
132
+ pending: false,
133
+ "waiting-for-host": false
134
+ };
135
+ var DONE_THREAD_STATUSES = {
136
+ error: true,
137
+ idle: true,
138
+ active: false,
139
+ starting: false,
140
+ stopping: false,
141
+ pending: false
142
+ };
143
+ var INDICATORS_OVER_ROW_STATUS = /* @__PURE__ */ new Set(["runtime", "unread-error", "waiting-for-input"]);
144
+ function threadIndicatorLabel(indicator) {
145
+ return indicator === "none" ? null : INDICATOR_LABELS[indicator];
146
+ }
147
+ function visibleThreadRowStatus(indicator, rowStatus) {
148
+ return INDICATORS_OVER_ROW_STATUS.has(indicator) ? null : rowStatus;
149
+ }
150
+ function isUnreadDoneThread(thread) {
151
+ return thread.parentThreadId === null && thread.isUnread && DONE_THREAD_STATUSES[thread.status];
152
+ }
153
+ function addThreadFlags(flags, thread) {
154
+ const unreadDone = isUnreadDoneThread(thread);
155
+ flags.pending ||= thread.hasPendingInteraction;
156
+ flags.unreadError ||= unreadDone && thread.status === "error";
157
+ flags.unreadSuccess ||= unreadDone && thread.status !== "error";
158
+ flags.runtime ||= RUNNING_RUNTIME_STATUSES[thread.runtimeStatus];
159
+ flags.workflow ||= thread.activity.workflows > 0;
160
+ flags.backgroundAgent ||= thread.activity.backgroundAgents > 0;
161
+ flags.backgroundCommand ||= thread.activity.backgroundCommands > 0;
162
+ flags.planMode ||= thread.activity.planMode > 0;
163
+ flags.goal ||= thread.activity.goals > 0;
164
+ }
165
+ function resolveIndicator(flags, queuedWork, hasUnsubmittedDraft, isWorking) {
166
+ if (flags.unreadError) return "unread-error";
167
+ if (flags.pending) return "waiting-for-input";
168
+ if (hasUnsubmittedDraft && isWorking) return "working-draft";
169
+ if (flags.planMode) return "plan-mode";
170
+ if (flags.goal) return "goal";
171
+ if (flags.runtime) return "runtime";
172
+ if (flags.workflow) return "workflow";
173
+ if (queuedWork === "failed") return "queued-failed";
174
+ if (flags.unreadSuccess) return "unread-success";
175
+ if (flags.backgroundAgent) return "background-agent";
176
+ if (flags.backgroundCommand) return "background-command";
177
+ if (queuedWork === "waiting") return "queued-waiting";
178
+ if (hasUnsubmittedDraft) return "draft";
179
+ return "none";
180
+ }
181
+ function experimental_resolveThreadStatus({
182
+ thread,
183
+ hiddenThreads,
184
+ hasUnsubmittedDraft,
185
+ rowStatus
186
+ }) {
187
+ const flags = {
188
+ pending: false,
189
+ unreadError: false,
190
+ unreadSuccess: false,
191
+ runtime: false,
192
+ workflow: false,
193
+ backgroundAgent: false,
194
+ backgroundCommand: false,
195
+ planMode: false,
196
+ goal: false
197
+ };
198
+ if (thread !== null) addThreadFlags(flags, thread);
199
+ for (const hiddenThread of hiddenThreads) addThreadFlags(flags, hiddenThread);
200
+ const isThreadWorking = flags.runtime || flags.workflow || flags.backgroundAgent || flags.backgroundCommand || flags.planMode || flags.goal;
201
+ const indicator = resolveIndicator(
202
+ flags,
203
+ thread?.queuedWork ?? "none",
204
+ hasUnsubmittedDraft,
205
+ isThreadWorking
206
+ );
207
+ const shownRowStatus = visibleThreadRowStatus(indicator, rowStatus);
208
+ return {
209
+ indicator,
210
+ rowStatus: shownRowStatus,
211
+ label: shownRowStatus?.label ?? threadIndicatorLabel(indicator),
212
+ isWorking: isThreadWorking || rowStatus?.tone === "running"
213
+ };
214
+ }
215
+
109
216
  // src/app.ts
110
217
  function runtimeHost() {
111
218
  return globalThis.__bbPluginRuntime;
@@ -420,6 +527,7 @@ export {
420
527
  experimental_getApplicationLinkApprovals,
421
528
  experimental_promptMentionClipboardAttributes,
422
529
  experimental_readPromptMentionClipboard,
530
+ experimental_resolveThreadStatus,
423
531
  experimental_revokeApplicationLinkApproval,
424
532
  experimental_saveFile,
425
533
  experimental_useAppPanel,
@@ -0,0 +1,111 @@
1
+ // src/internal/thread-status.ts
2
+ var INDICATOR_LABELS = {
3
+ "unread-error": "Unread thread failed",
4
+ "waiting-for-input": "Thread needs user input",
5
+ "working-draft": "Thread working with unsubmitted draft",
6
+ workflow: "Workflow running",
7
+ "background-agent": "Background agent running",
8
+ "background-command": "Background command running",
9
+ "plan-mode": "Plan mode active",
10
+ goal: "Goal active",
11
+ runtime: "Thread working",
12
+ "queued-failed": "Queued message failed to send",
13
+ "queued-waiting": "Thread has a message waiting to send",
14
+ draft: "Thread has unsubmitted draft",
15
+ "unread-success": "Unread thread succeeded"
16
+ };
17
+ var RUNNING_RUNTIME_STATUSES = {
18
+ active: true,
19
+ provisioning: true,
20
+ starting: true,
21
+ stopping: true,
22
+ error: false,
23
+ idle: false,
24
+ pending: false,
25
+ "waiting-for-host": false
26
+ };
27
+ var DONE_THREAD_STATUSES = {
28
+ error: true,
29
+ idle: true,
30
+ active: false,
31
+ starting: false,
32
+ stopping: false,
33
+ pending: false
34
+ };
35
+ var INDICATORS_OVER_ROW_STATUS = /* @__PURE__ */ new Set(["runtime", "unread-error", "waiting-for-input"]);
36
+ function threadIndicatorLabel(indicator) {
37
+ return indicator === "none" ? null : INDICATOR_LABELS[indicator];
38
+ }
39
+ function visibleThreadRowStatus(indicator, rowStatus) {
40
+ return INDICATORS_OVER_ROW_STATUS.has(indicator) ? null : rowStatus;
41
+ }
42
+ function isUnreadDoneThread(thread) {
43
+ return thread.parentThreadId === null && thread.isUnread && DONE_THREAD_STATUSES[thread.status];
44
+ }
45
+ function addThreadFlags(flags, thread) {
46
+ const unreadDone = isUnreadDoneThread(thread);
47
+ flags.pending ||= thread.hasPendingInteraction;
48
+ flags.unreadError ||= unreadDone && thread.status === "error";
49
+ flags.unreadSuccess ||= unreadDone && thread.status !== "error";
50
+ flags.runtime ||= RUNNING_RUNTIME_STATUSES[thread.runtimeStatus];
51
+ flags.workflow ||= thread.activity.workflows > 0;
52
+ flags.backgroundAgent ||= thread.activity.backgroundAgents > 0;
53
+ flags.backgroundCommand ||= thread.activity.backgroundCommands > 0;
54
+ flags.planMode ||= thread.activity.planMode > 0;
55
+ flags.goal ||= thread.activity.goals > 0;
56
+ }
57
+ function resolveIndicator(flags, queuedWork, hasUnsubmittedDraft, isWorking) {
58
+ if (flags.unreadError) return "unread-error";
59
+ if (flags.pending) return "waiting-for-input";
60
+ if (hasUnsubmittedDraft && isWorking) return "working-draft";
61
+ if (flags.planMode) return "plan-mode";
62
+ if (flags.goal) return "goal";
63
+ if (flags.runtime) return "runtime";
64
+ if (flags.workflow) return "workflow";
65
+ if (queuedWork === "failed") return "queued-failed";
66
+ if (flags.unreadSuccess) return "unread-success";
67
+ if (flags.backgroundAgent) return "background-agent";
68
+ if (flags.backgroundCommand) return "background-command";
69
+ if (queuedWork === "waiting") return "queued-waiting";
70
+ if (hasUnsubmittedDraft) return "draft";
71
+ return "none";
72
+ }
73
+ function experimental_resolveThreadStatus({
74
+ thread,
75
+ hiddenThreads,
76
+ hasUnsubmittedDraft,
77
+ rowStatus
78
+ }) {
79
+ const flags = {
80
+ pending: false,
81
+ unreadError: false,
82
+ unreadSuccess: false,
83
+ runtime: false,
84
+ workflow: false,
85
+ backgroundAgent: false,
86
+ backgroundCommand: false,
87
+ planMode: false,
88
+ goal: false
89
+ };
90
+ if (thread !== null) addThreadFlags(flags, thread);
91
+ for (const hiddenThread of hiddenThreads) addThreadFlags(flags, hiddenThread);
92
+ const isThreadWorking = flags.runtime || flags.workflow || flags.backgroundAgent || flags.backgroundCommand || flags.planMode || flags.goal;
93
+ const indicator = resolveIndicator(
94
+ flags,
95
+ thread?.queuedWork ?? "none",
96
+ hasUnsubmittedDraft,
97
+ isThreadWorking
98
+ );
99
+ const shownRowStatus = visibleThreadRowStatus(indicator, rowStatus);
100
+ return {
101
+ indicator,
102
+ rowStatus: shownRowStatus,
103
+ label: shownRowStatus?.label ?? threadIndicatorLabel(indicator),
104
+ isWorking: isThreadWorking || rowStatus?.tone === "running"
105
+ };
106
+ }
107
+ export {
108
+ experimental_resolveThreadStatus,
109
+ threadIndicatorLabel,
110
+ visibleThreadRowStatus
111
+ };
@@ -3582,6 +3582,113 @@ var experimental_THREAD_ACTION_GROUPS = {
3582
3582
  lifecycle: "4_lifecycle"
3583
3583
  };
3584
3584
 
3585
+ // src/internal/thread-status.ts
3586
+ var INDICATOR_LABELS = {
3587
+ "unread-error": "Unread thread failed",
3588
+ "waiting-for-input": "Thread needs user input",
3589
+ "working-draft": "Thread working with unsubmitted draft",
3590
+ workflow: "Workflow running",
3591
+ "background-agent": "Background agent running",
3592
+ "background-command": "Background command running",
3593
+ "plan-mode": "Plan mode active",
3594
+ goal: "Goal active",
3595
+ runtime: "Thread working",
3596
+ "queued-failed": "Queued message failed to send",
3597
+ "queued-waiting": "Thread has a message waiting to send",
3598
+ draft: "Thread has unsubmitted draft",
3599
+ "unread-success": "Unread thread succeeded"
3600
+ };
3601
+ var RUNNING_RUNTIME_STATUSES = {
3602
+ active: true,
3603
+ provisioning: true,
3604
+ starting: true,
3605
+ stopping: true,
3606
+ error: false,
3607
+ idle: false,
3608
+ pending: false,
3609
+ "waiting-for-host": false
3610
+ };
3611
+ var DONE_THREAD_STATUSES = {
3612
+ error: true,
3613
+ idle: true,
3614
+ active: false,
3615
+ starting: false,
3616
+ stopping: false,
3617
+ pending: false
3618
+ };
3619
+ var INDICATORS_OVER_ROW_STATUS = /* @__PURE__ */ new Set(["runtime", "unread-error", "waiting-for-input"]);
3620
+ function threadIndicatorLabel(indicator) {
3621
+ return indicator === "none" ? null : INDICATOR_LABELS[indicator];
3622
+ }
3623
+ function visibleThreadRowStatus(indicator, rowStatus) {
3624
+ return INDICATORS_OVER_ROW_STATUS.has(indicator) ? null : rowStatus;
3625
+ }
3626
+ function isUnreadDoneThread(thread) {
3627
+ return thread.parentThreadId === null && thread.isUnread && DONE_THREAD_STATUSES[thread.status];
3628
+ }
3629
+ function addThreadFlags(flags, thread) {
3630
+ const unreadDone = isUnreadDoneThread(thread);
3631
+ flags.pending ||= thread.hasPendingInteraction;
3632
+ flags.unreadError ||= unreadDone && thread.status === "error";
3633
+ flags.unreadSuccess ||= unreadDone && thread.status !== "error";
3634
+ flags.runtime ||= RUNNING_RUNTIME_STATUSES[thread.runtimeStatus];
3635
+ flags.workflow ||= thread.activity.workflows > 0;
3636
+ flags.backgroundAgent ||= thread.activity.backgroundAgents > 0;
3637
+ flags.backgroundCommand ||= thread.activity.backgroundCommands > 0;
3638
+ flags.planMode ||= thread.activity.planMode > 0;
3639
+ flags.goal ||= thread.activity.goals > 0;
3640
+ }
3641
+ function resolveIndicator(flags, queuedWork, hasUnsubmittedDraft, isWorking) {
3642
+ if (flags.unreadError) return "unread-error";
3643
+ if (flags.pending) return "waiting-for-input";
3644
+ if (hasUnsubmittedDraft && isWorking) return "working-draft";
3645
+ if (flags.planMode) return "plan-mode";
3646
+ if (flags.goal) return "goal";
3647
+ if (flags.runtime) return "runtime";
3648
+ if (flags.workflow) return "workflow";
3649
+ if (queuedWork === "failed") return "queued-failed";
3650
+ if (flags.unreadSuccess) return "unread-success";
3651
+ if (flags.backgroundAgent) return "background-agent";
3652
+ if (flags.backgroundCommand) return "background-command";
3653
+ if (queuedWork === "waiting") return "queued-waiting";
3654
+ if (hasUnsubmittedDraft) return "draft";
3655
+ return "none";
3656
+ }
3657
+ function experimental_resolveThreadStatus({
3658
+ thread,
3659
+ hiddenThreads,
3660
+ hasUnsubmittedDraft,
3661
+ rowStatus
3662
+ }) {
3663
+ const flags = {
3664
+ pending: false,
3665
+ unreadError: false,
3666
+ unreadSuccess: false,
3667
+ runtime: false,
3668
+ workflow: false,
3669
+ backgroundAgent: false,
3670
+ backgroundCommand: false,
3671
+ planMode: false,
3672
+ goal: false
3673
+ };
3674
+ if (thread !== null) addThreadFlags(flags, thread);
3675
+ for (const hiddenThread of hiddenThreads) addThreadFlags(flags, hiddenThread);
3676
+ const isThreadWorking = flags.runtime || flags.workflow || flags.backgroundAgent || flags.backgroundCommand || flags.planMode || flags.goal;
3677
+ const indicator = resolveIndicator(
3678
+ flags,
3679
+ thread?.queuedWork ?? "none",
3680
+ hasUnsubmittedDraft,
3681
+ isThreadWorking
3682
+ );
3683
+ const shownRowStatus = visibleThreadRowStatus(indicator, rowStatus);
3684
+ return {
3685
+ indicator,
3686
+ rowStatus: shownRowStatus,
3687
+ label: shownRowStatus?.label ?? threadIndicatorLabel(indicator),
3688
+ isWorking: isThreadWorking || rowStatus?.tone === "running"
3689
+ };
3690
+ }
3691
+
3585
3692
  // src/thread-info-groups.ts
3586
3693
  var experimental_THREAD_CONTEXT_SEGMENT_GROUPS = {
3587
3694
  thread: "1_thread",
@@ -5838,6 +5945,7 @@ var testPluginSdkApp = {
5838
5945
  },
5839
5946
  ThreadTitle: TestThreadTitle,
5840
5947
  experimental_ThreadStatusGlyph: TestThreadStatusGlyph,
5948
+ experimental_resolveThreadStatus,
5841
5949
  experimental_ThreadRowMetadata: TestThreadRowMetadata,
5842
5950
  useEnvironmentProviders() {
5843
5951
  return useSlotEnv("useEnvironmentProviders").environmentProviders;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.6.109",
3
+ "version": "0.6.112",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"
@@ -92,6 +92,12 @@
92
92
  "import": "./dist/internal/composer-view.js",
93
93
  "default": "./dist/internal/composer-view.js"
94
94
  },
95
+ "./internal/thread-status": {
96
+ "source": "./src/internal/thread-status.ts",
97
+ "types": "./bundled-types/bb-plugin-sdk-internal-thread-status.d.ts",
98
+ "import": "./dist/internal/thread-status.js",
99
+ "default": "./dist/internal/thread-status.js"
100
+ },
95
101
  "./internal/file-navigation-validation": {
96
102
  "source": "./src/internal/file-navigation-validation.ts",
97
103
  "types": "./bundled-types/bb-plugin-sdk-internal-file-navigation-validation.d.ts",