@get-bb/plugin-sdk 0.6.33 → 0.6.39

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.
@@ -59,7 +59,6 @@ declare const appSettingsSchema: z$1.ZodObject<{
59
59
  flat: "flat";
60
60
  }>>;
61
61
  providerOrder: z$1.ZodArray<z$1.ZodString>;
62
- setupChecklistVisible: z$1.ZodBoolean;
63
62
  showDiagnosticEvents: z$1.ZodBoolean;
64
63
  showGitChanges: z$1.ZodBoolean;
65
64
  showKeyboardHints: z$1.ZodBoolean;
@@ -83,7 +82,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
83
82
  flat: "flat";
84
83
  }>>;
85
84
  providerOrder: z$1.ZodArray<z$1.ZodString>;
86
- setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
87
85
  showDiagnosticEvents: z$1.ZodBoolean;
88
86
  showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
89
87
  showKeyboardHints: z$1.ZodBoolean;
@@ -106,7 +104,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
106
104
  flat: "flat";
107
105
  }>>;
108
106
  providerOrder: z$1.ZodArray<z$1.ZodString>;
109
- setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
110
107
  showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
111
108
  showKeyboardHints: z$1.ZodBoolean;
112
109
  showUnhandledProviderEvents: z$1.ZodBoolean;
@@ -116,7 +113,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
116
113
  }, z$1.core.$strict>]>;
117
114
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
118
115
 
119
- 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"];
116
+ 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"];
120
117
  type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
121
118
  interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
122
119
  schema: Schema;
@@ -145,15 +142,6 @@ declare const uiPreferenceDefinitions: {
145
142
  readonly "sidebar.manualSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
146
143
  readonly "sidebar.machineSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
147
144
  readonly "sidebar.hiddenGroups": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
148
- readonly "sidebar.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodEnum<{
149
- pinned: "pinned";
150
- threads: "threads";
151
- }>>>;
152
- readonly "sidebar.collapsedProjects": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
153
- readonly "sidebar.collapsedThreads": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
154
- readonly "sidebar.collapsedEnvironments": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
155
- readonly "sidebar.collapsedThreadSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
156
- readonly "sidebar.collapsedMachines": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
157
145
  readonly "sidebar.footerOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
158
146
  readonly "sidebar.hiddenFooterItems": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
159
147
  readonly "sidebar.pluginPanelOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
@@ -720,6 +708,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
720
708
  type: z$1.ZodLiteral<"turn/input/accepted">;
721
709
  }, z$1.core.$strict>, z$1.ZodObject<{
722
710
  providerThreadId: z$1.ZodString;
711
+ source: z$1.ZodOptional<z$1.ZodLiteral<"agent">>;
723
712
  threadId: z$1.ZodString;
724
713
  threadName: z$1.ZodString;
725
714
  type: z$1.ZodLiteral<"thread/name/updated">;
@@ -2647,6 +2636,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2647
2636
  type: z$1.ZodLiteral<"thread/tokenUsage/updated">;
2648
2637
  }, z$1.core.$strip>, z$1.ZodObject<{
2649
2638
  contextWindowUsage: z$1.ZodObject<{
2639
+ cost: z$1.ZodOptional<z$1.ZodObject<{
2640
+ amount: z$1.ZodNumber;
2641
+ currency: z$1.ZodString;
2642
+ }, z$1.core.$strip>>;
2650
2643
  estimated: z$1.ZodBoolean;
2651
2644
  modelContextWindow: z$1.ZodNullable<z$1.ZodNumber>;
2652
2645
  snapshot: z$1.ZodOptional<z$1.ZodObject<{
@@ -2869,16 +2862,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2869
2862
  full: "full";
2870
2863
  readonly: "readonly";
2871
2864
  }>;
2872
- reasoningLevel: z$1.ZodEnum<{
2873
- high: "high";
2874
- low: "low";
2875
- max: "max";
2876
- medium: "medium";
2877
- none: "none";
2878
- ultra: "ultra";
2879
- ultracode: "ultracode";
2880
- xhigh: "xhigh";
2881
- }>;
2865
+ reasoningLevel: z$1.ZodString;
2882
2866
  seq: z$1.ZodOptional<z$1.ZodNumber>;
2883
2867
  serviceTier: z$1.ZodString;
2884
2868
  source: z$1.ZodEnum<{
@@ -2944,6 +2928,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2944
2928
  kind: z$1.ZodLiteral<"plugin">;
2945
2929
  label: z$1.ZodString;
2946
2930
  pluginId: z$1.ZodString;
2931
+ }, z$1.core.$strip>, z$1.ZodObject<{
2932
+ kind: z$1.ZodLiteral<"attachment">;
2933
+ label: z$1.ZodString;
2934
+ path: z$1.ZodString;
2947
2935
  }, z$1.core.$strip>], "kind">, unknown>;
2948
2936
  start: z$1.ZodNumber;
2949
2937
  }, z$1.core.$strip>>>;
@@ -3030,6 +3018,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3030
3018
  kind: z$1.ZodLiteral<"plugin">;
3031
3019
  label: z$1.ZodString;
3032
3020
  pluginId: z$1.ZodString;
3021
+ }, z$1.core.$strip>, z$1.ZodObject<{
3022
+ kind: z$1.ZodLiteral<"attachment">;
3023
+ label: z$1.ZodString;
3024
+ path: z$1.ZodString;
3033
3025
  }, z$1.core.$strip>], "kind">, unknown>;
3034
3026
  start: z$1.ZodNumber;
3035
3027
  }, z$1.core.$strip>>>;
@@ -3949,16 +3941,7 @@ declare const projectSourceSchema: z$1.ZodObject<{
3949
3941
  }, z$1.core.$strip>;
3950
3942
  type ProjectSource = z$1.infer<typeof projectSourceSchema>;
3951
3943
 
3952
- declare const reasoningLevelSchema: z$1.ZodEnum<{
3953
- high: "high";
3954
- low: "low";
3955
- max: "max";
3956
- medium: "medium";
3957
- none: "none";
3958
- ultra: "ultra";
3959
- ultracode: "ultracode";
3960
- xhigh: "xhigh";
3961
- }>;
3944
+ declare const reasoningLevelSchema: z$1.ZodString;
3962
3945
  type ReasoningLevel = z$1.infer<typeof reasoningLevelSchema>;
3963
3946
  declare const serviceTierSchema: z$1.ZodString;
3964
3947
  type ServiceTier = z$1.infer<typeof serviceTierSchema>;
@@ -4020,6 +4003,10 @@ declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4020
4003
  kind: z$1.ZodLiteral<"plugin">;
4021
4004
  label: z$1.ZodString;
4022
4005
  pluginId: z$1.ZodString;
4006
+ }, z$1.core.$strip>, z$1.ZodObject<{
4007
+ kind: z$1.ZodLiteral<"attachment">;
4008
+ label: z$1.ZodString;
4009
+ path: z$1.ZodString;
4023
4010
  }, z$1.core.$strip>], "kind">, unknown>;
4024
4011
  start: z$1.ZodNumber;
4025
4012
  }, z$1.core.$strip>>>;
@@ -4067,16 +4054,7 @@ declare const resolvedThreadExecutionOptionsSchema: z$1.ZodObject<{
4067
4054
  auto: "auto";
4068
4055
  full: "full";
4069
4056
  }>;
4070
- reasoningLevel: z$1.ZodEnum<{
4071
- high: "high";
4072
- low: "low";
4073
- max: "max";
4074
- medium: "medium";
4075
- none: "none";
4076
- ultra: "ultra";
4077
- ultracode: "ultracode";
4078
- xhigh: "xhigh";
4079
- }>;
4057
+ reasoningLevel: z$1.ZodString;
4080
4058
  seq: z$1.ZodOptional<z$1.ZodNumber>;
4081
4059
  serviceTier: z$1.ZodString;
4082
4060
  source: z$1.ZodEnum<{
@@ -4086,6 +4064,8 @@ declare const resolvedThreadExecutionOptionsSchema: z$1.ZodObject<{
4086
4064
  }>;
4087
4065
  }, z$1.core.$strip>;
4088
4066
  type ResolvedThreadExecutionOptions = z$1.infer<typeof resolvedThreadExecutionOptionsSchema>;
4067
+ declare const sessionOptionSelectionsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>;
4068
+ type SessionOptionSelections = z$1.infer<typeof sessionOptionSelectionsSchema>;
4089
4069
  declare const projectExecutionDefaultsSchema: z$1.ZodObject<{
4090
4070
  model: z$1.ZodString;
4091
4071
  permissionMode: z$1.ZodEnum<{
@@ -4094,16 +4074,7 @@ declare const projectExecutionDefaultsSchema: z$1.ZodObject<{
4094
4074
  full: "full";
4095
4075
  }>;
4096
4076
  providerId: z$1.ZodString;
4097
- reasoningLevel: z$1.ZodEnum<{
4098
- high: "high";
4099
- low: "low";
4100
- max: "max";
4101
- medium: "medium";
4102
- none: "none";
4103
- ultra: "ultra";
4104
- ultracode: "ultracode";
4105
- xhigh: "xhigh";
4106
- }>;
4077
+ reasoningLevel: z$1.ZodString;
4107
4078
  serviceTier: z$1.ZodString;
4108
4079
  }, z$1.core.$strip>;
4109
4080
  type ProjectExecutionDefaults = z$1.infer<typeof projectExecutionDefaultsSchema>;
@@ -4349,6 +4320,10 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4349
4320
  kind: z$1.ZodLiteral<"plugin">;
4350
4321
  label: z$1.ZodString;
4351
4322
  pluginId: z$1.ZodString;
4323
+ }, z$1.core.$strip>, z$1.ZodObject<{
4324
+ kind: z$1.ZodLiteral<"attachment">;
4325
+ label: z$1.ZodString;
4326
+ path: z$1.ZodString;
4352
4327
  }, z$1.core.$strip>], "kind">, unknown>;
4353
4328
  start: z$1.ZodNumber;
4354
4329
  }, z$1.core.$strip>>>;
@@ -4414,16 +4389,7 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4414
4389
  auto: "auto";
4415
4390
  full: "full";
4416
4391
  }>;
4417
- reasoningLevel: z$1.ZodEnum<{
4418
- high: "high";
4419
- low: "low";
4420
- max: "max";
4421
- medium: "medium";
4422
- none: "none";
4423
- ultra: "ultra";
4424
- ultracode: "ultracode";
4425
- xhigh: "xhigh";
4426
- }>;
4392
+ reasoningLevel: z$1.ZodString;
4427
4393
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
4428
4394
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
4429
4395
  serviceTier: z$1.ZodString;
@@ -4473,6 +4439,10 @@ interface EnvironmentRemoval {
4473
4439
 
4474
4440
  declare const threadContextResponseSchema: z$1.ZodObject<{
4475
4441
  usage: z$1.ZodNullable<z$1.ZodObject<{
4442
+ cost: z$1.ZodOptional<z$1.ZodObject<{
4443
+ amount: z$1.ZodNumber;
4444
+ currency: z$1.ZodString;
4445
+ }, z$1.core.$strip>>;
4476
4446
  estimated: z$1.ZodBoolean;
4477
4447
  modelContextWindow: z$1.ZodNumber;
4478
4448
  snapshot: z$1.ZodOptional<z$1.ZodObject<{
@@ -4779,6 +4749,10 @@ declare const promptHistoryResponseSchema: z$1.ZodArray<z$1.ZodObject<{
4779
4749
  kind: z$1.ZodLiteral<"plugin">;
4780
4750
  label: z$1.ZodString;
4781
4751
  pluginId: z$1.ZodString;
4752
+ }, z$1.core.$strip>, z$1.ZodObject<{
4753
+ kind: z$1.ZodLiteral<"attachment">;
4754
+ label: z$1.ZodString;
4755
+ path: z$1.ZodString;
4782
4756
  }, z$1.core.$strip>], "kind">, unknown>;
4783
4757
  start: z$1.ZodNumber;
4784
4758
  }, z$1.core.$strip>>>;
@@ -4914,16 +4888,7 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
4914
4888
  full: "full";
4915
4889
  }>;
4916
4890
  providerId: z$1.ZodString;
4917
- reasoningLevel: z$1.ZodEnum<{
4918
- high: "high";
4919
- low: "low";
4920
- max: "max";
4921
- medium: "medium";
4922
- none: "none";
4923
- ultra: "ultra";
4924
- ultracode: "ultracode";
4925
- xhigh: "xhigh";
4926
- }>;
4891
+ reasoningLevel: z$1.ZodString;
4927
4892
  serviceTier: z$1.ZodString;
4928
4893
  }, z$1.core.$strip>>;
4929
4894
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -5029,16 +4994,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5029
4994
  full: "full";
5030
4995
  }>;
5031
4996
  providerId: z$1.ZodString;
5032
- reasoningLevel: z$1.ZodEnum<{
5033
- high: "high";
5034
- low: "low";
5035
- max: "max";
5036
- medium: "medium";
5037
- none: "none";
5038
- ultra: "ultra";
5039
- ultracode: "ultracode";
5040
- xhigh: "xhigh";
5041
- }>;
4997
+ reasoningLevel: z$1.ZodString;
5042
4998
  serviceTier: z$1.ZodString;
5043
4999
  }, z$1.core.$strip>>;
5044
5000
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -5142,16 +5098,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5142
5098
  full: "full";
5143
5099
  }>;
5144
5100
  providerId: z$1.ZodString;
5145
- reasoningLevel: z$1.ZodEnum<{
5146
- high: "high";
5147
- low: "low";
5148
- max: "max";
5149
- medium: "medium";
5150
- none: "none";
5151
- ultra: "ultra";
5152
- ultracode: "ultracode";
5153
- xhigh: "xhigh";
5154
- }>;
5101
+ reasoningLevel: z$1.ZodString;
5155
5102
  serviceTier: z$1.ZodString;
5156
5103
  }, z$1.core.$strip>>;
5157
5104
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -5332,6 +5279,10 @@ declare const promptHistoryListResponseSchema: z$1.ZodObject<{
5332
5279
  kind: z$1.ZodLiteral<"plugin">;
5333
5280
  label: z$1.ZodString;
5334
5281
  pluginId: z$1.ZodString;
5282
+ }, z$1.core.$strip>, z$1.ZodObject<{
5283
+ kind: z$1.ZodLiteral<"attachment">;
5284
+ label: z$1.ZodString;
5285
+ path: z$1.ZodString;
5335
5286
  }, z$1.core.$strip>], "kind">, unknown>;
5336
5287
  start: z$1.ZodNumber;
5337
5288
  }, z$1.core.$strip>>>;
@@ -6274,17 +6225,9 @@ declare const hostDaemonCommandRegistry: {
6274
6225
  model: z$1.ZodString;
6275
6226
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
6276
6227
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6277
- reasoningLevel: z$1.ZodEnum<{
6278
- high: "high";
6279
- low: "low";
6280
- max: "max";
6281
- medium: "medium";
6282
- none: "none";
6283
- ultra: "ultra";
6284
- ultracode: "ultracode";
6285
- xhigh: "xhigh";
6286
- }>;
6228
+ reasoningLevel: z$1.ZodString;
6287
6229
  serviceTier: z$1.ZodString;
6230
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
6288
6231
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6289
6232
  approvalReviewer: z$1.ZodLiteral<"user">;
6290
6233
  permissionEscalation: z$1.ZodEnum<{
@@ -6477,6 +6420,10 @@ declare const hostDaemonCommandRegistry: {
6477
6420
  kind: z$1.ZodLiteral<"plugin">;
6478
6421
  label: z$1.ZodString;
6479
6422
  pluginId: z$1.ZodString;
6423
+ }, z$1.core.$strip>, z$1.ZodObject<{
6424
+ kind: z$1.ZodLiteral<"attachment">;
6425
+ label: z$1.ZodString;
6426
+ path: z$1.ZodString;
6480
6427
  }, z$1.core.$strip>], "kind">, unknown>;
6481
6428
  start: z$1.ZodNumber;
6482
6429
  }, z$1.core.$strip>>>;
@@ -6563,6 +6510,10 @@ declare const hostDaemonCommandRegistry: {
6563
6510
  kind: z$1.ZodLiteral<"plugin">;
6564
6511
  label: z$1.ZodString;
6565
6512
  pluginId: z$1.ZodString;
6513
+ }, z$1.core.$strip>, z$1.ZodObject<{
6514
+ kind: z$1.ZodLiteral<"attachment">;
6515
+ label: z$1.ZodString;
6516
+ path: z$1.ZodString;
6566
6517
  }, z$1.core.$strip>], "kind">, unknown>;
6567
6518
  start: z$1.ZodNumber;
6568
6519
  }, z$1.core.$strip>>>;
@@ -6606,17 +6557,9 @@ declare const hostDaemonCommandRegistry: {
6606
6557
  model: z$1.ZodString;
6607
6558
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
6608
6559
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6609
- reasoningLevel: z$1.ZodEnum<{
6610
- high: "high";
6611
- low: "low";
6612
- max: "max";
6613
- medium: "medium";
6614
- none: "none";
6615
- ultra: "ultra";
6616
- ultracode: "ultracode";
6617
- xhigh: "xhigh";
6618
- }>;
6560
+ reasoningLevel: z$1.ZodString;
6619
6561
  serviceTier: z$1.ZodString;
6562
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
6620
6563
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6621
6564
  approvalReviewer: z$1.ZodLiteral<"user">;
6622
6565
  permissionEscalation: z$1.ZodEnum<{
@@ -6731,6 +6674,10 @@ declare const hostDaemonCommandRegistry: {
6731
6674
  kind: z$1.ZodLiteral<"plugin">;
6732
6675
  label: z$1.ZodString;
6733
6676
  pluginId: z$1.ZodString;
6677
+ }, z$1.core.$strip>, z$1.ZodObject<{
6678
+ kind: z$1.ZodLiteral<"attachment">;
6679
+ label: z$1.ZodString;
6680
+ path: z$1.ZodString;
6734
6681
  }, z$1.core.$strip>], "kind">, unknown>;
6735
6682
  start: z$1.ZodNumber;
6736
6683
  }, z$1.core.$strip>>>;
@@ -6817,6 +6764,10 @@ declare const hostDaemonCommandRegistry: {
6817
6764
  kind: z$1.ZodLiteral<"plugin">;
6818
6765
  label: z$1.ZodString;
6819
6766
  pluginId: z$1.ZodString;
6767
+ }, z$1.core.$strip>, z$1.ZodObject<{
6768
+ kind: z$1.ZodLiteral<"attachment">;
6769
+ label: z$1.ZodString;
6770
+ path: z$1.ZodString;
6820
6771
  }, z$1.core.$strip>], "kind">, unknown>;
6821
6772
  start: z$1.ZodNumber;
6822
6773
  }, z$1.core.$strip>>>;
@@ -6855,17 +6806,9 @@ declare const hostDaemonCommandRegistry: {
6855
6806
  model: z$1.ZodString;
6856
6807
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
6857
6808
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6858
- reasoningLevel: z$1.ZodEnum<{
6859
- high: "high";
6860
- low: "low";
6861
- max: "max";
6862
- medium: "medium";
6863
- none: "none";
6864
- ultra: "ultra";
6865
- ultracode: "ultracode";
6866
- xhigh: "xhigh";
6867
- }>;
6809
+ reasoningLevel: z$1.ZodString;
6868
6810
  serviceTier: z$1.ZodString;
6811
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
6869
6812
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6870
6813
  approvalReviewer: z$1.ZodLiteral<"user">;
6871
6814
  permissionEscalation: z$1.ZodEnum<{
@@ -7013,7 +6956,21 @@ declare const hostDaemonCommandRegistry: {
7013
6956
  }, z$1.core.$strip>], "mode">;
7014
6957
  threadId: z$1.ZodString;
7015
6958
  type: z$1.ZodLiteral<"turn.submit">;
7016
- }, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
6959
+ }, z$1.core.$strict>, z$1.ZodObject<{
6960
+ trace: z$1.ZodObject<{
6961
+ spans: z$1.ZodArray<z$1.ZodObject<{
6962
+ atMs: z$1.ZodNumber;
6963
+ name: z$1.ZodEnum<{
6964
+ "bridge.turnStarted": "bridge.turnStarted";
6965
+ "events.flushed": "events.flushed";
6966
+ "input.staged": "input.staged";
6967
+ "lanes.entered": "lanes.entered";
6968
+ "runtime.ready": "runtime.ready";
6969
+ "skills.staged": "skills.staged";
6970
+ }>;
6971
+ }, z$1.core.$strict>>;
6972
+ }, z$1.core.$strict>;
6973
+ }, z$1.core.$strip>, "settled", false>;
7017
6974
  "thread.stop": HostDaemonCommandDescriptor<"thread.stop", z$1.ZodObject<{
7018
6975
  environmentId: z$1.ZodString;
7019
6976
  intent: z$1.ZodEnum<{
@@ -7066,17 +7023,9 @@ declare const hostDaemonCommandRegistry: {
7066
7023
  model: z$1.ZodString;
7067
7024
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
7068
7025
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
7069
- reasoningLevel: z$1.ZodEnum<{
7070
- high: "high";
7071
- low: "low";
7072
- max: "max";
7073
- medium: "medium";
7074
- none: "none";
7075
- ultra: "ultra";
7076
- ultracode: "ultracode";
7077
- xhigh: "xhigh";
7078
- }>;
7026
+ reasoningLevel: z$1.ZodString;
7079
7027
  serviceTier: z$1.ZodString;
7028
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
7080
7029
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7081
7030
  approvalReviewer: z$1.ZodLiteral<"user">;
7082
7031
  permissionEscalation: z$1.ZodEnum<{
@@ -7831,6 +7780,65 @@ declare const hostDaemonCommandRegistry: {
7831
7780
  }>;
7832
7781
  }, z$1.core.$strip>>;
7833
7782
  }, z$1.core.$strip>, "onlineRpc", true>;
7783
+ "host.read_workspace_agent_context": HostDaemonCommandDescriptor<"host.read_workspace_agent_context", z$1.ZodObject<{
7784
+ includeAgentInstructions: z$1.ZodBoolean;
7785
+ projectSkillRead: z$1.ZodObject<{
7786
+ excludeNames: z$1.ZodArray<z$1.ZodString>;
7787
+ limit: z$1.ZodNumber;
7788
+ maxContentBytes: z$1.ZodNumber;
7789
+ maxFileBytes: z$1.ZodNumber;
7790
+ }, z$1.core.$strict>;
7791
+ rootPath: z$1.ZodString;
7792
+ sharedSkillRoots: z$1.ZodObject<{
7793
+ project: z$1.ZodArray<z$1.ZodObject<{
7794
+ ancestors: z$1.ZodBoolean;
7795
+ namePrefix: z$1.ZodString;
7796
+ path: z$1.ZodString;
7797
+ recursive: z$1.ZodBoolean;
7798
+ skipIfManifest: z$1.ZodOptional<z$1.ZodString>;
7799
+ }, z$1.core.$strict>>;
7800
+ user: z$1.ZodArray<z$1.ZodObject<{
7801
+ ancestors: z$1.ZodBoolean;
7802
+ namePrefix: z$1.ZodString;
7803
+ path: z$1.ZodString;
7804
+ recursive: z$1.ZodBoolean;
7805
+ skipIfManifest: z$1.ZodOptional<z$1.ZodString>;
7806
+ }, z$1.core.$strict>>;
7807
+ }, z$1.core.$strict>;
7808
+ type: z$1.ZodLiteral<"host.read_workspace_agent_context">;
7809
+ }, z$1.core.$strict>, z$1.ZodObject<{
7810
+ agentInstructions: z$1.ZodNullable<z$1.ZodString>;
7811
+ projectSkills: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7812
+ directoryName: z$1.ZodString;
7813
+ kind: z$1.ZodLiteral<"budget-exceeded">;
7814
+ }, z$1.core.$strict>, z$1.ZodObject<{
7815
+ content: z$1.ZodString;
7816
+ directoryName: z$1.ZodString;
7817
+ kind: z$1.ZodLiteral<"file">;
7818
+ }, z$1.core.$strict>, z$1.ZodObject<{
7819
+ directoryName: z$1.ZodString;
7820
+ kind: z$1.ZodLiteral<"oversized">;
7821
+ sizeBytes: z$1.ZodNumber;
7822
+ }, z$1.core.$strict>], "kind">>;
7823
+ projectSkillsTruncated: z$1.ZodBoolean;
7824
+ sharedSkills: z$1.ZodArray<z$1.ZodObject<{
7825
+ description: z$1.ZodNullable<z$1.ZodString>;
7826
+ filePath: z$1.ZodString;
7827
+ id: z$1.ZodString;
7828
+ linked: z$1.ZodBoolean;
7829
+ name: z$1.ZodString;
7830
+ rootKind: z$1.ZodEnum<{
7831
+ "bb-builtin": "bb-builtin";
7832
+ "bb-data-dir": "bb-data-dir";
7833
+ "bb-project": "bb-project";
7834
+ "provider-project": "provider-project";
7835
+ "provider-user": "provider-user";
7836
+ "shared-project": "shared-project";
7837
+ "shared-user": "shared-user";
7838
+ plugin: "plugin";
7839
+ }>;
7840
+ }, z$1.core.$strip>>;
7841
+ }, z$1.core.$strict>, "onlineRpc", true>;
7834
7842
  "host.delete_skill": HostDaemonCommandDescriptor<"host.delete_skill", z$1.ZodObject<{
7835
7843
  cwd: z$1.ZodNullable<z$1.ZodString>;
7836
7844
  name: z$1.ZodString;
@@ -8085,34 +8093,39 @@ declare const hostDaemonCommandRegistry: {
8085
8093
  type: z$1.ZodLiteral<"provider.list_models">;
8086
8094
  }, z$1.core.$strip>, z$1.ZodObject<{
8087
8095
  models: z$1.ZodArray<z$1.ZodObject<{
8088
- defaultReasoningEffort: z$1.ZodEnum<{
8089
- high: "high";
8090
- low: "low";
8091
- max: "max";
8092
- medium: "medium";
8093
- none: "none";
8094
- ultra: "ultra";
8095
- ultracode: "ultracode";
8096
- xhigh: "xhigh";
8097
- }>;
8096
+ defaultReasoningEffort: z$1.ZodString;
8098
8097
  description: z$1.ZodString;
8099
8098
  displayName: z$1.ZodString;
8100
8099
  id: z$1.ZodString;
8101
8100
  isDefault: z$1.ZodBoolean;
8102
8101
  model: z$1.ZodString;
8103
8102
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
8103
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8104
+ category: z$1.ZodOptional<z$1.ZodString>;
8105
+ description: z$1.ZodOptional<z$1.ZodString>;
8106
+ id: z$1.ZodString;
8107
+ label: z$1.ZodString;
8108
+ type: z$1.ZodLiteral<"select">;
8109
+ value: z$1.ZodString;
8110
+ values: z$1.ZodArray<z$1.ZodObject<{
8111
+ description: z$1.ZodOptional<z$1.ZodString>;
8112
+ group: z$1.ZodOptional<z$1.ZodString>;
8113
+ id: z$1.ZodString;
8114
+ label: z$1.ZodString;
8115
+ }, z$1.core.$strip>>;
8116
+ }, z$1.core.$strip>, z$1.ZodObject<{
8117
+ category: z$1.ZodOptional<z$1.ZodString>;
8118
+ description: z$1.ZodOptional<z$1.ZodString>;
8119
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
8120
+ id: z$1.ZodString;
8121
+ label: z$1.ZodString;
8122
+ type: z$1.ZodLiteral<"boolean">;
8123
+ value: z$1.ZodBoolean;
8124
+ }, z$1.core.$strip>], "type">>>;
8104
8125
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
8105
8126
  description: z$1.ZodString;
8106
- reasoningEffort: z$1.ZodEnum<{
8107
- high: "high";
8108
- low: "low";
8109
- max: "max";
8110
- medium: "medium";
8111
- none: "none";
8112
- ultra: "ultra";
8113
- ultracode: "ultracode";
8114
- xhigh: "xhigh";
8115
- }>;
8127
+ label: z$1.ZodOptional<z$1.ZodString>;
8128
+ reasoningEffort: z$1.ZodString;
8116
8129
  }, z$1.core.$strip>>;
8117
8130
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
8118
8131
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -8121,34 +8134,39 @@ declare const hostDaemonCommandRegistry: {
8121
8134
  }, z$1.core.$strip>>>;
8122
8135
  }, z$1.core.$strip>>;
8123
8136
  selectedOnlyModels: z$1.ZodArray<z$1.ZodObject<{
8124
- defaultReasoningEffort: z$1.ZodEnum<{
8125
- high: "high";
8126
- low: "low";
8127
- max: "max";
8128
- medium: "medium";
8129
- none: "none";
8130
- ultra: "ultra";
8131
- ultracode: "ultracode";
8132
- xhigh: "xhigh";
8133
- }>;
8137
+ defaultReasoningEffort: z$1.ZodString;
8134
8138
  description: z$1.ZodString;
8135
8139
  displayName: z$1.ZodString;
8136
8140
  id: z$1.ZodString;
8137
8141
  isDefault: z$1.ZodBoolean;
8138
8142
  model: z$1.ZodString;
8139
8143
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
8144
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8145
+ category: z$1.ZodOptional<z$1.ZodString>;
8146
+ description: z$1.ZodOptional<z$1.ZodString>;
8147
+ id: z$1.ZodString;
8148
+ label: z$1.ZodString;
8149
+ type: z$1.ZodLiteral<"select">;
8150
+ value: z$1.ZodString;
8151
+ values: z$1.ZodArray<z$1.ZodObject<{
8152
+ description: z$1.ZodOptional<z$1.ZodString>;
8153
+ group: z$1.ZodOptional<z$1.ZodString>;
8154
+ id: z$1.ZodString;
8155
+ label: z$1.ZodString;
8156
+ }, z$1.core.$strip>>;
8157
+ }, z$1.core.$strip>, z$1.ZodObject<{
8158
+ category: z$1.ZodOptional<z$1.ZodString>;
8159
+ description: z$1.ZodOptional<z$1.ZodString>;
8160
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
8161
+ id: z$1.ZodString;
8162
+ label: z$1.ZodString;
8163
+ type: z$1.ZodLiteral<"boolean">;
8164
+ value: z$1.ZodBoolean;
8165
+ }, z$1.core.$strip>], "type">>>;
8140
8166
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
8141
8167
  description: z$1.ZodString;
8142
- reasoningEffort: z$1.ZodEnum<{
8143
- high: "high";
8144
- low: "low";
8145
- max: "max";
8146
- medium: "medium";
8147
- none: "none";
8148
- ultra: "ultra";
8149
- ultracode: "ultracode";
8150
- xhigh: "xhigh";
8151
- }>;
8168
+ label: z$1.ZodOptional<z$1.ZodString>;
8169
+ reasoningEffort: z$1.ZodString;
8152
8170
  }, z$1.core.$strip>>;
8153
8171
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
8154
8172
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -9964,6 +9982,7 @@ declare const pluginSettingsResponseSchema: z$1.ZodObject<{
9964
9982
  }, z$1.core.$strict>, z$1.ZodObject<{
9965
9983
  default: z$1.ZodOptional<z$1.ZodString>;
9966
9984
  description: z$1.ZodOptional<z$1.ZodString>;
9985
+ experimental_optionLabels: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
9967
9986
  label: z$1.ZodString;
9968
9987
  options: z$1.ZodArray<z$1.ZodString>;
9969
9988
  type: z$1.ZodLiteral<"select">;
@@ -10202,34 +10221,39 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
10202
10221
  providerId: z$1.ZodString;
10203
10222
  }, z$1.core.$strip>>;
10204
10223
  models: z$1.ZodArray<z$1.ZodObject<{
10205
- defaultReasoningEffort: z$1.ZodEnum<{
10206
- high: "high";
10207
- low: "low";
10208
- max: "max";
10209
- medium: "medium";
10210
- none: "none";
10211
- ultra: "ultra";
10212
- ultracode: "ultracode";
10213
- xhigh: "xhigh";
10214
- }>;
10224
+ defaultReasoningEffort: z$1.ZodString;
10215
10225
  description: z$1.ZodString;
10216
10226
  displayName: z$1.ZodString;
10217
10227
  id: z$1.ZodString;
10218
10228
  isDefault: z$1.ZodBoolean;
10219
10229
  model: z$1.ZodString;
10220
10230
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
10231
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10232
+ category: z$1.ZodOptional<z$1.ZodString>;
10233
+ description: z$1.ZodOptional<z$1.ZodString>;
10234
+ id: z$1.ZodString;
10235
+ label: z$1.ZodString;
10236
+ type: z$1.ZodLiteral<"select">;
10237
+ value: z$1.ZodString;
10238
+ values: z$1.ZodArray<z$1.ZodObject<{
10239
+ description: z$1.ZodOptional<z$1.ZodString>;
10240
+ group: z$1.ZodOptional<z$1.ZodString>;
10241
+ id: z$1.ZodString;
10242
+ label: z$1.ZodString;
10243
+ }, z$1.core.$strip>>;
10244
+ }, z$1.core.$strip>, z$1.ZodObject<{
10245
+ category: z$1.ZodOptional<z$1.ZodString>;
10246
+ description: z$1.ZodOptional<z$1.ZodString>;
10247
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
10248
+ id: z$1.ZodString;
10249
+ label: z$1.ZodString;
10250
+ type: z$1.ZodLiteral<"boolean">;
10251
+ value: z$1.ZodBoolean;
10252
+ }, z$1.core.$strip>], "type">>>;
10221
10253
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
10222
10254
  description: z$1.ZodString;
10223
- reasoningEffort: z$1.ZodEnum<{
10224
- high: "high";
10225
- low: "low";
10226
- max: "max";
10227
- medium: "medium";
10228
- none: "none";
10229
- ultra: "ultra";
10230
- ultracode: "ultracode";
10231
- xhigh: "xhigh";
10232
- }>;
10255
+ label: z$1.ZodOptional<z$1.ZodString>;
10256
+ reasoningEffort: z$1.ZodString;
10233
10257
  }, z$1.core.$strip>>;
10234
10258
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10235
10259
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -10332,34 +10356,39 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
10332
10356
  }, z$1.core.$strip>>;
10333
10357
  }, z$1.core.$strip>>;
10334
10358
  selectedOnlyModels: z$1.ZodArray<z$1.ZodObject<{
10335
- defaultReasoningEffort: z$1.ZodEnum<{
10336
- high: "high";
10337
- low: "low";
10338
- max: "max";
10339
- medium: "medium";
10340
- none: "none";
10341
- ultra: "ultra";
10342
- ultracode: "ultracode";
10343
- xhigh: "xhigh";
10344
- }>;
10359
+ defaultReasoningEffort: z$1.ZodString;
10345
10360
  description: z$1.ZodString;
10346
10361
  displayName: z$1.ZodString;
10347
10362
  id: z$1.ZodString;
10348
10363
  isDefault: z$1.ZodBoolean;
10349
10364
  model: z$1.ZodString;
10350
10365
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
10366
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10367
+ category: z$1.ZodOptional<z$1.ZodString>;
10368
+ description: z$1.ZodOptional<z$1.ZodString>;
10369
+ id: z$1.ZodString;
10370
+ label: z$1.ZodString;
10371
+ type: z$1.ZodLiteral<"select">;
10372
+ value: z$1.ZodString;
10373
+ values: z$1.ZodArray<z$1.ZodObject<{
10374
+ description: z$1.ZodOptional<z$1.ZodString>;
10375
+ group: z$1.ZodOptional<z$1.ZodString>;
10376
+ id: z$1.ZodString;
10377
+ label: z$1.ZodString;
10378
+ }, z$1.core.$strip>>;
10379
+ }, z$1.core.$strip>, z$1.ZodObject<{
10380
+ category: z$1.ZodOptional<z$1.ZodString>;
10381
+ description: z$1.ZodOptional<z$1.ZodString>;
10382
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
10383
+ id: z$1.ZodString;
10384
+ label: z$1.ZodString;
10385
+ type: z$1.ZodLiteral<"boolean">;
10386
+ value: z$1.ZodBoolean;
10387
+ }, z$1.core.$strip>], "type">>>;
10351
10388
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
10352
10389
  description: z$1.ZodString;
10353
- reasoningEffort: z$1.ZodEnum<{
10354
- high: "high";
10355
- low: "low";
10356
- max: "max";
10357
- medium: "medium";
10358
- none: "none";
10359
- ultra: "ultra";
10360
- ultracode: "ultracode";
10361
- xhigh: "xhigh";
10362
- }>;
10390
+ label: z$1.ZodOptional<z$1.ZodString>;
10391
+ reasoningEffort: z$1.ZodString;
10363
10392
  }, z$1.core.$strip>>;
10364
10393
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10365
10394
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -10678,7 +10707,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10678
10707
  flat: "flat";
10679
10708
  }>>;
10680
10709
  providerOrder: z$1.ZodArray<z$1.ZodString>;
10681
- setupChecklistVisible: z$1.ZodBoolean;
10682
10710
  showDiagnosticEvents: z$1.ZodBoolean;
10683
10711
  showGitChanges: z$1.ZodBoolean;
10684
10712
  showKeyboardHints: z$1.ZodBoolean;
@@ -11458,6 +11486,11 @@ type TimelineRowBase = z$1.infer<typeof timelineRowBaseSchema>;
11458
11486
  declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11459
11487
  attachments: z$1.ZodNullable<z$1.ZodObject<{
11460
11488
  imageUrls: z$1.ZodArray<z$1.ZodString>;
11489
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
11490
+ name: z$1.ZodString;
11491
+ path: z$1.ZodString;
11492
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
11493
+ }, z$1.core.$strip>>;
11461
11494
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
11462
11495
  localFiles: z$1.ZodNumber;
11463
11496
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -11523,6 +11556,10 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11523
11556
  kind: z$1.ZodLiteral<"plugin">;
11524
11557
  label: z$1.ZodString;
11525
11558
  pluginId: z$1.ZodString;
11559
+ }, z$1.core.$strip>, z$1.ZodObject<{
11560
+ kind: z$1.ZodLiteral<"attachment">;
11561
+ label: z$1.ZodString;
11562
+ path: z$1.ZodString;
11526
11563
  }, z$1.core.$strip>], "kind">, unknown>;
11527
11564
  start: z$1.ZodNumber;
11528
11565
  }, z$1.core.$strip>>;
@@ -11607,6 +11644,11 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11607
11644
  }, z$1.core.$strip>, z$1.ZodObject<{
11608
11645
  attachments: z$1.ZodNullable<z$1.ZodObject<{
11609
11646
  imageUrls: z$1.ZodArray<z$1.ZodString>;
11647
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
11648
+ name: z$1.ZodString;
11649
+ path: z$1.ZodString;
11650
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
11651
+ }, z$1.core.$strip>>;
11610
11652
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
11611
11653
  localFiles: z$1.ZodNumber;
11612
11654
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -12738,6 +12780,10 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
12738
12780
  kind: z$1.ZodLiteral<"plugin">;
12739
12781
  label: z$1.ZodString;
12740
12782
  pluginId: z$1.ZodString;
12783
+ }, z$1.core.$strip>, z$1.ZodObject<{
12784
+ kind: z$1.ZodLiteral<"attachment">;
12785
+ label: z$1.ZodString;
12786
+ path: z$1.ZodString;
12741
12787
  }, z$1.core.$strip>], "kind">, unknown>;
12742
12788
  start: z$1.ZodNumber;
12743
12789
  }, z$1.core.$strip>>>;
@@ -12798,19 +12844,11 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
12798
12844
  }, z$1.core.$strip>>;
12799
12845
  projectId: z$1.ZodString;
12800
12846
  providerId: z$1.ZodOptional<z$1.ZodString>;
12801
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
12802
- high: "high";
12803
- low: "low";
12804
- max: "max";
12805
- medium: "medium";
12806
- none: "none";
12807
- ultra: "ultra";
12808
- ultracode: "ultracode";
12809
- xhigh: "xhigh";
12810
- }>>;
12847
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
12811
12848
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
12812
12849
  sendAt: z$1.ZodOptional<z$1.ZodNumber>;
12813
12850
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
12851
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
12814
12852
  sourceSeqEnd: z$1.ZodOptional<z$1.ZodNumber>;
12815
12853
  sourceThreadId: z$1.ZodOptional<z$1.ZodString>;
12816
12854
  startedOnBehalfOf: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodObject<{
@@ -12880,6 +12918,10 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
12880
12918
  kind: z$1.ZodLiteral<"plugin">;
12881
12919
  label: z$1.ZodString;
12882
12920
  pluginId: z$1.ZodString;
12921
+ }, z$1.core.$strip>, z$1.ZodObject<{
12922
+ kind: z$1.ZodLiteral<"attachment">;
12923
+ label: z$1.ZodString;
12924
+ path: z$1.ZodString;
12883
12925
  }, z$1.core.$strip>], "kind">, unknown>;
12884
12926
  start: z$1.ZodNumber;
12885
12927
  }, z$1.core.$strip>>>;
@@ -13010,6 +13052,10 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
13010
13052
  kind: z$1.ZodLiteral<"plugin">;
13011
13053
  label: z$1.ZodString;
13012
13054
  pluginId: z$1.ZodString;
13055
+ }, z$1.core.$strip>, z$1.ZodObject<{
13056
+ kind: z$1.ZodLiteral<"attachment">;
13057
+ label: z$1.ZodString;
13058
+ path: z$1.ZodString;
13013
13059
  }, z$1.core.$strip>], "kind">, unknown>;
13014
13060
  start: z$1.ZodNumber;
13015
13061
  }, z$1.core.$strip>>>;
@@ -13138,6 +13184,10 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
13138
13184
  kind: z$1.ZodLiteral<"plugin">;
13139
13185
  label: z$1.ZodString;
13140
13186
  pluginId: z$1.ZodString;
13187
+ }, z$1.core.$strip>, z$1.ZodObject<{
13188
+ kind: z$1.ZodLiteral<"attachment">;
13189
+ label: z$1.ZodString;
13190
+ path: z$1.ZodString;
13141
13191
  }, z$1.core.$strip>], "kind">, unknown>;
13142
13192
  start: z$1.ZodNumber;
13143
13193
  }, z$1.core.$strip>>>;
@@ -13189,16 +13239,7 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
13189
13239
  data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
13190
13240
  pluginId: z$1.ZodString;
13191
13241
  }, z$1.core.$strip>>;
13192
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
13193
- high: "high";
13194
- low: "low";
13195
- max: "max";
13196
- medium: "medium";
13197
- none: "none";
13198
- ultra: "ultra";
13199
- ultracode: "ultracode";
13200
- xhigh: "xhigh";
13201
- }>>;
13242
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13202
13243
  sendAt: z$1.ZodOptional<z$1.ZodNumber>;
13203
13244
  senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13204
13245
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
@@ -13268,6 +13309,10 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
13268
13309
  kind: z$1.ZodLiteral<"plugin">;
13269
13310
  label: z$1.ZodString;
13270
13311
  pluginId: z$1.ZodString;
13312
+ }, z$1.core.$strip>, z$1.ZodObject<{
13313
+ kind: z$1.ZodLiteral<"attachment">;
13314
+ label: z$1.ZodString;
13315
+ path: z$1.ZodString;
13271
13316
  }, z$1.core.$strip>], "kind">, unknown>;
13272
13317
  start: z$1.ZodNumber;
13273
13318
  }, z$1.core.$strip>>>;
@@ -13333,16 +13378,7 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
13333
13378
  auto: "auto";
13334
13379
  full: "full";
13335
13380
  }>;
13336
- reasoningLevel: z$1.ZodEnum<{
13337
- high: "high";
13338
- low: "low";
13339
- max: "max";
13340
- medium: "medium";
13341
- none: "none";
13342
- ultra: "ultra";
13343
- ultracode: "ultracode";
13344
- xhigh: "xhigh";
13345
- }>;
13381
+ reasoningLevel: z$1.ZodString;
13346
13382
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
13347
13383
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
13348
13384
  serviceTier: z$1.ZodString;
@@ -13443,6 +13479,10 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
13443
13479
  kind: z$1.ZodLiteral<"plugin">;
13444
13480
  label: z$1.ZodString;
13445
13481
  pluginId: z$1.ZodString;
13482
+ }, z$1.core.$strip>, z$1.ZodObject<{
13483
+ kind: z$1.ZodLiteral<"attachment">;
13484
+ label: z$1.ZodString;
13485
+ path: z$1.ZodString;
13446
13486
  }, z$1.core.$strip>], "kind">, unknown>;
13447
13487
  start: z$1.ZodNumber;
13448
13488
  }, z$1.core.$strip>>>;
@@ -13484,16 +13524,7 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
13484
13524
  auto: "auto";
13485
13525
  full: "full";
13486
13526
  }>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
13487
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
13488
- high: "high";
13489
- low: "low";
13490
- max: "max";
13491
- medium: "medium";
13492
- none: "none";
13493
- ultra: "ultra";
13494
- ultracode: "ultracode";
13495
- xhigh: "xhigh";
13496
- }>>;
13527
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13497
13528
  senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13498
13529
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
13499
13530
  }, z$1.core.$strict>;
@@ -13616,6 +13647,10 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13616
13647
  kind: z$1.ZodLiteral<"plugin">;
13617
13648
  label: z$1.ZodString;
13618
13649
  pluginId: z$1.ZodString;
13650
+ }, z$1.core.$strip>, z$1.ZodObject<{
13651
+ kind: z$1.ZodLiteral<"attachment">;
13652
+ label: z$1.ZodString;
13653
+ path: z$1.ZodString;
13619
13654
  }, z$1.core.$strip>], "kind">, unknown>;
13620
13655
  start: z$1.ZodNumber;
13621
13656
  }, z$1.core.$strip>>>;
@@ -13656,16 +13691,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13656
13691
  auto: "auto";
13657
13692
  full: "full";
13658
13693
  }>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
13659
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
13660
- high: "high";
13661
- low: "low";
13662
- max: "max";
13663
- medium: "medium";
13664
- none: "none";
13665
- ultra: "ultra";
13666
- ultracode: "ultracode";
13667
- xhigh: "xhigh";
13668
- }>>;
13694
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13669
13695
  senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13670
13696
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
13671
13697
  }, z$1.core.$strip>;
@@ -13724,6 +13750,10 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13724
13750
  kind: z$1.ZodLiteral<"plugin">;
13725
13751
  label: z$1.ZodString;
13726
13752
  pluginId: z$1.ZodString;
13753
+ }, z$1.core.$strip>, z$1.ZodObject<{
13754
+ kind: z$1.ZodLiteral<"attachment">;
13755
+ label: z$1.ZodString;
13756
+ path: z$1.ZodString;
13727
13757
  }, z$1.core.$strip>], "kind">, unknown>;
13728
13758
  start: z$1.ZodNumber;
13729
13759
  }, z$1.core.$strip>>>;
@@ -13841,6 +13871,10 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
13841
13871
  kind: z$1.ZodLiteral<"plugin">;
13842
13872
  label: z$1.ZodString;
13843
13873
  pluginId: z$1.ZodString;
13874
+ }, z$1.core.$strip>, z$1.ZodObject<{
13875
+ kind: z$1.ZodLiteral<"attachment">;
13876
+ label: z$1.ZodString;
13877
+ path: z$1.ZodString;
13844
13878
  }, z$1.core.$strip>], "kind">, unknown>;
13845
13879
  start: z$1.ZodNumber;
13846
13880
  }, z$1.core.$strip>>>;
@@ -13906,16 +13940,7 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
13906
13940
  auto: "auto";
13907
13941
  full: "full";
13908
13942
  }>;
13909
- reasoningLevel: z$1.ZodEnum<{
13910
- high: "high";
13911
- low: "low";
13912
- max: "max";
13913
- medium: "medium";
13914
- none: "none";
13915
- ultra: "ultra";
13916
- ultracode: "ultracode";
13917
- xhigh: "xhigh";
13918
- }>;
13943
+ reasoningLevel: z$1.ZodString;
13919
13944
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
13920
13945
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
13921
13946
  serviceTier: z$1.ZodString;
@@ -14271,6 +14296,27 @@ declare const threadGetQuerySchema: z$1.ZodObject<{
14271
14296
  }, z$1.core.$strip>;
14272
14297
  type ThreadGetQuery = z$1.infer<typeof threadGetQuerySchema>;
14273
14298
  type ThreadPluginMetadataResponse = z$1.infer<typeof pluginMetadataSchema>;
14299
+ declare const pluginThreadMetadataListResponseSchema: z$1.ZodObject<{
14300
+ threads: z$1.ZodArray<z$1.ZodObject<{
14301
+ metadata: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
14302
+ threadId: z$1.ZodString;
14303
+ }, z$1.core.$strict>>;
14304
+ }, z$1.core.$strict>;
14305
+ type PluginThreadMetadataListResponse = z$1.infer<typeof pluginThreadMetadataListResponseSchema>;
14306
+ declare const threadAncestorsListResponseSchema: z$1.ZodObject<{
14307
+ threads: z$1.ZodArray<z$1.ZodObject<{
14308
+ ancestorIds: z$1.ZodArray<z$1.ZodString>;
14309
+ threadId: z$1.ZodString;
14310
+ }, z$1.core.$strict>>;
14311
+ }, z$1.core.$strict>;
14312
+ type ThreadAncestorsListResponse = z$1.infer<typeof threadAncestorsListResponseSchema>;
14313
+ declare const threadDescendantsListResponseSchema: z$1.ZodObject<{
14314
+ threads: z$1.ZodArray<z$1.ZodObject<{
14315
+ descendantIds: z$1.ZodArray<z$1.ZodString>;
14316
+ threadId: z$1.ZodString;
14317
+ }, z$1.core.$strict>>;
14318
+ }, z$1.core.$strict>;
14319
+ type ThreadDescendantsListResponse = z$1.infer<typeof threadDescendantsListResponseSchema>;
14274
14320
  declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14275
14321
  activeBackgroundAgentCount: z$1.ZodNumber;
14276
14322
  archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -14772,6 +14818,10 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
14772
14818
  kind: z$1.ZodLiteral<"plugin">;
14773
14819
  label: z$1.ZodString;
14774
14820
  pluginId: z$1.ZodString;
14821
+ }, z$1.core.$strip>, z$1.ZodObject<{
14822
+ kind: z$1.ZodLiteral<"attachment">;
14823
+ label: z$1.ZodString;
14824
+ path: z$1.ZodString;
14775
14825
  }, z$1.core.$strip>], "kind">, unknown>;
14776
14826
  start: z$1.ZodNumber;
14777
14827
  }, z$1.core.$strip>>>;
@@ -14837,16 +14887,7 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
14837
14887
  auto: "auto";
14838
14888
  full: "full";
14839
14889
  }>;
14840
- reasoningLevel: z$1.ZodEnum<{
14841
- high: "high";
14842
- low: "low";
14843
- max: "max";
14844
- medium: "medium";
14845
- none: "none";
14846
- ultra: "ultra";
14847
- ultracode: "ultracode";
14848
- xhigh: "xhigh";
14849
- }>;
14890
+ reasoningLevel: z$1.ZodString;
14850
14891
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
14851
14892
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14852
14893
  serviceTier: z$1.ZodString;
@@ -14886,17 +14927,9 @@ type DeleteThreadRequest = z$1.infer<typeof deleteThreadRequestSchema>;
14886
14927
  declare const updateThreadRequestSchema: z$1.ZodObject<{
14887
14928
  model: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14888
14929
  parentThreadId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14889
- reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEnum<{
14890
- high: "high";
14891
- low: "low";
14892
- max: "max";
14893
- medium: "medium";
14894
- none: "none";
14895
- ultra: "ultra";
14896
- ultracode: "ultracode";
14897
- xhigh: "xhigh";
14898
- }>>>;
14930
+ reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14899
14931
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14932
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>>;
14900
14933
  title: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14901
14934
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
14902
14935
  hidden: "hidden";
@@ -15047,6 +15080,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15047
15080
  after: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15048
15081
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15049
15082
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15083
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15084
+ name: z$1.ZodString;
15085
+ path: z$1.ZodString;
15086
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15087
+ }, z$1.core.$strip>>;
15050
15088
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15051
15089
  localFiles: z$1.ZodNumber;
15052
15090
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15112,6 +15150,10 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15112
15150
  kind: z$1.ZodLiteral<"plugin">;
15113
15151
  label: z$1.ZodString;
15114
15152
  pluginId: z$1.ZodString;
15153
+ }, z$1.core.$strip>, z$1.ZodObject<{
15154
+ kind: z$1.ZodLiteral<"attachment">;
15155
+ label: z$1.ZodString;
15156
+ path: z$1.ZodString;
15115
15157
  }, z$1.core.$strip>], "kind">, unknown>;
15116
15158
  start: z$1.ZodNumber;
15117
15159
  }, z$1.core.$strip>>;
@@ -15196,6 +15238,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15196
15238
  }, z$1.core.$strip>, z$1.ZodObject<{
15197
15239
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15198
15240
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15241
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15242
+ name: z$1.ZodString;
15243
+ path: z$1.ZodString;
15244
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15245
+ }, z$1.core.$strip>>;
15199
15246
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15200
15247
  localFiles: z$1.ZodNumber;
15201
15248
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15218,6 +15265,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15218
15265
  before: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15219
15266
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15220
15267
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15268
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15269
+ name: z$1.ZodString;
15270
+ path: z$1.ZodString;
15271
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15272
+ }, z$1.core.$strip>>;
15221
15273
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15222
15274
  localFiles: z$1.ZodNumber;
15223
15275
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15283,6 +15335,10 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15283
15335
  kind: z$1.ZodLiteral<"plugin">;
15284
15336
  label: z$1.ZodString;
15285
15337
  pluginId: z$1.ZodString;
15338
+ }, z$1.core.$strip>, z$1.ZodObject<{
15339
+ kind: z$1.ZodLiteral<"attachment">;
15340
+ label: z$1.ZodString;
15341
+ path: z$1.ZodString;
15286
15342
  }, z$1.core.$strip>], "kind">, unknown>;
15287
15343
  start: z$1.ZodNumber;
15288
15344
  }, z$1.core.$strip>>;
@@ -15367,6 +15423,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15367
15423
  }, z$1.core.$strip>, z$1.ZodObject<{
15368
15424
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15369
15425
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15426
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15427
+ name: z$1.ZodString;
15428
+ path: z$1.ZodString;
15429
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15430
+ }, z$1.core.$strip>>;
15370
15431
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15371
15432
  localFiles: z$1.ZodNumber;
15372
15433
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15389,6 +15450,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15389
15450
  message: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15390
15451
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15391
15452
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15453
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15454
+ name: z$1.ZodString;
15455
+ path: z$1.ZodString;
15456
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15457
+ }, z$1.core.$strip>>;
15392
15458
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15393
15459
  localFiles: z$1.ZodNumber;
15394
15460
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15454,6 +15520,10 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15454
15520
  kind: z$1.ZodLiteral<"plugin">;
15455
15521
  label: z$1.ZodString;
15456
15522
  pluginId: z$1.ZodString;
15523
+ }, z$1.core.$strip>, z$1.ZodObject<{
15524
+ kind: z$1.ZodLiteral<"attachment">;
15525
+ label: z$1.ZodString;
15526
+ path: z$1.ZodString;
15457
15527
  }, z$1.core.$strip>], "kind">, unknown>;
15458
15528
  start: z$1.ZodNumber;
15459
15529
  }, z$1.core.$strip>>;
@@ -15538,6 +15608,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15538
15608
  }, z$1.core.$strip>, z$1.ZodObject<{
15539
15609
  attachments: z$1.ZodNullable<z$1.ZodObject<{
15540
15610
  imageUrls: z$1.ZodArray<z$1.ZodString>;
15611
+ localFileDetails: z$1.ZodArray<z$1.ZodObject<{
15612
+ name: z$1.ZodString;
15613
+ path: z$1.ZodString;
15614
+ sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
15615
+ }, z$1.core.$strip>>;
15541
15616
  localFilePaths: z$1.ZodArray<z$1.ZodString>;
15542
15617
  localFiles: z$1.ZodNumber;
15543
15618
  localImagePaths: z$1.ZodArray<z$1.ZodString>;
@@ -15806,6 +15881,10 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
15806
15881
  }>;
15807
15882
  contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
15808
15883
  contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
15884
+ cost: z$1.ZodOptional<z$1.ZodObject<{
15885
+ amount: z$1.ZodNumber;
15886
+ currency: z$1.ZodString;
15887
+ }, z$1.core.$strip>>;
15809
15888
  estimated: z$1.ZodBoolean;
15810
15889
  modelContextWindow: z$1.ZodNumber;
15811
15890
  snapshot: z$1.ZodOptional<z$1.ZodObject<{
@@ -15879,7 +15958,44 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
15879
15958
  sourceSeq: z$1.ZodNumber;
15880
15959
  updatedAt: z$1.ZodNumber;
15881
15960
  }, z$1.core.$strip>>;
15961
+ providerCommands: z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
15962
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
15963
+ description: z$1.ZodNullable<z$1.ZodString>;
15964
+ name: z$1.ZodString;
15965
+ origin: z$1.ZodEnum<{
15966
+ builtin: "builtin";
15967
+ project: "project";
15968
+ user: "user";
15969
+ }>;
15970
+ source: z$1.ZodEnum<{
15971
+ command: "command";
15972
+ skill: "skill";
15973
+ }>;
15974
+ }, z$1.core.$strip>>>;
15882
15975
  rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
15976
+ sessionOptions: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15977
+ category: z$1.ZodNullable<z$1.ZodString>;
15978
+ description: z$1.ZodNullable<z$1.ZodString>;
15979
+ id: z$1.ZodString;
15980
+ label: z$1.ZodString;
15981
+ pendingValue: z$1.ZodNullable<z$1.ZodString>;
15982
+ type: z$1.ZodLiteral<"select">;
15983
+ value: z$1.ZodString;
15984
+ values: z$1.ZodArray<z$1.ZodObject<{
15985
+ description: z$1.ZodNullable<z$1.ZodString>;
15986
+ group: z$1.ZodNullable<z$1.ZodString>;
15987
+ id: z$1.ZodString;
15988
+ label: z$1.ZodString;
15989
+ }, z$1.core.$strip>>;
15990
+ }, z$1.core.$strip>, z$1.ZodObject<{
15991
+ category: z$1.ZodNullable<z$1.ZodString>;
15992
+ description: z$1.ZodNullable<z$1.ZodString>;
15993
+ id: z$1.ZodString;
15994
+ label: z$1.ZodString;
15995
+ pendingValue: z$1.ZodNullable<z$1.ZodBoolean>;
15996
+ type: z$1.ZodLiteral<"boolean">;
15997
+ value: z$1.ZodBoolean;
15998
+ }, z$1.core.$strip>], "type">>>;
15883
15999
  timelinePage: z$1.ZodObject<{
15884
16000
  contentPage: z$1.ZodOptional<z$1.ZodObject<{
15885
16001
  anchorSeq: z$1.ZodNumber;
@@ -16314,6 +16430,12 @@ declare const threadTabsResponseSchema: z$1.ZodObject<{
16314
16430
  }, z$1.core.$strict>>;
16315
16431
  path: z$1.ZodString;
16316
16432
  threadId: z$1.ZodNullable<z$1.ZodString>;
16433
+ }, z$1.core.$strict>, z$1.ZodObject<{
16434
+ id: z$1.ZodString;
16435
+ kind: z$1.ZodLiteral<"attachment-file-preview">;
16436
+ name: z$1.ZodString;
16437
+ path: z$1.ZodString;
16438
+ projectId: z$1.ZodString;
16317
16439
  }, z$1.core.$strict>, z$1.ZodObject<{
16318
16440
  desktopTarget: z$1.ZodOptional<z$1.ZodObject<{
16319
16441
  generation: z$1.ZodString;
@@ -16454,6 +16576,12 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
16454
16576
  }, z$1.core.$strict>>;
16455
16577
  path: z$1.ZodString;
16456
16578
  threadId: z$1.ZodNullable<z$1.ZodString>;
16579
+ }, z$1.core.$strict>, z$1.ZodObject<{
16580
+ id: z$1.ZodString;
16581
+ kind: z$1.ZodLiteral<"attachment-file-preview">;
16582
+ name: z$1.ZodString;
16583
+ path: z$1.ZodString;
16584
+ projectId: z$1.ZodString;
16457
16585
  }, z$1.core.$strict>, z$1.ZodObject<{
16458
16586
  desktopTarget: z$1.ZodOptional<z$1.ZodObject<{
16459
16587
  generation: z$1.ZodString;
@@ -17732,6 +17860,9 @@ interface ThreadOutputResponse {
17732
17860
  }
17733
17861
  type ThreadMutationResult = ThreadResponse;
17734
17862
  type ThreadPluginMetadataResult = ThreadPluginMetadataResponse;
17863
+ type PluginThreadMetadataListResult = PluginThreadMetadataListResponse;
17864
+ type ThreadAncestorsListResult = ThreadAncestorsListResponse;
17865
+ type ThreadDescendantsListResult = ThreadDescendantsListResponse;
17735
17866
  type ThreadSpawnResult = ThreadResponse;
17736
17867
  type ThreadForkResult = ThreadResponse;
17737
17868
  type ThreadInteractionGetResult = PendingInteraction;
@@ -17816,6 +17947,21 @@ interface ThreadPluginMetadataArgs {
17816
17947
  signal?: AbortSignal;
17817
17948
  threadId: string;
17818
17949
  }
17950
+ interface PluginThreadMetadataListArgs {
17951
+ pluginId: string;
17952
+ threadIds: readonly string[];
17953
+ signal?: AbortSignal;
17954
+ }
17955
+ interface ThreadAncestorsListArgs {
17956
+ threadIds: readonly string[];
17957
+ signal?: AbortSignal;
17958
+ }
17959
+ interface ThreadDescendantsListArgs {
17960
+ threadIds: readonly string[];
17961
+ includeArchived?: boolean;
17962
+ includeHidden?: boolean;
17963
+ signal?: AbortSignal;
17964
+ }
17819
17965
  interface ThreadPluginMetadataUpdateArgs {
17820
17966
  threadId: string;
17821
17967
  pluginId: string;
@@ -18054,6 +18200,29 @@ interface ThreadsArea {
18054
18200
  fork(args: ThreadForkArgs): Promise<ThreadForkResult>;
18055
18201
  get(args: ThreadGetArgs): Promise<ThreadGetResult>;
18056
18202
  getPluginMetadata(args: ThreadPluginMetadataArgs): Promise<ThreadPluginMetadataResult>;
18203
+ /**
18204
+ * `pluginId`'s metadata for each of `threadIds` (1–200 per request) that
18205
+ * has any, as `{ threadId, metadata }` rows; archived and deleted threads
18206
+ * included.
18207
+ * Experimental: see docs/api_to_audit.md.
18208
+ */
18209
+ experimental_listPluginMetadata(args: PluginThreadMetadataListArgs): Promise<PluginThreadMetadataListResult>;
18210
+ /**
18211
+ * Each of `threadIds` (1–200 per request) that exists, with `ancestorIds`
18212
+ * from its parent up to the root (empty for a root thread); archived and
18213
+ * deleted threads included, unknown ids omitted.
18214
+ * Experimental: see docs/api_to_audit.md.
18215
+ */
18216
+ experimental_listAncestors(args: ThreadAncestorsListArgs): Promise<ThreadAncestorsListResult>;
18217
+ /**
18218
+ * Each of `threadIds` (1–200 per request) that exists and is not deleted,
18219
+ * with `descendantIds` for every thread below it, children first (empty
18220
+ * for a leaf). Archived and hidden descendants are omitted unless
18221
+ * `includeArchived` / `includeHidden` is true; threads below them are still
18222
+ * returned. Deleted threads and unknown ids are always omitted.
18223
+ * Experimental: see docs/api_to_audit.md.
18224
+ */
18225
+ experimental_listDescendants(args: ThreadDescendantsListArgs): Promise<ThreadDescendantsListResult>;
18057
18226
  updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
18058
18227
  queue: ThreadQueueArea;
18059
18228
  interactions: ThreadInteractionsArea;
@@ -19274,10 +19443,13 @@ interface ExperimentalClipboardContent {
19274
19443
  * origin, and the plugin-metadata calls default `pluginId`. The same
19275
19444
  * narrowing the backend `bb.sdk` applies.
19276
19445
  */
19277
- type PluginBoundThreadsArea = Omit<BbSdkAreas["threads"], "getPluginMetadata" | "updatePluginMetadata"> & {
19446
+ type PluginBoundThreadsArea = Omit<BbSdkAreas["threads"], "experimental_listPluginMetadata" | "getPluginMetadata" | "updatePluginMetadata"> & {
19278
19447
  getPluginMetadata(args: Omit<ThreadPluginMetadataArgs, "pluginId"> & {
19279
19448
  pluginId?: string;
19280
19449
  }): Promise<ThreadPluginMetadataResult>;
19450
+ experimental_listPluginMetadata(args: Omit<PluginThreadMetadataListArgs, "pluginId"> & {
19451
+ pluginId?: string;
19452
+ }): Promise<PluginThreadMetadataListResult>;
19281
19453
  updatePluginMetadata(args: Omit<ThreadPluginMetadataUpdateArgs, "pluginId"> & {
19282
19454
  pluginId?: string;
19283
19455
  }): Promise<ThreadPluginMetadataResult>;
@@ -19298,6 +19470,28 @@ interface PluginThreadTitleProps {
19298
19470
  /** A thread in the sidebar's live view; renders nothing for an unknown id. */
19299
19471
  threadId: string;
19300
19472
  }
19473
+ /**
19474
+ * Props for {@link PluginSdkApp.experimental_ThreadStatusGlyph}: bb's thread
19475
+ * status glyph, the one its own lists draw. The caller resolves the
19476
+ * indicator, so a row can fold in state the host does not know about, such
19477
+ * as collapsed children or a client-local draft.
19478
+ */
19479
+ interface PluginThreadStatusGlyphProps {
19480
+ /** The indicator to draw; "none" draws nothing unless `rowStatus` shows. */
19481
+ indicator: PluginSidebarThreadIndicator;
19482
+ /** Draws the archive glyph instead of the indicator. */
19483
+ archived?: boolean;
19484
+ /**
19485
+ * A status another plugin set on the row (see
19486
+ * {@link PluginSdkApp.useSidebarThreadRowStatus}). It replaces every
19487
+ * indicator except "runtime", "unread-error", and "waiting-for-input".
19488
+ */
19489
+ rowStatus?: PluginSidebarThreadRowStatus | null;
19490
+ /** Hides the idle draft glyph from assistive technology. */
19491
+ hideIdleDraftLabel?: boolean;
19492
+ /** "compact" draws a 14 px glyph; "default" matches bb's sidebar rows. */
19493
+ size?: "compact" | "default";
19494
+ }
19301
19495
  /**
19302
19496
  * One environment provider from bb's catalog (see
19303
19497
  * {@link PluginSdkApp.useEnvironmentProviders}): what a sidebar needs to
@@ -19347,62 +19541,6 @@ interface PluginSidebarThreadShortcut {
19347
19541
  /** Value for the row's `aria-keyshortcuts` attribute. */
19348
19542
  ariaKeyshortcuts: string;
19349
19543
  }
19350
- /**
19351
- * Act on threads from a plugin surface. Every method routes to the host's own
19352
- * flow, so optimistic updates, toasts, dialogs, pane closing, and route repair
19353
- * behave exactly as they do in the built-in sidebar. Unknown thread ids are
19354
- * ignored by `open` and rejected by the rest.
19355
- */
19356
- interface PluginSidebarThreadActions {
19357
- /**
19358
- * Navigate to a thread. `split: true` applies bb's split placement rules —
19359
- * a right split by default, focus when the thread is already open, replace
19360
- * at the pane cap — and falls back to plain navigation where splits are off.
19361
- * Opening also expands the thread's conversation if the secondary panel had
19362
- * collapsed it, as bb's own row does.
19363
- */
19364
- open(threadId: string, options?: {
19365
- split?: boolean;
19366
- }): void;
19367
- /**
19368
- * Go to the new-thread screen. Passing `projectId` also makes that project
19369
- * the composer's selection, so the thread is created where you asked.
19370
- * `sectionId` files the new thread under that section, and
19371
- * `environmentId` reuses that environment (the "New thread in
19372
- * environment" affordance), both exactly as bb's own list does.
19373
- * `experimental_placement` explicitly selects the section and pin state,
19374
- * overriding `sectionId`. Omitting placement starts unpinned, outside sections
19375
- * unless `sectionId` is supplied; previous composer placement is cleared.
19376
- * `hostId` selects a machine for a new environment when it
19377
- * is known and supports an environment provider. `environmentId` wins when
19378
- * both are supplied.
19379
- */
19380
- openNewThread(options?: {
19381
- projectId?: string;
19382
- sectionId?: string;
19383
- experimental_placement?: {
19384
- sectionId: string | null;
19385
- pinned: boolean;
19386
- };
19387
- environmentId?: string;
19388
- hostId?: string;
19389
- focusPrompt?: boolean;
19390
- }): void;
19391
- setPinned(threadId: string, pinned: boolean): Promise<void>;
19392
- setRead(threadId: string, read: boolean): Promise<void>;
19393
- /** Silent rename — no dialog. For inline editing in your own row. */
19394
- rename(threadId: string, title: string): Promise<void>;
19395
- /** Confirms before including child threads unless archive confirmation is disabled in Settings → General. */
19396
- archive(threadId: string): void;
19397
- /** 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. */
19398
- experimental_archiveEnvironmentThreads(environmentId: string): Promise<void>;
19399
- /**
19400
- * Opens bb's delete confirmation, which counts child threads first. Deletion
19401
- * is destructive and recursive, so the host owns the confirmation: there is
19402
- * deliberately no silent `delete`.
19403
- */
19404
- requestDelete(threadId: string): void;
19405
- }
19406
19544
  /**
19407
19545
  * Render a plugin component in the thread header's action row.
19408
19546
  *
@@ -19434,6 +19572,226 @@ interface ExperimentalPluginBrowserToolbarActionRegistration {
19434
19572
  /** Component rendered beside the Browser address bar. */
19435
19573
  component: ComponentType<ExperimentalPluginBrowserToolbarActionProps>;
19436
19574
  }
19575
+ /**
19576
+ * The thread a thread action is evaluated for: the fields bb's own actions
19577
+ * read, copied from the thread payload by the surface that shows the menu.
19578
+ */
19579
+ interface PluginThreadActionTarget {
19580
+ id: string;
19581
+ projectId: string;
19582
+ parentThreadId: string | null;
19583
+ archivedAt: number | null;
19584
+ pinnedAt: number | null;
19585
+ sectionId: string | null;
19586
+ isUnread: boolean;
19587
+ status: ThreadStatus;
19588
+ /**
19589
+ * The thread's environment when a new thread can reuse it, null otherwise.
19590
+ * `path` is the checkout path, null when the environment has none.
19591
+ */
19592
+ environment: {
19593
+ id: string;
19594
+ path: string | null;
19595
+ } | null;
19596
+ }
19597
+ /** One row of a thread action's choice list. */
19598
+ interface PluginThreadActionChoice {
19599
+ id: string;
19600
+ label: string;
19601
+ icon?: BbIconName;
19602
+ selected?: boolean;
19603
+ disabled?: boolean;
19604
+ }
19605
+ /**
19606
+ * A choice list instead of a direct action: a submenu in desktop menus, a step
19607
+ * with Back in the compact drawer, and a popover from a row's quick-action
19608
+ * button. `run` receives the picked choice's `id` as `value`.
19609
+ */
19610
+ interface PluginThreadActionChoices {
19611
+ /**
19612
+ * Title of the drawer step and the quick-action popover; defaults to the
19613
+ * action's label. Desktop submenus show none: their trigger names them.
19614
+ */
19615
+ heading?: string;
19616
+ /** Footnote below the choices, e.g. why the current value differs from the pick. */
19617
+ hint?: string;
19618
+ items: readonly PluginThreadActionChoice[];
19619
+ }
19620
+ /** What a thread action's `run` receives. */
19621
+ interface PluginThreadActionRunInput {
19622
+ /** The picked choice's `id` when the action has `choices`; otherwise undefined. */
19623
+ value?: string;
19624
+ /**
19625
+ * Start renaming a thread with the editor of the surface that showed the
19626
+ * menu: inline in the sidebar row or thread header, bb's rename dialog
19627
+ * elsewhere.
19628
+ */
19629
+ requestRename(threadId: string): void;
19630
+ }
19631
+ /** One evaluated thread action: what a registration shows for one thread. */
19632
+ interface PluginThreadAction {
19633
+ label: string;
19634
+ /**
19635
+ * Short secondary text on a muted second line under the label, e.g. the
19636
+ * current value of a choice list.
19637
+ */
19638
+ detail?: string;
19639
+ icon: BbIconName;
19640
+ variant?: "default" | "destructive";
19641
+ disabled?: boolean;
19642
+ choices?: PluginThreadActionChoices;
19643
+ /**
19644
+ * Runs when the user activates the action or picks a choice. Errors (sync
19645
+ * or async) are contained and logged; they never break the menu.
19646
+ */
19647
+ run(input: PluginThreadActionRunInput): void | Promise<void>;
19648
+ }
19649
+ /** What a registration's `useData` receives. */
19650
+ interface PluginThreadActionDataInput {
19651
+ /**
19652
+ * Every thread a visible surface currently shows actions for (sidebar rows
19653
+ * on screen, the open thread's header, open menus); a hidden sidebar
19654
+ * contributes none. Sorted, deduplicated, and published once the set has
19655
+ * been quiet for 32 ms (at most 100 ms after the first change), so rows
19656
+ * that mount a frame apart arrive together. Load per-thread state for these
19657
+ * ids, fetching only ids not loaded yet.
19658
+ */
19659
+ threadIds: readonly string[];
19660
+ }
19661
+ /** What a registration's `item` receives for each thread it is shown for. */
19662
+ interface PluginThreadActionItemInput<Data> {
19663
+ thread: PluginThreadActionTarget;
19664
+ /** What `useData` last returned; undefined when the registration has none. */
19665
+ data: Data;
19666
+ /** The registering plugin's `useSdk()` client. */
19667
+ sdk: PluginBrowserBbSdk;
19668
+ /**
19669
+ * The registering plugin's `useBbNavigate()`. Thread menus are not inside a
19670
+ * side panel, so `openThreadPanel` opens in the focused thread view, as
19671
+ * plugin commands do, and returns false when no thread view is open.
19672
+ */
19673
+ navigate: BbNavigate;
19674
+ }
19675
+ /**
19676
+ * Add an action to every thread actions menu: the thread header's menu, the
19677
+ * sidebar row's menu and right-click menu, the compact long-press drawer, and,
19678
+ * when the user picks it, a sidebar row's quick-action buttons. bb's own
19679
+ * actions (Open in split, Copy thread link, Mark read, Pin, Rename, Archive,
19680
+ * Delete, …) are registrations of this same shape.
19681
+ *
19682
+ * `useData` is a React hook the host calls once for the whole app, never per
19683
+ * thread or per menu; read app-wide state there (preferences, a realtime
19684
+ * channel, per-thread state for the `threadIds` it receives, fetched in one
19685
+ * batch for the ids not loaded yet). `item` is pure and synchronous: it
19686
+ * derives the action for one thread from that thread and `data`, closing over
19687
+ * everything `run` needs, or returns null to hide it. A throw from either
19688
+ * drops only this registration.
19689
+ */
19690
+ interface PluginThreadActionRegistration<Data = undefined> {
19691
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
19692
+ id: string;
19693
+ /** Static name, shown where the user picks a row's quick actions. */
19694
+ title: string;
19695
+ /** Static icon for that picker; the evaluated action's `icon` wins in menus. */
19696
+ icon: BbIconName;
19697
+ /**
19698
+ * Menus and the quick-action picker sort by `group` (string compare) with a
19699
+ * separator between groups, then by `order` within a group (unset sorts
19700
+ * last), then by registration order. bb's groups are
19701
+ * {@link PluginSdkApp.experimental_THREAD_ACTION_GROUPS}; any other string
19702
+ * is a group of its own, placed where it sorts.
19703
+ */
19704
+ group: string;
19705
+ order?: number;
19706
+ useData?(input: PluginThreadActionDataInput): Data;
19707
+ item(input: PluginThreadActionItemInput<Data>): PluginThreadAction | null;
19708
+ }
19709
+ /**
19710
+ * A thread action as {@link PluginSdkApp.experimental_useThreadActions}
19711
+ * returns it: `run` is bound to the caller's `requestRename` (or bb's rename
19712
+ * dialog), contains errors, and resolves when the action settles.
19713
+ */
19714
+ interface PluginBoundThreadAction extends Omit<PluginThreadAction, "run"> {
19715
+ /** `value` is the picked choice's `id` for an action with `choices`. */
19716
+ run(value?: string): Promise<void>;
19717
+ }
19718
+ /**
19719
+ * One row of {@link PluginSdkApp.experimental_useThreadActions}: `key` is
19720
+ * `<owner>/<id>`, where the owner is the registering plugin's id or
19721
+ * `bb--core` for bb's own actions.
19722
+ */
19723
+ interface PluginThreadActionEntry {
19724
+ key: string;
19725
+ pluginId: string;
19726
+ /** The registration's group, for separators in a caller's own list. */
19727
+ group: string;
19728
+ action: PluginBoundThreadAction;
19729
+ }
19730
+ /** One row of {@link PluginSdkApp.experimental_useThreadActionRegistrations}. */
19731
+ interface PluginThreadActionRegistrationInfo {
19732
+ key: string;
19733
+ pluginId: string;
19734
+ title: string;
19735
+ icon: BbIconName;
19736
+ }
19737
+ /** Options for {@link PluginSdkApp.experimental_useThreadActions}. */
19738
+ interface PluginThreadActionsOptions {
19739
+ /** Return only these keys, in this order. Omit for every action in menu order. */
19740
+ keys?: readonly string[];
19741
+ /**
19742
+ * The surface's own rename editor, passed to `run` as `requestRename`.
19743
+ * Omit to use bb's rename dialog.
19744
+ */
19745
+ requestRename?(threadId: string): void;
19746
+ }
19747
+ /**
19748
+ * An action a surface adds to its own copy of the thread menu, not a
19749
+ * registration: appended to the end of its `group`. `key` must be unique in
19750
+ * the menu.
19751
+ */
19752
+ interface PluginThreadActionsInlineItem {
19753
+ key: string;
19754
+ group: string;
19755
+ action: PluginThreadAction;
19756
+ }
19757
+ /**
19758
+ * What a thread menu's `trigger` receives: the menu's ARIA state, event
19759
+ * handlers, and ref. Spread all of them onto the button you render (compose
19760
+ * your own handlers after calling theirs); a trigger that drops them never
19761
+ * opens the menu.
19762
+ */
19763
+ type PluginThreadActionsTriggerProps = ComponentPropsWithRef<"button">;
19764
+ interface PluginThreadActionsMenuBaseProps {
19765
+ thread: PluginThreadActionTarget;
19766
+ inline?: readonly PluginThreadActionsInlineItem[];
19767
+ /** See {@link PluginThreadActionsOptions.requestRename}. */
19768
+ requestRename?(threadId: string): void;
19769
+ onOpenChange?(open: boolean): void;
19770
+ /** Radix's close auto-focus hook, to restore focus to the surface's own control. */
19771
+ onCloseAutoFocus?(event: Event): void;
19772
+ }
19773
+ /**
19774
+ * Props of the host-owned `experimental_ThreadActionsMenu`: bb's thread menu
19775
+ * opened from the button `trigger` renders (see
19776
+ * {@link PluginThreadActionsTriggerProps}), a drawer at compact width.
19777
+ */
19778
+ interface PluginThreadActionsMenuProps extends PluginThreadActionsMenuBaseProps {
19779
+ trigger(props: PluginThreadActionsTriggerProps): ReactNode;
19780
+ side?: "bottom" | "left" | "right" | "top";
19781
+ align?: "center" | "end" | "start";
19782
+ sideOffset?: number;
19783
+ }
19784
+ /**
19785
+ * Props of the host-owned `experimental_ThreadActionsContextMenu`: bb's thread
19786
+ * menu on right-click of `children`, or on touch long-press at compact width.
19787
+ */
19788
+ interface PluginThreadActionsContextMenuProps extends PluginThreadActionsMenuBaseProps {
19789
+ children: ReactNode;
19790
+ /** Suppresses the menu, e.g. while the row edits its title. */
19791
+ disabled?: boolean;
19792
+ /** Closes the menu and suppresses opening while the row is being dragged. */
19793
+ dragging?: boolean;
19794
+ }
19437
19795
  /** One pane's place in the split layout, as fractions of the split area. */
19438
19796
  interface PluginSidebarSplitPane {
19439
19797
  paneId: string;
@@ -19981,6 +20339,12 @@ interface PluginAppSlots {
19981
20339
  * docs/api_to_audit.md.
19982
20340
  */
19983
20341
  experimental_threadHeaderAction(registration: PluginThreadHeaderActionRegistration): void;
20342
+ /**
20343
+ * Add an action to every thread actions menu (see
20344
+ * {@link PluginThreadActionRegistration}). Experimental: see
20345
+ * docs/api_to_audit.md.
20346
+ */
20347
+ experimental_threadAction<Data = undefined>(registration: PluginThreadActionRegistration<Data>): void;
19984
20348
  /** Render a component beside each Browser tab's address bar. */
19985
20349
  experimental_browserToolbarAction(registration: ExperimentalPluginBrowserToolbarActionRegistration): void;
19986
20350
  fileOpener(registration: PluginFileOpenerRegistration): void;
@@ -20331,6 +20695,10 @@ type ComposerMention = {
20331
20695
  source: "command" | "skill";
20332
20696
  origin: "builtin" | "project" | "user";
20333
20697
  argumentHint: string | null;
20698
+ } | {
20699
+ kind: "attachment";
20700
+ /** The stored path of a file attached to the same draft. */
20701
+ path: string;
20334
20702
  } | {
20335
20703
  kind: "plugin";
20336
20704
  /** The plugin that owns the pill. */
@@ -20809,6 +21177,12 @@ interface NewThreadRequest {
20809
21177
  permissionMode: PermissionMode;
20810
21178
  /** Omitted when the selected provider has no service tiers. */
20811
21179
  serviceTier?: ServiceTier;
21180
+ /**
21181
+ * Agent options the user chose in the model picker or the mode menu, keyed
21182
+ * by option id. Present only when the user changed at least one option the
21183
+ * selected provider declares. Forward it to `threads.spawn` unchanged.
21184
+ */
21185
+ sessionOptions?: SessionOptionSelections;
20812
21186
  /**
20813
21187
  * Per-field provenance (caller-explicit vs. default) for the execution
20814
21188
  * options above, forwarded to `spawn` so the server records what the user
@@ -21034,7 +21408,15 @@ interface BbContext {
21034
21408
  threadId: string | null;
21035
21409
  }
21036
21410
  interface BbNavigate {
21037
- toThread(threadId: string): void;
21411
+ /**
21412
+ * Open a thread. `split: true` applies bb's split placement rules (a right
21413
+ * split by default, focus when already open, replace at the pane cap) and
21414
+ * falls back to plain navigation where splits are off. Opening also expands
21415
+ * the thread's conversation if the side panel had collapsed it.
21416
+ */
21417
+ toThread(threadId: string, options?: {
21418
+ split?: boolean;
21419
+ }): void;
21038
21420
  toProject(projectId: string): void;
21039
21421
  /**
21040
21422
  * Navigate to one of this plugin's own nav panels by its `path`.
@@ -21052,16 +21434,27 @@ interface BbNavigate {
21052
21434
  * and section mention tokens become pills) and `focusPrompt` to focus the
21053
21435
  * composer on arrival — the pairing behind "Create via chat" style entry
21054
21436
  * points that drop the user into chat with a prefilled prompt.
21437
+ * `projectId` makes that project the composer's selection; `placement`
21438
+ * files the new thread in a section and pin state (omitted: unpinned,
21439
+ * outside sections); `environmentId` reuses that environment and `hostId`
21440
+ * picks a machine for a new one (`environmentId` wins when both are set).
21055
21441
  */
21056
21442
  toCompose(options?: {
21443
+ projectId?: string;
21057
21444
  initialPrompt?: string;
21058
21445
  focusPrompt?: boolean;
21446
+ placement?: {
21447
+ sectionId: string | null;
21448
+ pinned: boolean;
21449
+ };
21450
+ environmentId?: string;
21451
+ hostId?: string;
21059
21452
  }): void;
21060
21453
  /**
21061
21454
  * Open one of this plugin's registered panel actions in the current
21062
21455
  * surface's side panel: a `threadPanelAction` in a thread, or an
21063
21456
  * `experimental_newThreadPanelAction` on the New thread screen. Plugin
21064
- * commands use the same opener. Returns false when the surface has no side
21457
+ * commands and thread actions use the focused thread view's opener. Returns false when the surface has no side
21065
21458
  * panel actions (plugin pages) or the action is unavailable.
21066
21459
  */
21067
21460
  openThreadPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
@@ -21173,11 +21566,52 @@ interface PluginSdkApp {
21173
21566
  experimental_lifecycles: readonly ("active" | "archived")[];
21174
21567
  }): PluginSidebarThreadsState;
21175
21568
  /**
21176
- * Thread actions bound to the host's mutations (see
21177
- * {@link PluginSidebarThreadActions}). Experimental: see
21569
+ * Archive an environment's active thread trees the way bb's own list does:
21570
+ * optimistic removal, closing their split panes, leaving a route that shows
21571
+ * one of them, and one Undo toast that restores them and the route. The
21572
+ * promise rejects after bb has shown an error toast. Experimental: see
21178
21573
  * docs/api_to_audit.md.
21179
21574
  */
21180
- experimental_useSidebarThreadActions(): PluginSidebarThreadActions;
21575
+ experimental_useArchiveEnvironmentThreads(): (environmentId: string) => Promise<void>;
21576
+ /**
21577
+ * Every thread action for one thread, in menu order (see
21578
+ * {@link PluginThreadAction} for grouping): bb's own registrations first,
21579
+ * then plugins' in registration order. Registrations' `useData` hooks run
21580
+ * once for the app, so calling this per sidebar row costs one store
21581
+ * subscription and a pure `item` call per registration. Pass `keys` for a
21582
+ * row's quick actions. Experimental: see docs/api_to_audit.md.
21583
+ */
21584
+ experimental_useThreadActions(thread: PluginThreadActionTarget, options?: PluginThreadActionsOptions): readonly PluginThreadActionEntry[];
21585
+ /**
21586
+ * Every registered thread action with its static title and icon, in menu
21587
+ * order and independent of any thread: what a quick-action picker lists.
21588
+ * Experimental: see docs/api_to_audit.md.
21589
+ */
21590
+ experimental_useThreadActionRegistrations(): readonly PluginThreadActionRegistrationInfo[];
21591
+ /**
21592
+ * bb's thread menu behind a trigger (see
21593
+ * {@link PluginThreadActionsMenuProps}): the same items, order, choice
21594
+ * submenus and compact drawer as the thread header's menu. Experimental: see
21595
+ * docs/api_to_audit.md.
21596
+ */
21597
+ experimental_ThreadActionsMenu: ComponentType<PluginThreadActionsMenuProps>;
21598
+ /**
21599
+ * bb's thread menu on right-click or long-press (see
21600
+ * {@link PluginThreadActionsContextMenuProps}). Experimental: see
21601
+ * docs/api_to_audit.md.
21602
+ */
21603
+ experimental_ThreadActionsContextMenu: ComponentType<PluginThreadActionsContextMenuProps>;
21604
+ /**
21605
+ * bb's thread menu groups, for a registration that joins one:
21606
+ * `open` (split), `organize` (copy, read, pin, move, rename), `settings`,
21607
+ * and `lifecycle` (archive, delete). Experimental: see docs/api_to_audit.md.
21608
+ */
21609
+ experimental_THREAD_ACTION_GROUPS: {
21610
+ readonly open: "1_open";
21611
+ readonly organize: "2_organize";
21612
+ readonly settings: "3_settings";
21613
+ readonly lifecycle: "4_lifecycle";
21614
+ };
21181
21615
  /**
21182
21616
  * The pull request for one thread's branch (see
21183
21617
  * {@link PluginSidebarThreadPullRequestState}).
@@ -21241,6 +21675,12 @@ interface PluginSdkApp {
21241
21675
  * form is `displayTitle` on the thread.
21242
21676
  */
21243
21677
  ThreadTitle: ComponentType<PluginThreadTitleProps>;
21678
+ /**
21679
+ * bb's thread status glyph (see {@link PluginThreadStatusGlyphProps}): the
21680
+ * same icons, colors, and accessible labels as bb's own thread lists.
21681
+ * Experimental: see docs/api_to_audit.md.
21682
+ */
21683
+ experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
21244
21684
  /**
21245
21685
  * bb's environment provider catalog (see
21246
21686
  * {@link PluginEnvironmentProvidersState}), the directory a thread's
@@ -21263,8 +21703,8 @@ interface PluginSdkApp {
21263
21703
  * together. Unarchive, environment-group archive, project/machine/environment
21264
21704
  * renames, and project/section removal are also optimistic and roll back on
21265
21705
  * failure. Created sections enter the cache when the server assigns their id.
21266
- * `experimental_useSidebarThreadActions()` owns navigation, read state,
21267
- * archive confirmation, and delete confirmation.
21706
+ * Navigation belongs to `useBbNavigate()`; archive and delete
21707
+ * confirmation to the thread action menus.
21268
21708
  *
21269
21709
  * The client is stable for the plugin's lifetime, so it is safe in effect
21270
21710
  * and callback dependency lists.
@@ -21756,6 +22196,8 @@ type PluginSettingDescriptor = {
21756
22196
  label: string;
21757
22197
  description?: string;
21758
22198
  options: string[];
22199
+ /** Display labels keyed by option value; options without one show the value itself. */
22200
+ experimental_optionLabels?: Record<string, string>;
21759
22201
  /** Synchronously validate without transforming a proposed value. */
21760
22202
  experimental_schema?: StandardSchemaV1<string, string>;
21761
22203
  default?: string;
@@ -21890,6 +22332,17 @@ interface PluginThreadEventPayloads {
21890
22332
  thread: ThreadResponse;
21891
22333
  sequence: number;
21892
22334
  };
22335
+ /**
22336
+ * Fired after a thread moves to a new parent or loses its parent: a
22337
+ * `threads.update` that changes `parentThreadId`, or core releasing a
22338
+ * thread's unarchived children when it is archived. `thread` carries the
22339
+ * new `parentThreadId`. Every thread below it moved with it and gets no
22340
+ * event of its own. Experimental: see docs/api_to_audit.md.
22341
+ */
22342
+ "experimental_thread.parentChanged": {
22343
+ thread: ThreadResponse;
22344
+ previousParentThreadId: string | null;
22345
+ };
21893
22346
  /** Real accepted terminal input; excludes output, keepalives and input contents. */
21894
22347
  "experimental_terminal.input": {
21895
22348
  terminal: TerminalSession;
@@ -22909,13 +23362,17 @@ interface PluginProviderFallbackModel {
22909
23362
  /** Picker display name ("Opus 5 (1M)"). */
22910
23363
  displayName: string;
22911
23364
  description: string;
22912
- /** Reasoning levels this model supports, lowest to highest. Non-empty. */
23365
+ /** Reasoning levels this model supports, lowest to highest. Non-empty.
23366
+ * `reasoningEffort` is a standard ladder entry or any provider-specific id
23367
+ * the bridge accepts back as `reasoningLevel`; `label` names a
23368
+ * provider-specific id in the picker. */
22913
23369
  supportedReasoningEfforts: readonly {
22914
- reasoningEffort: PluginProviderReasoningLevel;
23370
+ reasoningEffort: PluginProviderReasoningLevel | (string & {});
23371
+ label?: string;
22915
23372
  description: string;
22916
23373
  }[];
22917
23374
  /** Must be one of `supportedReasoningEfforts`. */
22918
- defaultReasoningEffort: PluginProviderReasoningLevel;
23375
+ defaultReasoningEffort: PluginProviderReasoningLevel | (string & {});
22919
23376
  /** Exactly one entry in the list is the default. */
22920
23377
  isDefault: boolean;
22921
23378
  }
@@ -23451,8 +23908,9 @@ interface PluginStatusApi {
23451
23908
  needsConfiguration(message: string): void;
23452
23909
  }
23453
23910
  /**
23454
- * The BB SDK bound to one plugin (`bb.sdk`). `threads.getPluginMetadata` and
23455
- * `threads.updatePluginMetadata` default `pluginId` to that plugin's id. An
23911
+ * The BB SDK bound to one plugin (`bb.sdk`). `threads.getPluginMetadata`,
23912
+ * `threads.experimental_listPluginMetadata` and `threads.updatePluginMetadata`
23913
+ * default `pluginId` to that plugin's id. An
23456
23914
  * explicit `pluginId` must be a plugin id (lowercase letters, digits, and
23457
23915
  * dashes) or the request fails with HTTP 400. A `pluginMetadata` seed or a
23458
23916
  * `set` that is over 256 KiB on its own rejects before any request is sent. A
@@ -23460,10 +23918,13 @@ interface PluginStatusApi {
23460
23918
  * leaves the namespace unchanged.
23461
23919
  */
23462
23920
  type PluginBbSdk = Omit<BbSdk, "threads"> & {
23463
- threads: Omit<BbSdk["threads"], "getPluginMetadata" | "updatePluginMetadata"> & {
23921
+ threads: Omit<BbSdk["threads"], "experimental_listPluginMetadata" | "getPluginMetadata" | "updatePluginMetadata"> & {
23464
23922
  getPluginMetadata(args: Omit<ThreadPluginMetadataArgs, "pluginId"> & {
23465
23923
  pluginId?: string;
23466
23924
  }): Promise<ThreadPluginMetadataResult>;
23925
+ experimental_listPluginMetadata(args: Omit<PluginThreadMetadataListArgs, "pluginId"> & {
23926
+ pluginId?: string;
23927
+ }): Promise<PluginThreadMetadataListResult>;
23467
23928
  updatePluginMetadata(args: Omit<ThreadPluginMetadataUpdateArgs, "pluginId"> & {
23468
23929
  pluginId?: string;
23469
23930
  }): Promise<ThreadPluginMetadataResult>;
@@ -23792,5 +24253,12 @@ declare function cliCommand<const TOptions extends CliOptions = Record<string, n
23792
24253
  */
23793
24254
  declare function defineCli(spec: PluginCliSpec): PluginCliRegistration;
23794
24255
 
23795
- export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_defineHostEntry };
23796
- export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
24256
+ declare const experimental_THREAD_ACTION_GROUPS: {
24257
+ readonly open: "1_open";
24258
+ readonly organize: "2_organize";
24259
+ readonly settings: "3_settings";
24260
+ readonly lifecycle: "4_lifecycle";
24261
+ };
24262
+
24263
+ export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_THREAD_ACTION_GROUPS, experimental_defineHostEntry };
24264
+ export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };