@get-bb/plugin-sdk 0.6.179 → 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;
@@ -7760,6 +7802,7 @@ declare const hostDaemonCommandRegistry: {
7760
7802
  }, z$1.core.$strict>, z$1.ZodObject<{
7761
7803
  agentInstructions: z$1.ZodNullable<z$1.ZodString>;
7762
7804
  folders: z$1.ZodArray<z$1.ZodObject<{
7805
+ exists: z$1.ZodBoolean;
7763
7806
  isGitRepo: z$1.ZodBoolean;
7764
7807
  path: z$1.ZodString;
7765
7808
  }, z$1.core.$strict>>;
@@ -10959,6 +11002,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10959
11002
  "question.submit": "question.submit";
10960
11003
  "settings.open": "settings.open";
10961
11004
  "settings.openServers": "settings.openServers";
11005
+ "settings.search": "settings.search";
10962
11006
  "sidebar.toggle": "sidebar.toggle";
10963
11007
  "terminal.find": "terminal.find";
10964
11008
  "terminal.open": "terminal.open";
@@ -11003,9 +11047,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11003
11047
  mainSurface: "mainSurface";
11004
11048
  modalOpen: "modalOpen";
11005
11049
  modelPickerOpen: "modelPickerOpen";
11050
+ pluginPage: "pluginPage";
11006
11051
  promptAvailable: "promptAvailable";
11007
11052
  questionFocus: "questionFocus";
11008
11053
  questionOpen: "questionOpen";
11054
+ settingsPage: "settingsPage";
11009
11055
  splitActive: "splitActive";
11010
11056
  terminalFocus: "terminalFocus";
11011
11057
  webSurface: "webSurface";
@@ -11019,9 +11065,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11019
11065
  mainSurface: "mainSurface";
11020
11066
  modalOpen: "modalOpen";
11021
11067
  modelPickerOpen: "modelPickerOpen";
11068
+ pluginPage: "pluginPage";
11022
11069
  promptAvailable: "promptAvailable";
11023
11070
  questionFocus: "questionFocus";
11024
11071
  questionOpen: "questionOpen";
11072
+ settingsPage: "settingsPage";
11025
11073
  splitActive: "splitActive";
11026
11074
  terminalFocus: "terminalFocus";
11027
11075
  webSurface: "webSurface";
@@ -11037,6 +11085,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11037
11085
  pluginUpdates: "pluginUpdates";
11038
11086
  resumeDaemonSessions: "resumeDaemonSessions";
11039
11087
  serverMove: "serverMove";
11088
+ serverRoutes: "serverRoutes";
11040
11089
  skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
11041
11090
  threadContextCard: "threadContextCard";
11042
11091
  walCheckpointWorker: "walCheckpointWorker";
@@ -11049,11 +11098,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11049
11098
  generalSettings: z$1.ZodObject<{
11050
11099
  allowFastServiceTier: z$1.ZodBoolean;
11051
11100
  confirmThreadArchive: z$1.ZodBoolean;
11052
- defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
11053
11101
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
11054
11102
  earlyAdopter: z$1.ZodBoolean;
11055
11103
  idleProviderSessionTimeoutMinutes: z$1.ZodLiteral<0 | 5 | 60 | 10 | 30>;
11056
11104
  keepHistoryAfterContextClear: z$1.ZodBoolean;
11105
+ localNetworkEnabled: z$1.ZodBoolean;
11057
11106
  machineGitCredentialsEnabled: z$1.ZodBoolean;
11058
11107
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
11059
11108
  managedBranchPrefix: z$1.ZodString;
@@ -11064,6 +11113,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11064
11113
  }>>;
11065
11114
  providerOrder: z$1.ZodArray<z$1.ZodString>;
11066
11115
  resumeThreadsAfterRestart: z$1.ZodBoolean;
11116
+ serverAccessOrder: z$1.ZodArray<z$1.ZodString>;
11067
11117
  showDiagnosticEvents: z$1.ZodBoolean;
11068
11118
  showKeyboardHints: z$1.ZodBoolean;
11069
11119
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -11138,6 +11188,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11138
11188
  "question.submit": "question.submit";
11139
11189
  "settings.open": "settings.open";
11140
11190
  "settings.openServers": "settings.openServers";
11191
+ "settings.search": "settings.search";
11141
11192
  "sidebar.toggle": "sidebar.toggle";
11142
11193
  "terminal.find": "terminal.find";
11143
11194
  "terminal.open": "terminal.open";
@@ -11242,6 +11293,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11242
11293
  "question.submit": "question.submit";
11243
11294
  "settings.open": "settings.open";
11244
11295
  "settings.openServers": "settings.openServers";
11296
+ "settings.search": "settings.search";
11245
11297
  "sidebar.toggle": "sidebar.toggle";
11246
11298
  "terminal.find": "terminal.find";
11247
11299
  "terminal.open": "terminal.open";
@@ -11286,9 +11338,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11286
11338
  mainSurface: "mainSurface";
11287
11339
  modalOpen: "modalOpen";
11288
11340
  modelPickerOpen: "modelPickerOpen";
11341
+ pluginPage: "pluginPage";
11289
11342
  promptAvailable: "promptAvailable";
11290
11343
  questionFocus: "questionFocus";
11291
11344
  questionOpen: "questionOpen";
11345
+ settingsPage: "settingsPage";
11292
11346
  splitActive: "splitActive";
11293
11347
  terminalFocus: "terminalFocus";
11294
11348
  webSurface: "webSurface";
@@ -11302,9 +11356,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11302
11356
  mainSurface: "mainSurface";
11303
11357
  modalOpen: "modalOpen";
11304
11358
  modelPickerOpen: "modelPickerOpen";
11359
+ pluginPage: "pluginPage";
11305
11360
  promptAvailable: "promptAvailable";
11306
11361
  questionFocus: "questionFocus";
11307
11362
  questionOpen: "questionOpen";
11363
+ settingsPage: "settingsPage";
11308
11364
  splitActive: "splitActive";
11309
11365
  terminalFocus: "terminalFocus";
11310
11366
  webSurface: "webSurface";
@@ -11328,11 +11384,29 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11328
11384
  win32: "win32";
11329
11385
  wsl: "wsl";
11330
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>>;
11331
11398
  serverAccess: z$1.ZodObject<{
11332
- defaultProviderId: z$1.ZodString;
11333
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>;
11334
11408
  providers: z$1.ZodArray<z$1.ZodObject<{
11335
- availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11409
+ availability: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11336
11410
  serverUrl: z$1.ZodOptional<z$1.ZodString>;
11337
11411
  status: z$1.ZodLiteral<"available">;
11338
11412
  }, z$1.core.$strip>, z$1.ZodObject<{
@@ -11341,17 +11415,25 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
11341
11415
  }, z$1.core.$strip>, z$1.ZodObject<{
11342
11416
  message: z$1.ZodString;
11343
11417
  status: z$1.ZodLiteral<"unavailable">;
11344
- }, z$1.core.$strip>], "status">>;
11418
+ }, z$1.core.$strip>], "status">;
11345
11419
  description: z$1.ZodString;
