@get-bb/plugin-sdk 0.6.178 → 0.6.189

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.
@@ -222,11 +222,11 @@ interface ProviderNativeRootsInputLike {
222
222
  declare const appSettingsSchema: z$1.ZodObject<{
223
223
  allowFastServiceTier: z$1.ZodBoolean;
224
224
  confirmThreadArchive: z$1.ZodBoolean;
225
- defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
226
225
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
227
226
  earlyAdopter: z$1.ZodBoolean;
228
227
  idleProviderSessionTimeoutMinutes: z$1.ZodLiteral<0 | 5 | 10 | 30 | 60>;
229
228
  keepHistoryAfterContextClear: z$1.ZodBoolean;
229
+ localNetworkEnabled: z$1.ZodBoolean;
230
230
  machineGitCredentialsEnabled: z$1.ZodBoolean;
231
231
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
232
232
  managedBranchPrefix: z$1.ZodString;
@@ -237,6 +237,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
237
237
  }>>;
238
238
  providerOrder: z$1.ZodArray<z$1.ZodString>;
239
239
  resumeThreadsAfterRestart: z$1.ZodBoolean;
240
+ serverAccessOrder: z$1.ZodArray<z$1.ZodString>;
240
241
  showDiagnosticEvents: z$1.ZodBoolean;
241
242
  showKeyboardHints: z$1.ZodBoolean;
242
243
  steerActiveThreadOnEnter: z$1.ZodBoolean;
@@ -249,11 +250,11 @@ type AppSettings = z$1.infer<typeof appSettingsSchema>;
249
250
  declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
250
251
  allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
251
252
  confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
252
- defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
253
253
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
254
254
  earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
255
255
  idleProviderSessionTimeoutMinutes: z$1.ZodOptional<z$1.ZodLiteral<0 | 5 | 10 | 30 | 60>>;
256
256
  keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
257
+ localNetworkEnabled: z$1.ZodBoolean;
257
258
  machineGitCredentialsEnabled: z$1.ZodBoolean;
258
259
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
259
260
  managedBranchPrefix: z$1.ZodString;
@@ -264,6 +265,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
264
265
  }>>;
265
266
  providerOrder: z$1.ZodArray<z$1.ZodString>;
266
267
  resumeThreadsAfterRestart: z$1.ZodOptional<z$1.ZodBoolean>;
268
+ serverAccessOrder: z$1.ZodArray<z$1.ZodString>;
267
269
  showDiagnosticEvents: z$1.ZodBoolean;
268
270
  showKeyboardHints: z$1.ZodBoolean;
269
271
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -275,11 +277,11 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
275
277
  }, z$1.core.$strict>, z$1.ZodObject<{
276
278
  allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
277
279
  confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
278
- defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
279
280
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
280
281
  earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
281
282
  idleProviderSessionTimeoutMinutes: z$1.ZodOptional<z$1.ZodLiteral<0 | 5 | 10 | 30 | 60>>;
282
283
  keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
284
+ localNetworkEnabled: z$1.ZodBoolean;
283
285
  machineGitCredentialsEnabled: z$1.ZodBoolean;
284
286
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
285
287
  managedBranchPrefix: z$1.ZodString;
@@ -290,6 +292,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
290
292
  }>>;
291
293
  providerOrder: z$1.ZodArray<z$1.ZodString>;
292
294
  resumeThreadsAfterRestart: z$1.ZodOptional<z$1.ZodBoolean>;
295
+ serverAccessOrder: z$1.ZodArray<z$1.ZodString>;
293
296
  showKeyboardHints: z$1.ZodBoolean;
294
297
  showUnhandledProviderEvents: z$1.ZodBoolean;
295
298
  steerActiveThreadOnEnter: z$1.ZodBoolean;
@@ -300,7 +303,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
300
303
  }, z$1.core.$strict>]>;
301
304
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
302
305
 
303
- declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "sidebar.updates.providerCli", "sidebar.updates.skipped", "composer.provider", "infoPanel.collapsedSections", "threadContextCard.pinned", "threadContextCard.collapsedSections"];
306
+ declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "sidebar.updates.providerCli", "sidebar.updates.skipped", "composer.provider", "diff.provider", "sourceCode.provider", "threadHeader.titleProvider", "fileOpener.byExtension", "codeFence.byLanguage", "messageDirective.byName", "infoPanel.collapsedSections", "threadContextCard.pinned", "threadContextCard.collapsedSections"];
304
307
  type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
305
308
  interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
306
309
  schema: Schema;
@@ -338,6 +341,12 @@ declare const uiPreferenceDefinitions: {
338
341
  readonly "sidebar.updates.providerCli": UiPreferenceDefinition<z$1.ZodBoolean>;
339
342
  readonly "sidebar.updates.skipped": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
340
343
  readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
344
+ readonly "diff.provider": UiPreferenceDefinition<z$1.ZodString>;
345
+ readonly "sourceCode.provider": UiPreferenceDefinition<z$1.ZodString>;
346
+ readonly "threadHeader.titleProvider": UiPreferenceDefinition<z$1.ZodString>;
347
+ readonly "fileOpener.byExtension": UiPreferenceDefinition<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
348
+ readonly "codeFence.byLanguage": UiPreferenceDefinition<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
349
+ readonly "messageDirective.byName": UiPreferenceDefinition<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
341
350
  readonly "threadContextCard.pinned": UiPreferenceDefinition<z$1.ZodBoolean>;
342
351
  readonly "threadContextCard.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
343
352
  readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
@@ -415,6 +424,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
415
424
  "question.submit": "question.submit";
416
425
  "settings.open": "settings.open";
417
426
  "settings.openServers": "settings.openServers";
427
+ "settings.search": "settings.search";
418
428
  "sidebar.toggle": "sidebar.toggle";
419
429
  "terminal.find": "terminal.find";
420
430
  "terminal.open": "terminal.open";
@@ -554,6 +564,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
554
564
  starting: "starting";
555
565
  stopping: "stopping";
556
566
  }>;
567
+ statusChangedAt: z$1.ZodNumber;
557
568
  updatedAt: z$1.ZodNumber;
558
569
  }, z$1.core.$strict>>;
559
570
  timelineSequence: z$1.ZodOptional<z$1.ZodNumber>;
@@ -618,7 +629,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
618
629
  }, z$1.core.$strict>], "entity">;
619
630
  type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
620
631
 
621
- declare const environmentHolderSchema: z$1.ZodLiteral<"user">;
632
+ declare const environmentHolderSchema: z$1.ZodUnion<readonly [z$1.ZodLiteral<"user">, z$1.ZodTemplateLiteral<`plugin:${string}`>]>;
622
633
  type EnvironmentHolder = z$1.infer<typeof environmentHolderSchema>;
623
634
  declare const environmentStatusSchema: z$1.ZodEnum<{
624
635
  creating: "creating";
@@ -641,6 +652,7 @@ declare const environmentWorkspaceDisplayKindSchema: z$1.ZodEnum<{
641
652
  }>;
642
653
  type EnvironmentWorkspaceDisplayKind = z$1.infer<typeof environmentWorkspaceDisplayKindSchema>;
643
654
  declare const environmentSchema: z$1.ZodObject<{
655
+ additionalPaths: z$1.ZodArray<z$1.ZodString>;
644
656
  baseBranch: z$1.ZodNullable<z$1.ZodString>;
645
657
  branchName: z$1.ZodNullable<z$1.ZodString>;
646
658
  createdAt: z$1.ZodNumber;
@@ -658,7 +670,7 @@ declare const environmentSchema: z$1.ZodObject<{
658
670
  type: z$1.ZodLiteral<"new">;
659
671
  }, z$1.core.$strip>], "type">;
660
672
  }, z$1.core.$strip>>;
661
- heldBy: z$1.ZodNullable<z$1.ZodLiteral<"user">>;
673
+ heldBy: z$1.ZodNullable<z$1.ZodUnion<readonly [z$1.ZodLiteral<"user">, z$1.ZodTemplateLiteral<`plugin:${string}`>]>>;
662
674
  hostId: z$1.ZodString;
663
675
  hostLifecycle: z$1.ZodEnum<{
664
676
  "cleanup-failed": "cleanup-failed";
@@ -718,6 +730,7 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
718
730
  pluginUpdates: "pluginUpdates";
719
731
  resumeDaemonSessions: "resumeDaemonSessions";
720
732
  serverMove: "serverMove";
733
+ serverRoutes: "serverRoutes";
721
734
  skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
722
735
  threadContextCard: "threadContextCard";
723
736
  walCheckpointWorker: "walCheckpointWorker";
@@ -731,6 +744,7 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
731
744
  pluginUpdates: "pluginUpdates";
732
745
  resumeDaemonSessions: "resumeDaemonSessions";
733
746
  serverMove: "serverMove";
747
+ serverRoutes: "serverRoutes";
734
748
  skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
735
749
  threadContextCard: "threadContextCard";
736
750
  walCheckpointWorker: "walCheckpointWorker";
@@ -799,6 +813,16 @@ declare const hostSchema: z$1.ZodObject<{
799
813
  full: "full";
800
814
  }>;
801
815
  name: z$1.ZodString;
816
+ route: z$1.ZodNullable<z$1.ZodObject<{
817
+ displayName: z$1.ZodString;
818
+ kind: z$1.ZodEnum<{
819
+ "local-network": "local-network";
820
+ "private-overlay": "private-overlay";
821
+ custom: "custom";
822
+ relay: "relay";
823
+ }>;
824
+ providerId: z$1.ZodString;
825
+ }, z$1.core.$strip>>;
802
826
  status: z$1.ZodEnum<{
803
827
  connected: "connected";
804
828
  disconnected: "disconnected";
@@ -4221,6 +4245,13 @@ declare const projectSourceSchema: z$1.ZodObject<{
4221
4245
  updatedAt: z$1.ZodNumber;
4222
4246
  }, z$1.core.$strip>;
4223
4247
  type ProjectSource = z$1.infer<typeof projectSourceSchema>;
4248
+ declare const projectSourceFolderSchema: z$1.ZodObject<{
4249
+ createdAt: z$1.ZodNumber;
4250
+ id: z$1.ZodString;
4251
+ path: z$1.ZodString;
4252
+ projectSourceId: z$1.ZodString;
4253
+ }, z$1.core.$strip>;
4254
+ type ProjectSourceFolder = z$1.infer<typeof projectSourceFolderSchema>;
4224
4255
 
4225
4256
  declare const reasoningLevelSchema: z$1.ZodString;
4226
4257
  type ReasoningLevel = z$1.infer<typeof reasoningLevelSchema>;
@@ -4940,6 +4971,14 @@ declare const createProjectSourceRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.Z
4940
4971
  type: z$1.ZodLiteral<"clone">;
4941
4972
  }, z$1.core.$strict>], "type">;
