@get-bb/plugin-sdk 0.6.37 → 0.6.42

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.
@@ -692,6 +692,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
692
692
  type: z$1.ZodLiteral<"turn/input/accepted">;
693
693
  }, z$1.core.$strict>, z$1.ZodObject<{
694
694
  providerThreadId: z$1.ZodString;
695
+ source: z$1.ZodOptional<z$1.ZodLiteral<"agent">>;
695
696
  threadId: z$1.ZodString;
696
697
  threadName: z$1.ZodString;
697
698
  type: z$1.ZodLiteral<"thread/name/updated">;
@@ -2619,6 +2620,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2619
2620
  type: z$1.ZodLiteral<"thread/tokenUsage/updated">;
2620
2621
  }, z$1.core.$strip>, z$1.ZodObject<{
2621
2622
  contextWindowUsage: z$1.ZodObject<{
2623
+ cost: z$1.ZodOptional<z$1.ZodObject<{
2624
+ amount: z$1.ZodNumber;
2625
+ currency: z$1.ZodString;
2626
+ }, z$1.core.$strip>>;
2622
2627
  estimated: z$1.ZodBoolean;
2623
2628
  modelContextWindow: z$1.ZodNullable<z$1.ZodNumber>;
2624
2629
  snapshot: z$1.ZodOptional<z$1.ZodObject<{
@@ -2841,16 +2846,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2841
2846
  full: "full";
2842
2847
  readonly: "readonly";
2843
2848
  }>;
2844
- reasoningLevel: z$1.ZodEnum<{
2845
- high: "high";
2846
- low: "low";
2847
- max: "max";
2848
- medium: "medium";
2849
- none: "none";
2850
- ultra: "ultra";
2851
- ultracode: "ultracode";
2852
- xhigh: "xhigh";
2853
- }>;
2849
+ reasoningLevel: z$1.ZodString;
2854
2850
  seq: z$1.ZodOptional<z$1.ZodNumber>;
2855
2851
  serviceTier: z$1.ZodString;
2856
2852
  source: z$1.ZodEnum<{
@@ -3917,16 +3913,7 @@ declare const projectSourceSchema: z$1.ZodObject<{
3917
3913
  }, z$1.core.$strip>;
3918
3914
  type ProjectSource = z$1.infer<typeof projectSourceSchema>;
3919
3915
 
3920
- declare const reasoningLevelSchema: z$1.ZodEnum<{
3921
- high: "high";
3922
- low: "low";
3923
- max: "max";
3924
- medium: "medium";
3925
- none: "none";
3926
- ultra: "ultra";
3927
- ultracode: "ultracode";
3928
- xhigh: "xhigh";
3929
- }>;
3916
+ declare const reasoningLevelSchema: z$1.ZodString;
3930
3917
  type ReasoningLevel = z$1.infer<typeof reasoningLevelSchema>;
3931
3918
  declare const serviceTierSchema: z$1.ZodString;
3932
3919
  type ServiceTier = z$1.infer<typeof serviceTierSchema>;
@@ -4034,16 +4021,7 @@ declare const resolvedThreadExecutionOptionsSchema: z$1.ZodObject<{
4034
4021
  auto: "auto";
4035
4022
  full: "full";
4036
4023
  }>;
4037
- reasoningLevel: z$1.ZodEnum<{
4038
- high: "high";
4039
- low: "low";
4040
- max: "max";
4041
- medium: "medium";
4042
- none: "none";
4043
- ultra: "ultra";
4044
- ultracode: "ultracode";
4045
- xhigh: "xhigh";
4046
- }>;
4024
+ reasoningLevel: z$1.ZodString;
4047
4025
  seq: z$1.ZodOptional<z$1.ZodNumber>;
4048
4026
  serviceTier: z$1.ZodString;
4049
4027
  source: z$1.ZodEnum<{
@@ -4053,6 +4031,8 @@ declare const resolvedThreadExecutionOptionsSchema: z$1.ZodObject<{
4053
4031
  }>;
4054
4032
  }, z$1.core.$strip>;
4055
4033
  type ResolvedThreadExecutionOptions = z$1.infer<typeof resolvedThreadExecutionOptionsSchema>;
4034
+ declare const sessionOptionSelectionsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>;
4035
+ type SessionOptionSelections = z$1.infer<typeof sessionOptionSelectionsSchema>;
4056
4036
  declare const projectExecutionDefaultsSchema: z$1.ZodObject<{
4057
4037
  model: z$1.ZodString;
4058
4038
  permissionMode: z$1.ZodEnum<{
@@ -4061,16 +4041,7 @@ declare const projectExecutionDefaultsSchema: z$1.ZodObject<{
4061
4041
  full: "full";
4062
4042
  }>;
4063
4043
  providerId: z$1.ZodString;
4064
- reasoningLevel: z$1.ZodEnum<{
4065
- high: "high";
4066
- low: "low";
4067
- max: "max";
4068
- medium: "medium";
4069
- none: "none";
4070
- ultra: "ultra";
4071
- ultracode: "ultracode";
4072
- xhigh: "xhigh";
4073
- }>;
4044
+ reasoningLevel: z$1.ZodString;
4074
4045
  serviceTier: z$1.ZodString;
4075
4046
  }, z$1.core.$strip>;
4076
4047
  type ProjectExecutionDefaults = z$1.infer<typeof projectExecutionDefaultsSchema>;
@@ -4367,16 +4338,7 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4367
4338
  auto: "auto";
4368
4339
  full: "full";
4369
4340
  }>;
4370
- reasoningLevel: z$1.ZodEnum<{
4371
- high: "high";
4372
- low: "low";
4373
- max: "max";
4374
- medium: "medium";
4375
- none: "none";
4376
- ultra: "ultra";
4377
- ultracode: "ultracode";
4378
- xhigh: "xhigh";
4379
- }>;
4341
+ reasoningLevel: z$1.ZodString;
4380
4342
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
4381
4343
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
4382
4344
  serviceTier: z$1.ZodString;
@@ -4418,6 +4380,10 @@ declare const mobileAppDownloads: {
4418
4380
 
4419
4381
  declare const threadContextResponseSchema: z$1.ZodObject<{
4420
4382
  usage: z$1.ZodNullable<z$1.ZodObject<{
4383
+ cost: z$1.ZodOptional<z$1.ZodObject<{
4384
+ amount: z$1.ZodNumber;
4385
+ currency: z$1.ZodString;
4386
+ }, z$1.core.$strip>>;
4421
4387
  estimated: z$1.ZodBoolean;
4422
4388
  modelContextWindow: z$1.ZodNumber;
4423
4389
  snapshot: z$1.ZodOptional<z$1.ZodObject<{
@@ -4863,16 +4829,7 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
4863
4829
  full: "full";
4864
4830
  }>;
4865
4831
  providerId: z$1.ZodString;
4866
- reasoningLevel: z$1.ZodEnum<{
4867
- high: "high";
4868
- low: "low";
4869
- max: "max";
4870
- medium: "medium";
4871
- none: "none";
4872
- ultra: "ultra";
4873
- ultracode: "ultracode";
4874
- xhigh: "xhigh";
4875
- }>;
4832
+ reasoningLevel: z$1.ZodString;
4876
4833
  serviceTier: z$1.ZodString;
4877
4834
  }, z$1.core.$strip>>;
4878
4835
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -4978,16 +4935,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
4978
4935
  full: "full";
4979
4936
  }>;
4980
4937
  providerId: z$1.ZodString;
4981
- reasoningLevel: z$1.ZodEnum<{
4982
- high: "high";
4983
- low: "low";
4984
- max: "max";
4985
- medium: "medium";
4986
- none: "none";
4987
- ultra: "ultra";
4988
- ultracode: "ultracode";
4989
- xhigh: "xhigh";
4990
- }>;
4938
+ reasoningLevel: z$1.ZodString;
4991
4939
  serviceTier: z$1.ZodString;
4992
4940
  }, z$1.core.$strip>>;
4993
4941
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -5091,16 +5039,7 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5091
5039
  full: "full";
5092
5040
  }>;
5093
5041
  providerId: z$1.ZodString;
5094
- reasoningLevel: z$1.ZodEnum<{
5095
- high: "high";
5096
- low: "low";
5097
- max: "max";
5098
- medium: "medium";
5099
- none: "none";
5100
- ultra: "ultra";
5101
- ultracode: "ultracode";
5102
- xhigh: "xhigh";
5103
- }>;
5042
+ reasoningLevel: z$1.ZodString;
5104
5043
  serviceTier: z$1.ZodString;
5105
5044
  }, z$1.core.$strip>>;
5106
5045
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -6227,17 +6166,9 @@ declare const hostDaemonCommandRegistry: {
6227
6166
  model: z$1.ZodString;
6228
6167
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
6229
6168
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6230
- reasoningLevel: z$1.ZodEnum<{
6231
- high: "high";
6232
- low: "low";
6233
- max: "max";
6234
- medium: "medium";
6235
- none: "none";
6236
- ultra: "ultra";
6237
- ultracode: "ultracode";
6238
- xhigh: "xhigh";
6239
- }>;
6169
+ reasoningLevel: z$1.ZodString;
6240
6170
  serviceTier: z$1.ZodString;
6171
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
6241
6172
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6242
6173
  approvalReviewer: z$1.ZodLiteral<"user">;
6243
6174
  permissionEscalation: z$1.ZodEnum<{
@@ -6567,17 +6498,9 @@ declare const hostDaemonCommandRegistry: {
6567
6498
  model: z$1.ZodString;
6568
6499
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
6569
6500
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6570
- reasoningLevel: z$1.ZodEnum<{
6571
- high: "high";
6572
- low: "low";
6573
- max: "max";
6574
- medium: "medium";
6575
- none: "none";
6576
- ultra: "ultra";
6577
- ultracode: "ultracode";
6578
- xhigh: "xhigh";
6579
- }>;
6501
+ reasoningLevel: z$1.ZodString;
6580
6502
  serviceTier: z$1.ZodString;
6503
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
6581
6504
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6582
6505
  approvalReviewer: z$1.ZodLiteral<"user">;
6583
6506
  permissionEscalation: z$1.ZodEnum<{
@@ -6824,17 +6747,9 @@ declare const hostDaemonCommandRegistry: {
6824
6747
  model: z$1.ZodString;
6825
6748
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
6826
6749
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6827
- reasoningLevel: z$1.ZodEnum<{
6828
- high: "high";
6829
- low: "low";
6830
- max: "max";
6831
- medium: "medium";
6832
- none: "none";
6833
- ultra: "ultra";
6834
- ultracode: "ultracode";
6835
- xhigh: "xhigh";
6836
- }>;
6750
+ reasoningLevel: z$1.ZodString;
6837
6751
  serviceTier: z$1.ZodString;
6752
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
6838
6753
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6839
6754
  approvalReviewer: z$1.ZodLiteral<"user">;
6840
6755
  permissionEscalation: z$1.ZodEnum<{
@@ -7049,17 +6964,9 @@ declare const hostDaemonCommandRegistry: {
7049
6964
  model: z$1.ZodString;
7050
6965
  promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
7051
6966
  providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
7052
- reasoningLevel: z$1.ZodEnum<{
7053
- high: "high";
7054
- low: "low";
7055
- max: "max";
7056
- medium: "medium";
7057
- none: "none";
7058
- ultra: "ultra";
7059
- ultracode: "ultracode";
7060
- xhigh: "xhigh";
7061
- }>;
6967
+ reasoningLevel: z$1.ZodString;
7062
6968
  serviceTier: z$1.ZodString;
6969
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
7063
6970
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7064
6971
  approvalReviewer: z$1.ZodLiteral<"user">;
7065
6972
  permissionEscalation: z$1.ZodEnum<{
@@ -8127,34 +8034,39 @@ declare const hostDaemonCommandRegistry: {
8127
8034
  type: z$1.ZodLiteral<"provider.list_models">;
8128
8035
  }, z$1.core.$strip>, z$1.ZodObject<{
8129
8036
  models: z$1.ZodArray<z$1.ZodObject<{
8130
- defaultReasoningEffort: z$1.ZodEnum<{
8131
- high: "high";
8132
- low: "low";
8133
- max: "max";
8134
- medium: "medium";
8135
- none: "none";
8136
- ultra: "ultra";
8137
- ultracode: "ultracode";
8138
- xhigh: "xhigh";
8139
- }>;
8037
+ defaultReasoningEffort: z$1.ZodString;
8140
8038
  description: z$1.ZodString;
8141
8039
  displayName: z$1.ZodString;
8142
8040
  id: z$1.ZodString;
8143
8041
  isDefault: z$1.ZodBoolean;
8144
8042
  model: z$1.ZodString;
8145
8043
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
8044
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8045
+ category: z$1.ZodOptional<z$1.ZodString>;
8046
+ description: z$1.ZodOptional<z$1.ZodString>;
8047
+ id: z$1.ZodString;
8048
+ label: z$1.ZodString;
8049
+ type: z$1.ZodLiteral<"select">;
8050
+ value: z$1.ZodString;
8051
+ values: z$1.ZodArray<z$1.ZodObject<{
8052
+ description: z$1.ZodOptional<z$1.ZodString>;
8053
+ group: z$1.ZodOptional<z$1.ZodString>;
8054
+ id: z$1.ZodString;
8055
+ label: z$1.ZodString;
8056
+ }, z$1.core.$strip>>;
8057
+ }, z$1.core.$strip>, z$1.ZodObject<{
8058
+ category: z$1.ZodOptional<z$1.ZodString>;
8059
+ description: z$1.ZodOptional<z$1.ZodString>;
8060
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
8061
+ id: z$1.ZodString;
8062
+ label: z$1.ZodString;
8063
+ type: z$1.ZodLiteral<"boolean">;
8064
+ value: z$1.ZodBoolean;
8065
+ }, z$1.core.$strip>], "type">>>;
8146
8066
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
8147
8067
  description: z$1.ZodString;
8148
- reasoningEffort: z$1.ZodEnum<{
8149
- high: "high";
8150
- low: "low";
8151
- max: "max";
8152
- medium: "medium";
8153
- none: "none";
8154
- ultra: "ultra";
8155
- ultracode: "ultracode";
8156
- xhigh: "xhigh";
8157
- }>;
8068
+ label: z$1.ZodOptional<z$1.ZodString>;
8069
+ reasoningEffort: z$1.ZodString;
8158
8070
  }, z$1.core.$strip>>;
8159
8071
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
8160
8072
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -8163,34 +8075,39 @@ declare const hostDaemonCommandRegistry: {
8163
8075
  }, z$1.core.$strip>>>;
8164
8076
  }, z$1.core.$strip>>;
8165
8077
  selectedOnlyModels: z$1.ZodArray<z$1.ZodObject<{
8166
- defaultReasoningEffort: z$1.ZodEnum<{
8167
- high: "high";
8168
- low: "low";
8169
- max: "max";
8170
- medium: "medium";
8171
- none: "none";
8172
- ultra: "ultra";
8173
- ultracode: "ultracode";
8174
- xhigh: "xhigh";
8175
- }>;
8078
+ defaultReasoningEffort: z$1.ZodString;
8176
8079
  description: z$1.ZodString;
8177
8080
  displayName: z$1.ZodString;
8178
8081
  id: z$1.ZodString;
8179
8082
  isDefault: z$1.ZodBoolean;
8180
8083
  model: z$1.ZodString;
8181
8084
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
8085
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8086
+ category: z$1.ZodOptional<z$1.ZodString>;
8087
+ description: z$1.ZodOptional<z$1.ZodString>;
8088
+ id: z$1.ZodString;
8089
+ label: z$1.ZodString;
8090
+ type: z$1.ZodLiteral<"select">;
8091
+ value: z$1.ZodString;
8092
+ values: z$1.ZodArray<z$1.ZodObject<{
8093
+ description: z$1.ZodOptional<z$1.ZodString>;
8094
+ group: z$1.ZodOptional<z$1.ZodString>;
8095
+ id: z$1.ZodString;
8096
+ label: z$1.ZodString;
8097
+ }, z$1.core.$strip>>;
8098
+ }, z$1.core.$strip>, z$1.ZodObject<{
8099
+ category: z$1.ZodOptional<z$1.ZodString>;
8100
+ description: z$1.ZodOptional<z$1.ZodString>;
8101
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
8102
+ id: z$1.ZodString;
8103
+ label: z$1.ZodString;
8104
+ type: z$1.ZodLiteral<"boolean">;
8105
+ value: z$1.ZodBoolean;
8106
+ }, z$1.core.$strip>], "type">>>;
8182
8107
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
8183
8108
  description: z$1.ZodString;
8184
- reasoningEffort: z$1.ZodEnum<{
8185
- high: "high";
8186
- low: "low";
8187
- max: "max";
8188
- medium: "medium";
8189
- none: "none";
8190
- ultra: "ultra";
8191
- ultracode: "ultracode";
8192
- xhigh: "xhigh";
8193
- }>;
8109
+ label: z$1.ZodOptional<z$1.ZodString>;
8110
+ reasoningEffort: z$1.ZodString;
8194
8111
  }, z$1.core.$strip>>;
8195
8112
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
8196
8113
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -10183,6 +10100,7 @@ declare const pluginMarketplaceSchema: z$1.ZodObject<{
10183
10100
  https: "https";
10184
10101
  path: "path";
10185
10102
  }>;
10103
+ subdirectory: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
10186
10104
  }, z$1.core.$strip>;
10187
10105
  type PluginMarketplace = z$1.infer<typeof pluginMarketplaceSchema>;
10188
10106
  declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
@@ -10203,6 +10121,7 @@ declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
10203
10121
  https: "https";
10204
10122
  path: "path";
10205
10123
  }>;
10124
+ subdirectory: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
10206
10125
  }, z$1.core.$strip>;
10207
10126
  name: z$1.ZodString;
10208
10127
  ok: z$1.ZodBoolean;
@@ -10245,34 +10164,39 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
10245
10164
  providerId: z$1.ZodString;
10246
10165
  }, z$1.core.$strip>>;
10247
10166
  models: z$1.ZodArray<z$1.ZodObject<{
10248
- defaultReasoningEffort: z$1.ZodEnum<{
10249
- high: "high";
10250
- low: "low";
10251
- max: "max";
10252
- medium: "medium";
10253
- none: "none";
10254
- ultra: "ultra";
10255
- ultracode: "ultracode";
10256
- xhigh: "xhigh";
10257
- }>;
10167
+ defaultReasoningEffort: z$1.ZodString;
10258
10168
  description: z$1.ZodString;
10259
10169
  displayName: z$1.ZodString;
10260
10170
  id: z$1.ZodString;
10261
10171
  isDefault: z$1.ZodBoolean;
10262
10172
  model: z$1.ZodString;
10263
10173
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
10174
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10175
+ category: z$1.ZodOptional<z$1.ZodString>;
10176
+ description: z$1.ZodOptional<z$1.ZodString>;
10177
+ id: z$1.ZodString;
10178
+ label: z$1.ZodString;
10179
+ type: z$1.ZodLiteral<"select">;
10180
+ value: z$1.ZodString;
10181
+ values: z$1.ZodArray<z$1.ZodObject<{
10182
+ description: z$1.ZodOptional<z$1.ZodString>;
10183
+ group: z$1.ZodOptional<z$1.ZodString>;
10184
+ id: z$1.ZodString;
10185
+ label: z$1.ZodString;
10186
+ }, z$1.core.$strip>>;
10187
+ }, z$1.core.$strip>, z$1.ZodObject<{
10188
+ category: z$1.ZodOptional<z$1.ZodString>;
10189
+ description: z$1.ZodOptional<z$1.ZodString>;
10190
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
10191
+ id: z$1.ZodString;
10192
+ label: z$1.ZodString;
10193
+ type: z$1.ZodLiteral<"boolean">;
10194
+ value: z$1.ZodBoolean;
10195
+ }, z$1.core.$strip>], "type">>>;
10264
10196
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
10265
10197
  description: z$1.ZodString;
