@get-bb/plugin-sdk 0.6.49 → 0.6.52

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.
@@ -100,6 +100,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
100
100
  confirmThreadArchive: z$1.ZodBoolean;
101
101
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
102
102
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
103
+ earlyAdopter: z$1.ZodBoolean;
103
104
  keepHistoryAfterContextClear: z$1.ZodBoolean;
104
105
  machineGitCredentialsEnabled: z$1.ZodBoolean;
105
106
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -115,6 +116,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
115
116
  showKeyboardHints: z$1.ZodBoolean;
116
117
  steerActiveThreadOnEnter: z$1.ZodBoolean;
117
118
  streamerMode: z$1.ZodBoolean;
119
+ summarizeShellCommands: z$1.ZodBoolean;
118
120
  telemetryEnabled: z$1.ZodBoolean;
119
121
  }, z$1.core.$strict>;
120
122
  type AppSettings = z$1.infer<typeof appSettingsSchema>;
@@ -123,6 +125,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
123
125
  confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
124
126
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
125
127
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
128
+ earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
126
129
  keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
127
130
  machineGitCredentialsEnabled: z$1.ZodBoolean;
128
131
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -139,12 +142,14 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
139
142
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
140
143
  steerActiveThreadOnEnter: z$1.ZodBoolean;
141
144
  streamerMode: z$1.ZodBoolean;
145
+ summarizeShellCommands: z$1.ZodOptional<z$1.ZodBoolean>;
142
146
  telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
143
147
  }, z$1.core.$strict>, z$1.ZodObject<{
144
148
  allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
145
149
  confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
146
150
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
147
151
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
152
+ earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
148
153
  keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
149
154
  machineGitCredentialsEnabled: z$1.ZodBoolean;
150
155
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -160,6 +165,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
160
165
  showUnhandledProviderEvents: z$1.ZodBoolean;
161
166
  steerActiveThreadOnEnter: z$1.ZodBoolean;
162
167
  streamerMode: z$1.ZodBoolean;
168
+ summarizeShellCommands: z$1.ZodOptional<z$1.ZodBoolean>;
163
169
  telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
164
170
  }, z$1.core.$strict>]>;
165
171
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
@@ -544,6 +550,7 @@ type Environment = z$1.infer<typeof environmentSchema>;
544
550
 
545
551
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
546
552
  changelogPreview: "changelogPreview";
553
+ compactExpiredCache: "compactExpiredCache";
547
554
  performanceDiagnostics: "performanceDiagnostics";
548
555
  serverMove: "serverMove";
549
556
  timelinePush: "timelinePush";
@@ -551,6 +558,7 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
551
558
  type Experiments = z$1.infer<typeof experimentsSchema>;
552
559
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
553
560
  changelogPreview: "changelogPreview";
561
+ compactExpiredCache: "compactExpiredCache";
554
562
  performanceDiagnostics: "performanceDiagnostics";
555
563
  serverMove: "serverMove";
556
564
  timelinePush: "timelinePush";
@@ -2609,6 +2617,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2609
2617
  totalTokens: z$1.ZodNumber;
2610
2618
  }, z$1.core.$strip>;
2611
2619
  modelContextWindow: z$1.ZodNullable<z$1.ZodNumber>;
2620
+ promptCacheTtlMs: z$1.ZodOptional<z$1.ZodNumber>;
2612
2621
  total: z$1.ZodObject<{
2613
2622
  cacheReadInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
2614
2623
  cacheWriteInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
@@ -4207,6 +4216,13 @@ declare const threadTimelinePendingTodosSchema: z$1.ZodObject<{
4207
4216
  }, z$1.core.$strip>;
4208
4217
  type ThreadTimelinePendingTodos = z$1.infer<typeof threadTimelinePendingTodosSchema>;
4209
4218
 
4219
+ declare const threadParentNotificationsSchema: z$1.ZodEnum<{
4220
+ auto: "auto";
4221
+ off: "off";
4222
+ stuck: "stuck";
4223
+ }>;
4224
+ type ThreadParentNotifications = z$1.infer<typeof threadParentNotificationsSchema>;
4225
+
4210
4226
  declare const threadRuntimeDisplayStatusSchema: z$1.ZodEnum<{
4211
4227
  "waiting-for-host": "waiting-for-host";
4212
4228
  active: "active";
@@ -4390,6 +4406,7 @@ declare const mobileAppDownloads: {
4390
4406
 
4391
4407
  declare const threadContextResponseSchema: z$1.ZodObject<{
4392
4408
  usage: z$1.ZodNullable<z$1.ZodObject<{
4409
+ compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
4393
4410
  cost: z$1.ZodOptional<z$1.ZodObject<{
4394
4411
  amount: z$1.ZodNumber;
4395
4412
  currency: z$1.ZodString;
@@ -4891,6 +4908,11 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
4891
4908
  fork: "fork";
4892
4909
  }>>;
4893
4910
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
4911
+ parentNotifications: z$1.ZodEnum<{
4912
+ auto: "auto";
4913
+ off: "off";
4914
+ stuck: "stuck";
4915
+ }>;
4894
4916
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
4895
4917
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
4896
4918
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -4997,6 +5019,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
4997
5019
  fork: "fork";
4998
5020
  }>>;
4999
5021
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
5022
+ parentNotifications: z$1.ZodEnum<{
5023
+ auto: "auto";
5024
+ off: "off";
5025
+ stuck: "stuck";
5026
+ }>;
5000
5027
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
5001
5028
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
5002
5029
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -5101,6 +5128,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5101
5128
  fork: "fork";
5102
5129
  }>>;
5103
5130
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
5131
+ parentNotifications: z$1.ZodEnum<{
5132
+ auto: "auto";
5133
+ off: "off";
5134
+ stuck: "stuck";
5135
+ }>;
5104
5136
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
5105
5137
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
5106
5138
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -10746,6 +10778,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10746
10778
  }, z$1.core.$strict>>;
10747
10779
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10748
10780
  changelogPreview: "changelogPreview";
10781
+ compactExpiredCache: "compactExpiredCache";
10749
10782
  performanceDiagnostics: "performanceDiagnostics";
10750
10783
  serverMove: "serverMove";
10751
10784
  timelinePush: "timelinePush";
@@ -10759,6 +10792,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10759
10792
  confirmThreadArchive: z$1.ZodBoolean;
10760
10793
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
10761
10794
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
10795
+ earlyAdopter: z$1.ZodBoolean;
10762
10796
  keepHistoryAfterContextClear: z$1.ZodBoolean;
10763
10797
  machineGitCredentialsEnabled: z$1.ZodBoolean;
10764
10798
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -10775,6 +10809,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10775
10809
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
10776
10810
  steerActiveThreadOnEnter: z$1.ZodBoolean;
10777
10811
  streamerMode: z$1.ZodBoolean;
10812
+ summarizeShellCommands: z$1.ZodBoolean;
10778
10813
  telemetryEnabled: z$1.ZodBoolean;
10779
10814
  }, z$1.core.$strict>;
10780
10815
  hostDaemonPort: z$1.ZodNullable<z$1.ZodNumber>;
@@ -12906,6 +12941,11 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
12906
12941
  fork: "fork";
12907
12942
  }>>>;
12908
12943
  originPluginId: z$1.ZodOptional<z$1.ZodString>;
12944
+ parentNotifications: z$1.ZodOptional<z$1.ZodEnum<{
12945
+ auto: "auto";
12946
+ off: "off";
12947
+ stuck: "stuck";
12948
+ }>>;
12909
12949
  parentThreadId: z$1.ZodOptional<z$1.ZodString>;
12910
12950
  permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
12911
12951
  "accept-edits": "accept-edits";
@@ -13190,6 +13230,7 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
13190
13230
  }, z$1.core.$strict>;
13191
13231
  type ForkThreadRequest = z$1.infer<typeof forkThreadRequestSchema>;
13192
13232
  declare const sendMessageRequestSchema: z$1.ZodObject<{
13233
+ compactFirst: z$1.ZodOptional<z$1.ZodLiteral<true>>;
13193
13234
  executionInputSources: z$1.ZodOptional<z$1.ZodObject<{
13194
13235
  model: z$1.ZodOptional<z$1.ZodEnum<{
13195
13236
  "client-preference": "client-preference";
@@ -14093,6 +14134,11 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
14093
14134
  fork: "fork";
14094
14135
  }>>;
14095
14136
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14137
+ parentNotifications: z$1.ZodEnum<{
14138
+ auto: "auto";
14139
+ off: "off";
14140
+ stuck: "stuck";
14141
+ }>;
14096
14142
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14097
14143
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
14098
14144
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -14194,6 +14240,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14194
14240
  fork: "fork";
14195
14241
  }>>;
14196
14242
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14243
+ parentNotifications: z$1.ZodEnum<{
14244
+ auto: "auto";
14245
+ off: "off";
14246
+ stuck: "stuck";
14247
+ }>;
14197
14248
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14198
14249
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
14199
14250
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -14286,6 +14337,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14286
14337
  fork: "fork";
14287
14338
  }>>;
14288
14339
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14340
+ parentNotifications: z$1.ZodEnum<{
14341
+ auto: "auto";
14342
+ off: "off";
14343
+ stuck: "stuck";
14344
+ }>;
14289
14345
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14290
14346
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
14291
14347
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -14347,6 +14403,11 @@ declare const threadResponseSchema: z$1.ZodObject<{
14347
14403
  fork: "fork";
14348
14404
  }>>;
14349
14405
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14406
+ parentNotifications: z$1.ZodEnum<{
14407
+ auto: "auto";
14408
+ off: "off";
14409
+ stuck: "stuck";
14410
+ }>;
14350
14411
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14351
14412
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
14352
14413
  projectId: z$1.ZodString;
@@ -14535,6 +14596,11 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14535
14596
  fork: "fork";
14536
14597
  }>>;
14537
14598
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14599
+ parentNotifications: z$1.ZodEnum<{
14600
+ auto: "auto";
14601
+ off: "off";
14602
+ stuck: "stuck";
14603
+ }>;
14538
14604
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14539
14605
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
14540
14606
  projectId: z$1.ZodString;
@@ -15026,6 +15092,11 @@ declare const deleteThreadRequestSchema: z$1.ZodObject<{
15026
15092
  type DeleteThreadRequest = z$1.infer<typeof deleteThreadRequestSchema>;
15027
15093
  declare const updateThreadRequestSchema: z$1.ZodObject<{
15028
15094
  model: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15095
+ parentNotifications: z$1.ZodOptional<z$1.ZodEnum<{
15096
+ auto: "auto";
15097
+ off: "off";
15098
+ stuck: "stuck";
15099
+ }>>;
15029
15100
  parentThreadId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15030
15101
  reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15031
15102
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -15105,6 +15176,7 @@ declare const threadListQuerySchema: z$1.ZodObject<{
15105
15176
  projectId: z$1.ZodOptional<z$1.ZodString>;
15106
15177
  sectionId: z$1.ZodOptional<z$1.ZodString>;
15107
15178
  sourceThreadId: z$1.ZodOptional<z$1.ZodString>;
15179
+ threadIds: z$1.ZodOptional<z$1.ZodString>;
15108
15180
  unsectioned: z$1.ZodOptional<z$1.ZodEnum<{
15109
15181
  false: "false";
15110
15182
  true: "true";
@@ -15981,6 +16053,7 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
15981
16053
  }>;
15982
16054
  contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
15983
16055
  contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
16056
+ compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
15984
16057
  cost: z$1.ZodOptional<z$1.ZodObject<{
15985
16058
  amount: z$1.ZodNumber;
15986
16059
  currency: z$1.ZodString;
@@ -17564,6 +17637,7 @@ interface StatusGetArgs {
17564
17637
  interface StatusThreadSummary {
17565
17638
  environmentId: string | null;
17566
17639
  id: string;
17640
+ parentNotifications: ThreadParentNotifications;
17567
17641
  parentThreadId: string | null;
17568
17642
  pinnedAt: number | null;
17569
17643
  projectId: string;
@@ -17895,6 +17969,12 @@ interface ThreadListArgs {
17895
17969
  projectId?: string;
17896
17970
  signal?: AbortSignal;
17897
17971
  sourceThreadId?: string;
17972
+ /**
17973
+ * Only threads with these IDs, at most 200 per call. The other filters still
17974
+ * apply, unknown and deleted IDs are left out, and an empty list matches no
17975
+ * threads.
17976
+ */
17977
+ threadIds?: readonly string[];
17898
17978
  unsectioned?: boolean;
17899
17979
  }
17900
17980
  interface ThreadSearchArgs extends ThreadSearchQuery {
@@ -155,6 +155,11 @@ declare const threadResponseSchema: z.ZodObject<{
155
155
  fork: "fork";
156
156
  }>>;
157
157
  originPluginId: z.ZodNullable<z.ZodString>;
158
+ parentNotifications: z.ZodEnum<{
159
+ auto: "auto";
160
+ off: "off";
161
+ stuck: "stuck";
162
+ }>;
158
163
  parentThreadId: z.ZodNullable<z.ZodString>;
159
164
  pinnedAt: z.ZodNullable<z.ZodNumber>;
160
165
  projectId: z.ZodString;
@@ -493,6 +493,11 @@ declare const threadResponseSchema: z.ZodObject<{
493
493
  fork: "fork";
494
494
  }>>;
495
495
  originPluginId: z.ZodNullable<z.ZodString>;
496
+ parentNotifications: z.ZodEnum<{
497
+ auto: "auto";
498
+ off: "off";
499
+ stuck: "stuck";
500
+ }>;
496
501
  parentThreadId: z.ZodNullable<z.ZodString>;
497
502
  pinnedAt: z.ZodNullable<z.ZodNumber>;
498
503
  projectId: z.ZodString;
@@ -3142,6 +3142,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
3142
3142
  totalTokens: z.ZodNumber;
3143
3143
  }, z.core.$strip>;
3144
3144
  modelContextWindow: z.ZodNullable<z.ZodNumber>;
3145
+ promptCacheTtlMs: z.ZodOptional<z.ZodNumber>;
3145
3146
  total: z.ZodObject<{
3146
3147
  cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
3147
3148
  cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
@@ -4834,6 +4835,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4834
4835
  totalTokens: z.ZodNumber;
4835
4836
  }, z.core.$strip>;
4836
4837
  modelContextWindow: z.ZodNullable<z.ZodNumber>;
4838
+ promptCacheTtlMs: z.ZodOptional<z.ZodNumber>;
4837
4839
  providerTurnId: z.ZodOptional<z.ZodString>;
4838
4840
  total: z.ZodObject<{
4839
4841
  cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
@@ -2911,6 +2911,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2911
2911
  totalTokens: z.ZodNumber;
2912
2912
  }, z.core.$strip>;
2913
2913
  modelContextWindow: z.ZodNullable<z.ZodNumber>;
2914
+ promptCacheTtlMs: z.ZodOptional<z.ZodNumber>;
2914
2915
  providerTurnId: z.ZodOptional<z.ZodString>;
2915
2916
  total: z.ZodObject<{
2916
2917
  cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
@@ -3761,6 +3762,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
3761
3762
  totalTokens: z.ZodNumber;
3762
3763
  }, z.core.$strip>;
3763
3764
  modelContextWindow: z.ZodNullable<z.ZodNumber>;
3765
+ promptCacheTtlMs: z.ZodOptional<z.ZodNumber>;
3764
3766
  providerTurnId: z.ZodOptional<z.ZodString>;
3765
3767
  total: z.ZodObject<{
3766
3768
  cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
@@ -286,6 +286,11 @@ declare const threadResponseSchema: z.ZodObject<{
286
286
  fork: "fork";
287
287
  }>>;
288
288
  originPluginId: z.ZodNullable<z.ZodString>;
289
+ parentNotifications: z.ZodEnum<{
290
+ auto: "auto";
291
+ off: "off";
292
+ stuck: "stuck";
293
+ }>;
289
294
  parentThreadId: z.ZodNullable<z.ZodString>;
290
295
  pinnedAt: z.ZodNullable<z.ZodNumber>;
291
296
  projectId: z.ZodString;
@@ -49,6 +49,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
49
49
  confirmThreadArchive: z$1.ZodBoolean;
50
50
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
51
51
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
52
+ earlyAdopter: z$1.ZodBoolean;
52
53
  keepHistoryAfterContextClear: z$1.ZodBoolean;
53
54
  machineGitCredentialsEnabled: z$1.ZodBoolean;
54
55
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -64,6 +65,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
64
65
  showKeyboardHints: z$1.ZodBoolean;
65
66
  steerActiveThreadOnEnter: z$1.ZodBoolean;
66
67
  streamerMode: z$1.ZodBoolean;
68
+ summarizeShellCommands: z$1.ZodBoolean;
67
69
  telemetryEnabled: z$1.ZodBoolean;
68
70
  }, z$1.core.$strict>;
69
71
  type AppSettings = z$1.infer<typeof appSettingsSchema>;
@@ -72,6 +74,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
72
74
  confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
73
75
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
74
76
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
77
+ earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
75
78
  keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
76
79
  machineGitCredentialsEnabled: z$1.ZodBoolean;
77
80
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -88,12 +91,14 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
88
91
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
89
92
  steerActiveThreadOnEnter: z$1.ZodBoolean;
90
93
  streamerMode: z$1.ZodBoolean;
94
+ summarizeShellCommands: z$1.ZodOptional<z$1.ZodBoolean>;
91
95
  telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
92
96
  }, z$1.core.$strict>, z$1.ZodObject<{
93
97
  allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
94
98
  confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
95
99
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
96
100
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
101
+ earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
97
102
  keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
98
103
  machineGitCredentialsEnabled: z$1.ZodBoolean;
99
104
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -109,6 +114,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
109
114
  showUnhandledProviderEvents: z$1.ZodBoolean;
110
115
  steerActiveThreadOnEnter: z$1.ZodBoolean;
111
116
  streamerMode: z$1.ZodBoolean;
117
+ summarizeShellCommands: z$1.ZodOptional<z$1.ZodBoolean>;
112
118
  telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
113
119
  }, z$1.core.$strict>]>;
114
120
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
@@ -499,6 +505,7 @@ type Environment = z$1.infer<typeof environmentSchema>;
499
505
 
500
506
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
501
507
  changelogPreview: "changelogPreview";
508
+ compactExpiredCache: "compactExpiredCache";
502
509
  performanceDiagnostics: "performanceDiagnostics";
503
510
  serverMove: "serverMove";
504
511
  timelinePush: "timelinePush";
@@ -506,6 +513,7 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
506
513
  type Experiments = z$1.infer<typeof experimentsSchema>;
507
514
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
508
515
  changelogPreview: "changelogPreview";
516
+ compactExpiredCache: "compactExpiredCache";
509
517
  performanceDiagnostics: "performanceDiagnostics";
510
518
  serverMove: "serverMove";
511
519
  timelinePush: "timelinePush";
@@ -2625,6 +2633,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2625
2633
  totalTokens: z$1.ZodNumber;
2626
2634
  }, z$1.core.$strip>;
2627
2635
  modelContextWindow: z$1.ZodNullable<z$1.ZodNumber>;
2636
+ promptCacheTtlMs: z$1.ZodOptional<z$1.ZodNumber>;
2628
2637
  total: z$1.ZodObject<{
2629
2638
  cacheReadInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
2630
2639
  cacheWriteInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
@@ -4258,6 +4267,13 @@ declare const threadTimelinePendingTodosSchema: z$1.ZodObject<{
4258
4267
  }, z$1.core.$strip>;
4259
4268
  type ThreadTimelinePendingTodos = z$1.infer<typeof threadTimelinePendingTodosSchema>;
4260
4269
 
4270
+ declare const threadParentNotificationsSchema: z$1.ZodEnum<{
4271
+ auto: "auto";
4272
+ off: "off";
4273
+ stuck: "stuck";
4274
+ }>;
4275
+ type ThreadParentNotifications = z$1.infer<typeof threadParentNotificationsSchema>;
4276
+
4261
4277
  declare const threadRuntimeDisplayStatusSchema: z$1.ZodEnum<{
4262
4278
  "waiting-for-host": "waiting-for-host";
4263
4279
  active: "active";
@@ -4449,6 +4465,7 @@ interface EnvironmentRemoval {
4449
4465
 
4450
4466
  declare const threadContextResponseSchema: z$1.ZodObject<{
4451
4467
  usage: z$1.ZodNullable<z$1.ZodObject<{
4468
+ compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
4452
4469
  cost: z$1.ZodOptional<z$1.ZodObject<{
4453
4470
  amount: z$1.ZodNumber;
4454
4471
  currency: z$1.ZodString;
@@ -4950,6 +4967,11 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
4950
4967
  fork: "fork";
4951
4968
  }>>;
4952
4969
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
4970
+ parentNotifications: z$1.ZodEnum<{
4971
+ auto: "auto";
4972
+ off: "off";
4973
+ stuck: "stuck";
4974
+ }>;
4953
4975
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
4954
4976
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
4955
4977
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -5056,6 +5078,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5056
5078
  fork: "fork";
5057
5079
  }>>;
5058
5080
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
5081
+ parentNotifications: z$1.ZodEnum<{
5082
+ auto: "auto";
5083
+ off: "off";
5084
+ stuck: "stuck";
5085
+ }>;
5059
5086
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
5060
5087
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
5061
5088
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -5160,6 +5187,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
5160
5187
  fork: "fork";
5161
5188
  }>>;
5162
5189
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
5190
+ parentNotifications: z$1.ZodEnum<{
5191
+ auto: "auto";
5192
+ off: "off";
5193
+ stuck: "stuck";
5194
+ }>;
5163
5195
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
5164
5196
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
5165
5197
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -10805,6 +10837,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10805
10837
  }, z$1.core.$strict>>;
10806
10838
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10807
10839
  changelogPreview: "changelogPreview";
10840
+ compactExpiredCache: "compactExpiredCache";
10808
10841
  performanceDiagnostics: "performanceDiagnostics";
10809
10842
  serverMove: "serverMove";
10810
10843
  timelinePush: "timelinePush";
@@ -10818,6 +10851,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10818
10851
  confirmThreadArchive: z$1.ZodBoolean;
10819
10852
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
10820
10853
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
10854
+ earlyAdopter: z$1.ZodBoolean;
10821
10855
  keepHistoryAfterContextClear: z$1.ZodBoolean;
10822
10856
  machineGitCredentialsEnabled: z$1.ZodBoolean;
10823
10857
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -10834,6 +10868,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10834
10868
  showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
10835
10869
  steerActiveThreadOnEnter: z$1.ZodBoolean;
10836
10870
  streamerMode: z$1.ZodBoolean;
10871
+ summarizeShellCommands: z$1.ZodBoolean;
10837
10872
  telemetryEnabled: z$1.ZodBoolean;
10838
10873
  }, z$1.core.$strict>;
10839
10874
  hostDaemonPort: z$1.ZodNullable<z$1.ZodNumber>;
@@ -12966,6 +13001,11 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
12966
13001
  fork: "fork";
12967
13002
  }>>>;
12968
13003
  originPluginId: z$1.ZodOptional<z$1.ZodString>;
13004
+ parentNotifications: z$1.ZodOptional<z$1.ZodEnum<{
13005
+ auto: "auto";
13006
+ off: "off";
13007
+ stuck: "stuck";
13008
+ }>>;
12969
13009
  parentThreadId: z$1.ZodOptional<z$1.ZodString>;
12970
13010
  permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
12971
13011
  "accept-edits": "accept-edits";
@@ -13250,6 +13290,7 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
13250
13290
  }, z$1.core.$strict>;
13251
13291
  type ForkThreadRequest = z$1.infer<typeof forkThreadRequestSchema>;
13252
13292
  declare const sendMessageRequestSchema: z$1.ZodObject<{
13293
+ compactFirst: z$1.ZodOptional<z$1.ZodLiteral<true>>;
13253
13294
  executionInputSources: z$1.ZodOptional<z$1.ZodObject<{
13254
13295
  model: z$1.ZodOptional<z$1.ZodEnum<{
13255
13296
  "client-preference": "client-preference";
@@ -14153,6 +14194,11 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
14153
14194
  fork: "fork";
14154
14195
  }>>;
14155
14196
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14197
+ parentNotifications: z$1.ZodEnum<{
14198
+ auto: "auto";
14199
+ off: "off";
14200
+ stuck: "stuck";
14201
+ }>;
14156
14202
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14157
14203
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
14158
14204
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -14254,6 +14300,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14254
14300
  fork: "fork";
14255
14301
  }>>;
14256
14302
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14303
+ parentNotifications: z$1.ZodEnum<{
14304
+ auto: "auto";
14305
+ off: "off";
14306
+ stuck: "stuck";
14307
+ }>;
14257
14308
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14258
14309
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
14259
14310
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -14346,6 +14397,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14346
14397
  fork: "fork";
14347
14398
  }>>;
14348
14399
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14400
+ parentNotifications: z$1.ZodEnum<{
14401
+ auto: "auto";
14402
+ off: "off";
14403
+ stuck: "stuck";
14404
+ }>;
14349
14405
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14350
14406
  pinSortKey: z$1.ZodNullable<z$1.ZodString>;
14351
14407
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -14407,6 +14463,11 @@ declare const threadResponseSchema: z$1.ZodObject<{
14407
14463
  fork: "fork";
14408
14464
  }>>;
14409
14465
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14466
+ parentNotifications: z$1.ZodEnum<{
14467
+ auto: "auto";
14468
+ off: "off";
14469
+ stuck: "stuck";
14470
+ }>;
14410
14471
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14411
14472
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
14412
14473
  projectId: z$1.ZodString;
@@ -14595,6 +14656,11 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14595
14656
  fork: "fork";
14596
14657
  }>>;
14597
14658
  originPluginId: z$1.ZodNullable<z$1.ZodString>;
14659
+ parentNotifications: z$1.ZodEnum<{
14660
+ auto: "auto";
14661
+ off: "off";
14662
+ stuck: "stuck";
14663
+ }>;
14598
14664
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14599
14665
  pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
14600
14666
  projectId: z$1.ZodString;
@@ -15086,6 +15152,11 @@ declare const deleteThreadRequestSchema: z$1.ZodObject<{
15086
15152
  type DeleteThreadRequest = z$1.infer<typeof deleteThreadRequestSchema>;
15087
15153
  declare const updateThreadRequestSchema: z$1.ZodObject<{
15088
15154
  model: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15155
+ parentNotifications: z$1.ZodOptional<z$1.ZodEnum<{
15156
+ auto: "auto";
15157
+ off: "off";
15158
+ stuck: "stuck";
15159
+ }>>;
15089
15160
  parentThreadId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15090
15161
  reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
15091
15162
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
@@ -15165,6 +15236,7 @@ declare const threadListQuerySchema: z$1.ZodObject<{
15165
15236
  projectId: z$1.ZodOptional<z$1.ZodString>;
15166
15237
  sectionId: z$1.ZodOptional<z$1.ZodString>;
15167
15238
  sourceThreadId: z$1.ZodOptional<z$1.ZodString>;
15239
+ threadIds: z$1.ZodOptional<z$1.ZodString>;
15168
15240
  unsectioned: z$1.ZodOptional<z$1.ZodEnum<{
15169
15241
  false: "false";
15170
15242
  true: "true";
@@ -16041,6 +16113,7 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16041
16113
  }>;
16042
16114
  contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
16043
16115
  contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
16116
+ compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
16044
16117
  cost: z$1.ZodOptional<z$1.ZodObject<{
16045
16118
  amount: z$1.ZodNumber;
16046
16119
  currency: z$1.ZodString;
@@ -17635,6 +17708,7 @@ interface StatusGetArgs {
17635
17708
  interface StatusThreadSummary {
17636
17709
  environmentId: string | null;
17637
17710
  id: string;
17711
+ parentNotifications: ThreadParentNotifications;
17638
17712
  parentThreadId: string | null;
17639
17713
  pinnedAt: number | null;
17640
17714
  projectId: string;
@@ -17966,6 +18040,12 @@ interface ThreadListArgs {
17966
18040
  projectId?: string;
17967
18041
  signal?: AbortSignal;
17968
18042
  sourceThreadId?: string;
18043
+ /**
18044
+ * Only threads with these IDs, at most 200 per call. The other filters still
18045
+ * apply, unknown and deleted IDs are left out, and an empty list matches no
18046
+ * threads.
18047
+ */
18048
+ threadIds?: readonly string[];
17969
18049
  unsectioned?: boolean;
17970
18050
  }
17971
18051
  interface ThreadSearchArgs extends ThreadSearchQuery {
@@ -2350,10 +2350,12 @@ var threadEventContextWindowUsageSchema = z16.object({
2350
2350
  estimated: z16.boolean(),
2351
2351
  cost: threadUsageCostSchema.optional()
2352
2352
  });
2353
+ var promptCacheTtlMsSchema = z16.number().int().positive();
2353
2354
  var threadEventTokenUsageSchema = z16.object({
2354
2355
  total: threadEventTokenUsageBreakdownSchema,
2355
2356
  last: threadEventTokenUsageBreakdownSchema,
2356
- modelContextWindow: z16.number().nullable()
2357
+ modelContextWindow: z16.number().nullable(),
2358
+ promptCacheTtlMs: promptCacheTtlMsSchema.optional()
2357
2359
  });
2358
2360
  var threadEventWarningCategorySchema = z16.enum([
2359
2361
  "deprecation",
@@ -3657,6 +3659,7 @@ var threadDeltaSchema = z28.discriminatedUnion("kind", [
3657
3659
  total: threadEventTokenUsageBreakdownSchema,
3658
3660
  last: threadEventTokenUsageBreakdownSchema,
3659
3661
  modelContextWindow: z28.number().nullable(),
3662
+ promptCacheTtlMs: promptCacheTtlMsSchema.optional(),
3660
3663
  providerTurnId: providerTurnIdSchema.optional()
3661
3664
  }),
3662
3665
  z28.object({
@@ -2350,10 +2350,12 @@ var threadEventContextWindowUsageSchema = z16.object({
2350
2350
  estimated: z16.boolean(),
2351
2351
  cost: threadUsageCostSchema.optional()
2352
2352
  });
2353
+ var promptCacheTtlMsSchema = z16.number().int().positive();
2353
2354
  var threadEventTokenUsageSchema = z16.object({
2354
2355
  total: threadEventTokenUsageBreakdownSchema,
2355
2356
  last: threadEventTokenUsageBreakdownSchema,
2356
- modelContextWindow: z16.number().nullable()
2357
+ modelContextWindow: z16.number().nullable(),
2358
+ promptCacheTtlMs: promptCacheTtlMsSchema.optional()
2357
2359
  });
2358
2360
  var threadEventWarningCategorySchema = z16.enum([
2359
2361
  "deprecation",
@@ -3657,6 +3659,7 @@ var threadDeltaSchema = z28.discriminatedUnion("kind", [
3657
3659
  total: threadEventTokenUsageBreakdownSchema,
3658
3660
  last: threadEventTokenUsageBreakdownSchema,
3659
3661
  modelContextWindow: z28.number().nullable(),
3662
+ promptCacheTtlMs: promptCacheTtlMsSchema.optional(),
3660
3663
  providerTurnId: providerTurnIdSchema.optional()
3661
3664
  }),
3662
3665
  z28.object({
@@ -1423,10 +1423,12 @@ var threadEventContextWindowUsageSchema = z14.object({
1423
1423
  estimated: z14.boolean(),
1424
1424
  cost: threadUsageCostSchema.optional()
1425
1425
  });
1426
+ var promptCacheTtlMsSchema = z14.number().int().positive();
1426
1427
  var threadEventTokenUsageSchema = z14.object({
1427
1428
  total: threadEventTokenUsageBreakdownSchema,
1428
1429
  last: threadEventTokenUsageBreakdownSchema,
1429
- modelContextWindow: z14.number().nullable()
1430
+ modelContextWindow: z14.number().nullable(),
1431
+ promptCacheTtlMs: promptCacheTtlMsSchema.optional()
1430
1432
  });
1431
1433
  var threadEventWarningCategorySchema = z14.enum([
1432
1434
  "deprecation",
@@ -2327,6 +2329,7 @@ var threadDeltaSchema = z18.discriminatedUnion("kind", [
2327
2329
  total: threadEventTokenUsageBreakdownSchema,
2328
2330
  last: threadEventTokenUsageBreakdownSchema,
2329
2331
  modelContextWindow: z18.number().nullable(),
2332
+ promptCacheTtlMs: promptCacheTtlMsSchema.optional(),
2330
2333
  providerTurnId: providerTurnIdSchema.optional()
2331
2334
  }),
2332
2335
  z18.object({
@@ -3976,7 +3979,8 @@ function createDeltaAssembler(options) {
3976
3979
  tokenUsage: {
3977
3980
  total: { ...delta.total },
3978
3981
  last: { ...delta.last },
3979
- modelContextWindow: delta.modelContextWindow
3982
+ modelContextWindow: delta.modelContextWindow,
3983
+ ...delta.promptCacheTtlMs === void 0 ? {} : { promptCacheTtlMs: delta.promptCacheTtlMs }
3980
3984
  }
3981
3985
  });
3982
3986
  return;
@@ -2865,10 +2865,12 @@ var threadEventContextWindowUsageSchema = z18.object({
2865
2865
  estimated: z18.boolean(),
2866
2866
  cost: threadUsageCostSchema.optional()
2867
2867
  });
2868
+ var promptCacheTtlMsSchema = z18.number().int().positive();
2868
2869
  var threadEventTokenUsageSchema = z18.object({
2869
2870
  total: threadEventTokenUsageBreakdownSchema,
2870
2871
  last: threadEventTokenUsageBreakdownSchema,
2871
- modelContextWindow: z18.number().nullable()
2872
+ modelContextWindow: z18.number().nullable(),
2873
+ promptCacheTtlMs: promptCacheTtlMsSchema.optional()
2872
2874
  });
2873
2875
  var threadEventWarningCategorySchema = z18.enum([
2874
2876
  "deprecation",
@@ -11925,6 +11927,7 @@ var threadDeltaSchema = z34.discriminatedUnion("kind", [
11925
11927
  total: threadEventTokenUsageBreakdownSchema,
11926
11928
  last: threadEventTokenUsageBreakdownSchema,
11927
11929
  modelContextWindow: z34.number().nullable(),
11930
+ promptCacheTtlMs: promptCacheTtlMsSchema.optional(),
11928
11931
  providerTurnId: providerTurnIdSchema.optional()
11929
11932
  }),
11930
11933
  z34.object({
@@ -4280,6 +4280,7 @@ function makeThreadResponse(overrides = {}) {
4280
4280
  originKind: null,
4281
4281
  originPluginId: null,
4282
4282
  visibility: "visible",
4283
+ parentNotifications: "auto",
4283
4284
  archivedAt: null,
4284
4285
  pinnedAt: null,
4285
4286
  deletedAt: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.6.49",
3
+ "version": "0.6.52",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"