11346
11420
  displayName: z$1.ZodString;
11347
11421
  id: z$1.ZodString;
11348
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>;
11349
11430
  }, z$1.core.$strip>>;
11350
11431
  urlSource: z$1.ZodNullable<z$1.ZodEnum<{
11351
11432
  BB_EXTERNAL_URL: "BB_EXTERNAL_URL";
11352
11433
  setting: "setting";
11353
11434
  }>>;
11354
11435
  }, z$1.core.$strip>;
11436
+ serverId: z$1.ZodString;
11355
11437
  serverUrl: z$1.ZodString;
11356
11438
  voiceTranscriptionEnabled: z$1.ZodBoolean;
11357
11439
  }, z$1.core.$strip>;
@@ -14598,6 +14680,7 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
14598
14680
  starting: "starting";
14599
14681
  stopping: "stopping";
14600
14682
  }>;
14683
+ statusChangedAt: z$1.ZodNumber;
14601
14684
  title: z$1.ZodNullable<z$1.ZodString>;
14602
14685
  titleFallback: z$1.ZodNullable<z$1.ZodString>;
14603
14686
  updatedAt: z$1.ZodNumber;
@@ -14703,6 +14786,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14703
14786
  starting: "starting";
14704
14787
  stopping: "stopping";
14705
14788
  }>;
14789
+ statusChangedAt: z$1.ZodNumber;
14706
14790
  title: z$1.ZodNullable<z$1.ZodString>;
14707
14791
  titleFallback: z$1.ZodNullable<z$1.ZodString>;
14708
14792
  updatedAt: z$1.ZodNumber;
@@ -14800,6 +14884,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14800
14884
  starting: "starting";
14801
14885
  stopping: "stopping";
14802
14886
  }>;
14887
+ statusChangedAt: z$1.ZodNumber;
14803
14888
  title: z$1.ZodNullable<z$1.ZodString>;
14804
14889
  titleFallback: z$1.ZodNullable<z$1.ZodString>;
14805
14890
  updatedAt: z$1.ZodNumber;
@@ -14919,6 +15004,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14919
15004
  createdAt: z$1.ZodNumber;