10266
- reasoningEffort: z$1.ZodEnum<{
10267
- high: "high";
10268
- low: "low";
10269
- max: "max";
10270
- medium: "medium";
10271
- none: "none";
10272
- ultra: "ultra";
10273
- ultracode: "ultracode";
10274
- xhigh: "xhigh";
10275
- }>;
10198
+ label: z$1.ZodOptional<z$1.ZodString>;
10199
+ reasoningEffort: z$1.ZodString;
10276
10200
  }, z$1.core.$strip>>;
10277
10201
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10278
10202
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -10375,34 +10299,39 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
10375
10299
  }, z$1.core.$strip>>;
10376
10300
  }, z$1.core.$strip>>;
10377
10301
  selectedOnlyModels: z$1.ZodArray<z$1.ZodObject<{
10378
- defaultReasoningEffort: z$1.ZodEnum<{
10379
- high: "high";
10380
- low: "low";
10381
- max: "max";
10382
- medium: "medium";
10383
- none: "none";
10384
- ultra: "ultra";
10385
- ultracode: "ultracode";
10386
- xhigh: "xhigh";
10387
- }>;
10302
+ defaultReasoningEffort: z$1.ZodString;
10388
10303
  description: z$1.ZodString;
10389
10304
  displayName: z$1.ZodString;
10390
10305
  id: z$1.ZodString;
10391
10306
  isDefault: z$1.ZodBoolean;
10392
10307
  model: z$1.ZodString;
10393
10308
  routeProviderId: z$1.ZodOptional<z$1.ZodString>;
10309
+ sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10310
+ category: z$1.ZodOptional<z$1.ZodString>;
10311
+ description: z$1.ZodOptional<z$1.ZodString>;
10312
+ id: z$1.ZodString;
10313
+ label: z$1.ZodString;
10314
+ type: z$1.ZodLiteral<"select">;
10315
+ value: z$1.ZodString;
10316
+ values: z$1.ZodArray<z$1.ZodObject<{
10317
+ description: z$1.ZodOptional<z$1.ZodString>;
10318
+ group: z$1.ZodOptional<z$1.ZodString>;
10319
+ id: z$1.ZodString;
10320
+ label: z$1.ZodString;
10321
+ }, z$1.core.$strip>>;
10322
+ }, z$1.core.$strip>, z$1.ZodObject<{
10323
+ category: z$1.ZodOptional<z$1.ZodString>;
10324
+ description: z$1.ZodOptional<z$1.ZodString>;
10325
+ fixed: z$1.ZodOptional<z$1.ZodBoolean>;
10326
+ id: z$1.ZodString;
10327
+ label: z$1.ZodString;
10328
+ type: z$1.ZodLiteral<"boolean">;
10329
+ value: z$1.ZodBoolean;
10330
+ }, z$1.core.$strip>], "type">>>;
10394
10331
  supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