4942
4973
  type CreateProjectSourceRequest = z$1.infer<typeof createProjectSourceRequestSchema>;
4974
+ declare const createProjectSourceFolderRequestSchema: z$1.ZodObject<{
4975
+ path: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
4976
+ }, z$1.core.$strict>;
4977
+ type CreateProjectSourceFolderRequest = z$1.infer<typeof createProjectSourceFolderRequestSchema>;
4978
+ declare const updateProjectSourceFolderRequestSchema: z$1.ZodObject<{
4979
+ path: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
4980
+ }, z$1.core.$strict>;
4981
+ type UpdateProjectSourceFolderRequest = z$1.infer<typeof updateProjectSourceFolderRequestSchema>;
4943
4982
  declare const createProjectRequestSchema: z$1.ZodObject<{
4944
4983
  name: z$1.ZodString;
4945
4984
  source: z$1.ZodObject<{
@@ -5363,6 +5402,7 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
5363
5402
  starting: "starting";
5364
5403
  stopping: "stopping";
5365
5404
  }>;
5405
+ statusChangedAt: z$1.ZodNumber;
5366
5406
  title: z$1.ZodNullable<z$1.ZodString>;
5367
5407
  titleFallback: z$1.ZodNullable<z$1.ZodString>;
5368
5408
  updatedAt: z$1.ZodNumber;
@@ -5473,6 +5513,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5473
5513
  starting: "starting";
5474
5514
  stopping: "stopping";
5475
5515
  }>;
5516
+ statusChangedAt: z$1.ZodNumber;
5476
5517
  title: z$1.ZodNullable<z$1.ZodString>;
5477
5518
  titleFallback: z$1.ZodNullable<z$1.ZodString>;
5478
5519
  updatedAt: z$1.ZodNumber;
@@ -5581,6 +5622,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5581
5622
  starting: "starting";
5582
5623
  stopping: "stopping";
5583
5624
  }>;
5625
+ statusChangedAt: z$1.ZodNumber;
5584
5626
  title: z$1.ZodNullable<z$1.ZodString>;
5585
5627
  titleFallback: z$1.ZodNullable<z$1.ZodString>;
5586
5628
  updatedAt: z$1.ZodNumber;
@@ -6086,6 +6128,7 @@ declare const hostDaemonCommandRegistry: {
6086
6128
  type: z$1.ZodLiteral<"thread.rewind.discard">;
6087
6129
  }, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
6088
6130
  "thread.rewind.prepare": HostDaemonCommandDescriptor<"thread.rewind.prepare", z$1.ZodObject<{
6131
+ additionalWorkspaceFolders: z$1.ZodArray<z$1.ZodString>;
6089
6132
  bridgeLaunch: z$1.ZodObject<{
6090
6133
  capabilities: z$1.ZodObject<{
6091
6134
  fork: z$1.ZodEnum<{
@@ -6235,6 +6278,7 @@ declare const hostDaemonCommandRegistry: {
6235
6278
  providerThreadId: z$1.ZodString;
6236
6279
  }, z$1.core.$strip>, "settled", false>;
6237
6280
  "thread.start": HostDaemonCommandDescriptor<"thread.start", z$1.ZodObject<{
6281
+ additionalWorkspaceFolders: z$1.ZodArray<z$1.ZodString>;
6238
6282
  bridgeLaunch: z$1.ZodObject<{
6239
6283
  capabilities: z$1.ZodObject<{
6240
6284
  fork: z$1.ZodEnum<{
@@ -6805,6 +6849,7 @@ declare const hostDaemonCommandRegistry: {
6805
6849
  }, z$1.core.$strip>], "permissionMode">>;
6806
6850
  requestId: z$1.ZodString;
6807
6851
  resumeContext: z$1.ZodObject<{
6852
+ additionalWorkspaceFolders: z$1.ZodArray<z$1.ZodString>;
6808
6853
  bridgeLaunch: z$1.ZodObject<{
6809
6854
  capabilities: z$1.ZodObject<{
6810
6855
  fork: z$1.ZodEnum<{
@@ -7025,6 +7070,7 @@ declare const hostDaemonCommandRegistry: {
7025
7070
  permissionScope: z$1.ZodLiteral<"full">;
7026
7071
  }, z$1.core.$strip>], "permissionMode">>;
7027
7072
  resumeContext: z$1.ZodObject<{
7073
+ additionalWorkspaceFolders: z$1.ZodArray<z$1.ZodString>;
7028
7074
  bridgeLaunch: z$1.ZodObject<{
7029
7075
  capabilities: z$1.ZodObject<{
7030
7076
  fork: z$1.ZodEnum<{
@@ -7727,6 +7773,7 @@ declare const hostDaemonCommandRegistry: {
7727
7773
  }, z$1.core.$strip>>;
7728
7774
  }, z$1.core.$strip>, "onlineRpc", true>;
7729
7775
  "host.read_workspace_agent_context": HostDaemonCommandDescriptor<"host.read_workspace_agent_context", z$1.ZodObject<{
7776
+ folderPaths: z$1.ZodArray<z$1.ZodString>;
7730
7777
  includeAgentInstructions: z$1.ZodBoolean;
7731
7778
  projectSkillRead: z$1.ZodObject<{
7732
7779
  excludeNames: z$1.ZodArray<z$1.ZodString>;
@@ -7754,6 +7801,11 @@ declare const hostDaemonCommandRegistry: {
7754
7801
  type: z$1.ZodLiteral<"host.read_workspace_agent_context">;
7755
7802
  }, z$1.core.$strict>, z$1.ZodObject<{
7756
7803
  agentInstructions: z$1.ZodNullable<z$1.ZodString>;
7804
+ folders: z$1.ZodArray<z$1.ZodObject<{
7805
+ exists: z$1.ZodBoolean;
7806
+ isGitRepo: z$1.ZodBoolean;
7807
+ path: z$1.ZodString;
7808
+ }, z$1.core.$strict>>;
7757
7809
  projectSkills: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7758
7810
  directoryName: z$1.ZodString;
7759
7811
  kind: z$1.ZodLiteral<"budget-exceeded">;
@@ -10950,6 +11002,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10950
11002
  "question.submit": "question.submit";
10951
11003
  "settings.open": "settings.open";
10952
11004
  "settings.openServers": "settings.openServers";
11005
+ "settings.search": "settings.search";
10953
11006
  "sidebar.toggle": "sidebar.toggle";
10954
11007
  "terminal.find": "terminal.find";
10955
11008
  "terminal.open": "terminal.open";
@@ -10994,9 +11047,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10994
11047
  mainSurface: "mainSurface";
10995
11048
  modalOpen: "modalOpen";
10996
11049
  modelPickerOpen: "modelPickerOpen";
11050
+ pluginPage: "pluginPage";
10997
11051
  promptAvailable: "promptAvailable";
10998
11052
  questionFocus: "questionFocus";
10999
11053
  questionOpen: "questionOpen";
11054
+ settingsPage: "settingsPage";
11000
11055
  splitActive: "splitActive";
11001
11056
  terminalFocus: "terminalFocus";
11002
11057
  webSurface: "webSurface";
@@ -11010,9 +11065,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11010
11065
  mainSurface: "mainSurface";
11011
11066
  modalOpen: "modalOpen";
11012
11067
  modelPickerOpen: "modelPickerOpen";
11068
+ pluginPage: "pluginPage";
11013
11069
  promptAvailable: "promptAvailable";
11014
11070
  questionFocus: "questionFocus";
11015
11071
  questionOpen: "questionOpen";
11072
+ settingsPage: "settingsPage";
11016
11073
  splitActive: "splitActive";
11017
11074
  terminalFocus: "terminalFocus";
11018
11075
  webSurface: "webSurface";
@@ -11028,6 +11085,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11028
11085
  pluginUpdates: "pluginUpdates";
11029
11086
  resumeDaemonSessions: "resumeDaemonSessions";
11030
11087
  serverMove: "serverMove";
11088
+ serverRoutes: "serverRoutes";
11031
11089
  skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
11032
11090
  threadContextCard: "threadContextCard";
11033
11091
  walCheckpointWorker: "walCheckpointWorker";
@@ -11040,11 +11098,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11040
11098
  generalSettings: z$1.ZodObject<{
11041
11099
  allowFastServiceTier: z$1.ZodBoolean;
11042
11100
  confirmThreadArchive: z$1.ZodBoolean;
11043
- defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
11044
11101
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
11045
11102
  earlyAdopter: z$1.ZodBoolean;
11046
11103
  idleProviderSessionTimeoutMinutes: z$1.ZodLiteral<0 | 5 | 60 | 10 | 30>;
11047
11104
  keepHistoryAfterContextClear: z$1.ZodBoolean;
11105
+ localNetworkEnabled: z$1.ZodBoolean;
11048
11106
  machineGitCredentialsEnabled: z$1.ZodBoolean;
11049
11107
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
11050
11108
  managedBranchPrefix: z$1.ZodString;
@@ -11055,6 +11113,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11055
11113
  }>>;
11056
11114
  providerOrder: z$1.ZodArray<z$1.ZodString>;
11057
11115
  resumeThreadsAfterRestart: z$1.ZodBoolean;
11116
+ serverAccessOrder: z$1.ZodArray<z$1.ZodString>;
11058
11117
  showDiagnosticEvents: z$1.ZodBoolean;
11059
11118
  showKeyboardHints: z$1.ZodBoolean;
11060
11119
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -11129,6 +11188,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11129
11188
  "question.submit": "question.submit";
11130
11189
  "settings.open": "settings.open";
11131
11190
  "settings.openServers": "settings.openServers";
11191
+ "settings.search": "settings.search";
11132
11192
  "sidebar.toggle": "sidebar.toggle";
11133
11193
  "terminal.find": "terminal.find";
11134
11194
  "terminal.open": "terminal.open";
@@ -11233,6 +11293,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11233
11293
  "question.submit": "question.submit";
11234
11294
  "settings.open": "settings.open";
11235
11295
  "settings.openServers": "settings.openServers";
11296
+ "settings.search": "settings.search";
11236
11297
  "sidebar.toggle": "sidebar.toggle";
11237
11298
  "terminal.find": "terminal.find";
11238
11299
  "terminal.open": "terminal.open";
@@ -11277,9 +11338,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11277
11338
  mainSurface: "mainSurface";
11278
11339
  modalOpen: "modalOpen";
11279
11340
  modelPickerOpen: "modelPickerOpen";
11341
+ pluginPage: "pluginPage";
11280
11342
  promptAvailable: "promptAvailable";
11281
11343
  questionFocus: "questionFocus";
11282
11344
  questionOpen: "questionOpen";
11345
+ settingsPage: "settingsPage";
11283
11346
  splitActive: "splitActive";
11284
11347
  terminalFocus: "terminalFocus";
11285
11348
  webSurface: "webSurface";
@@ -11293,9 +11356,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11293
11356
  mainSurface: "mainSurface";
11294
11357
  modalOpen: "modalOpen";
11295
11358
  modelPickerOpen: "modelPickerOpen";
11359
+ pluginPage: "pluginPage";
11296
11360
  promptAvailable: "promptAvailable";
11297
11361
  questionFocus: "questionFocus";
11298
11362
  questionOpen: "questionOpen";
11363
+ settingsPage: "settingsPage";
11299
11364
  splitActive: "splitActive";
11300
11365
  terminalFocus: "terminalFocus";
11301
11366
  webSurface: "webSurface";
@@ -11319,11 +11384,29 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11319
11384
  win32: "win32";
11320
11385
  wsl: "wsl";
11321
11386
  }>>;
11387
+ routes: z$1.ZodArray<z$1.ZodObject<{
11388
+ displayName: z$1.ZodString;
11389
+ kind: z$1.ZodEnum<{
11390
+ "local-network": "local-network";
11391
+ "private-overlay": "private-overlay";
11392
+ custom: "custom";
11393
+ relay: "relay";
11394
+ }>;
11395
+ providerId: z$1.ZodString;
11396
+ url: z$1.ZodString;
11397
+ }, z$1.core.$strip>>;
11322
11398
  serverAccess: z$1.ZodObject<{
11323
- defaultProviderId: z$1.ZodString;
11324
11399
  effectiveUrl: z$1.ZodNullable<z$1.ZodString>;
11400
+ localNetwork: z$1.ZodObject<{
11401
+ addresses: z$1.ZodArray<z$1.ZodString>;
11402
+ bindHost: z$1.ZodEnum<{
11403
+ "0.0.0.0": "0.0.0.0";
11404
+ "127.0.0.1": "127.0.0.1";
11405
+ }>;
11406
+ listenerError: z$1.ZodNullable<z$1.ZodString>;
11407
+ }, z$1.core.$strip>;
11325
11408
  providers: z$1.ZodArray<z$1.ZodObject<{
11326
- availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11409
+ availability: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11327
11410
  serverUrl: z$1.ZodOptional<z$1.ZodString>;
11328
11411
  status: z$1.ZodLiteral<"available">;
11329
11412
  }, z$1.core.$strip>, z$1.ZodObject<{
@@ -11332,17 +11415,25 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11332
11415
  }, z$1.core.$strip>, z$1.ZodObject<{
11333
11416
  message: z$1.ZodString;
11334
11417
  status: z$1.ZodLiteral<"unavailable">;
11335
- }, z$1.core.$strip>], "status">>;
11418
+ }, z$1.core.$strip>], "status">;
11336
11419
  description: z$1.ZodString;
11337
11420
  displayName: z$1.ZodString;
11338
11421
  id: z$1.ZodString;
11339
11422
  pluginId: z$1.ZodNullable<z$1.ZodString>;
11423
+ routeKind: z$1.ZodEnum<{
11424
+ "local-network": "local-network";
11425
+ "private-overlay": "private-overlay";
11426
+ custom: "custom";
11427
+ relay: "relay";
11428
+ }>;
11429
+ urls: z$1.ZodArray<z$1.ZodString>;
11340
11430
  }, z$1.core.$strip>>;
11341
11431
  urlSource: z$1.ZodNullable<z$1.ZodEnum<{
11342
11432
  BB_EXTERNAL_URL: "BB_EXTERNAL_URL";
11343
11433
  setting: "setting";
11344
11434
  }>>;
11345
11435
  }, z$1.core.$strip>;
11436
+ serverId: z$1.ZodString;
11346
11437
  serverUrl: z$1.ZodString;
11347
11438
  voiceTranscriptionEnabled: z$1.ZodBoolean;
11348
11439
  }, z$1.core.$strip>;
@@ -14589,6 +14680,7 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
14589
14680
  starting: "starting";
14590
14681
  stopping: "stopping";
14591
14682
  }>;
14683
+ statusChangedAt: z$1.ZodNumber;
14592
14684
  title: z$1.ZodNullable<z$1.ZodString>;
14593
14685
  titleFallback: z$1.ZodNullable<z$1.ZodString>;
14594
14686
  updatedAt: z$1.ZodNumber;
@@ -14694,6 +14786,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14694
14786
  starting: "starting";
14695
14787
  stopping: "stopping";
14696
14788
  }>;
14789
+ statusChangedAt: z$1.ZodNumber;
14697
14790
  title: z$1.ZodNullable<z$1.ZodString>;
14698
14791
  titleFallback: z$1.ZodNullable<z$1.ZodString>;
14699
14792
  updatedAt: z$1.ZodNumber;
@@ -14791,6 +14884,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14791
14884
  starting: "starting";
14792
14885
  stopping: "stopping";
14793
14886
  }>;
14887
+ statusChangedAt: z$1.ZodNumber;
14794
14888
  title: z$1.ZodNullable<z$1.ZodString>;
14795
14889
  titleFallback: z$1.ZodNullable<z$1.ZodString>;
14796
14890
  updatedAt: z$1.ZodNumber;
@@ -14910,6 +15004,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14910
15004
  createdAt: z$1.ZodNumber;
14911
15005
  deletedAt: z$1.ZodNullable<z$1.ZodNumber>;
14912
15006
  environment: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
15007
+ additionalPaths: z$1.ZodArray<z$1.ZodString>;
14913
15008
  baseBranch: z$1.ZodNullable<z$1.ZodString>;
14914
15009
  branchName: z$1.ZodNullable<z$1.ZodString>;
14915
15010
  createdAt: z$1.ZodNumber;
@@ -14927,7 +15022,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14927
15022
  type: z$1.ZodLiteral<"new">;
14928
15023
  }, z$1.core.$strip>], "type">;
14929
15024
  }, z$1.core.$strip>>;
14930
- heldBy: z$1.ZodNullable<z$1.ZodLiteral<"user">>;
15025
+ heldBy: z$1.ZodNullable<z$1.ZodUnion<readonly [z$1.ZodLiteral<"user">, z$1.ZodTemplateLiteral<`plugin:${string}`>]>>;
14931
15026
  hostId: z$1.ZodString;
14932
15027
  hostLifecycle: z$1.ZodEnum<{
14933
15028
  "cleanup-failed": "cleanup-failed";
@@ -15015,6 +15110,16 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
15015
15110
  full: "full";
15016
15111
  }>;
15017
15112
  name: z$1.ZodString;
15113
+ route: z$1.ZodNullable<z$1.ZodObject<{
15114
+ displayName: z$1.ZodString;
15115
+ kind: z$1.ZodEnum<{
15116
+ "local-network": "local-network";
15117
+ "private-overlay": "private-overlay";
15118
+ custom: "custom";
15119
+ relay: "relay";
15120
+ }>;
15121
+ providerId: z$1.ZodString;
15122
+ }, z$1.core.$strip>>;
15018
15123
  status: z$1.ZodEnum<{
15019
15124
  connected: "connected";
15020
15125
  disconnected: "disconnected";
@@ -17952,6 +18057,7 @@ declare const threadConversationOutlineResponseSchema: z$1.ZodObject<{
17952
18057
  imageCount: z$1.ZodNumber;
17953
18058
  }, z$1.core.$strict>>;
17954
18059
  id: z$1.ZodString;
18060
+ messageSeq: z$1.ZodNumber;
17955
18061
  preview: z$1.ZodString;
17956
18062
  role: z$1.ZodEnum<{
17957
18063
  assistant: "assistant";
@@ -17986,6 +18092,16 @@ declare const threadStoragePathListResponseSchema: z$1.ZodObject<{
17986
18092
  }, z$1.core.$strip>;
17987
18093
  type ThreadStoragePathListResponse = z$1.infer<typeof threadStoragePathListResponseSchema>;
17988
18094
 
18095
+ /**
18096
+ * The result of importing a thread file: the recreated thread and the number of
18097
+ * events it was recreated with.
18098
+ */
18099
+ declare const threadImportResponseSchema: z$1.ZodObject<{
18100
+ rows: z$1.ZodNumber;
18101
+ threadId: z$1.ZodString;
18102
+ }, z$1.core.$strip>;
18103
+ type ThreadImportResponse = z$1.infer<typeof threadImportResponseSchema>;
18104
+
17989
18105
  declare const desktopBrowserHostRequestSchema: z$1.ZodObject<{
17990
18106
  hostId: z$1.ZodString;
17991
18107
  }, z$1.core.$strict>;
@@ -18706,11 +18822,17 @@ interface EnvironmentCreateBaseArgs {
18706
18822
  }
18707
18823
  /**
18708
18824
  * `hold: "user"` keeps the environment until the user deletes it and lets
18709
- * threads join it.
18825
+ * threads join it. `hold: "plugin"` keeps it for plugin `pluginId`: threads
18826
+ * cannot join it, and it loses the hold when that plugin's provider hands it
18827
+ * to a new thread from `create`, or when that plugin is disabled or
18828
+ * uninstalled.
18710
18829
  */
18711
- type EnvironmentCreateArgs = EnvironmentCreateBaseArgs & {
18830
+ type EnvironmentCreateArgs = EnvironmentCreateBaseArgs & ({
18712
18831
  hold: "user";
18713
- };
18832
+ } | {
18833
+ hold: "plugin";
18834
+ pluginId: string;
18835
+ });
18714
18836
  type EnvironmentCreateResult = Environment;
18715
18837
  interface EnvironmentDeleteArgs {
18716
18838
  environmentId: string;
@@ -19071,6 +19193,25 @@ interface ProjectSourceDeleteArgs {
19071
19193
  projectId: string;
19072
19194
  sourceId: string;
19073
19195
  }
19196
+ interface ProjectSourceFolderListArgs {
19197
+ projectId: string;
19198
+ sourceId: string;
19199
+ signal?: AbortSignal;
19200
+ }
19201
+ interface ProjectSourceFolderAddArgs extends CreateProjectSourceFolderRequest {
19202
+ projectId: string;
19203
+ sourceId: string;
19204
+ }
19205
+ interface ProjectSourceFolderUpdateArgs extends UpdateProjectSourceFolderRequest {
19206
+ folderId: string;
19207
+ projectId: string;
19208
+ sourceId: string;
19209
+ }
19210
+ interface ProjectSourceFolderRemoveArgs {
19211
+ folderId: string;
19212
+ projectId: string;
19213
+ sourceId: string;
19214
+ }
19074
19215
  type ProjectBranchesResult = ProjectBranchesResponse;
19075
19216
  interface ProjectAttachmentReadResult {
19076
19217
  bytes: Uint8Array;
@@ -19099,8 +19240,15 @@ type ProjectSourceAddResult = ProjectSource;
19099
19240
  type ProjectSourceDeleteResult = OperationResponse;
19100
19241
  type ProjectSourceUpdateResult = ProjectSource;
19101
19242
  type ProjectUpdateResult = ProjectResponse;
19243
+ interface ProjectSourceFoldersArea {
19244
+ add(args: ProjectSourceFolderAddArgs): Promise<ProjectSourceFolder>;
19245
+ list(args: ProjectSourceFolderListArgs): Promise<ProjectSourceFolder[]>;
19246
+ remove(args: ProjectSourceFolderRemoveArgs): Promise<OperationResponse>;
19247
+ update(args: ProjectSourceFolderUpdateArgs): Promise<ProjectSourceFolder>;
19248
+ }
19102
19249
  interface ProjectSourcesArea {
19103
19250
  add(args: ProjectSourceAddArgs): Promise<ProjectSourceAddResult>;
19251
+ experimental_folders: ProjectSourceFoldersArea;
19104
19252
  delete(args: ProjectSourceDeleteArgs): Promise<ProjectSourceDeleteResult>;
19105
19253
  update(args: ProjectSourceUpdateArgs): Promise<ProjectSourceUpdateResult>;
19106
19254
  }
@@ -19901,6 +20049,7 @@ type ThreadCompactResult = OperationResponse;
19901
20049
  type ThreadBannerActionResult = OperationResponse;
19902
20050
  type ThreadUnarchiveResult = OperationResponse;
19903
20051
  type ThreadArchiveAllResult = ThreadArchiveAllResponse;
20052
+ type ThreadImportResult = ThreadImportResponse;
19904
20053
  type ThreadReadStateResult = ThreadResponse;
19905
20054
  type ThreadRestoreEnvironmentResult = ThreadResponse;
19906
20055
  type ThreadPinOrderResult = ThreadListResponse;
@@ -20004,6 +20153,10 @@ interface ThreadActionArgs {
20004
20153
  signal?: AbortSignal;
20005
20154
  threadId: string;
20006
20155
  }
20156
+ interface ThreadImportArgs {
20157
+ file: ArrayBuffer | Blob | Uint8Array;
20158
+ signal?: AbortSignal;
20159
+ }
20007
20160
  interface ThreadStatusArgs extends ThreadActionArgs {
20008
20161
  signal?: AbortSignal;
20009
20162
  }
@@ -20247,6 +20400,21 @@ interface ThreadsArea {
20247
20400
  * on failure. Experimental: see docs/api_to_audit.md.
20248
20401
  */
20249
20402
  experimental_regenerateTitle(args: ThreadActionArgs): Promise<ThreadMutationResult>;
20403
+ /**
20404
+ * Download the thread as a thread file: zstd-compressed JSONL with a header
20405
+ * line, then the thread's rows, every event in sequence order and its
20406
+ * attachments. A deleted thread can still be exported until its purge
20407
+ * starts. Experimental: see docs/api_to_audit.md.
20408
+ */
20409
+ experimental_export(args: ThreadActionArgs): Promise<Uint8Array>;
20410
+ /**
20411
+ * Import a thread file: recreates a deleted thread in its project. A
20412
+ * recreated archived thread counts as archived now. Rejects a thread that
20413
+ * still exists or is still being deleted, and a file whose project is not on
20414
+ * this server.
20415
+ * Experimental: see docs/api_to_audit.md.
20416
+ */
20417
+ experimental_import(args: ThreadImportArgs): Promise<ThreadImportResult>;
20250
20418
  updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
20251
20419
  queue: ThreadQueueArea;
20252
20420
  interactions: ThreadInteractionsArea;
@@ -20543,6 +20711,20 @@ interface PluginEnvironmentProviderSteps {
20543
20711
  * Without a call, core runs setup after create returns.
20544
20712
  */
20545
20713
  setup(path: string): Promise<void>;
20714
+ /**
20715
+ * Hands this operation a ready environment this plugin holds, at once and
20716
+ * atomically: the environment becomes the one this create produces, keeps
20717
+ * its setup, and takes `resource`, which `remove()` receives if create never
20718
+ * returns. The hold is cleared when create returns. Rejects when the
20719
+ * environment is not a ready one this plugin holds on the same project and
20720
+ * machine; then nothing changed. Setup does not run again unless
20721
+ * `setup(path)` is called afterwards with the adopted path, which starts it
20722
+ * at once. A `created` result must name its path; any other outcome leaves
20723
+ * the environment in error, and its thread fails. If bb restarts before
20724
+ * create returns, the environment is removed and the thread is provisioned
20725
+ * again.
20726
+ */
20727
+ adopt(environmentId: string, resource: JsonValue$2): Promise<void>;
20546
20728
  }
20547
20729
  interface PluginEnvironmentProviderCreateContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> extends PluginEnvironmentProviderValidateContext<R, S>, PluginEnvironmentProviderSteps {
20548
20730
  environment: PluginEnvironmentProviderEnvironment;
@@ -20565,6 +20747,14 @@ type PluginEnvironmentProviderCreateResult = {
20565
20747
  ownsPath: boolean;
20566
20748
  /** Ref the workspace's changes are compared against. Null clears the value recorded on a reused environment; omit to keep it. */
20567
20749
  mergeBaseBranch?: string | null;
20750
+ /**
20751
+ * Experimental: absolute paths of this environment's own extra folders,
20752
+ * such as sibling checkouts it created next to `path`. Threads in the
20753
+ * environment can read and write them. Core records them with the
20754
+ * environment; omit on a reused environment to keep the recorded list.
20755
+ * See docs/api_to_audit.md.
20756
+ */
20757
+ additionalPaths?: string[];
20568
20758
  resource?: JsonValue$2;
20569
20759
  } | {
20570
20760
  status: "failed";
@@ -21214,10 +21404,20 @@ interface ServerAccessGrant {
21214
21404
  serverUrl: string;
21215
21405
  headers?: Record<string, string>;
21216
21406
  }
21407
+ type ServerAccessRouteKind = "custom" | "local-network" | "private-overlay" | "relay";
21217
21408
  interface ServerAccessProviderDeclaration {
21218
21409
  id: string;
21219
21410
  displayName: string;
21220
21411
  description: string;
21412
+ /**
21413
+ * How machines and apps travel to this server over the provider's address.
21414
+ * Core ranks enabled routes by kind (local network, private overlay such as
21415
+ * a tailnet, relay, then custom) until the user orders them in Settings.
21416
+ * New machines install on a `"relay"` or `"custom"` route before a
21417
+ * `"local-network"` or `"private-overlay"` one. Plugins built against an SDK
21418
+ * before 0.6.188 may omit it; core treats those as `"custom"`.
21419
+ */
21420
+ routeKind: ServerAccessRouteKind;
21221
21421
  availability(): (PluginMachineProviderAvailability & {
21222
21422
  serverUrl?: string;
21223
21423
  }) | Promise<PluginMachineProviderAvailability & {
@@ -21450,19 +21650,50 @@ interface MessageDispatchHookContext {
21450
21650
  * derive from this map — and so does the server's hook registry — so a
21451
21651
  * half-added hook does not compile.
21452
21652
  *
21453
- * One hook today: `message.dispatch`, THE admission checkpoint, run identically
21454
- * for a thread's first message, a follow-up, a steer, a retry, and every
21455
- * re-attempt a drain makes. It replaced the earlier `thread.create` +
21456
- * `turn.submit` pair, whose split was an accident of where the code happened to
21457
- * branch rather than a difference a plugin needed to see — the attempt's own
21458
- * `attempt` kind carries what actually differs.
21653
+ * `message.dispatch` is THE admission checkpoint, run identically for a
21654
+ * thread's first message, a follow-up, a steer, a retry, and every re-attempt a
21655
+ * drain makes. It replaced the earlier `thread.create` + `turn.submit` pair,
21656
+ * whose split was an accident of where the code happened to branch rather than
21657
+ * a difference a plugin needed to see — the attempt's own `attempt` kind
21658
+ * carries what actually differs.
21659
+ *
21660
+ * `thread.delete_finalize` runs before core finishes deleting a thread by
21661
+ * removing its rows from the database, so a plugin can copy the thread first.
21459
21662
  */
21460
21663
  interface PluginHookSignatures {
21461
21664
  "message.dispatch": {
21462
21665
  context: MessageDispatchHookContext;
21463
21666
  decision: MessageDispatchHookDecision;
21464
21667
  };
21668
+ "thread.delete_finalize": {
21669
+ context: ThreadDeleteFinalizeHookContext;
21670
+ decision: ThreadDeleteFinalizeHookDecision;
21671
+ };
21465
21672
  }
21673
+ /**
21674
+ * A deleted thread core is about to remove from the database. The thread is
21675
+ * already hidden and can no longer change, and every read that works on a
21676
+ * thread id, such as `bb.sdk.threads.experimental_export`, still works until
21677
+ * the removal starts.
21678
+ */
21679
+ interface ThreadDeleteFinalizeHookContext {
21680
+ threadId: string;
21681
+ projectId: string;
21682
+ }
21683
+ /**
21684
+ * `proceed` lets core remove the rows. `wait` keeps them: core asks again
21685
+ * about every 10 seconds and on every restart, until every plugin answers
21686
+ * `proceed`. Once the removal starts core never asks about that thread again.
21687
+ *
21688
+ * A handler that throws, times out or returns something else counts as
21689
+ * `wait`. A plugin that is disabled or uninstalled is not asked, so its
21690
+ * threads are removed without it.
21691
+ */
21692
+ type ThreadDeleteFinalizeHookDecision = {
21693
+ action: "proceed";
21694
+ } | {
21695
+ action: "wait";
21696
+ };
21466
21697
  type PluginHookName = keyof PluginHookSignatures;
21467
21698
  type PluginHookHandler<K extends PluginHookName> = (context: PluginHookSignatures[K]["context"]) => PluginHookSignatures[K]["decision"] | Promise<PluginHookSignatures[K]["decision"]>;
21468
21699
  interface PluginHooks {
@@ -21476,6 +21707,9 @@ interface PluginHooks {
21476
21707
  * pre-commit and post-commit hooks, and the reason the two live in separate
21477
21708
  * namespaces rather than behind one `on`.
21478
21709
  *
21710
+ * The rules below describe `message.dispatch`; `thread.delete_finalize`
21711
+ * has its own, on {@link ThreadDeleteFinalizeHookDecision}.
21712
+ *
21479
21713
  * Handlers for a hook run as a deterministic chain in plugin install order,
21480
21714
  * a `reject` short-circuits the pass, and `wait` decisions are COLLECTED
21481
21715
  * across the whole pass rather than short-circuiting. The attempt proceeds
@@ -21526,6 +21760,9 @@ interface PluginHooks {
21526
21760
  * rows, exactly as the due sweep's do. Awaiting completion would also mean
21527
21761
  * awaiting a full hook pass from inside whatever called this, which for a
21528
21762
  * handler holding the evaluation lock could not complete. Fire and forget.
21763
+ *
21764
+ * `thread.delete_finalize` needs no recheck: core asks it again about every
21765
+ * 10 seconds.
21529
21766
  */
21530
21767
  recheck(hook: PluginHookName): Promise<void>;
21531
21768
  }
@@ -22408,6 +22645,14 @@ interface PluginMentionSearchContext {
22408
22645
  query: string;
22409
22646
  projectId: string | null;
22410
22647
  threadId: string | null;
22648
+ /**
22649
+ * Aborts when the search is no longer wanted: the person typed past it and
22650
+ * the composer cancelled the request, the 2s time box ran out, or this
22651
+ * plugin instance is reloaded, disabled or removed. Pass it to `fetch` or
22652
+ * check it between steps; the host ignores whatever a search returns after
22653
+ * its signal aborts.
22654
+ */
22655
+ experimental_signal: AbortSignal;
22411
22656
  }
22412
22657
  /** One row a mention provider returns from `search`. `id` is the provider's
22413
22658
  * own item id — the host namespaces it before it reaches the wire. */
@@ -22449,7 +22694,11 @@ interface PluginMentionProviderRegistration {
22449
22694
  * Runs server-side as the user types after one of this provider's triggers
22450
22695
  * in the composer. Each call is time-boxed (2s) and failure-isolated: a slow
22451
22696
  * or throwing provider contributes an empty list — it can never break the
22452
- * mention menu.
22697
+ * mention menu. A provider runs one search at a time: a query typed while a
22698
+ * search is running waits for it, and only the newest waiting query runs.
22699
+ * A search still running after its time box keeps the provider out of
22700
+ * results until it settles. Stop work when `ctx.experimental_signal` aborts
22701
+ * so the next query starts sooner.
22453
22702
  */
22454
22703
  search(ctx: PluginMentionSearchContext): PluginMentionItem[] | Promise<PluginMentionItem[]>;
22455
22704
  /**
@@ -22652,9 +22901,17 @@ interface PluginStatusApi {
22652
22901
  * dashes) or the request fails with HTTP 400. A `pluginMetadata` seed or a
22653
22902
  * `set` that is over 256 KiB on its own rejects before any request is sent. A
22654
22903
  * patch whose merged namespace would exceed 256 KiB fails with HTTP 413 and
22655
- * leaves the namespace unchanged.
22904
+ * leaves the namespace unchanged. `environments.experimental_create` with
22905
+ * `hold: "plugin"` always holds the environment for the calling plugin.
22656
22906
  */
22657
- type PluginBbSdk = Omit<BbSdk, "threads"> & {
22907
+ type PluginBbSdk = Omit<BbSdk, "environments" | "threads"> & {
22908
+ environments: Omit<BbSdk["environments"], "experimental_create"> & {
22909
+ experimental_create(args: Extract<EnvironmentCreateArgs, {
22910
+ hold: "user";
22911
+ }> | Omit<Extract<EnvironmentCreateArgs, {
22912
+ hold: "plugin";
22913
+ }>, "pluginId">): Promise<EnvironmentCreateResult>;
22914
+ };
22658
22915
  threads: Omit<BbSdk["threads"], "experimental_listPluginMetadata" | "getPluginMetadata" | "updatePluginMetadata"> & {
22659
22916
  getPluginMetadata(args: Omit<ThreadPluginMetadataArgs, "pluginId"> & {
22660
22917
  pluginId?: string;
@@ -23211,6 +23468,15 @@ interface PluginThreadListProps {
23211
23468
  * Call after the user opens a thread. It closes the mobile sidebar drawer.
23212
23469
  */
23213
23470
  onNavigate: () => void;
23471
+ /**
23472
+ * The sidebar element that scrolls this list. Window rows against it, use
23473
+ * it as an `IntersectionObserver` root, and scroll it for drag autoscroll
23474
+ * instead of walking up the DOM. The host mounts the list only after this
23475
+ * element exists, so it is set on the first render, and it changes only
23476
+ * when the list itself remounts.
23477
+ * Experimental: see docs/api_to_audit.md.
23478
+ */
23479
+ experimental_scrollElement: HTMLElement;
23214
23480
  }
23215
23481
  /** JavaScript world a Browser page expression runs in. */
23216
23482
  type ExperimentalPluginBrowserPageWorld = "isolated" | "main";
@@ -23841,8 +24107,9 @@ interface PluginPendingInteractionRegistration {
23841
24107
  */
23842
24108
  interface PluginSidebarFooterActionContext extends ExperimentalPluginActionContext {
23843
24109
  /**
23844
- * Navigate to this plugin's detail page in Tools, where declarative settings
23845
- * and `settingsSection` slots render.
24110
+ * Open this plugin's settings page, where declarative settings and
24111
+ * `settingsSection` slots render; the same as
24112
+ * `navigate.experimental_toSettings()`.
23846
24113
  */
23847
24114
  openSettings(): void;
23848
24115
  }
@@ -23870,7 +24137,7 @@ interface PluginSidebarFooterActionRegistration {
23870
24137
  * `panel` act on the focused surface, as for commands.
23871
24138
  */
23872
24139
  interface ExperimentalSidebarFooterActionContext extends ExperimentalPluginActionContext {
23873
- /** Navigate to this plugin's detail page in Tools. */
24140
+ /** Open this plugin's settings page; the same as `navigate.experimental_toSettings()`. */
23874
24141
  openPluginDetails(): void;
23875
24142
  }
23876
24143
  /** Fields shared by both experimental sidebar-footer item behaviors. */
@@ -24062,6 +24329,13 @@ interface PluginSidebarThread {
24062
24329
  updatedAt: number;
24063
24330
  lastReadAt: number | null;
24064
24331
  latestAttentionAt: number;
24332
+ /**
24333
+ * Epoch ms of the last durable status transition, or creation for a new
24334
+ * thread (0 for legacy rows). Unlike updatedAt, reading or renaming a
24335
+ * thread does not change it. Independent of unread attention: successful
24336
+ * child completion advances this even when latestAttentionAt stays put.
24337
+ */
24338
+ experimental_statusChangedAt: number;
24065
24339
  }
24066
24340
  /** One project in the sidebar's live view. */
24067
24341
  interface PluginSidebarProject {
@@ -24595,8 +24869,10 @@ type ExperimentalThreadHeaderTitleProps = ExperimentalThreadHeaderRowProps;
24595
24869
  * right-panel toggle and the window drag region. While the user renames the
24596
24870
  * thread, bb shows its rename field instead. Double-click does not start a
24597
24871
  * rename on a plugin title, and dragging a split pane starts only from parts
24598
- * that are not links, buttons or inputs. When several plugins register one,
24599
- * the first in plugin order wins. A crash shows bb's title for that thread.
24872
+ * that are not links, buttons or inputs. Exclusive (see "Exclusive slots" in
24873
+ * the Plugin Guide); the user's pick is `threadHeader.titleProvider`, which can
24874
+ * also choose bb's title (`__builtin__`). A crash shows bb's title for that
24875
+ * thread.
24600
24876
  * The window title stays the thread title.
24601
24877
  */
24602
24878
  interface ExperimentalThreadHeaderTitleRegistration {
@@ -25131,15 +25407,11 @@ interface PluginSidebarThreadSplit {
25131
25407
  /**
25132
25408
  * Replace the sidebar's thread list with a plugin component.
25133
25409
  *
25134
- * Unlike every other slot, this one is EXCLUSIVE: two lists cannot share one
25135
- * scroll area. bb ships its own list as the bundled Thread list plugin
25136
- * (`thread-list/thread-list`). Registering activates the replacement while the
25137
- * plugin is enabled: by default the first registered list other than the
25138
- * bundled one, in deterministic slot order, is active, falling back to the
25139
- * bundled list; removing it reveals the next. The user can pin a specific
25140
- * provider, including the bundled one, under Settings → Appearance → Sidebar.
25141
- * A missing pinned provider or a crashing list shows a placeholder rather than
25142
- * leaving the user with no sidebar.
25410
+ * Exclusive (see "Exclusive slots" in the Plugin Guide): two lists cannot
25411
+ * share one scroll area. bb ships its own list as the bundled Thread list
25412
+ * plugin (`thread-list/thread-list`), an ordinary claimant. The user's pick is
25413
+ * `sidebar.threadListProvider`. While another plugin's list is crashed, bb
25414
+ * shows the bundled list and offers a Reload.
25143
25415
  *
25144
25416
  * The plugin gets the scrolling list and nothing else. The New-thread button,
25145
25417
  * the search action, the plugin nav rows, and the footer stay host-rendered in
@@ -25158,13 +25430,11 @@ interface PluginThreadListRegistration {
25158
25430
  /**
25159
25431
  * Draw the sidebar's navigation: New thread, Plugins, Skills, Automations,
25160
25432
  * plugin panels, and More, plus optional controls in the sidebar header.
25161
- * Exclusive: bb's bundled Navigation plugin registers Rail
25162
- * (`navigation/rail`, the default) and Top list (`navigation/top-list`)
25163
- * through this slot. By default the first provider from another plugin is
25164
- * active, falling back to Rail; the user can pin one provider under Settings →
25165
- * Appearance → Navigation. A pinned provider that is disabled or removed falls
25166
- * back the same way, and a crashing provider is replaced by the Navigation
25167
- * plugin's provider for the same placement.
25433
+ * Exclusive (see "Exclusive slots" in the Plugin Guide): bb's bundled
25434
+ * Navigation plugin registers Rail (`navigation/rail`, the default) and Top
25435
+ * list (`navigation/top-list`) through this slot as ordinary claimants. The
25436
+ * user's pick is `sidebar.navigationProvider`. A crashing provider is replaced
25437
+ * by the Navigation plugin's provider for the same placement.
25168
25438
  *
25169
25439
  * `placement` decides the layout around the component, so bb can lay out the
25170
25440
  * sidebar before the plugin loads:
@@ -25200,10 +25470,10 @@ interface ExperimentalSidebarNavigationRegistration {
25200
25470
  headerComponent?: ComponentType<ExperimentalSidebarHeaderProps>;
25201
25471
  }
25202
25472
  /**
25203
- * Register this plugin as a viewer/editor for file extensions. By default,
25204
- * matching files render the first applicable opener in deterministic slot
25205
- * order. The user can pin BB's preview or a specific opener per extension
25206
- * under Settings → Files. The file tab's "Open with" menu can override that
25473
+ * Register this plugin as a viewer/editor for file extensions. Exclusive per
25474
+ * extension (see "Exclusive slots" in the Plugin Guide); the user's picks are
25475
+ * `fileOpener.byExtension`, which can also choose BB's preview
25476
+ * (`__builtin__`). The file tab's "Open with" menu can override that
25207
25477
  * choice for one open, and so can the plugin by passing the opener's id as
25208
25478
  * `experimental_openFilePreview`'s `opener`. A plugin can also use its own
25209
25479
  * setting and render `Original` conditionally. Applies to working-tree, host,
@@ -25227,11 +25497,9 @@ interface PluginFileOpenerRegistration {
25227
25497
  /**
25228
25498
  * Replace BB's source-code renderer everywhere it renders supplied source
25229
25499
  * text — the native file preview and every plugin that calls
25230
- * `experimental_SourceCode`. Like `experimental_threadList` this slot is
25231
- * **exclusive**: one renderer at a time. Registering activates it while the
25232
- * plugin is enabled; if several are registered, one from a plugin the user
25233
- * installed wins over one bundled with bb, then the first in deterministic
25234
- * slot order. A missing, disabled, or crashing replacement falls back to BB's
25500
+ * `experimental_SourceCode`. Exclusive (see "Exclusive slots" in the Plugin
25501
+ * Guide); the user's pick is `sourceCode.provider`, which can also choose BB's
25502
+ * renderer (`__builtin__`). A crashing replacement falls back to BB's
25235
25503
  * renderer, and a replacement can render `Original` to delegate
25236
25504
  * per call (behind its own setting, by language, by size — whatever it needs).
25237
25505
  */
@@ -25247,9 +25515,10 @@ interface PluginSourceCodeRendererRegistration {
25247
25515
  /**
25248
25516
  * Replace BB's diff renderer everywhere it renders supplied diff content — the
25249
25517
  * timeline file diffs, the environment diff panel's text bodies, and every
25250
- * plugin that calls `experimental_Diff`. Exclusive, with the same activation,
25251
- * fallback, and `Original` delegation rules as
25252
- * {@link PluginSourceCodeRendererRegistration}.
25518
+ * plugin that calls `experimental_Diff`. Exclusive, with the same fallback
25519
+ * and `Original` delegation rules as
25520
+ * {@link PluginSourceCodeRendererRegistration}; the user's pick is
25521
+ * `diff.provider`.
25253
25522
  */
25254
25523
  interface PluginDiffRendererRegistration {
25255
25524
  /** Unique within the plugin; letters, digits, `-`, `_`. */
@@ -25274,11 +25543,11 @@ interface ExperimentalComposerProps {
25274
25543
  * composer, the New thread screen, queued and sent message editors). The
25275
25544
  * banners, approval cards and queued messages above the box stay bb's.
25276
25545
  *
25277
- * Exclusive, like `experimental_threadList`: a composer from a plugin the
25278
- * user installed wins over the bundled one, then the first in slot order.
25279
- * Users choose under Settings → Appearance → Composer (`composer.provider`).
25280
- * bb ships its own composer as the bundled Composer plugin; with no composer
25281
- * plugin enabled, no composer is shown.
25546
+ * Exclusive (see "Exclusive slots" in the Plugin Guide); the user's pick is
25547
+ * `composer.provider`. bb ships its own composer as the bundled Composer
25548
+ * plugin, an ordinary claimant; with no composer plugin enabled, no composer
25549
+ * is shown. While another plugin's composer is crashed, bb shows the bundled
25550
+ * one with the same draft and offers a Reload.
25282
25551
  *
25283
25552
  * The host keeps the draft, uploads, history, pickers and submission; the
25284
25553
  * component draws over them with `experimental_useComposerRenderer()`.
@@ -25848,6 +26117,11 @@ interface ExperimentalThreadTitleTextProps {
25848
26117
  * Register a leaf message directive rendered inside assistant (and nested
25849
26118
  * agent) message Markdown. `id` is the directive name: `inline-vis` matches
25850
26119
  * `::inline-vis{file="demo.html"}`.
26120
+ *
26121
+ * Exclusive per directive name (see "Exclusive slots" in the Plugin Guide),
26122
+ * with no automatic winner: a name several plugins claim shows a plugin picker
26123
+ * with its source text until the user picks one, which sets
26124
+ * `messageDirective.byName`.
25851
26125
  */
25852
26126
  interface PluginMessageDirectiveRegistration {
25853
26127
  /**
@@ -25862,8 +26136,9 @@ interface PluginMessageDirectiveRegistration {
25862
26136
  * include `"ui"`. Fences elsewhere (user messages, file previews, plugin
25863
26137
  * Markdown) keep BB's code block.
25864
26138
  *
25865
- * BB's code block also renders when two plugins claim the same language (BB
25866
- * logs a warning naming them), when the plugin is disabled, and for a fence
26139
+ * Exclusive per language (see "Exclusive slots" in the Plugin Guide); the
26140
+ * user's picks are `codeFence.byLanguage`. BB's code block renders when the
26141
+ * user picks it (`__builtin__`), when the plugin is disabled, and for a fence
25867
26142
  * whose component throws. A throw affects that fence only, and BB tries the
25868
26143
  * component again when the fence's `code` or `status` changes.
25869
26144
  *
@@ -25902,6 +26177,12 @@ interface ThreadChatMessageReference {
25902
26177
  }
25903
26178
  /** Stable identity and creation time of one rendered conversation message. */
25904
26179
  type ExperimentalMessageMetadataContext = Pick<ThreadChatMessageReference, "id" | "threadId"> & {
26180
+ /**
26181
+ * The message's link sequence, the same value as
26182
+ * `ThreadChatMessageReference.experimental_messageSeq`; pass it to
26183
+ * `navigate.toThread` or `navigate.experimental_threadHref`.
26184
+ */
26185
+ messageSeq: number;
25905
26186
  /** Unix time in milliseconds, supplied by BB's timeline. */
25906
26187
  createdAt: number;
25907
26188
  /** The containing turn, or null for a message outside a turn. */
@@ -26079,8 +26360,22 @@ interface ExperimentalShortcutKeyEvent {
26079
26360
  * `run`, and the host owns matching, ordering, and recency.
26080
26361
  */
26081
26362
  interface PluginCommandRegistration {
26082
- /** Initial keyboard binding. Users can rebind every command, including ones without a default. Conflicting defaults remain unbound. */
26363
+ /**
26364
+ * Initial keyboard binding. Users can rebind every command, including ones without a default. Conflicting defaults remain unbound.
26365
+ * It needs Command, Control or Alt, or a function key; with `experimental_keyScope: "pluginPage"` it may be a bare key such as `{ key: "c" }`.
26366
+ */
26083
26367
  defaultShortcut?: PluginCommandShortcut;
26368
+ /**
26369
+ * Where the keyboard binding works. Omitted, it works app-wide outside
26370
+ * modals. `"pluginPage"` limits it to while one of this plugin's nav panel
26371
+ * pages is the focused surface, and never while focus is in a field, an
26372
+ * editor or a menu, or a modal is open; only this scope accepts a bare-key
26373
+ * default. Another plugin's page-scoped binding never conflicts with it,
26374
+ * since the two pages are never focused together.
26375
+ * The palette still lists the command everywhere `isAvailable` allows.
26376
+ * Experimental: see docs/api_to_audit.md.
26377
+ */
26378
+ experimental_keyScope?: "pluginPage";
26084
26379
  /** Unique within the plugin; letters, digits, `-`, `_`. */
26085
26380
  id: string;
26086
26381
  /** The row's label, e.g. "Linear: open issue for this thread". */
@@ -26620,10 +26915,18 @@ type PluginRealtimeConnectionState = "connected" | "connecting" | "reconnecting"
26620
26915
  type PluginComposerScope = {
26621
26916
  kind: "thread";
26622
26917
  threadId: string;
26918
+ /** The thread's project. */
26919
+ projectId: string;
26920
+ /** The thread's environment; null while the thread has none. */
26921
+ environmentId: string | null;
26623
26922
  } | {
26624
26923
  kind: "queued-message";
26625
26924
  threadId: string;
26626
26925
  queuedMessageId: string;
26926
+ /** The queued message's thread's project. */
26927
+ projectId: string;
26928
+ /** The queued message's thread's environment; null while it has none. */
26929
+ environmentId: string | null;
26627
26930
  } | {
26628
26931
  kind: "new-thread";
26629
26932
  /** Root compose's effective selected project; null only while unresolved. */
@@ -26913,8 +27216,9 @@ interface PluginComposerApi {
26913
27216
  * Insert text and mentions. See {@link ComposerInsertOptions} for placement.
26914
27217
  * Mentions read from `draft` are recreated exactly; the calling plugin's
26915
27218
  * own `{ provider, id, label }` resolves through its mention provider.
26916
- * Throws for another plugin's mention without `kind`, and for
26917
- * `at: "cursor"` when the composer is not on screen.
27219
+ * Throws for another plugin's mention without `kind`, for an empty provider
27220
+ * id, one containing `:`, or an empty item id, and for `at: "cursor"` when
27221
+ * the composer is not on screen.
26918
27222
  */
26919
27223
  insert(parts: ComposerInsertPart | readonly ComposerInsertPart[], options?: ComposerInsertOptions): void;
26920
27224
  /**
@@ -27002,7 +27306,8 @@ interface PluginComposerApi {
27002
27306
  * has, so a missing key means "no such picker here" and a value that
27003
27307
  * differs from the one passed was reconciled (a reasoning level the model
27004
27308
  * does not support, a service tier the model does not offer, a permission
27005
- * mode above the machine's ceiling, a model the provider does not list). A provider the composer does not list is
27309
+ * mode above the machine's ceiling, a model the provider does not list, a
27310
+ * `reuse` of a missing or destroyed environment). A provider the composer does not list is
27006
27311
  * ignored together with the model and reasoning level meant for it, so the
27007
27312
  * stored provider preference never names something the picker could not
27008
27313
  * have chosen. `environment` is absent while the composer
@@ -27368,8 +27673,8 @@ interface NewThreadComposerProps {
27368
27673
  * - A `host` environment whose host no longer exists (or whose project has
27369
27674
  * no source on it) falls back to the composer's default host, exactly as
27370
27675
  * the primary compose surface would.
27371
- * - A `reuse` environment whose worktree no longer has unarchived threads
27372
- * falls back the same way.
27676
+ * - A `reuse` environment is looked up directly, even without unarchived
27677
+ * threads. A missing or destroyed environment falls back the same way.
27373
27678
  * - An `unmanaged` workspace's `path` has no composer control; the seeded
27374
27679
  * selection submits `path: null` (the host's configured checkout). The
27375
27680
  * composer itself never produces a non-null `path`, so real round trips
@@ -27381,13 +27686,22 @@ interface NewThreadComposerProps {
27381
27686
  */
27382
27687
  defaultEnvironment?: CreateThreadEnvironmentArgs;
27383
27688
  /**
27384
- * Seeds the draft, only while the draft is still empty. Serialized
27385
- * `@thread:<id>`, `@project:<id>`, and `@section:<id>` tokens become mention
27386
- * pills with host-resolved titles/names. Missing projects/sections use their
27387
- * IDs; unavailable generated thread IDs use "Unavailable thread" ("Thread"
27388
- * if lookup fails). Other unknown thread IDs use the ID as their label.
27389
- */
27390
- initialPrompt?: string;
27689
+ * Seeds the draft, only while the draft is still empty. In a string,
27690
+ * serialized `@thread:<id>`, `@project:<id>`, and `@section:<id>` tokens
27691
+ * become mention pills with host-resolved titles/names. Missing
27692
+ * projects/sections use their IDs; unavailable generated thread IDs use
27693
+ * "Unavailable thread" ("Thread" if lookup fails). Other unknown thread IDs
27694
+ * use the ID as their label.
27695
+ *
27696
+ * Pass {@link ComposerInsertPart}s instead to seed any mention kind,
27697
+ * exactly as `useComposer().insert()` would: string parts stay plain text,
27698
+ * mentions with a `kind` are recreated as given, and this plugin's own
27699
+ * `{ provider, id, label }` resolves through its mention provider at send
27700
+ * time. Parts that `insert()` would reject (an empty provider id, one
27701
+ * containing `:`, or an empty item id) leave the draft empty and log a
27702
+ * console warning instead of throwing.
27703
+ */
27704
+ initialPrompt?: string | readonly ComposerInsertPart[];
27391
27705
  placeholder?: string;
27392
27706
  /**
27393
27707
  * "contained" (default) fills and scrolls inside a bounded parent;
@@ -27487,7 +27801,7 @@ interface ExperimentalFilePreviewOptions extends ExperimentalFileOpenOptions {
27487
27801
  /**
27488
27802
  * Id of one of the calling plugin's `fileOpener` registrations to show the
27489
27803
  * file with for this open, as the file tab's "Open with" menu does. Omit it
27490
- * to use the opener the user's Settings → Files choice selects. An opener
27804
+ * to use the opener the user's `fileOpener.byExtension` pick selects. An opener
27491
27805
  * that is not registered falls back to BB's preview.
27492
27806
  */
27493
27807
  opener?: string;
@@ -27646,15 +27960,26 @@ interface BbContext {
27646
27960
  */
27647
27961
  experimental_pluginPanel: ExperimentalPluginPanelPage | null;
27648
27962
  }
27963
+ /** A bb settings section, as `/settings/<section>` names it. */
27964
+ type ExperimentalSettingsSection = "ai-services" | "appearance" | "archived" | "browser" | "community" | "environment-variables" | "experiments" | "files" | "general" | "keyboard" | "machines" | "marketplaces" | "mobile" | "plugins" | "projects" | "providers" | "updates";
27965
+ /** A bb settings page; omit it to mean the calling plugin's own settings page. */
27966
+ interface ExperimentalSettingsTarget {
27967
+ section: ExperimentalSettingsSection;
27968
+ }
27649
27969
  interface BbNavigate {
27650
27970
  /**
27651
27971
  * Open a thread. `split: true` applies bb's split placement rules (a right
27652
27972
  * split by default, focus when already open, replace at the pane cap) and
27653
27973
  * falls back to plain navigation where splits are off. Opening also expands
27654
27974
  * the thread's conversation if the side panel had collapsed it.
27975
+ * `messageSeq` opens the thread at that message, as a message
27976
+ * link does: bb loads older history as needed, scrolls to the message and
27977
+ * highlights it, or shows a "Message not found" toast. Repeating the call
27978
+ * reveals the message again.
27655
27979
  */
27656
27980
  toThread(threadId: string, options?: {
27657
27981
  split?: boolean;
27982
+ messageSeq?: number;
27658
27983
  }): void;
27659
27984
  toProject(projectId: string): void;
27660
27985
  /**
@@ -27670,21 +27995,28 @@ interface BbNavigate {
27670
27995
  }): void;
27671
27996
  /**
27672
27997
  * Navigate to the root compose surface (the new-thread screen). Pass
27673
- * `initialPrompt` to seed the composer draft when it is empty (serialized
27674
- * thread, project, and section mention tokens become pills) and
27998
+ * `initialPrompt` to seed the composer draft when it is empty, as a string
27999
+ * (serialized thread, project, and section mention tokens become pills) or
28000
+ * as {@link ComposerInsertPart}s with the same meaning as
28001
+ * `useComposer().insert()` (throws for an invalid provider or item id), and
27675
28002
  * `focusPrompt` to focus the composer on arrival — the pairing behind
27676
28003
  * "Create via chat" style entry points that drop the user into chat with a
27677
28004
  * prefilled prompt. `projectId` makes that project the composer's
27678
28005
  * selection; `placement` files the new thread in a section and pin state.
27679
28006
  * Without `placement`, the screen keeps the placement it already shows,
27680
28007
  * unless `environmentId` or `hostId` is set, which resets it to unpinned
27681
- * and outside sections. `environmentId` reuses that environment and
28008
+ * and outside sections. `environmentId` reuses that environment (falling
28009
+ * back to the composer's default when it is missing or destroyed) and
27682
28010
  * `hostId` picks a machine for a new one (`environmentId` wins when both
27683
- * are set).
28011
+ * are set). `split: true` opens the screen beside the caller with
28012
+ * `toThread`'s split rules: a right split by default, replace at the pane
28013
+ * cap, plain navigation where splits are off. bb has one new-thread screen,
28014
+ * so when it is already open in a pane, bb focuses that pane and applies the
28015
+ * other options to it.
27684
28016
  */
27685
28017
  toCompose(options?: {
27686
28018
  projectId?: string;
27687
- initialPrompt?: string;
28019
+ initialPrompt?: string | readonly ComposerInsertPart[];
27688
28020
  focusPrompt?: boolean;
27689
28021
  placement?: {
27690
28022
  sectionId: string | null;
@@ -27692,6 +28024,7 @@ interface BbNavigate {
27692
28024
  };
27693
28025
  environmentId?: string;
27694
28026
  hostId?: string;
28027
+ split?: boolean;
27695
28028
  }): void;
27696
28029
  /**
27697
28030
  * Open an HTTP(S) URL using this client's BB browser preference, or request
@@ -27719,6 +28052,30 @@ interface BbNavigate {
27719
28052
  experimental_openTerminal(options: {
27720
28053
  terminalId: string;
27721
28054
  }): Promise<boolean>;
28055
+ /**
28056
+ * Open bb settings: this plugin's own settings page, or `target.section`.
28057
+ * Settings replaces the whole window, including any split panes; Back
28058
+ * returns to them. Experimental: see docs/api_to_audit.md.
28059
+ */
28060
+ experimental_toSettings(target?: ExperimentalSettingsTarget): void;
28061
+ /**
28062
+ * The app-relative href of the location `toThread(threadId, options)`
28063
+ * opens: the thread, or its message at `messageSeq`. When bb
28064
+ * has not loaded the thread's project, the href is `/threads/<id>`, which bb
28065
+ * redirects to the project route, keeping the message. Use it on an `<a>`:
28066
+ * bb routes a plain click in place, Cmd/Ctrl-click opens a split, and
28067
+ * middle-click a new tab. For a URL to copy, use
28068
+ * `new URL(href, location.origin)`, as bb's Copy link does. Experimental:
28069
+ * see docs/api_to_audit.md.
28070
+ */
28071
+ experimental_threadHref(threadId: string, options?: {
28072
+ messageSeq?: number;
28073
+ }): string;
28074
+ /**
28075
+ * The app-relative href of the settings page `experimental_toSettings(target)`
28076
+ * opens. Experimental: see docs/api_to_audit.md.
28077
+ */
28078
+ experimental_settingsHref(target?: ExperimentalSettingsTarget): string;
27722
28079
  }
27723
28080
  /**
27724
28081
  * BB live reads are fresh for two seconds, with no polling when freshness expires.
@@ -27997,8 +28354,9 @@ interface PluginSdkApp {
27997
28354
  * objects keep their identity across updates while the underlying entry is
27998
28355
  * unchanged, so a memoized row re-renders only when its own thread changed;
27999
28356
  * the array itself is new on every update. Window your rows (render only
28000
- * what is on screen) as the built-in sidebar does — a list that mounts one
28001
- * row per thread is slow on phones with many threads.
28357
+ * what is on screen) against `PluginThreadListProps.experimental_scrollElement`,
28358
+ * as the built-in sidebar does — a list that mounts one row per thread is
28359
+ * slow on phones with many threads.
28002
28360
  * Experimental: see docs/api_to_audit.md.
28003
28361
  */
28004
28362
  experimental_useSidebarThreads(options?: {
@@ -28246,6 +28604,27 @@ interface PluginSdkApp {
28246
28604
  * failure feedback. Experimental: see docs/api_to_audit.md.
28247
28605
  */
28248
28606
  experimental_copyToClipboard(content: ExperimentalClipboardContent): Promise<boolean>;
28607
+ /**
28608
+ * Shows the error toast bb's own actions show when a request fails. A plain
28609
+ * function, callable from components, action callbacks, and command
28610
+ * callbacks. Nothing shows when `error` is an `AbortError`. When the server
28611
+ * returned a lifecycle error, such as an environment that is not ready or
28612
+ * a thread that cannot be changed, the toast shows bb's own title and body
28613
+ * for it. Otherwise the title is
28614
+ * `fallbackMessage` and the description is the failure's message: for an
28615
+ * SDK error (`experimental_BbHttpError`), the message in the server's
28616
+ * response body, else the error's message without its `HTTP <status>:`
28617
+ * prefix; when the request never reached the server, "Could not reach the
28618
+ * server. Check that it is running and try again."; for any other error,
28619
+ * its message. The title and description drop a trailing period, the
28620
+ * description is left out when it equals the title or there is no message,
28621
+ * and a failure whose message is "Request failed" shows "Request failed"
28622
+ * with "Please try again". Experimental: see docs/api_to_audit.md.
28623
+ */
28624
+ experimental_showErrorToast(options: {
28625
+ error: unknown;
28626
+ fallbackMessage: string;
28627
+ }): void;
28249
28628
  /**
28250
28629
  * Saves a file through bb's own download path, the one bb's file preview
28251
28630
  * and attachment downloads use. Browsers and bb Desktop start an ordinary
@@ -28436,6 +28815,16 @@ interface PluginSdkApp {
28436
28815
  experimental_VoiceRecordingBar: ComponentType<ExperimentalVoiceRecordingBarProps>;
28437
28816
  experimental_FailedVoiceRecordings: ComponentType<ExperimentalFailedVoiceRecordingsProps>;
28438
28817
  experimental_ShortcutHint: ComponentType<ExperimentalShortcutHintProps>;
28818
+ /**
28819
+ * The shortcut currently bound to this plugin's command `commandId` (the
28820
+ * `id` given to `app.commands.register`), formatted for this platform and
28821
+ * following the user's rebinds: the label bb's own buttons and tooltips
28822
+ * show. Null when the command is unbound, including a default left unbound
28823
+ * by a conflict, or when this plugin registered no such command. Throws for
28824
+ * an id that is not letters, digits, `-` and `_`.
28825
+ * Experimental: see docs/api_to_audit.md.
28826
+ */
28827
+ experimental_useCommandShortcut(commandId: string): ExperimentalShortcutPresentation | null;
28439
28828
  /**
28440
28829
  * Whether `event` presses `key` (a `PluginCommandShortcut` key such as
28441
28830
  * `"k"`, `"["` or `"Enter"`), compared the way bb compares keys for its own
@@ -28736,4 +29125,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
28736
29125
  declare function sliceUtf16Head(value: string, maxChars: number): string;
28737
29126
 
28738
29127
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, BbHttpError as experimental_BbHttpError, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry, getHostPathBasename as experimental_getHostPathBasename, getHostPathComparisonKey as experimental_getHostPathComparisonKey, getHostPathDirname as experimental_getHostPathDirname, getRelativeHostPath as experimental_getRelativeHostPath, isHostPathWithin as experimental_isHostPathWithin, joinHostPath as experimental_joinHostPath, normalizeHostPath as experimental_normalizeHostPath, resolveHostPath as experimental_resolveHostPath, sliceUtf16Head as experimental_sliceUtf16Head };
28739
- export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerActionContext, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageActionSurface, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginActionContext, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginPanelPage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutKeyEvent, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRequests, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadSettledEvent, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
29128
+ export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerActionContext, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageActionSurface, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginActionContext, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginPanelPage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalSettingsSection, ExperimentalSettingsTarget, ExperimentalShortcutHintProps, ExperimentalShortcutKeyEvent, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRequests, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadSettledEvent, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, ServerAccessRouteKind, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, ThreadDeleteFinalizeHookContext, ThreadDeleteFinalizeHookDecision, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };