@get-bb/plugin-sdk 0.6.105 → 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.
@@ -3595,6 +3595,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
3595
3595
  "agent-only": "agent-only";
3596
3596
  }>>;
3597
3597
  }, z.core.$strip>], "type">>>>;
3598
+ originPluginId: z.ZodOptional<z.ZodString>;
3598
3599
  request: z.ZodObject<{
3599
3600
  method: z.ZodEnum<{
3600
3601
  "thread/start": "thread/start";
@@ -699,8 +699,8 @@ type Environment = z$1.infer<typeof environmentSchema>;
699
699
 
700
700
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
701
701
  applicationLinks: "applicationLinks";
702
- changelogPreview: "changelogPreview";
703
702
  compactExpiredCache: "compactExpiredCache";
703
+ narrowPluginCss: "narrowPluginCss";
704
704
  performanceDiagnostics: "performanceDiagnostics";
705
705
  pluginUpdates: "pluginUpdates";
706
706
  serverMove: "serverMove";
@@ -715,8 +715,8 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
715
715
  type Experiments = z$1.infer<typeof experimentsSchema>;
716
716
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
717
717
  applicationLinks: "applicationLinks";
718
- changelogPreview: "changelogPreview";
719
718
  compactExpiredCache: "compactExpiredCache";
719
+ narrowPluginCss: "narrowPluginCss";
720
720
  performanceDiagnostics: "performanceDiagnostics";
721
721
  pluginUpdates: "pluginUpdates";
722
722
  serverMove: "serverMove";
@@ -3293,6 +3293,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3293
3293
  "agent-only": "agent-only";
3294
3294
  }>>;
3295
3295
  }, z$1.core.$strip>], "type">>>>;
3296
+ originPluginId: z$1.ZodOptional<z$1.ZodString>;
3296
3297
  request: z$1.ZodObject<{
3297
3298
  method: z$1.ZodEnum<{
3298
3299
  "thread/start": "thread/start";
@@ -10110,6 +10111,10 @@ type SystemProvidersQuery = z$1.infer<typeof systemProvidersQuerySchema>;
10110
10111
  declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
10111
10112
  environmentId: z$1.ZodOptional<z$1.ZodString>;
10112
10113
  hostId: z$1.ZodOptional<z$1.ZodString>;
10114
+ preferCached: z$1.ZodOptional<z$1.ZodEnum<{
10115
+ false: "false";
10116
+ true: "true";
10117
+ }>>;
10113
10118
  projectId: z$1.ZodOptional<z$1.ZodString>;
10114
10119
  providerId: z$1.ZodOptional<z$1.ZodString>;
10115
10120
  selectedModel: z$1.ZodOptional<z$1.ZodString>;
@@ -10236,6 +10241,56 @@ declare const testAiServiceResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
10236
10241
  }, z$1.core.$strip>], "ok">;
10237
10242
  type TestAiServiceResponse = z$1.infer<typeof testAiServiceResponseSchema>;
10238
10243
  declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10244
+ name: z$1.ZodLiteral<"recommendation">;
10245
+ properties: z$1.ZodObject<{
10246
+ action: z$1.ZodEnum<{
10247
+ selected: "selected";
10248
+ shown: "shown";
10249
+ }>;
10250
+ entry: z$1.ZodEnum<{
10251
+ first_run: "first_run";
10252
+ replay: "replay";
10253
+ }>;
10254
+ recommendation_id: z$1.ZodString;
10255
+ resource_id: z$1.ZodString;
10256
+ resource_type: z$1.ZodEnum<{
10257
+ plugin: "plugin";
10258
+ }>;
10259
+ surface: z$1.ZodEnum<{
10260
+ onboarding: "onboarding";
10261
+ }>;
10262
+ }, z$1.core.$strict>;
10263
+ }, z$1.core.$strict>, z$1.ZodObject<{
10264
+ name: z$1.ZodLiteral<"onboarding_operation">;
10265
+ properties: z$1.ZodObject<{
10266
+ entry: z$1.ZodEnum<{
10267
+ first_run: "first_run";
10268
+ replay: "replay";
10269
+ }>;
10270
+ item_count: z$1.ZodOptional<z$1.ZodNumber>;
10271
+ operation: z$1.ZodEnum<{
10272
+ add_machine: "add_machine";
10273
+ import: "import";
10274
+ install: "install";
10275
+ remote_access: "remote_access";
10276
+ scan: "scan";
10277
+ update: "update";
10278
+ }>;
10279
+ outcome: z$1.ZodEnum<{
10280
+ failed: "failed";
10281
+ started: "started";
10282
+ succeeded: "succeeded";
10283
+ }>;
10284
+ resource_id: z$1.ZodOptional<z$1.ZodString>;
10285
+ step: z$1.ZodEnum<{
10286
+ agent: "agent";
10287
+ devices: "devices";
10288
+ plugins: "plugins";
10289
+ projects: "projects";
10290
+ }>;
10291
+ succeeded_count: z$1.ZodOptional<z$1.ZodNumber>;
10292
+ }, z$1.core.$strict>;
10293
+ }, z$1.core.$strict>, z$1.ZodObject<{
10239
10294
  name: z$1.ZodLiteral<"onboarding_agent_state">;
10240
10295
  properties: z$1.ZodObject<{
10241
10296
  agent_installed: z$1.ZodNullable<z$1.ZodBoolean>;
@@ -10260,6 +10315,19 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
10260
10315
  started: "started";
10261
10316
  }>;
10262
10317
  }, z$1.core.$strict>;
10318
+ }, z$1.core.$strict>, z$1.ZodObject<{
10319
+ name: z$1.ZodLiteral<"new_thread_blocker">;
10320
+ properties: z$1.ZodObject<{
10321
+ reason: z$1.ZodEnum<{
10322
+ agent_missing: "agent_missing";
10323
+ agent_update: "agent_update";
10324
+ model_selection: "model_selection";
10325
+ model_unavailable: "model_unavailable";
10326
+ project_setup: "project_setup";
10327
+ provider_selection: "provider_selection";
10328
+ sign_in: "sign_in";
10329
+ }>;
10330
+ }, z$1.core.$strict>;
10263
10331
  }, z$1.core.$strict>, z$1.ZodObject<{
10264
10332
  name: z$1.ZodLiteral<"new_thread_submit">;
10265
10333
  properties: z$1.ZodObject<{
@@ -10335,6 +10403,15 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
10335
10403
  skipped: "skipped";
10336
10404
  }>;
10337
10405
  }, z$1.core.$strict>;
10406
+ }, z$1.core.$strict>, z$1.ZodObject<{
10407
+ name: z$1.ZodLiteral<"release_notes_opened">;
10408
+ properties: z$1.ZodObject<{
10409
+ release_version: z$1.ZodString;
10410
+ view: z$1.ZodEnum<{
10411
+ inline: "inline";
10412
+ web: "web";
10413
+ }>;
10414
+ }, z$1.core.$strict>;
10338
10415
  }, z$1.core.$strict>, z$1.ZodObject<{
10339
10416
  name: z$1.ZodLiteral<"plugin_creation_started">;
10340
10417
  properties: z$1.ZodObject<{}, z$1.core.$strict>;
@@ -10498,8 +10575,8 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10498
10575
  }, z$1.core.$strict>>;
10499
10576
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10500
10577
  applicationLinks: "applicationLinks";
10501
- changelogPreview: "changelogPreview";
10502
10578
  compactExpiredCache: "compactExpiredCache";
10579
+ narrowPluginCss: "narrowPluginCss";
10503
10580
  performanceDiagnostics: "performanceDiagnostics";
10504
10581
  pluginUpdates: "pluginUpdates";
10505
10582
  serverMove: "serverMove";
@@ -13555,7 +13632,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13555
13632
  type CreateQueuedMessageRequest = z$1.infer<typeof createQueuedMessageRequestSchema>;
13556
13633
  declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13557
13634
  expectedUpdatedAt: z$1.ZodNumber;
13558
- input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13635
+ input: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13559
13636
  mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
13560
13637
  end: z$1.ZodNumber;
13561
13638
  resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -13644,7 +13721,16 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13644
13721
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
13645
13722
  "agent-only": "agent-only";
13646
13723
  }>>;
13647
- }, 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>;
13648
13734
  }, z$1.core.$strip>;
13649
13735
  type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
13650
13736
  declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
@@ -17815,6 +17901,7 @@ type ProviderModelsArgs = ({
17815
17901
  projectId?: string;
17816
17902
  }) & {
17817
17903
  providerId?: string;
17904
+ preferCached?: boolean;
17818
17905
  signal?: AbortSignal;
17819
17906
  };
17820
17907
  type ProviderListResult = ProviderInfo[];
@@ -18200,7 +18287,8 @@ interface SystemAttentionArgs {
18200
18287
  interface SystemConfigArgs {
18201
18288
  signal?: AbortSignal;
18202
18289
  }
18203
- interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
18290
+ interface SystemExecutionOptionsArgs extends Omit<SystemExecutionOptionsQuery, "preferCached"> {
18291
+ preferCached?: boolean;
18204
18292
  signal?: AbortSignal;
18205
18293
  }
18206
18294
  interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
@@ -19487,6 +19575,14 @@ interface PluginTurnFailedEvent {
19487
19575
  * A policy caps its own retries by comparing against this.
19488
19576
  */
19489
19577
  attemptNumber: number;
19578
+ /**
19579
+ * The plugin that sent the failed turn's message through
19580
+ * `bb.sdk.threads.send` or `bb.sdk.threads.spawn`, or null when a user, an
19581
+ * agent, or core sent it. A retry is sent by core, so a retry's failure
19582
+ * reports null. A retry policy uses this to ask the sender whether it
19583
+ * wants the turn re-run.
19584
+ */
19585
+ originPluginId: string | null;
19490
19586
  }
19491
19587
  /**
19492
19588
  * Lifecycle events a plugin can observe with `bb.events.on` (design §4.5).
@@ -21233,6 +21329,8 @@ type PluginBbSdk = Omit<BbSdk, "threads"> & {
21233
21329
  * against.
21234
21330
  */
21235
21331
  interface BbPluginApi {
21332
+ /** Internal: counts one meaningful use of a first-party plugin's UI. */
21333
+ internal_DO_NOT_USE_recordPluginUse(): void;
21236
21334
  /** The plugin's own id (namespaces storage, routes, commands). */
21237
21335
  readonly pluginId: string;
21238
21336
  /** Leveled, plugin-scoped logger. */
@@ -22395,7 +22493,9 @@ interface ExperimentalSidebarFooter {
22395
22493
  /**
22396
22494
  * The one status bb would paint for a thread, already resolved through the
22397
22495
  * host's precedence (attention before work; plan and goal before the generic
22398
- * 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}.
22399
22499
  *
22400
22500
  * Treat an unrecognized value as "none": bb adds kinds over time, and an
22401
22501
  * older plugin must degrade to drawing nothing rather than throwing.
@@ -22711,11 +22811,61 @@ interface PluginThreadTitleProps {
22711
22811
  /** A thread in the sidebar's live view; renders nothing for an unknown id. */
22712
22812
  threadId: string;
22713
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
+ }
22714
22863
  /**
22715
22864
  * Props for {@link PluginSdkApp.experimental_ThreadStatusGlyph}: bb's thread
22716
- * status glyph, the one its own lists draw. The caller resolves the
22717
- * indicator, so a row can fold in state the host does not know about, such
22718
- * 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.
22719
22869
  */
22720
22870
  interface PluginThreadStatusGlyphProps {
22721
22871
  /** The indicator to draw; "none" draws nothing unless `rowStatus` shows. */
@@ -26360,6 +26510,13 @@ interface PluginSdkApp {
26360
26510
  * Experimental: see docs/api_to_audit.md.
26361
26511
  */
26362
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;
26363
26520
  /**
26364
26521
  * Every `experimental_threadRowMetadata` contribution for one thread row (see
26365
26522
  * {@link ExperimentalThreadRowMetadataRegistration}), the items bb's sidebar
@@ -26880,4 +27037,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
26880
27037
  };
26881
27038
 
26882
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 };
26883
- 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,
@@ -1828,6 +1828,10 @@ var queuedMessageStateValues = [
1828
1828
  "claimed"
1829
1829
  ];
1830
1830
  var queuedMessageStateSchema = z10.enum(queuedMessageStateValues);
1831
+ var queuedMessageDeliveryModeValues = ["steer", "queue"];
1832
+ var queuedMessageDeliveryModeSchema = z10.enum(
1833
+ queuedMessageDeliveryModeValues
1834
+ );
1831
1835
 
1832
1836
  // ../domain/src/thread-status.ts
1833
1837
  import { z as z11 } from "zod";
@@ -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
+ };