@get-bb/plugin-sdk 0.6.42 → 0.6.49

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.
@@ -546,12 +546,14 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
546
546
  changelogPreview: "changelogPreview";
547
547
  performanceDiagnostics: "performanceDiagnostics";
548
548
  serverMove: "serverMove";
549
+ timelinePush: "timelinePush";
549
550
  }>, z$1.ZodBoolean>;
550
551
  type Experiments = z$1.infer<typeof experimentsSchema>;
551
552
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
552
553
  changelogPreview: "changelogPreview";
553
554
  performanceDiagnostics: "performanceDiagnostics";
554
555
  serverMove: "serverMove";
556
+ timelinePush: "timelinePush";
555
557
  }> & z$1.core.$partial, z$1.ZodBoolean>;
556
558
  type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
557
559
 
@@ -4342,6 +4344,14 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4342
4344
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
4343
4345
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
4344
4346
  serviceTier: z$1.ZodString;
4347
+ state: z$1.ZodEnum<{
4348
+ claimed: "claimed";
4349
+ failed_exhausted: "failed_exhausted";
4350
+ failed_retrying: "failed_retrying";
4351
+ queued: "queued";
4352
+ scheduled: "scheduled";
4353
+ waiting: "waiting";
4354
+ }>;
4345
4355
  threadId: z$1.ZodString;
4346
4356
  updatedAt: z$1.ZodNumber;
4347
4357
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -5518,6 +5528,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
5518
5528
  subject: z$1.ZodString;
5519
5529
  }, z$1.core.$strip>>;
5520
5530
  deletions: z$1.ZodNumber;
5531
+ fileCount: z$1.ZodNumber;
5521
5532
  files: z$1.ZodArray<z$1.ZodObject<{
5522
5533
  deletions: z$1.ZodNullable<z$1.ZodNumber>;
5523
5534
  insertions: z$1.ZodNullable<z$1.ZodNumber>;
@@ -5540,6 +5551,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
5540
5551
  }, z$1.core.$strip>>;
5541
5552
  workingTree: z$1.ZodObject<{
5542
5553
  deletions: z$1.ZodNumber;
5554
+ fileCount: z$1.ZodNumber;
5543
5555
  files: z$1.ZodArray<z$1.ZodObject<{
5544
5556
  deletions: z$1.ZodNullable<z$1.ZodNumber>;
5545
5557
  insertions: z$1.ZodNullable<z$1.ZodNumber>;
@@ -8360,6 +8372,7 @@ declare const hostDaemonCommandRegistry: {
8360
8372
  }, z$1.core.$strict>, "onlineRpc", true>;
8361
8373
  "workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
8362
8374
  environmentId: z$1.ZodString;
8375
+ maxFiles: z$1.ZodNumber;
8363
8376
  maxUntrackedLineStatBytes: z$1.ZodNumber;
8364
8377
  maxUntrackedLineStatFiles: z$1.ZodNumber;
8365
8378
  mergeBaseBranch: z$1.ZodOptional<z$1.ZodString>;
@@ -8400,6 +8413,7 @@ declare const hostDaemonCommandRegistry: {
8400
8413
  subject: z$1.ZodString;
8401
8414
  }, z$1.core.$strip>>;
8402
8415
  deletions: z$1.ZodNumber;
8416
+ fileCount: z$1.ZodNumber;
8403
8417
  files: z$1.ZodArray<z$1.ZodObject<{
8404
8418
  deletions: z$1.ZodNullable<z$1.ZodNumber>;
8405
8419
  insertions: z$1.ZodNullable<z$1.ZodNumber>;
@@ -8422,6 +8436,7 @@ declare const hostDaemonCommandRegistry: {
8422
8436
  }, z$1.core.$strip>>;
8423
8437
  workingTree: z$1.ZodObject<{
8424
8438
  deletions: z$1.ZodNumber;
8439
+ fileCount: z$1.ZodNumber;
8425
8440
  files: z$1.ZodArray<z$1.ZodObject<{
8426
8441
  deletions: z$1.ZodNullable<z$1.ZodNumber>;
8427
8442
  insertions: z$1.ZodNullable<z$1.ZodNumber>;
@@ -10352,6 +10367,7 @@ type SystemProvidersQuery = z$1.infer<typeof systemProvidersQuerySchema>;
10352
10367
  declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
10353
10368
  environmentId: z$1.ZodOptional<z$1.ZodString>;
10354
10369
  hostId: z$1.ZodOptional<z$1.ZodString>;
10370
+ projectId: z$1.ZodOptional<z$1.ZodString>;
10355
10371
  providerId: z$1.ZodOptional<z$1.ZodString>;
10356
10372
  }, z$1.core.$strip>;
10357
10373
  type SystemExecutionOptionsQuery = z$1.infer<typeof systemExecutionOptionsQuerySchema>;
@@ -10732,6 +10748,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10732
10748
  changelogPreview: "changelogPreview";
10733
10749
  performanceDiagnostics: "performanceDiagnostics";
10734
10750
  serverMove: "serverMove";
10751
+ timelinePush: "timelinePush";
10735
10752
  }>, z$1.ZodBoolean>;
10736
10753
  featureFlags: z$1.ZodObject<{
10737
10754
  placeholder: z$1.ZodBoolean;
@@ -11077,6 +11094,20 @@ declare const systemVersionResponseSchema: z$1.ZodObject<{
11077
11094
  upgradeCommand: z$1.ZodString;
11078
11095
  }, z$1.core.$strip>;
11079
11096
  type SystemVersionResponse = z$1.infer<typeof systemVersionResponseSchema>;
11097
+ declare const systemCliCommandStatusSchema: z$1.ZodObject<{
11098
+ installedPath: z$1.ZodNullable<z$1.ZodString>;
11099
+ onPath: z$1.ZodBoolean;
11100
+ shadowedBy: z$1.ZodNullable<z$1.ZodObject<{
11101
+ path: z$1.ZodString;
11102
+ source: z$1.ZodEnum<{
11103
+ machine: "machine";
11104
+ npm: "npm";
11105
+ other: "other";
11106
+ }>;
11107
+ }, z$1.core.$strip>>;
11108
+ supported: z$1.ZodBoolean;
11109
+ }, z$1.core.$strip>;
11110
+ type SystemCliCommandStatus = z$1.infer<typeof systemCliCommandStatusSchema>;
11080
11111
  declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
11081
11112
  activity: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11082
11113
  phase: z$1.ZodLiteral<"idle">;
@@ -11117,6 +11148,7 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
11117
11148
  commit: z$1.ZodNullable<z$1.ZodString>;
11118
11149
  version: z$1.ZodString;
11119
11150
  }, z$1.core.$strip>;
11151
+ desktopUpdateSupported: z$1.ZodOptional<z$1.ZodLiteral<true>>;
11120
11152
  lastResult: z$1.ZodNullable<z$1.ZodObject<{
11121
11153
  acknowledged: z$1.ZodBoolean;
11122
11154
  finishedAt: z$1.ZodString;
@@ -13426,6 +13458,14 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
13426
13458
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
13427
13459
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
13428
13460
  serviceTier: z$1.ZodString;
13461
+ state: z$1.ZodEnum<{
13462
+ claimed: "claimed";
13463
+ failed_exhausted: "failed_exhausted";
13464
+ failed_retrying: "failed_retrying";
13465
+ queued: "queued";
13466
+ scheduled: "scheduled";
13467
+ waiting: "waiting";
13468
+ }>;
13429
13469
  threadId: z$1.ZodString;
13430
13470
  updatedAt: z$1.ZodNumber;
13431
13471
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -13988,6 +14028,14 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
13988
14028
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
13989
14029
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
13990
14030
  serviceTier: z$1.ZodString;
14031
+ state: z$1.ZodEnum<{
14032
+ claimed: "claimed";
14033
+ failed_exhausted: "failed_exhausted";
14034
+ failed_retrying: "failed_retrying";
14035
+ queued: "queued";
14036
+ scheduled: "scheduled";
14037
+ waiting: "waiting";
14038
+ }>;
13991
14039
  threadId: z$1.ZodString;
13992
14040
  updatedAt: z$1.ZodNumber;
13993
14041
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -14935,6 +14983,14 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
14935
14983
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
14936
14984
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14937
14985
  serviceTier: z$1.ZodString;
14986
+ state: z$1.ZodEnum<{
14987
+ claimed: "claimed";
14988
+ failed_exhausted: "failed_exhausted";
14989
+ failed_retrying: "failed_retrying";
14990
+ queued: "queued";
14991
+ scheduled: "scheduled";
14992
+ waiting: "waiting";
14993
+ }>;
14938
14994
  threadId: z$1.ZodString;
14939
14995
  updatedAt: z$1.ZodNumber;
14940
14996
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -16041,26 +16097,14 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16041
16097
  value: z$1.ZodBoolean;
16042
16098
  }, z$1.core.$strip>], "type">>>;
16043
16099
  timelinePage: z$1.ZodObject<{
16044
- contentPage: z$1.ZodOptional<z$1.ZodObject<{
16045
- anchorSeq: z$1.ZodNumber;
16046
- end: z$1.ZodNumber;
16047
- start: z$1.ZodNumber;
16048
- total: z$1.ZodNumber;
16049
- }, z$1.core.$strip>>;
16050
- hasOlderRows: z$1.ZodBoolean;
16051
- historySnapshot: z$1.ZodOptional<z$1.ZodString>;
16052
- kind: z$1.ZodEnum<{
16053
- latest: "latest";
16054
- older: "older";
16055
- }>;
16100
+ historySnapshot: z$1.ZodString;
16056
16101
  olderCursor: z$1.ZodNullable<z$1.ZodObject<{
16057
16102
  anchorId: z$1.ZodString;
16058
16103
  anchorSeq: z$1.ZodNumber;
16059
16104
  }, z$1.core.$strict>>;
16060
16105
  olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
16061
- olderRowsSourceSeqEnd: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
16106
+ olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
16062
16107
  returnedSegmentCount: z$1.ZodNumber;
16063
- segmentLimit: z$1.ZodNumber;
16064
16108
  }, z$1.core.$strict>;
16065
16109
  }, z$1.core.$strip>;
16066
16110
  type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
@@ -17236,7 +17280,19 @@ type ProviderListArgs = ProviderHostRoutingArgs & {
17236
17280
  capability?: SystemProvidersQuery["capability"];
17237
17281
  signal?: AbortSignal;
17238
17282
  };
17239
- type ProviderModelsArgs = ProviderHostRoutingArgs & {
17283
+ type ProviderModelsArgs = ({
17284
+ environmentId: string;
17285
+ hostId?: never;
17286
+ projectId?: never;
17287
+ } | {
17288
+ environmentId?: never;
17289
+ hostId: string;
17290
+ projectId?: string;
17291
+ } | {
17292
+ environmentId?: never;
17293
+ hostId?: never;
17294
+ projectId?: string;
17295
+ }) & {
17240
17296
  providerId?: string;
17241
17297
  signal?: AbortSignal;
17242
17298
  };
@@ -17640,6 +17696,10 @@ interface SystemAppUpdateArgs {
17640
17696
  type SystemApplyAppUpdateArgs = SystemAppUpdateApplyRequest;
17641
17697
  type SystemAcknowledgeAppUpdateArgs = SystemAppUpdateAcknowledgeRequest;
17642
17698
  type SystemAppUpdateStatusResult = SystemAppUpdateStatus;
17699
+ interface SystemCliCommandArgs {
17700
+ signal?: AbortSignal;
17701
+ }
17702
+ type SystemCliCommandStatusResult = SystemCliCommandStatus;
17643
17703
  interface SystemVoiceTranscriptionArgs {
17644
17704
  file: Blob;
17645
17705
  prompt?: string;
@@ -17727,6 +17787,9 @@ interface SystemArea {
17727
17787
  appUpdate(args?: SystemAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
17728
17788
  applyAppUpdate(args: SystemApplyAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
17729
17789
  acknowledgeAppUpdate(args: SystemAcknowledgeAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
17790
+ experimental_cliCommand(args?: SystemCliCommandArgs): Promise<SystemCliCommandStatusResult>;
17791
+ experimental_installCliCommand(): Promise<SystemCliCommandStatusResult>;
17792
+ experimental_removeCliCommand(): Promise<SystemCliCommandStatusResult>;
17730
17793
  }
17731
17794
 
17732
17795
  interface TerminalThreadScope {
@@ -19405,6 +19468,25 @@ interface ExperimentalClipboardContent {
19405
19468
  text: string;
19406
19469
  html?: string;
19407
19470
  }
19471
+ /**
19472
+ * What {@link PluginSdkApp.experimental_saveFile} saves: a URL on the bb
19473
+ * server (such as one of the plugin's own HTTP routes), or bytes already in
19474
+ * the page, plus the file name the user sees.
19475
+ */
19476
+ type ExperimentalSaveFileRequest = {
19477
+ fileName: string;
19478
+ url: string;
19479
+ } | {
19480
+ fileName: string;
19481
+ blob: Blob;
19482
+ };
19483
+ /**
19484
+ * How {@link PluginSdkApp.experimental_saveFile} started. `started` means
19485
+ * the browser or native shell took over the download; completion and share
19486
+ * cancellation are not reported to the page. `failed` means the download
19487
+ * could not start; bb already showed an error toast.
19488
+ */
19489
+ type ExperimentalSaveFileOutcome = "failed" | "started";
19408
19490
  /**
19409
19491
  * The `threads` area of {@link PluginBrowserBbSdk}: bb's public thread API
19410
19492
  * with the calling plugin's identity filled in. `spawn` and `fork` stamp
@@ -19601,8 +19683,9 @@ interface PluginThreadActionRunInput {
19601
19683
  interface PluginThreadAction {
19602
19684
  label: string;
19603
19685
  /**
19604
- * Short secondary text on a muted second line under the label, e.g. the
19605
- * current value of a choice list.
19686
+ * Short secondary text, e.g. the current value of a choice list. Shown on
19687
+ * a muted second line under the label, except on rows with `choices`,
19688
+ * where only tooltips and screen readers include it.
19606
19689
  */
19607
19690
  detail?: string;
19608
19691
  icon: BbIconName;
@@ -19645,7 +19728,7 @@ interface PluginThreadActionItemInput<Data> {
19645
19728
  * Add an action to every thread actions menu: the thread header's menu, the
19646
19729
  * sidebar row's menu and right-click menu, the compact long-press drawer, and,
19647
19730
  * when the user picks it, a sidebar row's quick-action buttons. bb's own
19648
- * actions (Open in split, Copy thread link, Mark read, Pin, Rename, Archive,
19731
+ * actions (Open in split, Copy link, Mark read, Pin, Rename, Archive,
19649
19732
  * Delete, …) are registrations of this same shape.
19650
19733
  *
19651
19734
  * `useData` is a React hook the host calls once for the whole app, never per
@@ -21602,11 +21685,13 @@ interface PluginSdkApp {
21602
21685
  experimental_ThreadActionsContextMenu: ComponentType<PluginThreadActionsContextMenuProps>;
21603
21686
  /**
21604
21687
  * bb's thread menu groups, for a registration that joins one:
21605
- * `open` (split), `organize` (copy, read, pin, move, rename), `settings`,
21606
- * and `lifecycle` (archive, delete). Experimental: see docs/api_to_audit.md.
21688
+ * `open` (split, copy link, new thread in environment), `state` (pin,
21689
+ * read, notifications), `organize` (rename, move), `settings`, and
21690
+ * `lifecycle` (archive, delete). Experimental: see docs/api_to_audit.md.
21607
21691
  */
21608
21692
  experimental_THREAD_ACTION_GROUPS: {
21609
21693
  readonly open: "1_open";
21694
+ readonly state: "1_state";
21610
21695
  readonly organize: "2_organize";
21611
21696
  readonly settings: "3_settings";
21612
21697
  readonly lifecycle: "4_lifecycle";
@@ -21734,6 +21819,19 @@ interface PluginSdkApp {
21734
21819
  * failure feedback. Experimental: see docs/api_to_audit.md.
21735
21820
  */
21736
21821
  experimental_copyToClipboard(content: ExperimentalClipboardContent): Promise<boolean>;
21822
+ /**
21823
+ * Saves a file through bb's own download path, the one bb's file preview
21824
+ * and attachment downloads use. Browsers and bb Desktop start an ordinary
21825
+ * download. In the bb iOS app, where a download link would otherwise
21826
+ * replace the app, the file goes to the system share sheet (Save to Files,
21827
+ * AirDrop, other apps). A plain function: call it from a click handler and
21828
+ * keep a real `href` on the link for copy-link and accessibility. Resolves
21829
+ * with `started` or `failed` and never rejects. Completion and share-sheet
21830
+ * cancellation are not reported. The native shell shows download errors;
21831
+ * bb shows an error toast when the download cannot start.
21832
+ * Experimental: see docs/api_to_audit.md.
21833
+ */
21834
+ experimental_saveFile(request: ExperimentalSaveFileRequest): Promise<ExperimentalSaveFileOutcome>;
21737
21835
  /**
21738
21836
  * The host-owned chat component (see {@link ThreadChatProps}). Together
21739
21837
  * with `Markdown`, the only components the SDK ships — everything else
@@ -21817,6 +21915,7 @@ interface PluginSdkApp {
21817
21915
 
21818
21916
  declare const experimental_THREAD_ACTION_GROUPS: {
21819
21917
  readonly open: "1_open";
21918
+ readonly state: "1_state";
21820
21919
  readonly organize: "2_organize";
21821
21920
  readonly settings: "3_settings";
21822
21921
  readonly lifecycle: "4_lifecycle";
@@ -21874,6 +21973,7 @@ declare const useSdk: () => PluginBrowserBbSdk;
21874
21973
  declare const experimental_useProviders: () => PluginProvidersState;
21875
21974
  declare const experimental_useCodeTheme: () => PluginCodeThemeState;
21876
21975
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
21976
+ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
21877
21977
 
21878
- export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
21879
- export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
21978
+ export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
21979
+ export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
@@ -443,6 +443,14 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
443
443
  sendAt: z.ZodNullable<z.ZodNumber>;
444
444
  senderThreadId: z.ZodNullable<z.ZodString>;
445
445
  serviceTier: z.ZodString;
446
+ state: z.ZodEnum<{
447
+ claimed: "claimed";
448
+ failed_exhausted: "failed_exhausted";
449
+ failed_retrying: "failed_retrying";
450
+ queued: "queued";
451
+ scheduled: "scheduled";
452
+ waiting: "waiting";
453
+ }>;
446
454
  threadId: z.ZodString;
447
455
  updatedAt: z.ZodNumber;
448
456
  waitingOn: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -5060,6 +5060,7 @@ interface CreateDeltaAssemblerOptions {
5060
5060
  entropyPrefix?: string;
5061
5061
  progressThrottleMs?: number;
5062
5062
  textDeltaFlushMs?: number;
5063
+ onDeferredEvents?: (threadId: string, events: ThreadEvent[]) => void;
5063
5064
  now?: () => number;
5064
5065
  }
5065
5066
  interface AssembleDeltasArgs {