@get-bb/plugin-sdk 0.6.43 → 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.
- package/bundled-types/bb-plugin-sdk-app.d.ts +167 -21
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +5 -0
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +13 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +3 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +2 -0
- package/bundled-types/bb-plugin-sdk-testing.d.ts +5 -0
- package/bundled-types/bb-plugin-sdk.d.ts +165 -20
- package/dist/app.js +3 -0
- package/dist/index.js +1 -0
- package/dist/provider-bridge-acp-next.js +10 -2
- package/dist/provider-bridge-acp.js +10 -2
- package/dist/provider-bridge-testing.js +138 -64
- package/dist/provider-bridge.js +4 -1
- package/dist/replay-provider-child.mjs +6 -3
- package/dist/testing/app.js +4 -0
- package/dist/testing/index.js +365 -18
- package/package.json +1 -1
|
@@ -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,14 +550,18 @@ 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";
|
|
556
|
+
timelinePush: "timelinePush";
|
|
549
557
|
}>, z$1.ZodBoolean>;
|
|
550
558
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
551
559
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
552
560
|
changelogPreview: "changelogPreview";
|
|
561
|
+
compactExpiredCache: "compactExpiredCache";
|
|
553
562
|
performanceDiagnostics: "performanceDiagnostics";
|
|
554
563
|
serverMove: "serverMove";
|
|
564
|
+
timelinePush: "timelinePush";
|
|
555
565
|
}> & z$1.core.$partial, z$1.ZodBoolean>;
|
|
556
566
|
type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
|
|
557
567
|
|
|
@@ -2607,6 +2617,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2607
2617
|
totalTokens: z$1.ZodNumber;
|
|
2608
2618
|
}, z$1.core.$strip>;
|
|
2609
2619
|
modelContextWindow: z$1.ZodNullable<z$1.ZodNumber>;
|
|
2620
|
+
promptCacheTtlMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2610
2621
|
total: z$1.ZodObject<{
|
|
2611
2622
|
cacheReadInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2612
2623
|
cacheWriteInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -4205,6 +4216,13 @@ declare const threadTimelinePendingTodosSchema: z$1.ZodObject<{
|
|
|
4205
4216
|
}, z$1.core.$strip>;
|
|
4206
4217
|
type ThreadTimelinePendingTodos = z$1.infer<typeof threadTimelinePendingTodosSchema>;
|
|
4207
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
|
+
|
|
4208
4226
|
declare const threadRuntimeDisplayStatusSchema: z$1.ZodEnum<{
|
|
4209
4227
|
"waiting-for-host": "waiting-for-host";
|
|
4210
4228
|
active: "active";
|
|
@@ -4342,6 +4360,14 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
4342
4360
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
4343
4361
|
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
4344
4362
|
serviceTier: z$1.ZodString;
|
|
4363
|
+
state: z$1.ZodEnum<{
|
|
4364
|
+
claimed: "claimed";
|
|
4365
|
+
failed_exhausted: "failed_exhausted";
|
|
4366
|
+
failed_retrying: "failed_retrying";
|
|
4367
|
+
queued: "queued";
|
|
4368
|
+
scheduled: "scheduled";
|
|
4369
|
+
waiting: "waiting";
|
|
4370
|
+
}>;
|
|
4345
4371
|
threadId: z$1.ZodString;
|
|
4346
4372
|
updatedAt: z$1.ZodNumber;
|
|
4347
4373
|
waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -4380,6 +4406,7 @@ declare const mobileAppDownloads: {
|
|
|
4380
4406
|
|
|
4381
4407
|
declare const threadContextResponseSchema: z$1.ZodObject<{
|
|
4382
4408
|
usage: z$1.ZodNullable<z$1.ZodObject<{
|
|
4409
|
+
compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
4383
4410
|
cost: z$1.ZodOptional<z$1.ZodObject<{
|
|
4384
4411
|
amount: z$1.ZodNumber;
|
|
4385
4412
|
currency: z$1.ZodString;
|
|
@@ -4881,6 +4908,11 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
|
|
|
4881
4908
|
fork: "fork";
|
|
4882
4909
|
}>>;
|
|
4883
4910
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
4911
|
+
parentNotifications: z$1.ZodEnum<{
|
|
4912
|
+
auto: "auto";
|
|
4913
|
+
off: "off";
|
|
4914
|
+
stuck: "stuck";
|
|
4915
|
+
}>;
|
|
4884
4916
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
4885
4917
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
4886
4918
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -4987,6 +5019,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
|
|
|
4987
5019
|
fork: "fork";
|
|
4988
5020
|
}>>;
|
|
4989
5021
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
5022
|
+
parentNotifications: z$1.ZodEnum<{
|
|
5023
|
+
auto: "auto";
|
|
5024
|
+
off: "off";
|
|
5025
|
+
stuck: "stuck";
|
|
5026
|
+
}>;
|
|
4990
5027
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
4991
5028
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
4992
5029
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -5091,6 +5128,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
|
|
|
5091
5128
|
fork: "fork";
|
|
5092
5129
|
}>>;
|
|
5093
5130
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
5131
|
+
parentNotifications: z$1.ZodEnum<{
|
|
5132
|
+
auto: "auto";
|
|
5133
|
+
off: "off";
|
|
5134
|
+
stuck: "stuck";
|
|
5135
|
+
}>;
|
|
5094
5136
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
5095
5137
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
5096
5138
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -5518,6 +5560,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
5518
5560
|
subject: z$1.ZodString;
|
|
5519
5561
|
}, z$1.core.$strip>>;
|
|
5520
5562
|
deletions: z$1.ZodNumber;
|
|
5563
|
+
fileCount: z$1.ZodNumber;
|
|
5521
5564
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
5522
5565
|
deletions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
5523
5566
|
insertions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -5540,6 +5583,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
5540
5583
|
}, z$1.core.$strip>>;
|
|
5541
5584
|
workingTree: z$1.ZodObject<{
|
|
5542
5585
|
deletions: z$1.ZodNumber;
|
|
5586
|
+
fileCount: z$1.ZodNumber;
|
|
5543
5587
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
5544
5588
|
deletions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
5545
5589
|
insertions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -8360,6 +8404,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8360
8404
|
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
8361
8405
|
"workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
|
|
8362
8406
|
environmentId: z$1.ZodString;
|
|
8407
|
+
maxFiles: z$1.ZodNumber;
|
|
8363
8408
|
maxUntrackedLineStatBytes: z$1.ZodNumber;
|
|
8364
8409
|
maxUntrackedLineStatFiles: z$1.ZodNumber;
|
|
8365
8410
|
mergeBaseBranch: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -8400,6 +8445,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8400
8445
|
subject: z$1.ZodString;
|
|
8401
8446
|
}, z$1.core.$strip>>;
|
|
8402
8447
|
deletions: z$1.ZodNumber;
|
|
8448
|
+
fileCount: z$1.ZodNumber;
|
|
8403
8449
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
8404
8450
|
deletions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
8405
8451
|
insertions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -8422,6 +8468,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8422
8468
|
}, z$1.core.$strip>>;
|
|
8423
8469
|
workingTree: z$1.ZodObject<{
|
|
8424
8470
|
deletions: z$1.ZodNumber;
|
|
8471
|
+
fileCount: z$1.ZodNumber;
|
|
8425
8472
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
8426
8473
|
deletions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
8427
8474
|
insertions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -10731,8 +10778,10 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10731
10778
|
}, z$1.core.$strict>>;
|
|
10732
10779
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10733
10780
|
changelogPreview: "changelogPreview";
|
|
10781
|
+
compactExpiredCache: "compactExpiredCache";
|
|
10734
10782
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10735
10783
|
serverMove: "serverMove";
|
|
10784
|
+
timelinePush: "timelinePush";
|
|
10736
10785
|
}>, z$1.ZodBoolean>;
|
|
10737
10786
|
featureFlags: z$1.ZodObject<{
|
|
10738
10787
|
placeholder: z$1.ZodBoolean;
|
|
@@ -10743,6 +10792,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10743
10792
|
confirmThreadArchive: z$1.ZodBoolean;
|
|
10744
10793
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
10745
10794
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
10795
|
+
earlyAdopter: z$1.ZodBoolean;
|
|
10746
10796
|
keepHistoryAfterContextClear: z$1.ZodBoolean;
|
|
10747
10797
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
10748
10798
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10759,6 +10809,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10759
10809
|
showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
10760
10810
|
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
10761
10811
|
streamerMode: z$1.ZodBoolean;
|
|
10812
|
+
summarizeShellCommands: z$1.ZodBoolean;
|
|
10762
10813
|
telemetryEnabled: z$1.ZodBoolean;
|
|
10763
10814
|
}, z$1.core.$strict>;
|
|
10764
10815
|
hostDaemonPort: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -11132,6 +11183,7 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
|
|
|
11132
11183
|
commit: z$1.ZodNullable<z$1.ZodString>;
|
|
11133
11184
|
version: z$1.ZodString;
|
|
11134
11185
|
}, z$1.core.$strip>;
|
|
11186
|
+
desktopUpdateSupported: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11135
11187
|
lastResult: z$1.ZodNullable<z$1.ZodObject<{
|
|
11136
11188
|
acknowledged: z$1.ZodBoolean;
|
|
11137
11189
|
finishedAt: z$1.ZodString;
|
|
@@ -12889,6 +12941,11 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
|
|
|
12889
12941
|
fork: "fork";
|
|
12890
12942
|
}>>>;
|
|
12891
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
|
+
}>>;
|
|
12892
12949
|
parentThreadId: z$1.ZodOptional<z$1.ZodString>;
|
|
12893
12950
|
permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
12894
12951
|
"accept-edits": "accept-edits";
|
|
@@ -13173,6 +13230,7 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
|
|
|
13173
13230
|
}, z$1.core.$strict>;
|
|
13174
13231
|
type ForkThreadRequest = z$1.infer<typeof forkThreadRequestSchema>;
|
|
13175
13232
|
declare const sendMessageRequestSchema: z$1.ZodObject<{
|
|
13233
|
+
compactFirst: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
13176
13234
|
executionInputSources: z$1.ZodOptional<z$1.ZodObject<{
|
|
13177
13235
|
model: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13178
13236
|
"client-preference": "client-preference";
|
|
@@ -13441,6 +13499,14 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
13441
13499
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13442
13500
|
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
13443
13501
|
serviceTier: z$1.ZodString;
|
|
13502
|
+
state: z$1.ZodEnum<{
|
|
13503
|
+
claimed: "claimed";
|
|
13504
|
+
failed_exhausted: "failed_exhausted";
|
|
13505
|
+
failed_retrying: "failed_retrying";
|
|
13506
|
+
queued: "queued";
|
|
13507
|
+
scheduled: "scheduled";
|
|
13508
|
+
waiting: "waiting";
|
|
13509
|
+
}>;
|
|
13444
13510
|
threadId: z$1.ZodString;
|
|
13445
13511
|
updatedAt: z$1.ZodNumber;
|
|
13446
13512
|
waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -14003,6 +14069,14 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
14003
14069
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
14004
14070
|
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14005
14071
|
serviceTier: z$1.ZodString;
|
|
14072
|
+
state: z$1.ZodEnum<{
|
|
14073
|
+
claimed: "claimed";
|
|
14074
|
+
failed_exhausted: "failed_exhausted";
|
|
14075
|
+
failed_retrying: "failed_retrying";
|
|
14076
|
+
queued: "queued";
|
|
14077
|
+
scheduled: "scheduled";
|
|
14078
|
+
waiting: "waiting";
|
|
14079
|
+
}>;
|
|
14006
14080
|
threadId: z$1.ZodString;
|
|
14007
14081
|
updatedAt: z$1.ZodNumber;
|
|
14008
14082
|
waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -14060,6 +14134,11 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
14060
14134
|
fork: "fork";
|
|
14061
14135
|
}>>;
|
|
14062
14136
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14137
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14138
|
+
auto: "auto";
|
|
14139
|
+
off: "off";
|
|
14140
|
+
stuck: "stuck";
|
|
14141
|
+
}>;
|
|
14063
14142
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14064
14143
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
14065
14144
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -14161,6 +14240,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14161
14240
|
fork: "fork";
|
|
14162
14241
|
}>>;
|
|
14163
14242
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14243
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14244
|
+
auto: "auto";
|
|
14245
|
+
off: "off";
|
|
14246
|
+
stuck: "stuck";
|
|
14247
|
+
}>;
|
|
14164
14248
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14165
14249
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
14166
14250
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -14253,6 +14337,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14253
14337
|
fork: "fork";
|
|
14254
14338
|
}>>;
|
|
14255
14339
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14340
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14341
|
+
auto: "auto";
|
|
14342
|
+
off: "off";
|
|
14343
|
+
stuck: "stuck";
|
|
14344
|
+
}>;
|
|
14256
14345
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14257
14346
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
14258
14347
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -14314,6 +14403,11 @@ declare const threadResponseSchema: z$1.ZodObject<{
|
|
|
14314
14403
|
fork: "fork";
|
|
14315
14404
|
}>>;
|
|
14316
14405
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14406
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14407
|
+
auto: "auto";
|
|
14408
|
+
off: "off";
|
|
14409
|
+
stuck: "stuck";
|
|
14410
|
+
}>;
|
|
14317
14411
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14318
14412
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
14319
14413
|
projectId: z$1.ZodString;
|
|
@@ -14502,6 +14596,11 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
14502
14596
|
fork: "fork";
|
|
14503
14597
|
}>>;
|
|
14504
14598
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14599
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14600
|
+
auto: "auto";
|
|
14601
|
+
off: "off";
|
|
14602
|
+
stuck: "stuck";
|
|
14603
|
+
}>;
|
|
14505
14604
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14506
14605
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
14507
14606
|
projectId: z$1.ZodString;
|
|
@@ -14950,6 +15049,14 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
14950
15049
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
14951
15050
|
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14952
15051
|
serviceTier: z$1.ZodString;
|
|
15052
|
+
state: z$1.ZodEnum<{
|
|
15053
|
+
claimed: "claimed";
|
|
15054
|
+
failed_exhausted: "failed_exhausted";
|
|
15055
|
+
failed_retrying: "failed_retrying";
|
|
15056
|
+
queued: "queued";
|
|
15057
|
+
scheduled: "scheduled";
|
|
15058
|
+
waiting: "waiting";
|
|
15059
|
+
}>;
|
|
14953
15060
|
threadId: z$1.ZodString;
|
|
14954
15061
|
updatedAt: z$1.ZodNumber;
|
|
14955
15062
|
waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -14985,6 +15092,11 @@ declare const deleteThreadRequestSchema: z$1.ZodObject<{
|
|
|
14985
15092
|
type DeleteThreadRequest = z$1.infer<typeof deleteThreadRequestSchema>;
|
|
14986
15093
|
declare const updateThreadRequestSchema: z$1.ZodObject<{
|
|
14987
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
|
+
}>>;
|
|
14988
15100
|
parentThreadId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
14989
15101
|
reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
14990
15102
|
sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
@@ -15064,6 +15176,7 @@ declare const threadListQuerySchema: z$1.ZodObject<{
|
|
|
15064
15176
|
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
15065
15177
|
sectionId: z$1.ZodOptional<z$1.ZodString>;
|
|
15066
15178
|
sourceThreadId: z$1.ZodOptional<z$1.ZodString>;
|
|
15179
|
+
threadIds: z$1.ZodOptional<z$1.ZodString>;
|
|
15067
15180
|
unsectioned: z$1.ZodOptional<z$1.ZodEnum<{
|
|
15068
15181
|
false: "false";
|
|
15069
15182
|
true: "true";
|
|
@@ -15940,6 +16053,7 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
|
|
|
15940
16053
|
}>;
|
|
15941
16054
|
contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
|
|
15942
16055
|
contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
|
|
16056
|
+
compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
15943
16057
|
cost: z$1.ZodOptional<z$1.ZodObject<{
|
|
15944
16058
|
amount: z$1.ZodNumber;
|
|
15945
16059
|
currency: z$1.ZodString;
|
|
@@ -16056,26 +16170,14 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
|
|
|
16056
16170
|
value: z$1.ZodBoolean;
|
|
16057
16171
|
}, z$1.core.$strip>], "type">>>;
|
|
16058
16172
|
timelinePage: z$1.ZodObject<{
|
|
16059
|
-
|
|
16060
|
-
anchorSeq: z$1.ZodNumber;
|
|
16061
|
-
end: z$1.ZodNumber;
|
|
16062
|
-
start: z$1.ZodNumber;
|
|
16063
|
-
total: z$1.ZodNumber;
|
|
16064
|
-
}, z$1.core.$strip>>;
|
|
16065
|
-
hasOlderRows: z$1.ZodBoolean;
|
|
16066
|
-
historySnapshot: z$1.ZodOptional<z$1.ZodString>;
|
|
16067
|
-
kind: z$1.ZodEnum<{
|
|
16068
|
-
latest: "latest";
|
|
16069
|
-
older: "older";
|
|
16070
|
-
}>;
|
|
16173
|
+
historySnapshot: z$1.ZodString;
|
|
16071
16174
|
olderCursor: z$1.ZodNullable<z$1.ZodObject<{
|
|
16072
16175
|
anchorId: z$1.ZodString;
|
|
16073
16176
|
anchorSeq: z$1.ZodNumber;
|
|
16074
16177
|
}, z$1.core.$strict>>;
|
|
16075
16178
|
olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
|
|
16076
|
-
olderRowsSourceSeqEnd: z$1.
|
|
16179
|
+
olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
|
|
16077
16180
|
returnedSegmentCount: z$1.ZodNumber;
|
|
16078
|
-
segmentLimit: z$1.ZodNumber;
|
|
16079
16181
|
}, z$1.core.$strict>;
|
|
16080
16182
|
}, z$1.core.$strip>;
|
|
16081
16183
|
type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
|
|
@@ -17535,6 +17637,7 @@ interface StatusGetArgs {
|
|
|
17535
17637
|
interface StatusThreadSummary {
|
|
17536
17638
|
environmentId: string | null;
|
|
17537
17639
|
id: string;
|
|
17640
|
+
parentNotifications: ThreadParentNotifications;
|
|
17538
17641
|
parentThreadId: string | null;
|
|
17539
17642
|
pinnedAt: number | null;
|
|
17540
17643
|
projectId: string;
|
|
@@ -17866,6 +17969,12 @@ interface ThreadListArgs {
|
|
|
17866
17969
|
projectId?: string;
|
|
17867
17970
|
signal?: AbortSignal;
|
|
17868
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[];
|
|
17869
17978
|
unsectioned?: boolean;
|
|
17870
17979
|
}
|
|
17871
17980
|
interface ThreadSearchArgs extends ThreadSearchQuery {
|
|
@@ -19439,6 +19548,25 @@ interface ExperimentalClipboardContent {
|
|
|
19439
19548
|
text: string;
|
|
19440
19549
|
html?: string;
|
|
19441
19550
|
}
|
|
19551
|
+
/**
|
|
19552
|
+
* What {@link PluginSdkApp.experimental_saveFile} saves: a URL on the bb
|
|
19553
|
+
* server (such as one of the plugin's own HTTP routes), or bytes already in
|
|
19554
|
+
* the page, plus the file name the user sees.
|
|
19555
|
+
*/
|
|
19556
|
+
type ExperimentalSaveFileRequest = {
|
|
19557
|
+
fileName: string;
|
|
19558
|
+
url: string;
|
|
19559
|
+
} | {
|
|
19560
|
+
fileName: string;
|
|
19561
|
+
blob: Blob;
|
|
19562
|
+
};
|
|
19563
|
+
/**
|
|
19564
|
+
* How {@link PluginSdkApp.experimental_saveFile} started. `started` means
|
|
19565
|
+
* the browser or native shell took over the download; completion and share
|
|
19566
|
+
* cancellation are not reported to the page. `failed` means the download
|
|
19567
|
+
* could not start; bb already showed an error toast.
|
|
19568
|
+
*/
|
|
19569
|
+
type ExperimentalSaveFileOutcome = "failed" | "started";
|
|
19442
19570
|
/**
|
|
19443
19571
|
* The `threads` area of {@link PluginBrowserBbSdk}: bb's public thread API
|
|
19444
19572
|
* with the calling plugin's identity filled in. `spawn` and `fork` stamp
|
|
@@ -19635,8 +19763,9 @@ interface PluginThreadActionRunInput {
|
|
|
19635
19763
|
interface PluginThreadAction {
|
|
19636
19764
|
label: string;
|
|
19637
19765
|
/**
|
|
19638
|
-
* Short secondary text
|
|
19639
|
-
*
|
|
19766
|
+
* Short secondary text, e.g. the current value of a choice list. Shown on
|
|
19767
|
+
* a muted second line under the label, except on rows with `choices`,
|
|
19768
|
+
* where only tooltips and screen readers include it.
|
|
19640
19769
|
*/
|
|
19641
19770
|
detail?: string;
|
|
19642
19771
|
icon: BbIconName;
|
|
@@ -19679,7 +19808,7 @@ interface PluginThreadActionItemInput<Data> {
|
|
|
19679
19808
|
* Add an action to every thread actions menu: the thread header's menu, the
|
|
19680
19809
|
* sidebar row's menu and right-click menu, the compact long-press drawer, and,
|
|
19681
19810
|
* when the user picks it, a sidebar row's quick-action buttons. bb's own
|
|
19682
|
-
* actions (Open in split, Copy
|
|
19811
|
+
* actions (Open in split, Copy link, Mark read, Pin, Rename, Archive,
|
|
19683
19812
|
* Delete, …) are registrations of this same shape.
|
|
19684
19813
|
*
|
|
19685
19814
|
* `useData` is a React hook the host calls once for the whole app, never per
|
|
@@ -21636,11 +21765,13 @@ interface PluginSdkApp {
|
|
|
21636
21765
|
experimental_ThreadActionsContextMenu: ComponentType<PluginThreadActionsContextMenuProps>;
|
|
21637
21766
|
/**
|
|
21638
21767
|
* bb's thread menu groups, for a registration that joins one:
|
|
21639
|
-
* `open` (split
|
|
21640
|
-
*
|
|
21768
|
+
* `open` (split, copy link, new thread in environment), `state` (pin,
|
|
21769
|
+
* read, notifications), `organize` (rename, move), `settings`, and
|
|
21770
|
+
* `lifecycle` (archive, delete). Experimental: see docs/api_to_audit.md.
|
|
21641
21771
|
*/
|
|
21642
21772
|
experimental_THREAD_ACTION_GROUPS: {
|
|
21643
21773
|
readonly open: "1_open";
|
|
21774
|
+
readonly state: "1_state";
|
|
21644
21775
|
readonly organize: "2_organize";
|
|
21645
21776
|
readonly settings: "3_settings";
|
|
21646
21777
|
readonly lifecycle: "4_lifecycle";
|
|
@@ -21768,6 +21899,19 @@ interface PluginSdkApp {
|
|
|
21768
21899
|
* failure feedback. Experimental: see docs/api_to_audit.md.
|
|
21769
21900
|
*/
|
|
21770
21901
|
experimental_copyToClipboard(content: ExperimentalClipboardContent): Promise<boolean>;
|
|
21902
|
+
/**
|
|
21903
|
+
* Saves a file through bb's own download path, the one bb's file preview
|
|
21904
|
+
* and attachment downloads use. Browsers and bb Desktop start an ordinary
|
|
21905
|
+
* download. In the bb iOS app, where a download link would otherwise
|
|
21906
|
+
* replace the app, the file goes to the system share sheet (Save to Files,
|
|
21907
|
+
* AirDrop, other apps). A plain function: call it from a click handler and
|
|
21908
|
+
* keep a real `href` on the link for copy-link and accessibility. Resolves
|
|
21909
|
+
* with `started` or `failed` and never rejects. Completion and share-sheet
|
|
21910
|
+
* cancellation are not reported. The native shell shows download errors;
|
|
21911
|
+
* bb shows an error toast when the download cannot start.
|
|
21912
|
+
* Experimental: see docs/api_to_audit.md.
|
|
21913
|
+
*/
|
|
21914
|
+
experimental_saveFile(request: ExperimentalSaveFileRequest): Promise<ExperimentalSaveFileOutcome>;
|
|
21771
21915
|
/**
|
|
21772
21916
|
* The host-owned chat component (see {@link ThreadChatProps}). Together
|
|
21773
21917
|
* with `Markdown`, the only components the SDK ships — everything else
|
|
@@ -21851,6 +21995,7 @@ interface PluginSdkApp {
|
|
|
21851
21995
|
|
|
21852
21996
|
declare const experimental_THREAD_ACTION_GROUPS: {
|
|
21853
21997
|
readonly open: "1_open";
|
|
21998
|
+
readonly state: "1_state";
|
|
21854
21999
|
readonly organize: "2_organize";
|
|
21855
22000
|
readonly settings: "3_settings";
|
|
21856
22001
|
readonly lifecycle: "4_lifecycle";
|
|
@@ -21908,6 +22053,7 @@ declare const useSdk: () => PluginBrowserBbSdk;
|
|
|
21908
22053
|
declare const experimental_useProviders: () => PluginProvidersState;
|
|
21909
22054
|
declare const experimental_useCodeTheme: () => PluginCodeThemeState;
|
|
21910
22055
|
declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
22056
|
+
declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
|
|
21911
22057
|
|
|
21912
|
-
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 };
|
|
21913
|
-
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 };
|
|
22058
|
+
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_saveFile, 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 };
|
|
22059
|
+
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, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, 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 };
|
|
@@ -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;
|
|
@@ -443,6 +443,14 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
|
|
|
443
443
|
sendAt: z.ZodNullable<z.ZodNumber>;
|
|
444
444
|
senderThreadId: z.ZodNullable<z.ZodString>;
|
|
445
445
|
serviceTier: z.ZodString;
|
|
446
|
+
state: z.ZodEnum<{
|
|
447
|
+
claimed: "claimed";
|
|
448
|
+
failed_exhausted: "failed_exhausted";
|
|
449
|
+
failed_retrying: "failed_retrying";
|
|
450
|
+
queued: "queued";
|
|
451
|
+
scheduled: "scheduled";
|
|
452
|
+
waiting: "waiting";
|
|
453
|
+
}>;
|
|
446
454
|
threadId: z.ZodString;
|
|
447
455
|
updatedAt: z.ZodNumber;
|
|
448
456
|
waitingOn: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -485,6 +493,11 @@ declare const threadResponseSchema: z.ZodObject<{
|
|
|
485
493
|
fork: "fork";
|
|
486
494
|
}>>;
|
|
487
495
|
originPluginId: z.ZodNullable<z.ZodString>;
|
|
496
|
+
parentNotifications: z.ZodEnum<{
|
|
497
|
+
auto: "auto";
|
|
498
|
+
off: "off";
|
|
499
|
+
stuck: "stuck";
|
|
500
|
+
}>;
|
|
488
501
|
parentThreadId: z.ZodNullable<z.ZodString>;
|
|
489
502
|
pinnedAt: z.ZodNullable<z.ZodNumber>;
|
|
490
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>;
|
|
@@ -5060,6 +5062,7 @@ interface CreateDeltaAssemblerOptions {
|
|
|
5060
5062
|
entropyPrefix?: string;
|
|
5061
5063
|
progressThrottleMs?: number;
|
|
5062
5064
|
textDeltaFlushMs?: number;
|
|
5065
|
+
onDeferredEvents?: (threadId: string, events: ThreadEvent[]) => void;
|
|
5063
5066
|
now?: () => number;
|
|
5064
5067
|
}
|
|
5065
5068
|
interface AssembleDeltasArgs {
|
|
@@ -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;
|