@get-bb/plugin-sdk 0.6.43 → 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>;
@@ -10733,6 +10748,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10733
10748
  changelogPreview: "changelogPreview";
10734
10749
  performanceDiagnostics: "performanceDiagnostics";
10735
10750
  serverMove: "serverMove";
10751
+ timelinePush: "timelinePush";
10736
10752
  }>, z$1.ZodBoolean>;
10737
10753
  featureFlags: z$1.ZodObject<{
10738
10754
  placeholder: z$1.ZodBoolean;
@@ -11132,6 +11148,7 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
11132
11148
  commit: z$1.ZodNullable<z$1.ZodString>;
11133
11149
  version: z$1.ZodString;
11134
11150
  }, z$1.core.$strip>;
11151
+ desktopUpdateSupported: z$1.ZodOptional<z$1.ZodLiteral<true>>;
11135
11152
  lastResult: z$1.ZodNullable<z$1.ZodObject<{
11136
11153
  acknowledged: z$1.ZodBoolean;
11137
11154
  finishedAt: z$1.ZodString;
@@ -13441,6 +13458,14 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
13441
13458
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
13442
13459
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
13443
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
+ }>;
13444
13469
  threadId: z$1.ZodString;
13445
13470
  updatedAt: z$1.ZodNumber;
13446
13471
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -14003,6 +14028,14 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
14003
14028
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
14004
14029
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14005
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
+ }>;
14006
14039
  threadId: z$1.ZodString;
14007
14040
  updatedAt: z$1.ZodNumber;
14008
14041
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -14950,6 +14983,14 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
14950
14983
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
14951
14984
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14952
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
+ }>;
14953
14994
  threadId: z$1.ZodString;
14954
14995
  updatedAt: z$1.ZodNumber;
14955
14996
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -16056,26 +16097,14 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16056
16097
  value: z$1.ZodBoolean;
16057
16098
  }, z$1.core.$strip>], "type">>>;
16058
16099
  timelinePage: z$1.ZodObject<{
16059
- contentPage: z$1.ZodOptional<z$1.ZodObject<{
16060
- anchorSeq: z$1.ZodNumber;
16061
- end: z$1.ZodNumber;
16062
- start: z$1.ZodNumber;
16063
- total: z$1.ZodNumber;
16064
- }, z$1.core.$strip>>;
16065
- hasOlderRows: z$1.ZodBoolean;
16066
- historySnapshot: z$1.ZodOptional<z$1.ZodString>;
16067
- kind: z$1.ZodEnum<{
16068
- latest: "latest";
16069
- older: "older";
16070
- }>;
16100
+ historySnapshot: z$1.ZodString;
16071
16101
  olderCursor: z$1.ZodNullable<z$1.ZodObject<{
16072
16102
  anchorId: z$1.ZodString;
16073
16103
  anchorSeq: z$1.ZodNumber;
16074
16104
  }, z$1.core.$strict>>;
16075
16105
  olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
16076
- olderRowsSourceSeqEnd: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
16106
+ olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
16077
16107
  returnedSegmentCount: z$1.ZodNumber;
16078
- segmentLimit: z$1.ZodNumber;
16079
16108
  }, z$1.core.$strict>;
16080
16109
  }, z$1.core.$strip>;
16081
16110
  type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
@@ -19439,6 +19468,25 @@ interface ExperimentalClipboardContent {
19439
19468
  text: string;
19440
19469
  html?: string;
19441
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";
19442
19490
  /**
19443
19491
  * The `threads` area of {@link PluginBrowserBbSdk}: bb's public thread API
19444
19492
  * with the calling plugin's identity filled in. `spawn` and `fork` stamp
@@ -19635,8 +19683,9 @@ interface PluginThreadActionRunInput {
19635
19683
  interface PluginThreadAction {
19636
19684
  label: string;
19637
19685
  /**
19638
- * Short secondary text on a muted second line under the label, e.g. the
19639
- * 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.
19640
19689
  */
19641
19690
  detail?: string;
19642
19691
  icon: BbIconName;
@@ -19679,7 +19728,7 @@ interface PluginThreadActionItemInput<Data> {
19679
19728
  * Add an action to every thread actions menu: the thread header's menu, the
19680
19729
  * sidebar row's menu and right-click menu, the compact long-press drawer, and,
19681
19730
  * when the user picks it, a sidebar row's quick-action buttons. bb's own
19682
- * actions (Open in split, Copy thread link, Mark read, Pin, Rename, Archive,
19731
+ * actions (Open in split, Copy link, Mark read, Pin, Rename, Archive,
19683
19732
  * Delete, …) are registrations of this same shape.
19684
19733
  *
19685
19734
  * `useData` is a React hook the host calls once for the whole app, never per
@@ -21636,11 +21685,13 @@ interface PluginSdkApp {
21636
21685
  experimental_ThreadActionsContextMenu: ComponentType<PluginThreadActionsContextMenuProps>;
21637
21686
  /**
21638
21687
  * bb's thread menu groups, for a registration that joins one:
21639
- * `open` (split), `organize` (copy, read, pin, move, rename), `settings`,
21640
- * 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.
21641
21691
  */
21642
21692
  experimental_THREAD_ACTION_GROUPS: {
21643
21693
  readonly open: "1_open";
21694
+ readonly state: "1_state";
21644
21695
  readonly organize: "2_organize";
21645
21696
  readonly settings: "3_settings";
21646
21697
  readonly lifecycle: "4_lifecycle";
@@ -21768,6 +21819,19 @@ interface PluginSdkApp {
21768
21819
  * failure feedback. Experimental: see docs/api_to_audit.md.
21769
21820
  */
21770
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>;
21771
21835
  /**
21772
21836
  * The host-owned chat component (see {@link ThreadChatProps}). Together
21773
21837
  * with `Markdown`, the only components the SDK ships — everything else
@@ -21851,6 +21915,7 @@ interface PluginSdkApp {
21851
21915
 
21852
21916
  declare const experimental_THREAD_ACTION_GROUPS: {
21853
21917
  readonly open: "1_open";
21918
+ readonly state: "1_state";
21854
21919
  readonly organize: "2_organize";
21855
21920
  readonly settings: "3_settings";
21856
21921
  readonly lifecycle: "4_lifecycle";
@@ -21908,6 +21973,7 @@ declare const useSdk: () => PluginBrowserBbSdk;
21908
21973
  declare const experimental_useProviders: () => PluginProvidersState;
21909
21974
  declare const experimental_useCodeTheme: () => PluginCodeThemeState;
21910
21975
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
21976
+ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
21911
21977
 
21912
- 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 };
21913
- 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 {
@@ -501,12 +501,14 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
501
501
  changelogPreview: "changelogPreview";
502
502
  performanceDiagnostics: "performanceDiagnostics";
503
503
  serverMove: "serverMove";
504
+ timelinePush: "timelinePush";
504
505
  }>, z$1.ZodBoolean>;
505
506
  type Experiments = z$1.infer<typeof experimentsSchema>;
506
507
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
507
508
  changelogPreview: "changelogPreview";
508
509
  performanceDiagnostics: "performanceDiagnostics";
509
510
  serverMove: "serverMove";
511
+ timelinePush: "timelinePush";
510
512
  }> & z$1.core.$partial, z$1.ZodBoolean>;
511
513
  type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
512
514
 
@@ -4393,6 +4395,14 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4393
4395
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
4394
4396
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
4395
4397
  serviceTier: z$1.ZodString;
4398
+ state: z$1.ZodEnum<{
4399
+ claimed: "claimed";
4400
+ failed_exhausted: "failed_exhausted";
4401
+ failed_retrying: "failed_retrying";
4402
+ queued: "queued";
4403
+ scheduled: "scheduled";
4404
+ waiting: "waiting";
4405
+ }>;
4396
4406
  threadId: z$1.ZodString;
4397
4407
  updatedAt: z$1.ZodNumber;
4398
4408
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -5577,6 +5587,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
5577
5587
  subject: z$1.ZodString;
5578
5588
  }, z$1.core.$strip>>;
5579
5589
  deletions: z$1.ZodNumber;
5590
+ fileCount: z$1.ZodNumber;
5580
5591
  files: z$1.ZodArray<z$1.ZodObject<{
5581
5592
  deletions: z$1.ZodNullable<z$1.ZodNumber>;
5582
5593
  insertions: z$1.ZodNullable<z$1.ZodNumber>;
@@ -5599,6 +5610,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
5599
5610
  }, z$1.core.$strip>>;
5600
5611
  workingTree: z$1.ZodObject<{
5601
5612
  deletions: z$1.ZodNumber;
5613
+ fileCount: z$1.ZodNumber;
5602
5614
  files: z$1.ZodArray<z$1.ZodObject<{
5603
5615
  deletions: z$1.ZodNullable<z$1.ZodNumber>;
5604
5616
  insertions: z$1.ZodNullable<z$1.ZodNumber>;
@@ -8419,6 +8431,7 @@ declare const hostDaemonCommandRegistry: {
8419
8431
  }, z$1.core.$strict>, "onlineRpc", true>;
8420
8432
  "workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
8421
8433
  environmentId: z$1.ZodString;
8434
+ maxFiles: z$1.ZodNumber;
8422
8435
  maxUntrackedLineStatBytes: z$1.ZodNumber;
8423
8436
  maxUntrackedLineStatFiles: z$1.ZodNumber;
8424
8437
  mergeBaseBranch: z$1.ZodOptional<z$1.ZodString>;
@@ -8459,6 +8472,7 @@ declare const hostDaemonCommandRegistry: {
8459
8472
  subject: z$1.ZodString;
8460
8473
  }, z$1.core.$strip>>;
8461
8474
  deletions: z$1.ZodNumber;
8475
+ fileCount: z$1.ZodNumber;
8462
8476
  files: z$1.ZodArray<z$1.ZodObject<{
8463
8477
  deletions: z$1.ZodNullable<z$1.ZodNumber>;
8464
8478
  insertions: z$1.ZodNullable<z$1.ZodNumber>;
@@ -8481,6 +8495,7 @@ declare const hostDaemonCommandRegistry: {
8481
8495
  }, z$1.core.$strip>>;
8482
8496
  workingTree: z$1.ZodObject<{
8483
8497
  deletions: z$1.ZodNumber;
8498
+ fileCount: z$1.ZodNumber;
8484
8499
  files: z$1.ZodArray<z$1.ZodObject<{
8485
8500
  deletions: z$1.ZodNullable<z$1.ZodNumber>;
8486
8501
  insertions: z$1.ZodNullable<z$1.ZodNumber>;
@@ -10792,6 +10807,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10792
10807
  changelogPreview: "changelogPreview";
10793
10808
  performanceDiagnostics: "performanceDiagnostics";
10794
10809
  serverMove: "serverMove";
10810
+ timelinePush: "timelinePush";
10795
10811
  }>, z$1.ZodBoolean>;
10796
10812
  featureFlags: z$1.ZodObject<{
10797
10813
  placeholder: z$1.ZodBoolean;
@@ -11191,6 +11207,7 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
11191
11207
  commit: z$1.ZodNullable<z$1.ZodString>;
11192
11208
  version: z$1.ZodString;
11193
11209
  }, z$1.core.$strip>;
11210
+ desktopUpdateSupported: z$1.ZodOptional<z$1.ZodLiteral<true>>;
11194
11211
  lastResult: z$1.ZodNullable<z$1.ZodObject<{
11195
11212
  acknowledged: z$1.ZodBoolean;
11196
11213
  finishedAt: z$1.ZodString;
@@ -13501,6 +13518,14 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
13501
13518
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
13502
13519
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
13503
13520
  serviceTier: z$1.ZodString;
13521
+ state: z$1.ZodEnum<{
13522
+ claimed: "claimed";
13523
+ failed_exhausted: "failed_exhausted";
13524
+ failed_retrying: "failed_retrying";
13525
+ queued: "queued";
13526
+ scheduled: "scheduled";
13527
+ waiting: "waiting";
13528
+ }>;
13504
13529
  threadId: z$1.ZodString;
13505
13530
  updatedAt: z$1.ZodNumber;
13506
13531
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -14063,6 +14088,14 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
14063
14088
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
14064
14089
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14065
14090
  serviceTier: z$1.ZodString;
14091
+ state: z$1.ZodEnum<{
14092
+ claimed: "claimed";
14093
+ failed_exhausted: "failed_exhausted";
14094
+ failed_retrying: "failed_retrying";
14095
+ queued: "queued";
14096
+ scheduled: "scheduled";
14097
+ waiting: "waiting";
14098
+ }>;
14066
14099
  threadId: z$1.ZodString;
14067
14100
  updatedAt: z$1.ZodNumber;
14068
14101
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -15010,6 +15043,14 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
15010
15043
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
15011
15044
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
15012
15045
  serviceTier: z$1.ZodString;
15046
+ state: z$1.ZodEnum<{
15047
+ claimed: "claimed";
15048
+ failed_exhausted: "failed_exhausted";
15049
+ failed_retrying: "failed_retrying";
15050
+ queued: "queued";
15051
+ scheduled: "scheduled";
15052
+ waiting: "waiting";
15053
+ }>;
15013
15054
  threadId: z$1.ZodString;
15014
15055
  updatedAt: z$1.ZodNumber;
15015
15056
  waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -16116,26 +16157,14 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16116
16157
  value: z$1.ZodBoolean;
16117
16158
  }, z$1.core.$strip>], "type">>>;
16118
16159
  timelinePage: z$1.ZodObject<{
16119
- contentPage: z$1.ZodOptional<z$1.ZodObject<{
16120
- anchorSeq: z$1.ZodNumber;
16121
- end: z$1.ZodNumber;
16122
- start: z$1.ZodNumber;
16123
- total: z$1.ZodNumber;
16124
- }, z$1.core.$strip>>;
16125
- hasOlderRows: z$1.ZodBoolean;
16126
- historySnapshot: z$1.ZodOptional<z$1.ZodString>;
16127
- kind: z$1.ZodEnum<{
16128
- latest: "latest";
16129
- older: "older";
16130
- }>;
16160
+ historySnapshot: z$1.ZodString;
16131
16161
  olderCursor: z$1.ZodNullable<z$1.ZodObject<{
16132
16162
  anchorId: z$1.ZodString;
16133
16163
  anchorSeq: z$1.ZodNumber;
16134
16164
  }, z$1.core.$strict>>;
16135
16165
  olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
16136
- olderRowsSourceSeqEnd: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
16166
+ olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
16137
16167
  returnedSegmentCount: z$1.ZodNumber;
16138
- segmentLimit: z$1.ZodNumber;
16139
16168
  }, z$1.core.$strict>;
16140
16169
  }, z$1.core.$strip>;
16141
16170
  type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
@@ -19623,6 +19652,25 @@ interface ExperimentalClipboardContent {
19623
19652
  text: string;
19624
19653
  html?: string;
19625
19654
  }
19655
+ /**
19656
+ * What {@link PluginSdkApp.experimental_saveFile} saves: a URL on the bb
19657
+ * server (such as one of the plugin's own HTTP routes), or bytes already in
19658
+ * the page, plus the file name the user sees.
19659
+ */
19660
+ type ExperimentalSaveFileRequest = {
19661
+ fileName: string;
19662
+ url: string;
19663
+ } | {
19664
+ fileName: string;
19665
+ blob: Blob;
19666
+ };
19667
+ /**
19668
+ * How {@link PluginSdkApp.experimental_saveFile} started. `started` means
19669
+ * the browser or native shell took over the download; completion and share
19670
+ * cancellation are not reported to the page. `failed` means the download
19671
+ * could not start; bb already showed an error toast.
19672
+ */
19673
+ type ExperimentalSaveFileOutcome = "failed" | "started";
19626
19674
  /**
19627
19675
  * The `threads` area of {@link PluginBrowserBbSdk}: bb's public thread API
19628
19676
  * with the calling plugin's identity filled in. `spawn` and `fork` stamp
@@ -19819,8 +19867,9 @@ interface PluginThreadActionRunInput {
19819
19867
  interface PluginThreadAction {
19820
19868
  label: string;
19821
19869
  /**
19822
- * Short secondary text on a muted second line under the label, e.g. the
19823
- * current value of a choice list.
19870
+ * Short secondary text, e.g. the current value of a choice list. Shown on
19871
+ * a muted second line under the label, except on rows with `choices`,
19872
+ * where only tooltips and screen readers include it.
19824
19873
  */
19825
19874
  detail?: string;
19826
19875
  icon: BbIconName;
@@ -19863,7 +19912,7 @@ interface PluginThreadActionItemInput<Data> {
19863
19912
  * Add an action to every thread actions menu: the thread header's menu, the
19864
19913
  * sidebar row's menu and right-click menu, the compact long-press drawer, and,
19865
19914
  * when the user picks it, a sidebar row's quick-action buttons. bb's own
19866
- * actions (Open in split, Copy thread link, Mark read, Pin, Rename, Archive,
19915
+ * actions (Open in split, Copy link, Mark read, Pin, Rename, Archive,
19867
19916
  * Delete, …) are registrations of this same shape.
19868
19917
  *
19869
19918
  * `useData` is a React hook the host calls once for the whole app, never per
@@ -21820,11 +21869,13 @@ interface PluginSdkApp {
21820
21869
  experimental_ThreadActionsContextMenu: ComponentType<PluginThreadActionsContextMenuProps>;
21821
21870
  /**
21822
21871
  * bb's thread menu groups, for a registration that joins one:
21823
- * `open` (split), `organize` (copy, read, pin, move, rename), `settings`,
21824
- * and `lifecycle` (archive, delete). Experimental: see docs/api_to_audit.md.
21872
+ * `open` (split, copy link, new thread in environment), `state` (pin,
21873
+ * read, notifications), `organize` (rename, move), `settings`, and
21874
+ * `lifecycle` (archive, delete). Experimental: see docs/api_to_audit.md.
21825
21875
  */
21826
21876
  experimental_THREAD_ACTION_GROUPS: {
21827
21877
  readonly open: "1_open";
21878
+ readonly state: "1_state";
21828
21879
  readonly organize: "2_organize";
21829
21880
  readonly settings: "3_settings";
21830
21881
  readonly lifecycle: "4_lifecycle";
@@ -21952,6 +22003,19 @@ interface PluginSdkApp {
21952
22003
  * failure feedback. Experimental: see docs/api_to_audit.md.
21953
22004
  */
21954
22005
  experimental_copyToClipboard(content: ExperimentalClipboardContent): Promise<boolean>;
22006
+ /**
22007
+ * Saves a file through bb's own download path, the one bb's file preview
22008
+ * and attachment downloads use. Browsers and bb Desktop start an ordinary
22009
+ * download. In the bb iOS app, where a download link would otherwise
22010
+ * replace the app, the file goes to the system share sheet (Save to Files,
22011
+ * AirDrop, other apps). A plain function: call it from a click handler and
22012
+ * keep a real `href` on the link for copy-link and accessibility. Resolves
22013
+ * with `started` or `failed` and never rejects. Completion and share-sheet
22014
+ * cancellation are not reported. The native shell shows download errors;
22015
+ * bb shows an error toast when the download cannot start.
22016
+ * Experimental: see docs/api_to_audit.md.
22017
+ */
22018
+ experimental_saveFile(request: ExperimentalSaveFileRequest): Promise<ExperimentalSaveFileOutcome>;
21955
22019
  /**
21956
22020
  * The host-owned chat component (see {@link ThreadChatProps}). Together
21957
22021
  * with `Markdown`, the only components the SDK ships — everything else
@@ -24472,10 +24536,11 @@ declare function defineCli(spec: PluginCliSpec): PluginCliRegistration;
24472
24536
 
24473
24537
  declare const experimental_THREAD_ACTION_GROUPS: {
24474
24538
  readonly open: "1_open";
24539
+ readonly state: "1_state";
24475
24540
  readonly organize: "2_organize";
24476
24541
  readonly settings: "3_settings";
24477
24542
  readonly lifecycle: "4_lifecycle";
24478
24543
  };
24479
24544
 
24480
24545
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_THREAD_ACTION_GROUPS, experimental_defineHostEntry };
24481
- export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, 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, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, 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 };
24546
+ export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, 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, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
package/dist/app.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // src/thread-action-groups.ts
2
2
  var experimental_THREAD_ACTION_GROUPS = {
3
3
  open: "1_open",
4
+ state: "1_state",
4
5
  organize: "2_organize",
5
6
  settings: "3_settings",
6
7
  lifecycle: "4_lifecycle"
@@ -161,6 +162,7 @@ var experimental_useCodeTheme = runtimeFunction(
161
162
  var experimental_copyToClipboard = runtimeFunction(
162
163
  "experimental_copyToClipboard"
163
164
  );
165
+ var experimental_saveFile = runtimeFunction("experimental_saveFile");
164
166
  export {
165
167
  Markdown,
166
168
  ThreadChat,
@@ -182,6 +184,7 @@ export {
182
184
  experimental_ThreadStatusGlyph,
183
185
  experimental_VoiceInputTextarea,
184
186
  experimental_copyToClipboard,
187
+ experimental_saveFile,
185
188
  experimental_useAppPanel,
186
189
  experimental_useArchiveEnvironmentThreads,
187
190
  experimental_useBranches,
package/dist/index.js CHANGED
@@ -816,6 +816,7 @@ function defineRpcContract(contract) {
816
816
  // src/thread-action-groups.ts
817
817
  var experimental_THREAD_ACTION_GROUPS = {
818
818
  open: "1_open",
819
+ state: "1_state",
819
820
  organize: "2_organize",
820
821
  settings: "3_settings",
821
822
  lifecycle: "4_lifecycle"
@@ -23681,7 +23681,12 @@ async function handleModelList(id, params, dialectId) {
23681
23681
  );
23682
23682
  return;
23683
23683
  }
23684
- const sessionDiscoveredModels = params.listCommand === void 0 && params.agent ? await loadSessionDiscoveredModels(
23684
+ if (params.listCommand) {
23685
+ throw new Error(
23686
+ "ACP model list command failed to provide a model catalog."
23687
+ );
23688
+ }
23689
+ const sessionDiscoveredModels = params.agent ? await loadSessionDiscoveredModels(
23685
23690
  params.agent,
23686
23691
  params.reasoningProbePriorityModelIds,
23687
23692
  params.parameterizedModelPicker,