14920
15005
  deletedAt: z$1.ZodNullable<z$1.ZodNumber>;
14921
15006
  environment: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
15007
+ additionalPaths: z$1.ZodArray<z$1.ZodString>;
14922
15008
  baseBranch: z$1.ZodNullable<z$1.ZodString>;
14923
15009
  branchName: z$1.ZodNullable<z$1.ZodString>;
14924
15010
  createdAt: z$1.ZodNumber;
@@ -14936,7 +15022,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14936
15022
  type: z$1.ZodLiteral<"new">;
14937
15023
  }, z$1.core.$strip>], "type">;
14938
15024
  }, z$1.core.$strip>>;
14939
- 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}`>]>>;
14940
15026
  hostId: z$1.ZodString;
14941
15027
  hostLifecycle: z$1.ZodEnum<{
14942
15028
  "cleanup-failed": "cleanup-failed";
@@ -15024,6 +15110,16 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
15024
15110
  full: "full";
15025
15111
  }>;
15026
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>>;
15027
15123
  status: z$1.ZodEnum<{
15028
15124
  connected: "connected";
15029
15125
  disconnected: "disconnected";
@@ -17961,6 +18057,7 @@ declare const threadConversationOutlineResponseSchema: z$1.ZodObject<{
17961
18057
  imageCount: z$1.ZodNumber;
17962
18058
  }, z$1.core.$strict>>;
17963
18059
  id: z$1.ZodString;
18060
+ messageSeq: z$1.ZodNumber;
17964
18061
  preview: z$1.ZodString;
17965
18062
  role: z$1.ZodEnum<{
17966
18063
  assistant: "assistant";
@@ -17995,6 +18092,16 @@ declare const threadStoragePathListResponseSchema: z$1.ZodObject<{
17995
18092
  }, z$1.core.$strip>;
17996
18093
  type ThreadStoragePathListResponse = z$1.infer<typeof threadStoragePathListResponseSchema>;
17997
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
+
17998
18105
  declare const desktopBrowserHostRequestSchema: z$1.ZodObject<{
17999
18106
  hostId: z$1.ZodString;
18000
18107
  }, z$1.core.$strict>;
@@ -18715,11 +18822,17 @@ interface EnvironmentCreateBaseArgs {
18715
18822
  }
18716
18823
  /**
18717
18824
  * `hold: "user"` keeps the environment until the user deletes it and lets
18718
- * 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.
18719
18829
  */
18720
- type EnvironmentCreateArgs = EnvironmentCreateBaseArgs & {
18830
+ type EnvironmentCreateArgs = EnvironmentCreateBaseArgs & ({
18721
18831
  hold: "user";
18722
- };
18832
+ } | {
18833
+ hold: "plugin";
18834
+ pluginId: string;
18835
+ });
18723
18836
  type EnvironmentCreateResult = Environment;
18724
18837
  interface EnvironmentDeleteArgs {
18725
18838
  environmentId: string;
@@ -19080,6 +19193,25 @@ interface ProjectSourceDeleteArgs {
19080
19193
  projectId: string;
19081
19194
  sourceId: string;
19082
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
+ }
19083
19215
  type ProjectBranchesResult = ProjectBranchesResponse;
19084
19216
  interface ProjectAttachmentReadResult {
19085
19217
  bytes: Uint8Array;
@@ -19108,8 +19240,15 @@ type ProjectSourceAddResult = ProjectSource;
19108
19240
  type ProjectSourceDeleteResult = OperationResponse;
19109
19241
  type ProjectSourceUpdateResult = ProjectSource;
19110
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
+ }
19111
19249
  interface ProjectSourcesArea {
19112
19250
  add(args: ProjectSourceAddArgs): Promise<ProjectSourceAddResult>;
19251
+ experimental_folders: ProjectSourceFoldersArea;
19113
19252
  delete(args: ProjectSourceDeleteArgs): Promise<ProjectSourceDeleteResult>;
19114
19253
  update(args: ProjectSourceUpdateArgs): Promise<ProjectSourceUpdateResult>;
19115
19254
  }
@@ -19910,6 +20049,7 @@ type ThreadCompactResult = OperationResponse;
19910
20049
  type ThreadBannerActionResult = OperationResponse;
19911
20050
  type ThreadUnarchiveResult = OperationResponse;
19912
20051
  type ThreadArchiveAllResult = ThreadArchiveAllResponse;
20052
+ type ThreadImportResult = ThreadImportResponse;
19913
20053
  type ThreadReadStateResult = ThreadResponse;
19914
20054
  type ThreadRestoreEnvironmentResult = ThreadResponse;
19915
20055
  type ThreadPinOrderResult = ThreadListResponse;
@@ -20013,6 +20153,10 @@ interface ThreadActionArgs {
20013
20153
  signal?: AbortSignal;
20014
20154
  threadId: string;
20015
20155
  }
20156
+ interface ThreadImportArgs {
20157
+ file: ArrayBuffer | Blob | Uint8Array;
20158
+ signal?: AbortSignal;
20159
+ }
20016
20160
  interface ThreadStatusArgs extends ThreadActionArgs {
20017
20161
  signal?: AbortSignal;
20018
20162
  }
@@ -20256,6 +20400,21 @@ interface ThreadsArea {
20256
20400
  * on failure. Experimental: see docs/api_to_audit.md.
20257
20401
  */
20258
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>;
20259
20418
  updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
20260
20419
  queue: ThreadQueueArea;
20261
20420
  interactions: ThreadInteractionsArea;
@@ -20552,6 +20711,20 @@ interface PluginEnvironmentProviderSteps {
20552
20711
  * Without a call, core runs setup after create returns.
20553
20712
  */
20554
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>;
20555
20728
  }
20556
20729
  interface PluginEnvironmentProviderCreateContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> extends PluginEnvironmentProviderValidateContext<R, S>, PluginEnvironmentProviderSteps {
20557
20730
  environment: PluginEnvironmentProviderEnvironment;
@@ -20574,6 +20747,14 @@ type PluginEnvironmentProviderCreateResult = {
20574
20747
  ownsPath: boolean;
20575
20748
  /** Ref the workspace's changes are compared against. Null clears the value recorded on a reused environment; omit to keep it. */
20576
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[];
20577
20758
  resource?: JsonValue$2;
20578
20759
  } | {
20579
20760
  status: "failed";
@@ -21223,10 +21404,20 @@ interface ServerAccessGrant {
21223
21404
  serverUrl: string;
21224
21405
  headers?: Record<string, string>;
21225
21406
  }
21407
+ type ServerAccessRouteKind = "custom" | "local-network" | "private-overlay" | "relay";
21226
21408
  interface ServerAccessProviderDeclaration {
21227
21409
  id: string;
21228
21410
  displayName: string;
21229
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;
21230
21421
  availability(): (PluginMachineProviderAvailability & {
21231
21422
  serverUrl?: string;
21232
21423
  }) | Promise<PluginMachineProviderAvailability & {
@@ -21459,19 +21650,50 @@ interface MessageDispatchHookContext {
21459
21650
  * derive from this map — and so does the server's hook registry — so a
21460
21651
  * half-added hook does not compile.
21461
21652
  *
21462
- * One hook today: `message.dispatch`, THE admission checkpoint, run identically
21463
- * for a thread's first message, a follow-up, a steer, a retry, and every
21464
- * re-attempt a drain makes. It replaced the earlier `thread.create` +
21465
- * `turn.submit` pair, whose split was an accident of where the code happened to
21466
- * branch rather than a difference a plugin needed to see — the attempt's own
21467
- * `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.
21468
21662
  */
21469
21663
  interface PluginHookSignatures {
21470
21664
  "message.dispatch": {
21471
21665
  context: MessageDispatchHookContext;
21472
21666
  decision: MessageDispatchHookDecision;
21473
21667
  };
21668
+ "thread.delete_finalize": {
21669
+ context: ThreadDeleteFinalizeHookContext;
21670
+ decision: ThreadDeleteFinalizeHookDecision;
21671
+ };
21474
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
+ };
21475
21697
  type PluginHookName = keyof PluginHookSignatures;
21476
21698
  type PluginHookHandler<K extends PluginHookName> = (context: PluginHookSignatures[K]["context"]) => PluginHookSignatures[K]["decision"] | Promise<PluginHookSignatures[K]["decision"]>;
21477
21699
  interface PluginHooks {
@@ -21485,6 +21707,9 @@ interface PluginHooks {
21485
21707
  * pre-commit and post-commit hooks, and the reason the two live in separate
21486
21708
  * namespaces rather than behind one `on`.
21487
21709
  *
21710
+ * The rules below describe `message.dispatch`; `thread.delete_finalize`
21711
+ * has its own, on {@link ThreadDeleteFinalizeHookDecision}.
21712
+ *
21488
21713
  * Handlers for a hook run as a deterministic chain in plugin install order,
21489
21714
  * a `reject` short-circuits the pass, and `wait` decisions are COLLECTED
21490
21715
  * across the whole pass rather than short-circuiting. The attempt proceeds
@@ -21535,6 +21760,9 @@ interface PluginHooks {
21535
21760
  * rows, exactly as the due sweep's do. Awaiting completion would also mean
21536
21761
  * awaiting a full hook pass from inside whatever called this, which for a
21537
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.
21538
21766
  */
21539
21767
  recheck(hook: PluginHookName): Promise<void>;
21540
21768
  }
@@ -22417,6 +22645,14 @@ interface PluginMentionSearchContext {
22417
22645
  query: string;
22418
22646
  projectId: string | null;
22419
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;
22420
22656
  }
22421
22657
  /** One row a mention provider returns from `search`. `id` is the provider's
22422
22658
  * own item id — the host namespaces it before it reaches the wire. */
@@ -22458,7 +22694,11 @@ interface PluginMentionProviderRegistration {
22458
22694
  * Runs server-side as the user types after one of this provider's triggers
22459
22695
  * in the composer. Each call is time-boxed (2s) and failure-isolated: a slow
22460
22696
  * or throwing provider contributes an empty list — it can never break the
22461
- * 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.
22462
22702
  */
22463
22703
  search(ctx: PluginMentionSearchContext): PluginMentionItem[] | Promise<PluginMentionItem[]>;
22464
22704
  /**
@@ -22661,9 +22901,17 @@ interface PluginStatusApi {
22661
22901
  * dashes) or the request fails with HTTP 400. A `pluginMetadata` seed or a
22662
22902
  * `set` that is over 256 KiB on its own rejects before any request is sent. A
22663
22903
  * patch whose merged namespace would exceed 256 KiB fails with HTTP 413 and
22664
- * leaves the namespace unchanged.
22904
+ * leaves the namespace unchanged. `environments.experimental_create` with
22905
+ * `hold: "plugin"` always holds the environment for the calling plugin.
22665
22906
  */
22666
- 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
+ };
22667
22915
  threads: Omit<BbSdk["threads"], "experimental_listPluginMetadata" | "getPluginMetadata" | "updatePluginMetadata"> & {
22668
22916
  getPluginMetadata(args: Omit<ThreadPluginMetadataArgs, "pluginId"> & {
22669
22917
  pluginId?: string;
@@ -23220,6 +23468,15 @@ interface PluginThreadListProps {
23220
23468
  * Call after the user opens a thread. It closes the mobile sidebar drawer.
23221
23469
  */
23222
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;
23223
23480
  }
23224
23481
  /** JavaScript world a Browser page expression runs in. */
23225
23482
  type ExperimentalPluginBrowserPageWorld = "isolated" | "main";
@@ -23850,8 +24107,9 @@ interface PluginPendingInteractionRegistration {
23850
24107
  */
23851
24108
  interface PluginSidebarFooterActionContext extends ExperimentalPluginActionContext {
23852
24109
  /**
23853
- * Navigate to this plugin's detail page in Tools, where declarative settings
23854
- * 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()`.
23855
24113
  */
23856
24114
  openSettings(): void;
23857
24115
  }
@@ -23879,7 +24137,7 @@ interface PluginSidebarFooterActionRegistration {
23879
24137
  * `panel` act on the focused surface, as for commands.
23880
24138
  */
23881
24139
  interface ExperimentalSidebarFooterActionContext extends ExperimentalPluginActionContext {
23882
- /** Navigate to this plugin's detail page in Tools. */
24140
+ /** Open this plugin's settings page; the same as `navigate.experimental_toSettings()`. */
23883
24141
  openPluginDetails(): void;
23884
24142
  }
23885
24143
  /** Fields shared by both experimental sidebar-footer item behaviors. */
@@ -24071,6 +24329,13 @@ interface PluginSidebarThread {
24071
24329
  updatedAt: number;
24072
24330
  lastReadAt: number | null;
24073
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;
24074
24339
  }
24075
24340
  /** One project in the sidebar's live view. */
24076
24341
  interface PluginSidebarProject {
@@ -24604,8 +24869,10 @@ type ExperimentalThreadHeaderTitleProps = ExperimentalThreadHeaderRowProps;
24604
24869
  * right-panel toggle and the window drag region. While the user renames the
24605
24870
  * thread, bb shows its rename field instead. Double-click does not start a
24606
24871
  * rename on a plugin title, and dragging a split pane starts only from parts
24607
- * that are not links, buttons or inputs. When several plugins register one,
24608
- * 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.
24609
24876
  * The window title stays the thread title.
24610
24877
  */
24611
24878
  interface ExperimentalThreadHeaderTitleRegistration {
@@ -25140,15 +25407,11 @@ interface PluginSidebarThreadSplit {
25140
25407
  /**
25141
25408
  * Replace the sidebar's thread list with a plugin component.
25142
25409
  *
25143
- * Unlike every other slot, this one is EXCLUSIVE: two lists cannot share one
25144
- * scroll area. bb ships its own list as the bundled Thread list plugin
25145
- * (`thread-list/thread-list`). Registering activates the replacement while the
25146
- * plugin is enabled: by default the first registered list other than the
25147
- * bundled one, in deterministic slot order, is active, falling back to the
25148
- * bundled list; removing it reveals the next. The user can pin a specific
25149
- * provider, including the bundled one, under Settings → Appearance → Sidebar.
25150
- * A missing pinned provider or a crashing list shows a placeholder rather than
25151
- * 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.
25152
25415
  *
25153
25416
  * The plugin gets the scrolling list and nothing else. The New-thread button,
25154
25417
  * the search action, the plugin nav rows, and the footer stay host-rendered in
@@ -25167,13 +25430,11 @@ interface PluginThreadListRegistration {
25167
25430
  /**
25168
25431
  * Draw the sidebar's navigation: New thread, Plugins, Skills, Automations,
25169
25432
  * plugin panels, and More, plus optional controls in the sidebar header.
25170
- * Exclusive: bb's bundled Navigation plugin registers Rail
25171
- * (`navigation/rail`, the default) and Top list (`navigation/top-list`)
25172
- * through this slot. By default the first provider from another plugin is
25173
- * active, falling back to Rail; the user can pin one provider under Settings →
25174
- * Appearance → Navigation. A pinned provider that is disabled or removed falls
25175
- * back the same way, and a crashing provider is replaced by the Navigation
25176
- * 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.
25177
25438
  *
25178
25439
  * `placement` decides the layout around the component, so bb can lay out the
25179
25440
  * sidebar before the plugin loads:
@@ -25209,10 +25470,10 @@ interface ExperimentalSidebarNavigationRegistration {
25209
25470
  headerComponent?: ComponentType<ExperimentalSidebarHeaderProps>;
25210
25471
  }
25211
25472
  /**
25212
- * Register this plugin as a viewer/editor for file extensions. By default,
25213
- * matching files render the first applicable opener in deterministic slot
25214
- * order. The user can pin BB's preview or a specific opener per extension
25215
- * 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
25216
25477
  * choice for one open, and so can the plugin by passing the opener's id as
25217
25478
  * `experimental_openFilePreview`'s `opener`. A plugin can also use its own
25218
25479
  * setting and render `Original` conditionally. Applies to working-tree, host,
@@ -25236,11 +25497,9 @@ interface PluginFileOpenerRegistration {
25236
25497
  /**
25237
25498
  * Replace BB's source-code renderer everywhere it renders supplied source
25238
25499
  * text — the native file preview and every plugin that calls
25239
- * `experimental_SourceCode`. Like `experimental_threadList` this slot is
25240
- * **exclusive**: one renderer at a time. Registering activates it while the
25241
- * plugin is enabled; if several are registered, one from a plugin the user
25242
- * installed wins over one bundled with bb, then the first in deterministic
25243
- * 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
25244
25503
  * renderer, and a replacement can render `Original` to delegate
25245
25504
  * per call (behind its own setting, by language, by size — whatever it needs).
25246
25505
  */
@@ -25256,9 +25515,10 @@ interface PluginSourceCodeRendererRegistration {
25256
25515
  /**
25257
25516
  * Replace BB's diff renderer everywhere it renders supplied diff content — the
25258
25517
  * timeline file diffs, the environment diff panel's text bodies, and every
25259
- * plugin that calls `experimental_Diff`. Exclusive, with the same activation,
25260
- * fallback, and `Original` delegation rules as
25261
- * {@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`.
25262
25522
  */
25263
25523
  interface PluginDiffRendererRegistration {
25264
25524
  /** Unique within the plugin; letters, digits, `-`, `_`. */
@@ -25283,11 +25543,11 @@ interface ExperimentalComposerProps {
25283
25543
  * composer, the New thread screen, queued and sent message editors). The
25284
25544
  * banners, approval cards and queued messages above the box stay bb's.
25285
25545
  *
25286
- * Exclusive, like `experimental_threadList`: a composer from a plugin the
25287
- * user installed wins over the bundled one, then the first in slot order.
25288
- * Users choose under Settings → Appearance → Composer (`composer.provider`).
25289
- * bb ships its own composer as the bundled Composer plugin; with no composer
25290
- * 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.
25291
25551
  *
25292
25552
  * The host keeps the draft, uploads, history, pickers and submission; the
25293
25553
  * component draws over them with `experimental_useComposerRenderer()`.
@@ -25857,6 +26117,11 @@ interface ExperimentalThreadTitleTextProps {
25857
26117
  * Register a leaf message directive rendered inside assistant (and nested
25858
26118
  * agent) message Markdown. `id` is the directive name: `inline-vis` matches
25859
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`.
25860
26125
  */
25861
26126
  interface PluginMessageDirectiveRegistration {
25862
26127
  /**
@@ -25871,8 +26136,9 @@ interface PluginMessageDirectiveRegistration {
25871
26136
  * include `"ui"`. Fences elsewhere (user messages, file previews, plugin
25872
26137
  * Markdown) keep BB's code block.
25873
26138
  *
25874
- * BB's code block also renders when two plugins claim the same language (BB
25875
- * 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
25876
26142
  * whose component throws. A throw affects that fence only, and BB tries the
25877
26143
  * component again when the fence's `code` or `status` changes.
25878
26144
  *
@@ -25911,6 +26177,12 @@ interface ThreadChatMessageReference {
25911
26177
  }
25912
26178
  /** Stable identity and creation time of one rendered conversation message. */
25913
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;
25914
26186
  /** Unix time in milliseconds, supplied by BB's timeline. */
25915
26187
  createdAt: number;
25916
26188
  /** The containing turn, or null for a message outside a turn. */
@@ -26088,8 +26360,22 @@ interface ExperimentalShortcutKeyEvent {
26088
26360
  * `run`, and the host owns matching, ordering, and recency.
26089
26361
  */
26090
26362
  interface PluginCommandRegistration {
26091
- /** 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
+ */
26092
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";
26093
26379
  /** Unique within the plugin; letters, digits, `-`, `_`. */
26094
26380
  id: string;
26095
26381
  /** The row's label, e.g. "Linear: open issue for this thread". */
@@ -26629,10 +26915,18 @@ type PluginRealtimeConnectionState = "connected" | "connecting" | "reconnecting"
26629
26915
  type PluginComposerScope = {
26630
26916
  kind: "thread";
26631
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;
26632
26922
  } | {
26633
26923
  kind: "queued-message";
26634
26924
  threadId: string;
26635
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;
26636
26930
  } | {
26637
26931
  kind: "new-thread";
26638
26932
  /** Root compose's effective selected project; null only while unresolved. */
@@ -26922,8 +27216,9 @@ interface PluginComposerApi {
26922
27216
  * Insert text and mentions. See {@link ComposerInsertOptions} for placement.
26923
27217
  * Mentions read from `draft` are recreated exactly; the calling plugin's
26924
27218
  * own `{ provider, id, label }` resolves through its mention provider.
26925
- * Throws for another plugin's mention without `kind`, and for
26926
- * `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.
26927
27222
  */
26928
27223
  insert(parts: ComposerInsertPart | readonly ComposerInsertPart[], options?: ComposerInsertOptions): void;
26929
27224
  /**
@@ -27011,7 +27306,8 @@ interface PluginComposerApi {
27011
27306
  * has, so a missing key means "no such picker here" and a value that
27012
27307
  * differs from the one passed was reconciled (a reasoning level the model
27013
27308
  * does not support, a service tier the model does not offer, a permission
27014
- * 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
27015
27311
  * ignored together with the model and reasoning level meant for it, so the
27016
27312
  * stored provider preference never names something the picker could not
27017
27313
  * have chosen. `environment` is absent while the composer
@@ -27377,8 +27673,8 @@ interface NewThreadComposerProps {
27377
27673
  * - A `host` environment whose host no longer exists (or whose project has
27378
27674
  * no source on it) falls back to the composer's default host, exactly as
27379
27675
  * the primary compose surface would.
27380
- * - A `reuse` environment whose worktree no longer has unarchived threads
27381
- * 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.
27382
27678
  * - An `unmanaged` workspace's `path` has no composer control; the seeded
27383
27679
  * selection submits `path: null` (the host's configured checkout). The
27384
27680
  * composer itself never produces a non-null `path`, so real round trips
@@ -27390,13 +27686,22 @@ interface NewThreadComposerProps {
27390
27686
  */
27391
27687
  defaultEnvironment?: CreateThreadEnvironmentArgs;
27392
27688
  /**
27393
- * Seeds the draft, only while the draft is still empty. Serialized
27394
- * `@thread:<id>`, `@project:<id>`, and `@section:<id>` tokens become mention
27395
- * pills with host-resolved titles/names. Missing projects/sections use their
27396
- * IDs; unavailable generated thread IDs use "Unavailable thread" ("Thread"
27397
- * if lookup fails). Other unknown thread IDs use the ID as their label.
27398
- */
27399
- 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[];
27400
27705
  placeholder?: string;
27401
27706
  /**
27402
27707
  * "contained" (default) fills and scrolls inside a bounded parent;
@@ -27496,7 +27801,7 @@ interface ExperimentalFilePreviewOptions extends ExperimentalFileOpenOptions {
27496
27801
  /**
27497
27802
  * Id of one of the calling plugin's `fileOpener` registrations to show the
27498
27803
  * file with for this open, as the file tab's "Open with" menu does. Omit it
27499
- * 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
27500
27805
  * that is not registered falls back to BB's preview.
27501
27806
  */
27502
27807
  opener?: string;
@@ -27655,15 +27960,26 @@ interface BbContext {
27655
27960
  */
27656
27961
  experimental_pluginPanel: ExperimentalPluginPanelPage | null;
27657
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
+ }
27658
27969
  interface BbNavigate {
27659
27970
  /**
27660
27971
  * Open a thread. `split: true` applies bb's split placement rules (a right
27661
27972
  * split by default, focus when already open, replace at the pane cap) and
27662
27973
  * falls back to plain navigation where splits are off. Opening also expands
27663
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.
27664
27979
  */
27665
27980
  toThread(threadId: string, options?: {
27666
27981
  split?: boolean;
27982
+ messageSeq?: number;
27667
27983
  }): void;
27668
27984
  toProject(projectId: string): void;
27669
27985
  /**
@@ -27679,21 +27995,28 @@ interface BbNavigate {
27679
27995
  }): void;
27680
27996
  /**
27681
27997
  * Navigate to the root compose surface (the new-thread screen). Pass
27682
- * `initialPrompt` to seed the composer draft when it is empty (serialized
27683
- * 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
27684
28002
  * `focusPrompt` to focus the composer on arrival — the pairing behind
27685
28003
  * "Create via chat" style entry points that drop the user into chat with a
27686
28004
  * prefilled prompt. `projectId` makes that project the composer's
27687
28005
  * selection; `placement` files the new thread in a section and pin state.
27688
28006
  * Without `placement`, the screen keeps the placement it already shows,
27689
28007
  * unless `environmentId` or `hostId` is set, which resets it to unpinned
27690
- * 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
27691
28010
  * `hostId` picks a machine for a new one (`environmentId` wins when both
27692
- * 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.
27693
28016
  */
27694
28017
  toCompose(options?: {
27695
28018
  projectId?: string;
27696
- initialPrompt?: string;
28019
+ initialPrompt?: string | readonly ComposerInsertPart[];
27697
28020
  focusPrompt?: boolean;
27698
28021
  placement?: {
27699
28022
  sectionId: string | null;
@@ -27701,6 +28024,7 @@ interface BbNavigate {
27701
28024
  };
27702
28025
  environmentId?: string;
27703
28026
  hostId?: string;
28027
+ split?: boolean;
27704
28028
  }): void;
27705
28029
  /**
27706
28030
  * Open an HTTP(S) URL using this client's BB browser preference, or request
@@ -27728,6 +28052,30 @@ interface BbNavigate {
27728
28052
  experimental_openTerminal(options: {
27729
28053
  terminalId: string;
27730
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;
27731
28079
  }
27732
28080
  /**
27733
28081
  * BB live reads are fresh for two seconds, with no polling when freshness expires.
@@ -28006,8 +28354,9 @@ interface PluginSdkApp {
28006
28354
  * objects keep their identity across updates while the underlying entry is
28007
28355
  * unchanged, so a memoized row re-renders only when its own thread changed;
28008
28356
  * the array itself is new on every update. Window your rows (render only
28009
- * what is on screen) as the built-in sidebar does — a list that mounts one
28010
- * 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.
28011
28360
  * Experimental: see docs/api_to_audit.md.
28012
28361
  */
28013
28362
  experimental_useSidebarThreads(options?: {
@@ -28255,6 +28604,27 @@ interface PluginSdkApp {
28255
28604
  * failure feedback. Experimental: see docs/api_to_audit.md.
28256
28605
  */
28257
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;
28258
28628
  /**
28259
28629
  * Saves a file through bb's own download path, the one bb's file preview
28260
28630
  * and attachment downloads use. Browsers and bb Desktop start an ordinary
@@ -28445,6 +28815,16 @@ interface PluginSdkApp {
28445
28815
  experimental_VoiceRecordingBar: ComponentType<ExperimentalVoiceRecordingBarProps>;
28446
28816
  experimental_FailedVoiceRecordings: ComponentType<ExperimentalFailedVoiceRecordingsProps>;
28447
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;
28448
28828
  /**
28449
28829
  * Whether `event` presses `key` (a `PluginCommandShortcut` key such as
28450
28830
  * `"k"`, `"["` or `"Enter"`), compared the way bb compares keys for its own
@@ -28745,4 +29125,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
28745
29125
  declare function sliceUtf16Head(value: string, maxChars: number): string;
28746
29126
 
28747
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 };
28748
- 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 };