10395
10332
  description: z$1.ZodString;
10396
- reasoningEffort: z$1.ZodEnum<{
10397
- high: "high";
10398
- low: "low";
10399
- max: "max";
10400
- medium: "medium";
10401
- none: "none";
10402
- ultra: "ultra";
10403
- ultracode: "ultracode";
10404
- xhigh: "xhigh";
10405
- }>;
10333
+ label: z$1.ZodOptional<z$1.ZodString>;
10334
+ reasoningEffort: z$1.ZodString;
10406
10335
  }, z$1.core.$strip>>;
10407
10336
  supportedServiceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
10408
10337
  description: z$1.ZodOptional<z$1.ZodString>;
@@ -10549,6 +10478,108 @@ declare const testAiServiceResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
10549
10478
  ok: z$1.ZodLiteral<false>;
10550
10479
  }, z$1.core.$strip>], "ok">;
10551
10480
  type TestAiServiceResponse = z$1.infer<typeof testAiServiceResponseSchema>;
10481
+ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10482
+ name: z$1.ZodLiteral<"onboarding_agent_state">;
10483
+ properties: z$1.ZodObject<{
10484
+ agent_installed: z$1.ZodNullable<z$1.ZodBoolean>;
10485
+ agent_ready: z$1.ZodNullable<z$1.ZodBoolean>;
10486
+ entry: z$1.ZodEnum<{
10487
+ first_run: "first_run";
10488
+ replay: "replay";
10489
+ }>;
10490
+ }, z$1.core.$strict>;
10491
+ }, z$1.core.$strict>, z$1.ZodObject<{
10492
+ name: z$1.ZodLiteral<"onboarding_sign_in">;
10493
+ properties: z$1.ZodObject<{
10494
+ entry: z$1.ZodEnum<{
10495
+ first_run: "first_run";
10496
+ replay: "replay";
10497
+ }>;
10498
+ outcome: z$1.ZodEnum<{
10499
+ cancelled: "cancelled";
10500
+ exited: "exited";
10501
+ failed: "failed";
10502
+ ready: "ready";
10503
+ started: "started";
10504
+ }>;
10505
+ }, z$1.core.$strict>;
10506
+ }, z$1.core.$strict>, z$1.ZodObject<{
10507
+ name: z$1.ZodLiteral<"new_thread_submit">;
10508
+ properties: z$1.ZodObject<{
10509
+ outcome: z$1.ZodEnum<{
10510
+ accepted: "accepted";
10511
+ failed: "failed";
10512
+ started: "started";
10513
+ }>;
10514
+ }, z$1.core.$strict>;
10515
+ }, z$1.core.$strict>, z$1.ZodObject<{
10516
+ name: z$1.ZodLiteral<"onboarding_started">;
10517
+ properties: z$1.ZodObject<{
10518
+ agent_installed: z$1.ZodBoolean;
10519
+ agent_ready: z$1.ZodBoolean;
10520
+ }, z$1.core.$strict>;
10521
+ }, z$1.core.$strict>, z$1.ZodObject<{
10522
+ name: z$1.ZodLiteral<"onboarding_step_reached">;
10523
+ properties: z$1.ZodObject<{
10524
+ entry: z$1.ZodEnum<{
10525
+ first_run: "first_run";
10526
+ replay: "replay";
10527
+ }>;
10528
+ step: z$1.ZodEnum<{
10529
+ agent: "agent";
10530
+ devices: "devices";
10531
+ plugins: "plugins";
10532
+ projects: "projects";
10533
+ }>;
10534
+ }, z$1.core.$strict>;
10535
+ }, z$1.core.$strict>, z$1.ZodObject<{
10536
+ name: z$1.ZodLiteral<"onboarding_step_completed">;
10537
+ properties: z$1.ZodObject<{
10538
+ entry: z$1.ZodEnum<{
10539
+ first_run: "first_run";
10540
+ replay: "replay";
10541
+ }>;
10542
+ step: z$1.ZodEnum<{
10543
+ agent: "agent";
10544
+ devices: "devices";
10545
+ plugins: "plugins";
10546
+ projects: "projects";
10547
+ }>;
10548
+ }, z$1.core.$strict>;
10549
+ }, z$1.core.$strict>, z$1.ZodObject<{
10550
+ name: z$1.ZodLiteral<"onboarding_step_skipped">;
10551
+ properties: z$1.ZodObject<{
10552
+ entry: z$1.ZodEnum<{
10553
+ first_run: "first_run";
10554
+ replay: "replay";
10555
+ }>;
10556
+ step: z$1.ZodEnum<{
10557
+ agent: "agent";
10558
+ devices: "devices";
10559
+ plugins: "plugins";
10560
+ projects: "projects";
10561
+ }>;
10562
+ }, z$1.core.$strict>;
10563
+ }, z$1.core.$strict>, z$1.ZodObject<{
10564
+ name: z$1.ZodLiteral<"onboarding_finished">;
10565
+ properties: z$1.ZodObject<{
10566
+ entry: z$1.ZodEnum<{
10567
+ first_run: "first_run";
10568
+ replay: "replay";
10569
+ }>;
10570
+ last_step: z$1.ZodEnum<{
10571
+ agent: "agent";
10572
+ devices: "devices";
10573
+ plugins: "plugins";
10574
+ projects: "projects";
10575
+ }>;
10576
+ outcome: z$1.ZodEnum<{
10577
+ completed: "completed";
10578
+ skipped: "skipped";
10579
+ }>;
10580
+ }, z$1.core.$strict>;
10581
+ }, z$1.core.$strict>], "name">;
10582
+ type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
10552
10583
  declare const systemConfigResponseSchema: z$1.ZodObject<{
10553
10584
  appearance: z$1.ZodObject<{
10554
10585
  customCss: z$1.ZodNullable<z$1.ZodString>;
@@ -12857,19 +12888,11 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
12857
12888
  }, z$1.core.$strip>>;
12858
12889
  projectId: z$1.ZodString;
12859
12890
  providerId: z$1.ZodOptional<z$1.ZodString>;
12860
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
12861
- high: "high";
12862
- low: "low";
12863
- max: "max";
12864
- medium: "medium";
12865
- none: "none";
12866
- ultra: "ultra";
12867
- ultracode: "ultracode";
12868
- xhigh: "xhigh";
12869
- }>>;
12891
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
12870
12892
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
12871
12893
  sendAt: z$1.ZodOptional<z$1.ZodNumber>;
12872
12894
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
12895
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
12873
12896
  sourceSeqEnd: z$1.ZodOptional<z$1.ZodNumber>;
12874
12897
  sourceThreadId: z$1.ZodOptional<z$1.ZodString>;
12875
12898
  startedOnBehalfOf: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodObject<{
@@ -13260,16 +13283,7 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
13260
13283
  data: z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>;
13261
13284
  pluginId: z$1.ZodString;
13262
13285
  }, z$1.core.$strip>>;
13263
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
13264
- high: "high";
13265
- low: "low";
13266
- max: "max";
13267
- medium: "medium";
13268
- none: "none";
13269
- ultra: "ultra";
13270
- ultracode: "ultracode";
13271
- xhigh: "xhigh";
13272
- }>>;
13286
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13273
13287
  sendAt: z$1.ZodOptional<z$1.ZodNumber>;
13274
13288
  senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13275
13289
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
@@ -13408,16 +13422,7 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
13408
13422
  auto: "auto";
13409
13423
  full: "full";
13410
13424
  }>;
13411
- reasoningLevel: z$1.ZodEnum<{
13412
- high: "high";
13413
- low: "low";
13414
- max: "max";
13415
- medium: "medium";
13416
- none: "none";
13417
- ultra: "ultra";
13418
- ultracode: "ultracode";
13419
- xhigh: "xhigh";
13420
- }>;
13425
+ reasoningLevel: z$1.ZodString;
13421
13426
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
13422
13427
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
13423
13428
  serviceTier: z$1.ZodString;
@@ -13563,16 +13568,7 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
13563
13568
  auto: "auto";
13564
13569
  full: "full";
13565
13570
  }>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
13566
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
13567
- high: "high";
13568
- low: "low";
13569
- max: "max";
13570
- medium: "medium";
13571
- none: "none";
13572
- ultra: "ultra";
13573
- ultracode: "ultracode";
13574
- xhigh: "xhigh";
13575
- }>>;
13571
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13576
13572
  senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13577
13573
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
13578
13574
  }, z$1.core.$strict>;
@@ -13739,16 +13735,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
13739
13735
  auto: "auto";
13740
13736
  full: "full";
13741
13737
  }>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
13742
- reasoningLevel: z$1.ZodOptional<z$1.ZodEnum<{
13743
- high: "high";
13744
- low: "low";
13745
- max: "max";
13746
- medium: "medium";
13747
- none: "none";
13748
- ultra: "ultra";
13749
- ultracode: "ultracode";
13750
- xhigh: "xhigh";
13751
- }>>;
13738
+ reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13752
13739
  senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13753
13740
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
13754
13741
  }, z$1.core.$strip>;
@@ -13997,16 +13984,7 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
13997
13984
  auto: "auto";
13998
13985
  full: "full";
13999
13986
  }>;
14000
- reasoningLevel: z$1.ZodEnum<{
14001
- high: "high";
14002
- low: "low";
14003
- max: "max";
14004
- medium: "medium";
14005
- none: "none";
14006
- ultra: "ultra";
14007
- ultracode: "ultracode";
14008
- xhigh: "xhigh";
14009
- }>;
13987
+ reasoningLevel: z$1.ZodString;
14010
13988
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
14011
13989
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14012
13990
  serviceTier: z$1.ZodString;
@@ -14376,6 +14354,13 @@ declare const threadAncestorsListResponseSchema: z$1.ZodObject<{
14376
14354
  }, z$1.core.$strict>>;
14377
14355
  }, z$1.core.$strict>;
14378
14356
  type ThreadAncestorsListResponse = z$1.infer<typeof threadAncestorsListResponseSchema>;
14357
+ declare const threadDescendantsListResponseSchema: z$1.ZodObject<{
14358
+ threads: z$1.ZodArray<z$1.ZodObject<{
14359
+ descendantIds: z$1.ZodArray<z$1.ZodString>;
14360
+ threadId: z$1.ZodString;
14361
+ }, z$1.core.$strict>>;
14362
+ }, z$1.core.$strict>;
14363
+ type ThreadDescendantsListResponse = z$1.infer<typeof threadDescendantsListResponseSchema>;
14379
14364
  declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14380
14365
  activeBackgroundAgentCount: z$1.ZodNumber;
14381
14366
  archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -14946,16 +14931,7 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
14946
14931
  auto: "auto";
14947
14932
  full: "full";
14948
14933
  }>;
14949
- reasoningLevel: z$1.ZodEnum<{
14950
- high: "high";
14951
- low: "low";
14952
- max: "max";
14953
- medium: "medium";
14954
- none: "none";
14955
- ultra: "ultra";
14956
- ultracode: "ultracode";
14957
- xhigh: "xhigh";
14958
- }>;
14934
+ reasoningLevel: z$1.ZodString;
14959
14935
  sendAt: z$1.ZodNullable<z$1.ZodNumber>;
14960
14936
  senderThreadId: z$1.ZodNullable<z$1.ZodString>;
14961
14937
  serviceTier: z$1.ZodString;
@@ -14995,17 +14971,9 @@ type DeleteThreadRequest = z$1.infer<typeof deleteThreadRequestSchema>;
14995
14971
  declare const updateThreadRequestSchema: z$1.ZodObject<{
14996
14972
  model: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14997
14973
  parentThreadId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14998
- reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEnum<{
14999
- high: "high";
15000
- low: "low";
15001
- max: "max";
15002
- medium: "medium";
15003
- none: "none";
15004
- ultra: "ultra";
15005
- ultracode: "ultracode";
15006
- xhigh: "xhigh";
15007
- }>>>;
14974
+ reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15008
14975
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
14976
+ sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>>;
15009
14977
  title: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15010
14978
  visibility: z$1.ZodOptional<z$1.ZodEnum<{
15011
14979
  hidden: "hidden";
@@ -15957,6 +15925,10 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
15957
15925
  }>;
15958
15926
  contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
15959
15927
  contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
15928
+ cost: z$1.ZodOptional<z$1.ZodObject<{
15929
+ amount: z$1.ZodNumber;
15930
+ currency: z$1.ZodString;
15931
+ }, z$1.core.$strip>>;
15960
15932
  estimated: z$1.ZodBoolean;
15961
15933
  modelContextWindow: z$1.ZodNumber;
15962
15934
  snapshot: z$1.ZodOptional<z$1.ZodObject<{
@@ -16030,7 +16002,44 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16030
16002
  sourceSeq: z$1.ZodNumber;
16031
16003
  updatedAt: z$1.ZodNumber;
16032
16004
  }, z$1.core.$strip>>;
16005
+ providerCommands: z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
16006
+ argumentHint: z$1.ZodNullable<z$1.ZodString>;
16007
+ description: z$1.ZodNullable<z$1.ZodString>;
16008
+ name: z$1.ZodString;
16009
+ origin: z$1.ZodEnum<{
16010
+ builtin: "builtin";
16011
+ project: "project";
16012
+ user: "user";
16013
+ }>;
16014
+ source: z$1.ZodEnum<{
16015
+ command: "command";
16016
+ skill: "skill";
16017
+ }>;
16018
+ }, z$1.core.$strip>>>;
16033
16019
  rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
16020
+ sessionOptions: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16021
+ category: z$1.ZodNullable<z$1.ZodString>;
16022
+ description: z$1.ZodNullable<z$1.ZodString>;
16023
+ id: z$1.ZodString;
16024
+ label: z$1.ZodString;
16025
+ pendingValue: z$1.ZodNullable<z$1.ZodString>;
16026
+ type: z$1.ZodLiteral<"select">;
16027
+ value: z$1.ZodString;
16028
+ values: z$1.ZodArray<z$1.ZodObject<{
16029
+ description: z$1.ZodNullable<z$1.ZodString>;
16030
+ group: z$1.ZodNullable<z$1.ZodString>;
16031
+ id: z$1.ZodString;
16032
+ label: z$1.ZodString;
16033
+ }, z$1.core.$strip>>;
16034
+ }, z$1.core.$strip>, z$1.ZodObject<{
16035
+ category: z$1.ZodNullable<z$1.ZodString>;
16036
+ description: z$1.ZodNullable<z$1.ZodString>;
16037
+ id: z$1.ZodString;
16038
+ label: z$1.ZodString;
16039
+ pendingValue: z$1.ZodNullable<z$1.ZodBoolean>;
16040
+ type: z$1.ZodLiteral<"boolean">;
16041
+ value: z$1.ZodBoolean;
16042
+ }, z$1.core.$strip>], "type">>>;
16034
16043
  timelinePage: z$1.ZodObject<{
16035
16044
  contentPage: z$1.ZodOptional<z$1.ZodObject<{
16036
16045
  anchorSeq: z$1.ZodNumber;
@@ -17269,6 +17278,7 @@ interface PluginCatalogInstallPlanArgs {
17269
17278
  }
17270
17279
  interface PluginMarketplaceAddArgs {
17271
17280
  source: string;
17281
+ subdirectory?: string;
17272
17282
  }
17273
17283
  interface PluginMarketplaceListArgs {
17274
17284
  signal?: AbortSignal;
@@ -17641,6 +17651,10 @@ type SystemAiServicesResult = SystemAiServicesResponse;
17641
17651
  type SystemSetAiServiceSelectionArgs = SetAiServiceSelectionRequest;
17642
17652
  type SystemTestAiServiceArgs = TestAiServiceRequest;
17643
17653
  type SystemTestAiServiceResult = TestAiServiceResponse;
17654
+ type SystemRecordTelemetryEventArgs = RecordTelemetryEventRequest;
17655
+ interface SystemRecordTelemetryEventResult {
17656
+ ok: true;
17657
+ }
17644
17658
  interface SystemAiServicesArgs {
17645
17659
  signal?: AbortSignal;
17646
17660
  }
@@ -17696,6 +17710,7 @@ interface SystemArea {
17696
17710
  executionOptions(args?: SystemExecutionOptionsArgs): Promise<SystemExecutionOptionsResult>;
17697
17711
  cliSkillsStatus(args?: SystemCliSkillsStatusArgs): Promise<SystemCliSkillsStatusResult>;
17698
17712
  installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
17713
+ experimental_recordTelemetryEvent(args: SystemRecordTelemetryEventArgs): Promise<SystemRecordTelemetryEventResult>;
17699
17714
  reloadConfig(): Promise<SystemReloadConfigResult>;
17700
17715
  setAiServiceSelection(args: SystemSetAiServiceSelectionArgs): Promise<SystemAiServicesResult>;
17701
17716
  testAiService(args: SystemTestAiServiceArgs): Promise<SystemTestAiServiceResult>;
@@ -17886,6 +17901,7 @@ type ThreadMutationResult = ThreadResponse;
17886
17901
  type ThreadPluginMetadataResult = ThreadPluginMetadataResponse;
17887
17902
  type PluginThreadMetadataListResult = PluginThreadMetadataListResponse;
17888
17903
  type ThreadAncestorsListResult = ThreadAncestorsListResponse;
17904
+ type ThreadDescendantsListResult = ThreadDescendantsListResponse;
17889
17905
  type ThreadSpawnResult = ThreadResponse;
17890
17906
  type ThreadForkResult = ThreadResponse;
17891
17907
  type ThreadInteractionGetResult = PendingInteraction;
@@ -17979,6 +17995,12 @@ interface ThreadAncestorsListArgs {
17979
17995
  threadIds: readonly string[];
17980
17996
  signal?: AbortSignal;
17981
17997
  }
17998
+ interface ThreadDescendantsListArgs {
17999
+ threadIds: readonly string[];
18000
+ includeArchived?: boolean;
18001
+ includeHidden?: boolean;
18002
+ signal?: AbortSignal;
18003
+ }
17982
18004
  interface ThreadPluginMetadataUpdateArgs {
17983
18005
  threadId: string;
17984
18006
  pluginId: string;
@@ -18231,6 +18253,15 @@ interface ThreadsArea {
18231
18253
  * Experimental: see docs/api_to_audit.md.
18232
18254
  */
18233
18255
  experimental_listAncestors(args: ThreadAncestorsListArgs): Promise<ThreadAncestorsListResult>;
18256
+ /**
18257
+ * Each of `threadIds` (1–200 per request) that exists and is not deleted,
18258
+ * with `descendantIds` for every thread below it, children first (empty
18259
+ * for a leaf). Archived and hidden descendants are omitted unless
18260
+ * `includeArchived` / `includeHidden` is true; threads below them are still
18261
+ * returned. Deleted threads and unknown ids are always omitted.
18262
+ * Experimental: see docs/api_to_audit.md.
18263
+ */
18264
+ experimental_listDescendants(args: ThreadDescendantsListArgs): Promise<ThreadDescendantsListResult>;
18234
18265
  updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
18235
18266
  queue: ThreadQueueArea;
18236
18267
  interactions: ThreadInteractionsArea;
@@ -18731,6 +18762,49 @@ interface PluginMessageDirectiveProps {
18731
18762
  */
18732
18763
  openWorkspaceFile: PluginMessageDirectiveOpenWorkspaceFile | null;
18733
18764
  }
18765
+ /**
18766
+ * Where a fenced code block stands while its message is written.
18767
+ *
18768
+ * - `"streaming"`: the closing delimiter has not arrived and the message is
18769
+ * still being written; `code` is a prefix of the final body.
18770
+ * - `"closed"`: the closing delimiter is present; `code` is final.
18771
+ * - `"unclosed"`: the message ended without a closing delimiter (for example
18772
+ * an interrupted reply); `code` will not grow.
18773
+ *
18774
+ * @experimental Audit before relying on this as a stable contract.
18775
+ */
18776
+ type ExperimentalCodeFenceStatus = "closed" | "streaming" | "unclosed";
18777
+ /**
18778
+ * Props passed to an `experimental_codeFenceRenderer` component — one fenced
18779
+ * code block whose info-string language the plugin claimed, inside assistant
18780
+ * (or nested agent) message Markdown. BB mounts the component once per fence
18781
+ * and keeps that instance for as long as the message stays on screen, so
18782
+ * component state survives the whole stream, including the moment the fence
18783
+ * closes and the moment the reply finishes.
18784
+ *
18785
+ * @experimental Audit before relying on this as a stable contract.
18786
+ */
18787
+ interface ExperimentalCodeFenceRendererProps {
18788
+ /** The fence body received so far, without the fence delimiters. */
18789
+ code: string;
18790
+ /** The matched lowercase info-string language (e.g. `"ui"`). */
18791
+ language: string;
18792
+ status: ExperimentalCodeFenceStatus;
18793
+ /**
18794
+ * Zero-based ordinal of this fence among the fences of the same language in
18795
+ * the same message. It does not change while the message streams, so
18796
+ * `${message.id}#${language}#${index}` keys state that must outlive the
18797
+ * mounted component (a reload, or the message scrolling out of the rendered
18798
+ * window).
18799
+ */
18800
+ index: number;
18801
+ message: PluginMessageDirectiveMessage;
18802
+ /**
18803
+ * BB's own code block for this fence. Render it to show the source, for
18804
+ * example while `status` is `"streaming"` or when `code` does not parse.
18805
+ */
18806
+ Original: ComponentType;
18807
+ }
18734
18808
  interface PluginHomepageSectionRegistration {
18735
18809
  /** Unique within the plugin; letters, digits, `-`, `_`. */
18736
18810
  id: string;
@@ -19847,6 +19921,30 @@ interface PluginMessageDirectiveRegistration {
19847
19921
  id: string;
19848
19922
  component: ComponentType<PluginMessageDirectiveProps>;
19849
19923
  }
19924
+ /**
19925
+ * Render fenced code blocks of chosen languages inside assistant (and nested
19926
+ * agent) message Markdown. ` ```ui ` matches a registration whose `languages`
19927
+ * include `"ui"`. Fences elsewhere (user messages, file previews, plugin
19928
+ * Markdown) keep BB's code block.
19929
+ *
19930
+ * BB's code block also renders when two plugins claim the same language (BB
19931
+ * logs a warning naming them), when the plugin is disabled, and for a fence
19932
+ * whose component throws. A throw affects that fence only, and BB tries the
19933
+ * component again when the fence's `code` or `status` changes.
19934
+ *
19935
+ * @experimental Audit before relying on this as a stable contract.
19936
+ */
19937
+ interface ExperimentalCodeFenceRendererRegistration {
19938
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
19939
+ id: string;
19940
+ /**
19941
+ * Lowercase info-string languages, e.g. `["ui", "app"]`. Each starts with a
19942
+ * letter or digit and contains only `a-z`, `0-9`, `+`, `#`, `.`, `_`, `-`.
19943
+ * A language may be claimed once per plugin.
19944
+ */
19945
+ languages: readonly string[];
19946
+ component: ComponentType<ExperimentalCodeFenceRendererProps>;
19947
+ }
19850
19948
  /**
19851
19949
  * A narrow, stable reference to one rendered chat message — NOT an internal
19852
19950
  * timeline row. `sourceSeqEnd` is the last source event sequence the message
@@ -20256,6 +20354,12 @@ interface PluginAppSlots {
20256
20354
  */
20257
20355
  experimental_diffRenderer(registration: PluginDiffRendererRegistration): void;
20258
20356
  messageDirective(registration: PluginMessageDirectiveRegistration): void;
20357
+ /**
20358
+ * Render fenced code blocks of chosen languages in assistant messages (see
20359
+ * {@link ExperimentalCodeFenceRendererRegistration}). Experimental: see
20360
+ * docs/api_to_audit.md.
20361
+ */
20362
+ experimental_codeFenceRenderer(registration: ExperimentalCodeFenceRendererRegistration): void;
20259
20363
  messageAction(registration: PluginMessageActionRegistration): void;
20260
20364
  /**
20261
20365
  * @deprecated Use `app.commands.register` with the same registration.
@@ -21072,6 +21176,12 @@ interface NewThreadRequest {
21072
21176
  permissionMode: PermissionMode;
21073
21177
  /** Omitted when the selected provider has no service tiers. */
21074
21178
  serviceTier?: ServiceTier;
21179
+ /**
21180
+ * Agent options the user chose in the model picker or the mode menu, keyed
21181
+ * by option id. Present only when the user changed at least one option the
21182
+ * selected provider declares. Forward it to `threads.spawn` unchanged.
21183
+ */
21184
+ sessionOptions?: SessionOptionSelections;
21075
21185
  /**
21076
21186
  * Per-field provenance (caller-explicit vs. default) for the execution
21077
21187
  * options above, forwarded to `spawn` so the server records what the user
@@ -21766,4 +21876,4 @@ declare const experimental_useCodeTheme: () => PluginCodeThemeState;
21766
21876
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
21767
21877
 
21768
21878
  export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
21769
- export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
21879
+ export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };