@get-bb/plugin-sdk 0.6.33 → 0.6.37

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.
@@ -110,7 +110,6 @@ declare const appSettingsSchema: z$1.ZodObject<{
110
110
  flat: "flat";
111
111
  }>>;
112
112
  providerOrder: z$1.ZodArray<z$1.ZodString>;
113
- setupChecklistVisible: z$1.ZodBoolean;
114
113
  showDiagnosticEvents: z$1.ZodBoolean;
115
114
  showGitChanges: z$1.ZodBoolean;
116
115
  showKeyboardHints: z$1.ZodBoolean;
@@ -134,7 +133,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
134
133
  flat: "flat";
135
134
  }>>;
136
135
  providerOrder: z$1.ZodArray<z$1.ZodString>;
137
- setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
138
136
  showDiagnosticEvents: z$1.ZodBoolean;
139
137
  showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
140
138
  showKeyboardHints: z$1.ZodBoolean;
@@ -157,7 +155,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
157
155
  flat: "flat";
158
156
  }>>;
159
157
  providerOrder: z$1.ZodArray<z$1.ZodString>;
160
- setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
161
158
  showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
162
159
  showKeyboardHints: z$1.ZodBoolean;
163
160
  showUnhandledProviderEvents: z$1.ZodBoolean;
@@ -167,7 +164,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
167
164
  }, z$1.core.$strict>]>;
168
165
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
169
166
 
170
- declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.threadListProvider", "infoPanel.collapsedSections"];
167
+ 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.threadListProvider", "infoPanel.collapsedSections"];
171
168
  type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
172
169
  interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
173
170
  schema: Schema;
@@ -196,15 +193,6 @@ declare const uiPreferenceDefinitions: {
196
193
  readonly "sidebar.manualSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
197
194
  readonly "sidebar.machineSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
198
195
  readonly "sidebar.hiddenGroups": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
199
- readonly "sidebar.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodEnum<{
200
- pinned: "pinned";
201
- threads: "threads";
202
- }>>>;
203
- readonly "sidebar.collapsedProjects": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
204
- readonly "sidebar.collapsedThreads": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
205
- readonly "sidebar.collapsedEnvironments": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
206
- readonly "sidebar.collapsedThreadSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
207
- readonly "sidebar.collapsedMachines": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
208
196
  readonly "sidebar.footerOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
209
197
  readonly "sidebar.hiddenFooterItems": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
210
198
  readonly "sidebar.pluginPanelOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
@@ -2928,6 +2916,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2928
2916
  kind: z$1.ZodLiteral<"plugin">;
2929
2917
  label: z$1.ZodString;
2930
2918
  pluginId: z$1.ZodString;
2919
+ }, z$1.core.$strip>, z$1.ZodObject<{
2920
+ kind: z$1.ZodLiteral<"attachment">;
2921
+ label: z$1.ZodString;
2922
+ path: z$1.ZodString;
2931
2923
  }, z$1.core.$strip>], "kind">, unknown>;
2932
2924
  start: z$1.ZodNumber;
2933
2925
  }, z$1.core.$strip>>>;
@@ -3014,6 +3006,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3014
3006
  kind: z$1.ZodLiteral<"plugin">;
3015
3007
  label: z$1.ZodString;
3016
3008
  pluginId: z$1.ZodString;
3009
+ }, z$1.core.$strip>, z$1.ZodObject<{
3010
+ kind: z$1.ZodLiteral<"attachment">;
3011
+ label: z$1.ZodString;
3012
+ path: z$1.ZodString;
3017
3013
  }, z$1.core.$strip>], "kind">, unknown>;
3018
3014
  start: z$1.ZodNumber;
3019
3015
  }, z$1.core.$strip>>>;
@@ -3992,6 +3988,10 @@ declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3992
3988
  kind: z$1.ZodLiteral<"plugin">;
3993
3989
  label: z$1.ZodString;
3994
3990
  pluginId: z$1.ZodString;
3991
+ }, z$1.core.$strip>, z$1.ZodObject<{
3992
+ kind: z$1.ZodLiteral<"attachment">;
3993
+ label: z$1.ZodString;
3994
+ path: z$1.ZodString;
3995
3995
  }, z$1.core.$strip>], "kind">, unknown>;
3996
3996
  start: z$1.ZodNumber;
3997
3997
  }, z$1.core.$strip>>>;
@@ -4298,6 +4298,10 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4298
4298
  kind: z$1.ZodLiteral<"plugin">;
4299
4299
  label: z$1.ZodString;
4300
4300
  pluginId: z$1.ZodString;
4301
+ }, z$1.core.$strip>, z$1.ZodObject<{
4302
+ kind: z$1.ZodLiteral<"attachment">;
4303
+ label: z$1.ZodString;
4304
+ path: z$1.ZodString;
4301
4305
  }, z$1.core.$strip>], "kind">, unknown>;
4302
4306
  start: z$1.ZodNumber;
4303
4307
  }, z$1.core.$strip>>>;
@@ -4720,6 +4724,10 @@ declare const promptHistoryResponseSchema: z$1.ZodArray<z$1.ZodObject<{
4720
4724
  kind: z$1.ZodLiteral<"plugin">;
4721
4725
  label: z$1.ZodString;
4722
4726
  pluginId: z$1.ZodString;
4727
+ }, z$1.core.$strip>, z$1.ZodObject<{
4728
+ kind: z$1.ZodLiteral<"attachment">;
4729
+ label: z$1.ZodString;
4730
+ path: z$1.ZodString;
4723
4731
  }, z$1.core.$strip>], "kind">, unknown>;
4724
4732
  start: z$1.ZodNumber;
4725
4733
  }, z$1.core.$strip>>>;
@@ -5273,6 +5281,10 @@ declare const promptHistoryListResponseSchema: z$1.ZodObject<{
5273
5281
  kind: z$1.ZodLiteral<"plugin">;
5274
5282
  label: z$1.ZodString;
5275
5283
  pluginId: z$1.ZodString;
5284
+ }, z$1.core.$strip>, z$1.ZodObject<{
5285
+ kind: z$1.ZodLiteral<"attachment">;
5286
+ label: z$1.ZodString;
5287
+ path: z$1.ZodString;
5276
5288
  }, z$1.core.$strip>], "kind">, unknown>;
5277
5289
  start: z$1.ZodNumber;
5278
5290
  }, z$1.core.$strip>>>;
@@ -6418,6 +6430,10 @@ declare const hostDaemonCommandRegistry: {
6418
6430
  kind: z$1.ZodLiteral<"plugin">;
6419
6431
  label: z$1.ZodString;
6420
6432
  pluginId: z$1.ZodString;
6433
+ }, z$1.core.$strip>, z$1.ZodObject<{
6434
+ kind: z$1.ZodLiteral<"attachment">;
6435
+ label: z$1.ZodString;
6436
+ path: z$1.ZodString;
6421
6437
  }, z$1.core.$strip>], "kind">, unknown>;
6422
6438
  start: z$1.ZodNumber;
6423
6439
  }, z$1.core.$strip>>>;
@@ -6504,6 +6520,10 @@ declare const hostDaemonCommandRegistry: {
6504
6520
  kind: z$1.ZodLiteral<"plugin">;
6505
6521
  label: z$1.ZodString;
6506
6522
  pluginId: z$1.ZodString;
6523
+ }, z$1.core.$strip>, z$1.ZodObject<{
6524
+ kind: z$1.ZodLiteral<"attachment">;
6525
+ label: z$1.ZodString;
6526
+ path: z$1.ZodString;
6507
6527
  }, z$1.core.$strip>], "kind">, unknown>;
6508
6528
  start: z$1.ZodNumber;
6509
6529
  }, z$1.core.$strip>>>;
@@ -6672,6 +6692,10 @@ declare const hostDaemonCommandRegistry: {
6672
6692
  kind: z$1.ZodLiteral<"plugin">;
6673
6693
  label: z$1.ZodString;
6674
6694
  pluginId: z$1.ZodString;
6695
+ }, z$1.core.$strip>, z$1.ZodObject<{
6696
+ kind: z$1.ZodLiteral<"attachment">;
6697
+ label: z$1.ZodString;
6698
+ path: z$1.ZodString;
6675
6699
  }, z$1.core.$strip>], "kind">, unknown>;
6676
6700
  start: z$1.ZodNumber;
6677
6701
  }, z$1.core.$strip>>>;
@@ -6758,6 +6782,10 @@ declare const hostDaemonCommandRegistry: {
6758
6782
  kind: z$1.ZodLiteral<"plugin">;
6759
6783
  label: z$1.ZodString;
6760
6784
  pluginId: z$1.ZodString;
6785
+ }, z$1.core.$strip>, z$1.ZodObject<{
6786
+ kind: z$1.ZodLiteral<"attachment">;
6787
+ label: z$1.ZodString;
6788
+ path: z$1.ZodString;
6761
6789
  }, z$1.core.$strip>], "kind">, unknown>;
6762
6790
  start: z$1.ZodNumber;
6763
6791
  }, z$1.core.$strip>>>;
@@ -6954,7 +6982,21 @@ declare const hostDaemonCommandRegistry: {
6954
6982
  }, z$1.core.$strip>], "mode">;
6955
6983
  threadId: z$1.ZodString;
6956
6984
  type: z$1.ZodLiteral<"turn.submit">;
6957
- }, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
6985
+ }, z$1.core.$strict>, z$1.ZodObject<{
6986
+ trace: z$1.ZodObject<{
6987
+ spans: z$1.ZodArray<z$1.ZodObject<{
6988
+ atMs: z$1.ZodNumber;
6989
+ name: z$1.ZodEnum<{
6990
+ "bridge.turnStarted": "bridge.turnStarted";
6991
+ "events.flushed": "events.flushed";
6992
+ "input.staged": "input.staged";
6993
+ "lanes.entered": "lanes.entered";
6994
+ "runtime.ready": "runtime.ready";
6995
+ "skills.staged": "skills.staged";
6996
+ }>;
6997
+ }, z$1.core.$strict>>;
6998
+ }, z$1.core.$strict>;
6999
+ }, z$1.core.$strip>, "settled", false>;
6958
7000
  "thread.stop": HostDaemonCommandDescriptor<"thread.stop", z$1.ZodObject<{
6959
7001
  environmentId: z$1.ZodString;
6960
7002
  intent: z$1.ZodEnum<{
@@ -7772,6 +7814,65 @@ declare const hostDaemonCommandRegistry: {
7772
7814
  }>;
7773
7815
  }, z$1.core.$strip>>;
7774
7816
  }, z$1.core.$strip>, "onlineRpc", true>;
7817
+ "host.read_workspace_agent_context": HostDaemonCommandDescriptor<"host.read_workspace_agent_context", z$1.ZodObject<{
7818
+ includeAgentInstructions: z$1.ZodBoolean;
7819
+ projectSkillRead: z$1.ZodObject<{
7820
+ excludeNames: z$1.ZodArray<z$1.ZodString>;
7821
+ limit: z$1.ZodNumber;
7822
+ maxContentBytes: z$1.ZodNumber;
7823
+ maxFileBytes: z$1.ZodNumber;
7824
+ }, z$1.core.$strict>;
7825
+ rootPath: z$1.ZodString;
7826
+ sharedSkillRoots: z$1.ZodObject<{
7827
+ project: z$1.ZodArray<z$1.ZodObject<{
7828
+ ancestors: z$1.ZodBoolean;
7829
+ namePrefix: z$1.ZodString;
7830
+ path: z$1.ZodString;
7831
+ recursive: z$1.ZodBoolean;
7832
+ skipIfManifest: z$1.ZodOptional<z$1.ZodString>;
7833
+ }, z$1.core.$strict>>;
7834
+ user: z$1.ZodArray<z$1.ZodObject<{
7835
+ ancestors: z$1.ZodBoolean;
7836
+ namePrefix: z$1.ZodString;
7837
+ path: z$1.ZodString;
7838
+ recursive: z$1.ZodBoolean;
7839
+ skipIfManifest: z$1.ZodOptional<z$1.ZodString>;
7840
+ }, z$1.core.$strict>>;
7841
+ }, z$1.core.$strict>;
7842
+ type: z$1.ZodLiteral<"host.read_workspace_agent_context">;
7843
+ }, z$1.core.$strict>, z$1.ZodObject<{
7844
+ agentInstructions: z$1.ZodNullable<z$1.ZodString>;
7845
+ projectSkills: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7846
+ directoryName: z$1.ZodString;
7847
+ kind: z$1.ZodLiteral<"budget-exceeded">;
7848
+ }, z$1.core.$strict>, z$1.ZodObject<{
7849
+ content: z$1.ZodString;
7850
+ directoryName: z$1.ZodString;
7851
+ kind: z$1.ZodLiteral<"file">;
7852
+ }, z$1.core.$strict>, z$1.ZodObject<{
7853
+ directoryName: z$1.ZodString;
7854
+ kind: z$1.ZodLiteral<"oversized">;
7855
+ sizeBytes: z$1.ZodNumber;
7856
+ }, z$1.core.$strict>], "kind">>;
7857
+ projectSkillsTruncated: z$1.ZodBoolean;
7858
+ sharedSkills: z$1.ZodArray<z$1.ZodObject<{
7859
+ description: z$1.ZodNullable<z$1.ZodString>;
7860
+ filePath: z$1.ZodString;
7861
+ id: z$1.ZodString;
7862
+ linked: z$1.ZodBoolean;
7863
+ name: z$1.ZodString;
7864
+ rootKind: z$1.ZodEnum<{
7865
+ "bb-builtin": "bb-builtin";
7866
+ "bb-data-dir": "bb-data-dir";
7867
+ "bb-project": "bb-project";
7868
+ "provider-project": "provider-project";
7869
+ "provider-user": "provider-user";
7870
+ "shared-project": "shared-project";
7871
+ "shared-user": "shared-user";
7872
+ plugin: "plugin";
7873
+ }>;
7874
+ }, z$1.core.$strip>>;
7875
+ }, z$1.core.$strict>, "onlineRpc", true>;
7775
7876
  "host.delete_skill": HostDaemonCommandDescriptor<"host.delete_skill", z$1.ZodObject<{
7776
7877
  cwd: z$1.ZodNullable<z$1.ZodString>;
7777
7878
  name: z$1.ZodString;
@@ -9905,6 +10006,7 @@ declare const pluginSettingsResponseSchema: z$1.ZodObject<{
9905
10006
  }, z$1.core.$strict>, z$1.ZodObject<{
9906
10007
  default: z$1.ZodOptional<z$1.ZodString>;
9907
10008
  description: z$1.ZodOptional<z$1.ZodString>;
10009
+ experimental_optionLabels: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
9908
10010
  label: z$1.ZodString;
9909
10011
  options: z$1.ZodArray<z$1.ZodString>;
9910
10012
  type: z$1.ZodLiteral<"select">;
@@ -10619,7 +10721,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10619
10721
  flat: "flat";
10620
10722
  }>>;
10621
10723
  providerOrder: z$1.ZodArray<z$1.ZodString>;
10622
- setupChecklistVisible: z$1.ZodBoolean;
10623
10724
  showDiagnosticEvents: z$1.ZodBoolean;
10624
10725
  showGitChanges: z$1.ZodBoolean;
10625
10726
  showKeyboardHints: z$1.ZodBoolean;
@@ -11399,6 +11500,11 @@ type TimelineRowBase = z$1.infer<typeof timelineRowBaseSchema>;
11399
11500
  declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11400
11501
  attachments: z$1.ZodNullable<z$1.ZodObject<{
11401
11502
  imageUrls: z$1.ZodArray<z$1.ZodString>;
11503
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
11504
+ name: z$1.ZodString;
11505
+ path: z$1.ZodString;
11506
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
11507
+ }, z$1.core.$strip>>;
11402
11508
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
11403
11509
  localFiles: z$1.ZodNumber;
11404
11510
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -11464,6 +11570,10 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11464
11570
  kind: z$1.ZodLiteral<"plugin">;
11465
11571
  label: z$1.ZodString;
11466
11572
  pluginId: z$1.ZodString;
11573
+ }, z$1.core.$strip>, z$1.ZodObject<{
11574
+ kind: z$1.ZodLiteral<"attachment">;
11575
+ label: z$1.ZodString;
11576
+ path: z$1.ZodString;
11467
11577
  }, z$1.core.$strip>], "kind">, unknown>;
11468
11578
  start: z$1.ZodNumber;
11469
11579
  }, z$1.core.$strip>>;
@@ -11548,6 +11658,11 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11548
11658
  }, z$1.core.$strip>, z$1.ZodObject<{
11549
11659
  attachments: z$1.ZodNullable<z$1.ZodObject<{
11550
11660
  imageUrls: z$1.ZodArray<z$1.ZodString>;
11661
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
11662
+ name: z$1.ZodString;
11663
+ path: z$1.ZodString;
11664
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
11665
+ }, z$1.core.$strip>>;
11551
11666
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
11552
11667
  localFiles: z$1.ZodNumber;
11553
11668
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -12678,6 +12793,10 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
12678
12793
  kind: z$1.ZodLiteral<"plugin">;
12679
12794
  label: z$1.ZodString;
12680
12795
  pluginId: z$1.ZodString;
12796
+ }, z$1.core.$strip>, z$1.ZodObject<{
12797
+ kind: z$1.ZodLiteral<"attachment">;
12798
+ label: z$1.ZodString;
12799
+ path: z$1.ZodString;
12681
12800
  }, z$1.core.$strip>], "kind">, unknown>;
12682
12801
  start: z$1.ZodNumber;
12683
12802
  }, z$1.core.$strip>>>;
@@ -12820,6 +12939,10 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
12820
12939
  kind: z$1.ZodLiteral<"plugin">;
12821
12940
  label: z$1.ZodString;
12822
12941
  pluginId: z$1.ZodString;
12942
+ }, z$1.core.$strip>, z$1.ZodObject<{
12943
+ kind: z$1.ZodLiteral<"attachment">;
12944
+ label: z$1.ZodString;
12945
+ path: z$1.ZodString;
12823
12946
  }, z$1.core.$strip>], "kind">, unknown>;
12824
12947
  start: z$1.ZodNumber;
12825
12948
  }, z$1.core.$strip>>>;
@@ -12950,6 +13073,10 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
12950
13073
  kind: z$1.ZodLiteral<"plugin">;
12951
13074
  label: z$1.ZodString;
12952
13075
  pluginId: z$1.ZodString;
13076
+ }, z$1.core.$strip>, z$1.ZodObject<{
13077
+ kind: z$1.ZodLiteral<"attachment">;
13078
+ label: z$1.ZodString;
13079
+ path: z$1.ZodString;
12953
13080
  }, z$1.core.$strip>], "kind">, unknown>;
12954
13081
  start: z$1.ZodNumber;
12955
13082
  }, z$1.core.$strip>>>;
@@ -13078,6 +13205,10 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
13078
13205
  kind: z$1.ZodLiteral<"plugin">;
13079
13206
  label: z$1.ZodString;
13080
13207
  pluginId: z$1.ZodString;
13208
+ }, z$1.core.$strip>, z$1.ZodObject<{
13209
+ kind: z$1.ZodLiteral<"attachment">;
13210
+ label: z$1.ZodString;
13211
+ path: z$1.ZodString;
13081
13212
  }, z$1.core.$strip>], "kind">, unknown>;
13082
13213
  start: z$1.ZodNumber;
13083
13214
  }, z$1.core.$strip>>>;
@@ -13208,6 +13339,10 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
13208
13339
  kind: z$1.ZodLiteral<"plugin">;
13209
13340
  label: z$1.ZodString;
13210
13341
  pluginId: z$1.ZodString;
13342
+ }, z$1.core.$strip>, z$1.ZodObject<{
13343
+ kind: z$1.ZodLiteral<"attachment">;
13344
+ label: z$1.ZodString;
13345
+ path: z$1.ZodString;
13211
13346
  }, z$1.core.$strip>], "kind">, unknown>;
13212
13347
  start: z$1.ZodNumber;
13213
13348
  }, z$1.core.$strip>>>;
@@ -13383,6 +13518,10 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
13383
13518
  kind: z$1.ZodLiteral<"plugin">;
13384
13519
  label: z$1.ZodString;
13385
13520
  pluginId: z$1.ZodString;
13521
+ }, z$1.core.$strip>, z$1.ZodObject<{
13522
+ kind: z$1.ZodLiteral<"attachment">;
13523
+ label: z$1.ZodString;
13524
+ path: z$1.ZodString;
13386
13525
  }, z$1.core.$strip>], "kind">, unknown>;
13387
13526
  start: z$1.ZodNumber;
13388
13527
  }, z$1.core.$strip>>>;
@@ -13556,6 +13695,10 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13556
13695
  kind: z$1.ZodLiteral<"plugin">;
13557
13696
  label: z$1.ZodString;
13558
13697
  pluginId: z$1.ZodString;
13698
+ }, z$1.core.$strip>, z$1.ZodObject<{
13699
+ kind: z$1.ZodLiteral<"attachment">;
13700
+ label: z$1.ZodString;
13701
+ path: z$1.ZodString;
13559
13702
  }, z$1.core.$strip>], "kind">, unknown>;
13560
13703
  start: z$1.ZodNumber;
13561
13704
  }, z$1.core.$strip>>>;
@@ -13664,6 +13807,10 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13664
13807
  kind: z$1.ZodLiteral<"plugin">;
13665
13808
  label: z$1.ZodString;
13666
13809
  pluginId: z$1.ZodString;
13810
+ }, z$1.core.$strip>, z$1.ZodObject<{
13811
+ kind: z$1.ZodLiteral<"attachment">;
13812
+ label: z$1.ZodString;
13813
+ path: z$1.ZodString;
13667
13814
  }, z$1.core.$strip>], "kind">, unknown>;
13668
13815
  start: z$1.ZodNumber;
13669
13816
  }, z$1.core.$strip>>>;
@@ -13781,6 +13928,10 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
13781
13928
  kind: z$1.ZodLiteral<"plugin">;
13782
13929
  label: z$1.ZodString;
13783
13930
  pluginId: z$1.ZodString;
13931
+ }, z$1.core.$strip>, z$1.ZodObject<{
13932
+ kind: z$1.ZodLiteral<"attachment">;
13933
+ label: z$1.ZodString;
13934
+ path: z$1.ZodString;
13784
13935
  }, z$1.core.$strip>], "kind">, unknown>;
13785
13936
  start: z$1.ZodNumber;
13786
13937
  }, z$1.core.$strip>>>;
@@ -14211,6 +14362,20 @@ declare const threadGetQuerySchema: z$1.ZodObject<{
14211
14362
  }, z$1.core.$strip>;
14212
14363
  type ThreadGetQuery = z$1.infer<typeof threadGetQuerySchema>;
14213
14364
  type ThreadPluginMetadataResponse = z$1.infer<typeof pluginMetadataSchema>;
14365
+ declare const pluginThreadMetadataListResponseSchema: z$1.ZodObject<{
14366
+ threads: z$1.ZodArray<z$1.ZodObject<{
14367
+ metadata: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
14368
+ threadId: z$1.ZodString;
14369
+ }, z$1.core.$strict>>;
14370
+ }, z$1.core.$strict>;
14371
+ type PluginThreadMetadataListResponse = z$1.infer<typeof pluginThreadMetadataListResponseSchema>;
14372
+ declare const threadAncestorsListResponseSchema: z$1.ZodObject<{
14373
+ threads: z$1.ZodArray<z$1.ZodObject<{
14374
+ ancestorIds: z$1.ZodArray<z$1.ZodString>;
14375
+ threadId: z$1.ZodString;
14376
+ }, z$1.core.$strict>>;
14377
+ }, z$1.core.$strict>;
14378
+ type ThreadAncestorsListResponse = z$1.infer<typeof threadAncestorsListResponseSchema>;
14214
14379
  declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14215
14380
  activeBackgroundAgentCount: z$1.ZodNumber;
14216
14381
  archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -14712,6 +14877,10 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
14712
14877
  kind: z$1.ZodLiteral<"plugin">;
14713
14878
  label: z$1.ZodString;
14714
14879
  pluginId: z$1.ZodString;
14880
+ }, z$1.core.$strip>, z$1.ZodObject<{
14881
+ kind: z$1.ZodLiteral<"attachment">;
14882
+ label: z$1.ZodString;
14883
+ path: z$1.ZodString;
14715
14884
  }, z$1.core.$strip>], "kind">, unknown>;
14716
14885
  start: z$1.ZodNumber;
14717
14886
  }, z$1.core.$strip>>>;
@@ -14987,6 +15156,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
14987
15156
  after: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14988
15157
  attachments: z$1.ZodNullable<z$1.ZodObject<{
14989
15158
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15159
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15160
+ name: z$1.ZodString;
15161
+ path: z$1.ZodString;
15162
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15163
+ }, z$1.core.$strip>>;
14990
15164
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
14991
15165
  localFiles: z$1.ZodNumber;
14992
15166
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15052,6 +15226,10 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15052
15226
  kind: z$1.ZodLiteral<"plugin">;
15053
15227
  label: z$1.ZodString;
15054
15228
  pluginId: z$1.ZodString;
15229
+ }, z$1.core.$strip>, z$1.ZodObject<{
15230
+ kind: z$1.ZodLiteral<"attachment">;
15231
+ label: z$1.ZodString;
15232
+ path: z$1.ZodString;
15055
15233
  }, z$1.core.$strip>], "kind">, unknown>;
15056
15234
  start: z$1.ZodNumber;
15057
15235
  }, z$1.core.$strip>>;
@@ -15136,6 +15314,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15136
15314
  }, z$1.core.$strip>, z$1.ZodObject<{
15137
15315
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15138
15316
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15317
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15318
+ name: z$1.ZodString;
15319
+ path: z$1.ZodString;
15320
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15321
+ }, z$1.core.$strip>>;
15139
15322
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15140
15323
  localFiles: z$1.ZodNumber;
15141
15324
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15158,6 +15341,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15158
15341
  before: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15159
15342
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15160
15343
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15344
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15345
+ name: z$1.ZodString;
15346
+ path: z$1.ZodString;
15347
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15348
+ }, z$1.core.$strip>>;
15161
15349
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15162
15350
  localFiles: z$1.ZodNumber;
15163
15351
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15223,6 +15411,10 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15223
15411
  kind: z$1.ZodLiteral<"plugin">;
15224
15412
  label: z$1.ZodString;
15225
15413
  pluginId: z$1.ZodString;
15414
+ }, z$1.core.$strip>, z$1.ZodObject<{
15415
+ kind: z$1.ZodLiteral<"attachment">;
15416
+ label: z$1.ZodString;
15417
+ path: z$1.ZodString;
15226
15418
  }, z$1.core.$strip>], "kind">, unknown>;
15227
15419
  start: z$1.ZodNumber;
15228
15420
  }, z$1.core.$strip>>;
@@ -15307,6 +15499,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15307
15499
  }, z$1.core.$strip>, z$1.ZodObject<{
15308
15500
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15309
15501
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15502
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15503
+ name: z$1.ZodString;
15504
+ path: z$1.ZodString;
15505
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15506
+ }, z$1.core.$strip>>;
15310
15507
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15311
15508
  localFiles: z$1.ZodNumber;
15312
15509
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15329,6 +15526,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15329
15526
  message: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15330
15527
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15331
15528
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15529
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15530
+ name: z$1.ZodString;
15531
+ path: z$1.ZodString;
15532
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15533
+ }, z$1.core.$strip>>;
15332
15534
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15333
15535
  localFiles: z$1.ZodNumber;
15334
15536
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15394,6 +15596,10 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15394
15596
  kind: z$1.ZodLiteral<"plugin">;
15395
15597
  label: z$1.ZodString;
15396
15598
  pluginId: z$1.ZodString;
15599
+ }, z$1.core.$strip>, z$1.ZodObject<{
15600
+ kind: z$1.ZodLiteral<"attachment">;
15601
+ label: z$1.ZodString;
15602
+ path: z$1.ZodString;
15397
15603
  }, z$1.core.$strip>], "kind">, unknown>;
15398
15604
  start: z$1.ZodNumber;
15399
15605
  }, z$1.core.$strip>>;
@@ -15478,6 +15684,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15478
15684
  }, z$1.core.$strip>, z$1.ZodObject<{
15479
15685
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15480
15686
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15687
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15688
+ name: z$1.ZodString;
15689
+ path: z$1.ZodString;
15690
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15691
+ }, z$1.core.$strip>>;
15481
15692
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15482
15693
  localFiles: z$1.ZodNumber;
15483
15694
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -16254,6 +16465,12 @@ declare const threadTabsResponseSchema: z$1.ZodObject<{
16254
16465
  }, z$1.core.$strict>>;
16255
16466
  path: z$1.ZodString;
16256
16467
  threadId: z$1.ZodNullable<z$1.ZodString>;
16468
+ }, z$1.core.$strict>, z$1.ZodObject<{
16469
+ id: z$1.ZodString;
16470
+ kind: z$1.ZodLiteral<"attachment-file-preview">;
16471
+ name: z$1.ZodString;
16472
+ path: z$1.ZodString;
16473
+ projectId: z$1.ZodString;
16257
16474
  }, z$1.core.$strict>, z$1.ZodObject<{
16258
16475
  desktopTarget: z$1.ZodOptional<z$1.ZodObject<{
16259
16476
  generation: z$1.ZodString;
@@ -16394,6 +16611,12 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
16394
16611
  }, z$1.core.$strict>>;
16395
16612
  path: z$1.ZodString;
16396
16613
  threadId: z$1.ZodNullable<z$1.ZodString>;
16614
+ }, z$1.core.$strict>, z$1.ZodObject<{
16615
+ id: z$1.ZodString;
16616
+ kind: z$1.ZodLiteral<"attachment-file-preview">;
16617
+ name: z$1.ZodString;
16618
+ path: z$1.ZodString;
16619
+ projectId: z$1.ZodString;
16397
16620
  }, z$1.core.$strict>, z$1.ZodObject<{
16398
16621
  desktopTarget: z$1.ZodOptional<z$1.ZodObject<{
16399
16622
  generation: z$1.ZodString;
@@ -17661,6 +17884,8 @@ interface ThreadOutputResponse {
17661
17884
  }
17662
17885
  type ThreadMutationResult = ThreadResponse;
17663
17886
  type ThreadPluginMetadataResult = ThreadPluginMetadataResponse;
17887
+ type PluginThreadMetadataListResult = PluginThreadMetadataListResponse;
17888
+ type ThreadAncestorsListResult = ThreadAncestorsListResponse;
17664
17889
  type ThreadSpawnResult = ThreadResponse;
17665
17890
  type ThreadForkResult = ThreadResponse;
17666
17891
  type ThreadInteractionGetResult = PendingInteraction;
@@ -17745,6 +17970,15 @@ interface ThreadPluginMetadataArgs {
17745
17970
  signal?: AbortSignal;
17746
17971
  threadId: string;
17747
17972
  }
17973
+ interface PluginThreadMetadataListArgs {
17974
+ pluginId: string;
17975
+ threadIds: readonly string[];
17976
+ signal?: AbortSignal;
17977
+ }
17978
+ interface ThreadAncestorsListArgs {
17979
+ threadIds: readonly string[];
17980
+ signal?: AbortSignal;
17981
+ }
17748
17982
  interface ThreadPluginMetadataUpdateArgs {
17749
17983
  threadId: string;
17750
17984
  pluginId: string;
@@ -17983,6 +18217,20 @@ interface ThreadsArea {
17983
18217
  fork(args: ThreadForkArgs): Promise<ThreadForkResult>;
17984
18218
  get(args: ThreadGetArgs): Promise<ThreadGetResult>;
17985
18219
  getPluginMetadata(args: ThreadPluginMetadataArgs): Promise<ThreadPluginMetadataResult>;
18220
+ /**
18221
+ * `pluginId`'s metadata for each of `threadIds` (1–200 per request) that
18222
+ * has any, as `{ threadId, metadata }` rows; archived and deleted threads
18223
+ * included.
18224
+ * Experimental: see docs/api_to_audit.md.
18225
+ */
18226
+ experimental_listPluginMetadata(args: PluginThreadMetadataListArgs): Promise<PluginThreadMetadataListResult>;
18227
+ /**
18228
+ * Each of `threadIds` (1–200 per request) that exists, with `ancestorIds`
18229
+ * from its parent up to the root (empty for a root thread); archived and
18230
+ * deleted threads included, unknown ids omitted.
18231
+ * Experimental: see docs/api_to_audit.md.
18232
+ */
18233
+ experimental_listAncestors(args: ThreadAncestorsListArgs): Promise<ThreadAncestorsListResult>;
17986
18234
  updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
17987
18235
  queue: ThreadQueueArea;
17988
18236
  interactions: ThreadInteractionsArea;
@@ -19090,10 +19338,13 @@ interface ExperimentalClipboardContent {
19090
19338
  * origin, and the plugin-metadata calls default `pluginId`. The same
19091
19339
  * narrowing the backend `bb.sdk` applies.
19092
19340
  */
19093
- type PluginBoundThreadsArea = Omit<BbSdkAreas["threads"], "getPluginMetadata" | "updatePluginMetadata"> & {
19341
+ type PluginBoundThreadsArea = Omit<BbSdkAreas["threads"], "experimental_listPluginMetadata" | "getPluginMetadata" | "updatePluginMetadata"> & {
19094
19342
  getPluginMetadata(args: Omit<ThreadPluginMetadataArgs, "pluginId"> & {
19095
19343
  pluginId?: string;
19096
19344
  }): Promise<ThreadPluginMetadataResult>;
19345
+ experimental_listPluginMetadata(args: Omit<PluginThreadMetadataListArgs, "pluginId"> & {
19346
+ pluginId?: string;
19347
+ }): Promise<PluginThreadMetadataListResult>;
19097
19348
  updatePluginMetadata(args: Omit<ThreadPluginMetadataUpdateArgs, "pluginId"> & {
19098
19349
  pluginId?: string;
19099
19350
  }): Promise<ThreadPluginMetadataResult>;
@@ -19114,6 +19365,28 @@ interface PluginThreadTitleProps {
19114
19365
  /** A thread in the sidebar's live view; renders nothing for an unknown id. */
19115
19366
  threadId: string;
19116
19367
  }
19368
+ /**
19369
+ * Props for {@link PluginSdkApp.experimental_ThreadStatusGlyph}: bb's thread
19370
+ * status glyph, the one its own lists draw. The caller resolves the
19371
+ * indicator, so a row can fold in state the host does not know about, such
19372
+ * as collapsed children or a client-local draft.
19373
+ */
19374
+ interface PluginThreadStatusGlyphProps {
19375
+ /** The indicator to draw; "none" draws nothing unless `rowStatus` shows. */
19376
+ indicator: PluginSidebarThreadIndicator;
19377
+ /** Draws the archive glyph instead of the indicator. */
19378
+ archived?: boolean;
19379
+ /**
19380
+ * A status another plugin set on the row (see
19381
+ * {@link PluginSdkApp.useSidebarThreadRowStatus}). It replaces every
19382
+ * indicator except "runtime", "unread-error", and "waiting-for-input".
19383
+ */
19384
+ rowStatus?: PluginSidebarThreadRowStatus | null;
19385
+ /** Hides the idle draft glyph from assistive technology. */
19386
+ hideIdleDraftLabel?: boolean;
19387
+ /** "compact" draws a 14 px glyph; "default" matches bb's sidebar rows. */
19388
+ size?: "compact" | "default";
19389
+ }
19117
19390
  /**
19118
19391
  * One environment provider from bb's catalog (see
19119
19392
  * {@link PluginSdkApp.useEnvironmentProviders}): what a sidebar needs to
@@ -19163,62 +19436,6 @@ interface PluginSidebarThreadShortcut {
19163
19436
  /** Value for the row's `aria-keyshortcuts` attribute. */
19164
19437
  ariaKeyshortcuts: string;
19165
19438
  }
19166
- /**
19167
- * Act on threads from a plugin surface. Every method routes to the host's own
19168
- * flow, so optimistic updates, toasts, dialogs, pane closing, and route repair
19169
- * behave exactly as they do in the built-in sidebar. Unknown thread ids are
19170
- * ignored by `open` and rejected by the rest.
19171
- */
19172
- interface PluginSidebarThreadActions {
19173
- /**
19174
- * Navigate to a thread. `split: true` applies bb's split placement rules —
19175
- * a right split by default, focus when the thread is already open, replace
19176
- * at the pane cap — and falls back to plain navigation where splits are off.
19177
- * Opening also expands the thread's conversation if the secondary panel had
19178
- * collapsed it, as bb's own row does.
19179
- */
19180
- open(threadId: string, options?: {
19181
- split?: boolean;
19182
- }): void;
19183
- /**
19184
- * Go to the new-thread screen. Passing `projectId` also makes that project
19185
- * the composer's selection, so the thread is created where you asked.
19186
- * `sectionId` files the new thread under that section, and
19187
- * `environmentId` reuses that environment (the "New thread in
19188
- * environment" affordance), both exactly as bb's own list does.
19189
- * `experimental_placement` explicitly selects the section and pin state,
19190
- * overriding `sectionId`. Omitting placement starts unpinned, outside sections
19191
- * unless `sectionId` is supplied; previous composer placement is cleared.
19192
- * `hostId` selects a machine for a new environment when it
19193
- * is known and supports an environment provider. `environmentId` wins when
19194
- * both are supplied.
19195
- */
19196
- openNewThread(options?: {
19197
- projectId?: string;
19198
- sectionId?: string;
19199
- experimental_placement?: {
19200
- sectionId: string | null;
19201
- pinned: boolean;
19202
- };
19203
- environmentId?: string;
19204
- hostId?: string;
19205
- focusPrompt?: boolean;
19206
- }): void;
19207
- setPinned(threadId: string, pinned: boolean): Promise<void>;
19208
- setRead(threadId: string, read: boolean): Promise<void>;
19209
- /** Silent rename — no dialog. For inline editing in your own row. */
19210
- rename(threadId: string, title: string): Promise<void>;
19211
- /** Confirms before including child threads unless archive confirmation is disabled in Settings → General. */
19212
- archive(threadId: string): void;
19213
- /** Archives an environment's active thread trees with bb's optimistic updates, pane cleanup, and one Undo toast. Rejects after bb shows an error toast on failure. */
19214
- experimental_archiveEnvironmentThreads(environmentId: string): Promise<void>;
19215
- /**
19216
- * Opens bb's delete confirmation, which counts child threads first. Deletion
19217
- * is destructive and recursive, so the host owns the confirmation: there is
19218
- * deliberately no silent `delete`.
19219
- */
19220
- requestDelete(threadId: string): void;
19221
- }
19222
19439
  /**
19223
19440
  * Render a plugin component in the thread header's action row.
19224
19441
  *
@@ -19250,6 +19467,226 @@ interface ExperimentalPluginBrowserToolbarActionRegistration {
19250
19467
  /** Component rendered beside the Browser address bar. */
19251
19468
  component: ComponentType<ExperimentalPluginBrowserToolbarActionProps>;
19252
19469
  }
19470
+ /**
19471
+ * The thread a thread action is evaluated for: the fields bb's own actions
19472
+ * read, copied from the thread payload by the surface that shows the menu.
19473
+ */
19474
+ interface PluginThreadActionTarget {
19475
+ id: string;
19476
+ projectId: string;
19477
+ parentThreadId: string | null;
19478
+ archivedAt: number | null;
19479
+ pinnedAt: number | null;
19480
+ sectionId: string | null;
19481
+ isUnread: boolean;
19482
+ status: ThreadStatus;
19483
+ /**
19484
+ * The thread's environment when a new thread can reuse it, null otherwise.
19485
+ * `path` is the checkout path, null when the environment has none.
19486
+ */
19487
+ environment: {
19488
+ id: string;
19489
+ path: string | null;
19490
+ } | null;
19491
+ }
19492
+ /** One row of a thread action's choice list. */
19493
+ interface PluginThreadActionChoice {
19494
+ id: string;
19495
+ label: string;
19496
+ icon?: BbIconName;
19497
+ selected?: boolean;
19498
+ disabled?: boolean;
19499
+ }
19500
+ /**
19501
+ * A choice list instead of a direct action: a submenu in desktop menus, a step
19502
+ * with Back in the compact drawer, and a popover from a row's quick-action
19503
+ * button. `run` receives the picked choice's `id` as `value`.
19504
+ */
19505
+ interface PluginThreadActionChoices {
19506
+ /**
19507
+ * Title of the drawer step and the quick-action popover; defaults to the
19508
+ * action's label. Desktop submenus show none: their trigger names them.
19509
+ */
19510
+ heading?: string;
19511
+ /** Footnote below the choices, e.g. why the current value differs from the pick. */
19512
+ hint?: string;
19513
+ items: readonly PluginThreadActionChoice[];
19514
+ }
19515
+ /** What a thread action's `run` receives. */
19516
+ interface PluginThreadActionRunInput {
19517
+ /** The picked choice's `id` when the action has `choices`; otherwise undefined. */
19518
+ value?: string;
19519
+ /**
19520
+ * Start renaming a thread with the editor of the surface that showed the
19521
+ * menu: inline in the sidebar row or thread header, bb's rename dialog
19522
+ * elsewhere.
19523
+ */
19524
+ requestRename(threadId: string): void;
19525
+ }
19526
+ /** One evaluated thread action: what a registration shows for one thread. */
19527
+ interface PluginThreadAction {
19528
+ label: string;
19529
+ /**
19530
+ * Short secondary text on a muted second line under the label, e.g. the
19531
+ * current value of a choice list.
19532
+ */
19533
+ detail?: string;
19534
+ icon: BbIconName;
19535
+ variant?: "default" | "destructive";
19536
+ disabled?: boolean;
19537
+ choices?: PluginThreadActionChoices;
19538
+ /**
19539
+ * Runs when the user activates the action or picks a choice. Errors (sync
19540
+ * or async) are contained and logged; they never break the menu.
19541
+ */
19542
+ run(input: PluginThreadActionRunInput): void | Promise<void>;
19543
+ }
19544
+ /** What a registration's `useData` receives. */
19545
+ interface PluginThreadActionDataInput {
19546
+ /**
19547
+ * Every thread a visible surface currently shows actions for (sidebar rows
19548
+ * on screen, the open thread's header, open menus); a hidden sidebar
19549
+ * contributes none. Sorted, deduplicated, and published once the set has
19550
+ * been quiet for 32 ms (at most 100 ms after the first change), so rows
19551
+ * that mount a frame apart arrive together. Load per-thread state for these
19552
+ * ids, fetching only ids not loaded yet.
19553
+ */
19554
+ threadIds: readonly string[];
19555
+ }
19556
+ /** What a registration's `item` receives for each thread it is shown for. */
19557
+ interface PluginThreadActionItemInput<Data> {
19558
+ thread: PluginThreadActionTarget;
19559
+ /** What `useData` last returned; undefined when the registration has none. */
19560
+ data: Data;
19561
+ /** The registering plugin's `useSdk()` client. */
19562
+ sdk: PluginBrowserBbSdk;
19563
+ /**
19564
+ * The registering plugin's `useBbNavigate()`. Thread menus are not inside a
19565
+ * side panel, so `openThreadPanel` opens in the focused thread view, as
19566
+ * plugin commands do, and returns false when no thread view is open.
19567
+ */
19568
+ navigate: BbNavigate;
19569
+ }
19570
+ /**
19571
+ * Add an action to every thread actions menu: the thread header's menu, the
19572
+ * sidebar row's menu and right-click menu, the compact long-press drawer, and,
19573
+ * when the user picks it, a sidebar row's quick-action buttons. bb's own
19574
+ * actions (Open in split, Copy thread link, Mark read, Pin, Rename, Archive,
19575
+ * Delete, …) are registrations of this same shape.
19576
+ *
19577
+ * `useData` is a React hook the host calls once for the whole app, never per
19578
+ * thread or per menu; read app-wide state there (preferences, a realtime
19579
+ * channel, per-thread state for the `threadIds` it receives, fetched in one
19580
+ * batch for the ids not loaded yet). `item` is pure and synchronous: it
19581
+ * derives the action for one thread from that thread and `data`, closing over
19582
+ * everything `run` needs, or returns null to hide it. A throw from either
19583
+ * drops only this registration.
19584
+ */
19585
+ interface PluginThreadActionRegistration<Data = undefined> {
19586
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
19587
+ id: string;
19588
+ /** Static name, shown where the user picks a row's quick actions. */
19589
+ title: string;
19590
+ /** Static icon for that picker; the evaluated action's `icon` wins in menus. */
19591
+ icon: BbIconName;
19592
+ /**
19593
+ * Menus and the quick-action picker sort by `group` (string compare) with a
19594
+ * separator between groups, then by `order` within a group (unset sorts
19595
+ * last), then by registration order. bb's groups are
19596
+ * {@link PluginSdkApp.experimental_THREAD_ACTION_GROUPS}; any other string
19597
+ * is a group of its own, placed where it sorts.
19598
+ */
19599
+ group: string;
19600
+ order?: number;
19601
+ useData?(input: PluginThreadActionDataInput): Data;
19602
+ item(input: PluginThreadActionItemInput<Data>): PluginThreadAction | null;
19603
+ }
19604
+ /**
19605
+ * A thread action as {@link PluginSdkApp.experimental_useThreadActions}
19606
+ * returns it: `run` is bound to the caller's `requestRename` (or bb's rename
19607
+ * dialog), contains errors, and resolves when the action settles.
19608
+ */
19609
+ interface PluginBoundThreadAction extends Omit<PluginThreadAction, "run"> {
19610
+ /** `value` is the picked choice's `id` for an action with `choices`. */
19611
+ run(value?: string): Promise<void>;
19612
+ }
19613
+ /**
19614
+ * One row of {@link PluginSdkApp.experimental_useThreadActions}: `key` is
19615
+ * `<owner>/<id>`, where the owner is the registering plugin's id or
19616
+ * `bb--core` for bb's own actions.
19617
+ */
19618
+ interface PluginThreadActionEntry {
19619
+ key: string;
19620
+ pluginId: string;
19621
+ /** The registration's group, for separators in a caller's own list. */
19622
+ group: string;
19623
+ action: PluginBoundThreadAction;
19624
+ }
19625
+ /** One row of {@link PluginSdkApp.experimental_useThreadActionRegistrations}. */
19626
+ interface PluginThreadActionRegistrationInfo {
19627
+ key: string;
19628
+ pluginId: string;
19629
+ title: string;
19630
+ icon: BbIconName;
19631
+ }
19632
+ /** Options for {@link PluginSdkApp.experimental_useThreadActions}. */
19633
+ interface PluginThreadActionsOptions {
19634
+ /** Return only these keys, in this order. Omit for every action in menu order. */
19635
+ keys?: readonly string[];
19636
+ /**
19637
+ * The surface's own rename editor, passed to `run` as `requestRename`.
19638
+ * Omit to use bb's rename dialog.
19639
+ */
19640
+ requestRename?(threadId: string): void;
19641
+ }
19642
+ /**
19643
+ * An action a surface adds to its own copy of the thread menu, not a
19644
+ * registration: appended to the end of its `group`. `key` must be unique in
19645
+ * the menu.
19646
+ */
19647
+ interface PluginThreadActionsInlineItem {
19648
+ key: string;
19649
+ group: string;
19650
+ action: PluginThreadAction;
19651
+ }
19652
+ /**
19653
+ * What a thread menu's `trigger` receives: the menu's ARIA state, event
19654
+ * handlers, and ref. Spread all of them onto the button you render (compose
19655
+ * your own handlers after calling theirs); a trigger that drops them never
19656
+ * opens the menu.
19657
+ */
19658
+ type PluginThreadActionsTriggerProps = ComponentPropsWithRef<"button">;
19659
+ interface PluginThreadActionsMenuBaseProps {
19660
+ thread: PluginThreadActionTarget;
19661
+ inline?: readonly PluginThreadActionsInlineItem[];
19662
+ /** See {@link PluginThreadActionsOptions.requestRename}. */
19663
+ requestRename?(threadId: string): void;
19664
+ onOpenChange?(open: boolean): void;
19665
+ /** Radix's close auto-focus hook, to restore focus to the surface's own control. */
19666
+ onCloseAutoFocus?(event: Event): void;
19667
+ }
19668
+ /**
19669
+ * Props of the host-owned `experimental_ThreadActionsMenu`: bb's thread menu
19670
+ * opened from the button `trigger` renders (see
19671
+ * {@link PluginThreadActionsTriggerProps}), a drawer at compact width.
19672
+ */
19673
+ interface PluginThreadActionsMenuProps extends PluginThreadActionsMenuBaseProps {
19674
+ trigger(props: PluginThreadActionsTriggerProps): ReactNode;
19675
+ side?: "bottom" | "left" | "right" | "top";
19676
+ align?: "center" | "end" | "start";
19677
+ sideOffset?: number;
19678
+ }
19679
+ /**
19680
+ * Props of the host-owned `experimental_ThreadActionsContextMenu`: bb's thread
19681
+ * menu on right-click of `children`, or on touch long-press at compact width.
19682
+ */
19683
+ interface PluginThreadActionsContextMenuProps extends PluginThreadActionsMenuBaseProps {
19684
+ children: ReactNode;
19685
+ /** Suppresses the menu, e.g. while the row edits its title. */
19686
+ disabled?: boolean;
19687
+ /** Closes the menu and suppresses opening while the row is being dragged. */
19688
+ dragging?: boolean;
19689
+ }
19253
19690
  /** One pane's place in the split layout, as fractions of the split area. */
19254
19691
  interface PluginSidebarSplitPane {
19255
19692
  paneId: string;
@@ -19797,6 +20234,12 @@ interface PluginAppSlots {
19797
20234
  * docs/api_to_audit.md.
19798
20235
  */
19799
20236
  experimental_threadHeaderAction(registration: PluginThreadHeaderActionRegistration): void;
20237
+ /**
20238
+ * Add an action to every thread actions menu (see
20239
+ * {@link PluginThreadActionRegistration}). Experimental: see
20240
+ * docs/api_to_audit.md.
20241
+ */
20242
+ experimental_threadAction<Data = undefined>(registration: PluginThreadActionRegistration<Data>): void;
19800
20243
  /** Render a component beside each Browser tab's address bar. */
19801
20244
  experimental_browserToolbarAction(registration: ExperimentalPluginBrowserToolbarActionRegistration): void;
19802
20245
  fileOpener(registration: PluginFileOpenerRegistration): void;
@@ -20147,6 +20590,10 @@ type ComposerMention = {
20147
20590
  source: "command" | "skill";
20148
20591
  origin: "builtin" | "project" | "user";
20149
20592
  argumentHint: string | null;
20593
+ } | {
20594
+ kind: "attachment";
20595
+ /** The stored path of a file attached to the same draft. */
20596
+ path: string;
20150
20597
  } | {
20151
20598
  kind: "plugin";
20152
20599
  /** The plugin that owns the pill. */
@@ -20850,7 +21297,15 @@ interface BbContext {
20850
21297
  threadId: string | null;
20851
21298
  }
20852
21299
  interface BbNavigate {
20853
- toThread(threadId: string): void;
21300
+ /**
21301
+ * Open a thread. `split: true` applies bb's split placement rules (a right
21302
+ * split by default, focus when already open, replace at the pane cap) and
21303
+ * falls back to plain navigation where splits are off. Opening also expands
21304
+ * the thread's conversation if the side panel had collapsed it.
21305
+ */
21306
+ toThread(threadId: string, options?: {
21307
+ split?: boolean;
21308
+ }): void;
20854
21309
  toProject(projectId: string): void;
20855
21310
  /**
20856
21311
  * Navigate to one of this plugin's own nav panels by its `path`.
@@ -20868,16 +21323,27 @@ interface BbNavigate {
20868
21323
  * and section mention tokens become pills) and `focusPrompt` to focus the
20869
21324
  * composer on arrival — the pairing behind "Create via chat" style entry
20870
21325
  * points that drop the user into chat with a prefilled prompt.
21326
+ * `projectId` makes that project the composer's selection; `placement`
21327
+ * files the new thread in a section and pin state (omitted: unpinned,
21328
+ * outside sections); `environmentId` reuses that environment and `hostId`
21329
+ * picks a machine for a new one (`environmentId` wins when both are set).
20871
21330
  */
20872
21331
  toCompose(options?: {
21332
+ projectId?: string;
20873
21333
  initialPrompt?: string;
20874
21334
  focusPrompt?: boolean;
21335
+ placement?: {
21336
+ sectionId: string | null;
21337
+ pinned: boolean;
21338
+ };
21339
+ environmentId?: string;
21340
+ hostId?: string;
20875
21341
  }): void;
20876
21342
  /**
20877
21343
  * Open one of this plugin's registered panel actions in the current
20878
21344
  * surface's side panel: a `threadPanelAction` in a thread, or an
20879
21345
  * `experimental_newThreadPanelAction` on the New thread screen. Plugin
20880
- * commands use the same opener. Returns false when the surface has no side
21346
+ * commands and thread actions use the focused thread view's opener. Returns false when the surface has no side
20881
21347
  * panel actions (plugin pages) or the action is unavailable.
20882
21348
  */
20883
21349
  openThreadPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
@@ -20989,11 +21455,52 @@ interface PluginSdkApp {
20989
21455
  experimental_lifecycles: readonly ("active" | "archived")[];
20990
21456
  }): PluginSidebarThreadsState;
20991
21457
  /**
20992
- * Thread actions bound to the host's mutations (see
20993
- * {@link PluginSidebarThreadActions}). Experimental: see
21458
+ * Archive an environment's active thread trees the way bb's own list does:
21459
+ * optimistic removal, closing their split panes, leaving a route that shows
21460
+ * one of them, and one Undo toast that restores them and the route. The
21461
+ * promise rejects after bb has shown an error toast. Experimental: see
21462
+ * docs/api_to_audit.md.
21463
+ */
21464
+ experimental_useArchiveEnvironmentThreads(): (environmentId: string) => Promise<void>;
21465
+ /**
21466
+ * Every thread action for one thread, in menu order (see
21467
+ * {@link PluginThreadAction} for grouping): bb's own registrations first,
21468
+ * then plugins' in registration order. Registrations' `useData` hooks run
21469
+ * once for the app, so calling this per sidebar row costs one store
21470
+ * subscription and a pure `item` call per registration. Pass `keys` for a
21471
+ * row's quick actions. Experimental: see docs/api_to_audit.md.
21472
+ */
21473
+ experimental_useThreadActions(thread: PluginThreadActionTarget, options?: PluginThreadActionsOptions): readonly PluginThreadActionEntry[];
21474
+ /**
21475
+ * Every registered thread action with its static title and icon, in menu
21476
+ * order and independent of any thread: what a quick-action picker lists.
21477
+ * Experimental: see docs/api_to_audit.md.
21478
+ */
21479
+ experimental_useThreadActionRegistrations(): readonly PluginThreadActionRegistrationInfo[];
21480
+ /**
21481
+ * bb's thread menu behind a trigger (see
21482
+ * {@link PluginThreadActionsMenuProps}): the same items, order, choice
21483
+ * submenus and compact drawer as the thread header's menu. Experimental: see
21484
+ * docs/api_to_audit.md.
21485
+ */
21486
+ experimental_ThreadActionsMenu: ComponentType<PluginThreadActionsMenuProps>;
21487
+ /**
21488
+ * bb's thread menu on right-click or long-press (see
21489
+ * {@link PluginThreadActionsContextMenuProps}). Experimental: see
20994
21490
  * docs/api_to_audit.md.
20995
21491
  */
20996
- experimental_useSidebarThreadActions(): PluginSidebarThreadActions;
21492
+ experimental_ThreadActionsContextMenu: ComponentType<PluginThreadActionsContextMenuProps>;
21493
+ /**
21494
+ * bb's thread menu groups, for a registration that joins one:
21495
+ * `open` (split), `organize` (copy, read, pin, move, rename), `settings`,
21496
+ * and `lifecycle` (archive, delete). Experimental: see docs/api_to_audit.md.
21497
+ */
21498
+ experimental_THREAD_ACTION_GROUPS: {
21499
+ readonly open: "1_open";
21500
+ readonly organize: "2_organize";
21501
+ readonly settings: "3_settings";
21502
+ readonly lifecycle: "4_lifecycle";
21503
+ };
20997
21504
  /**
20998
21505
  * The pull request for one thread's branch (see
20999
21506
  * {@link PluginSidebarThreadPullRequestState}).
@@ -21057,6 +21564,12 @@ interface PluginSdkApp {
21057
21564
  * form is `displayTitle` on the thread.
21058
21565
  */
21059
21566
  ThreadTitle: ComponentType<PluginThreadTitleProps>;
21567
+ /**
21568
+ * bb's thread status glyph (see {@link PluginThreadStatusGlyphProps}): the
21569
+ * same icons, colors, and accessible labels as bb's own thread lists.
21570
+ * Experimental: see docs/api_to_audit.md.
21571
+ */
21572
+ experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
21060
21573
  /**
21061
21574
  * bb's environment provider catalog (see
21062
21575
  * {@link PluginEnvironmentProvidersState}), the directory a thread's
@@ -21079,8 +21592,8 @@ interface PluginSdkApp {
21079
21592
  * together. Unarchive, environment-group archive, project/machine/environment
21080
21593
  * renames, and project/section removal are also optimistic and roll back on
21081
21594
  * failure. Created sections enter the cache when the server assigns their id.
21082
- * `experimental_useSidebarThreadActions()` owns navigation, read state,
21083
- * archive confirmation, and delete confirmation.
21595
+ * Navigation belongs to `useBbNavigate()`; archive and delete
21596
+ * confirmation to the thread action menus.
21084
21597
  *
21085
21598
  * The client is stable for the plugin's lifetime, so it is safe in effect
21086
21599
  * and callback dependency lists.
@@ -21192,6 +21705,13 @@ interface PluginSdkApp {
21192
21705
  experimental_Diff: ComponentType<DiffProps>;
21193
21706
  }
21194
21707
 
21708
+ declare const experimental_THREAD_ACTION_GROUPS: {
21709
+ readonly open: "1_open";
21710
+ readonly organize: "2_organize";
21711
+ readonly settings: "3_settings";
21712
+ readonly lifecycle: "4_lifecycle";
21713
+ };
21714
+
21195
21715
  declare const experimental_Icon: react.ComponentType<ExperimentalIconProps>;
21196
21716
  declare const experimental_ProviderIcon: react.ComponentType<ExperimentalProviderIconProps>;
21197
21717
  declare const definePluginApp: PluginSdkApp["definePluginApp"];
@@ -21223,7 +21743,12 @@ declare const useComposers: () => readonly PluginComposerApi[];
21223
21743
  declare const experimental_useSidebarThreads: (options?: {
21224
21744
  experimental_lifecycles: readonly ("active" | "archived")[];
21225
21745
  }) => PluginSidebarThreadsState;
21226
- declare const experimental_useSidebarThreadActions: () => PluginSidebarThreadActions;
21746
+ declare const experimental_useThreadActions: (thread: PluginThreadActionTarget, options?: PluginThreadActionsOptions) => readonly PluginThreadActionEntry[];
21747
+ declare const experimental_useArchiveEnvironmentThreads: () => (environmentId: string) => Promise<void>;
21748
+ declare const experimental_useThreadActionRegistrations: () => readonly PluginThreadActionRegistrationInfo[];
21749
+ declare const experimental_ThreadActionsMenu: react.ComponentType<PluginThreadActionsMenuProps>;
21750
+ declare const experimental_ThreadActionsContextMenu: react.ComponentType<PluginThreadActionsContextMenuProps>;
21751
+
21227
21752
  declare const experimental_useSidebarThreadPullRequest: (threadId: string) => PluginSidebarThreadPullRequestState;
21228
21753
  declare const experimental_useSidebarThreadSplit: (threadId: string) => PluginSidebarThreadSplit;
21229
21754
  declare const useSidebarThreadDraft: (threadId: string) => PluginSidebarThreadDraftState;
@@ -21233,11 +21758,12 @@ declare const useSidebarThreadRowStatuses: () => ReadonlyMap<string, PluginSideb
21233
21758
  declare const useSidebarSplitLayout: () => PluginSidebarSplitLayout | null;
21234
21759
  declare const useSidebarThreadShortcut: (threadId: string) => PluginSidebarThreadShortcut | null;
21235
21760
  declare const ThreadTitle: react.ComponentType<PluginThreadTitleProps>;
21761
+ declare const experimental_ThreadStatusGlyph: react.ComponentType<PluginThreadStatusGlyphProps>;
21236
21762
  declare const useEnvironmentProviders: () => PluginEnvironmentProvidersState;
21237
21763
  declare const useSdk: () => PluginBrowserBbSdk;
21238
21764
  declare const experimental_useProviders: () => PluginProvidersState;
21239
21765
  declare const experimental_useCodeTheme: () => PluginCodeThemeState;
21240
21766
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
21241
21767
 
21242
- export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SourceCode, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_useAppPanel, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarThreadActions, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
21243
- export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
21768
+ export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
21769
+ export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };