@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
|
@@ -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,14 +505,18 @@ 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";
|
|
511
|
+
timelinePush: "timelinePush";
|
|
504
512
|
}>, z$1.ZodBoolean>;
|
|
505
513
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
506
514
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
507
515
|
changelogPreview: "changelogPreview";
|
|
516
|
+
compactExpiredCache: "compactExpiredCache";
|
|
508
517
|
performanceDiagnostics: "performanceDiagnostics";
|
|
509
518
|
serverMove: "serverMove";
|
|
519
|
+
timelinePush: "timelinePush";
|
|
510
520
|
}> & z$1.core.$partial, z$1.ZodBoolean>;
|
|
511
521
|
type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
|
|
512
522
|
|
|
@@ -2623,6 +2633,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2623
2633
|
totalTokens: z$1.ZodNumber;
|
|
2624
2634
|
}, z$1.core.$strip>;
|
|
2625
2635
|
modelContextWindow: z$1.ZodNullable<z$1.ZodNumber>;
|
|
2636
|
+
promptCacheTtlMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2626
2637
|
total: z$1.ZodObject<{
|
|
2627
2638
|
cacheReadInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2628
2639
|
cacheWriteInputTokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -4256,6 +4267,13 @@ declare const threadTimelinePendingTodosSchema: z$1.ZodObject<{
|
|
|
4256
4267
|
}, z$1.core.$strip>;
|
|
4257
4268
|
type ThreadTimelinePendingTodos = z$1.infer<typeof threadTimelinePendingTodosSchema>;
|
|
4258
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
|
+
|
|
4259
4277
|
declare const threadRuntimeDisplayStatusSchema: z$1.ZodEnum<{
|
|
4260
4278
|
"waiting-for-host": "waiting-for-host";
|
|
4261
4279
|
active: "active";
|
|
@@ -4393,6 +4411,14 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
4393
4411
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
4394
4412
|
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
4395
4413
|
serviceTier: z$1.ZodString;
|
|
4414
|
+
state: z$1.ZodEnum<{
|
|
4415
|
+
claimed: "claimed";
|
|
4416
|
+
failed_exhausted: "failed_exhausted";
|
|
4417
|
+
failed_retrying: "failed_retrying";
|
|
4418
|
+
queued: "queued";
|
|
4419
|
+
scheduled: "scheduled";
|
|
4420
|
+
waiting: "waiting";
|
|
4421
|
+
}>;
|
|
4396
4422
|
threadId: z$1.ZodString;
|
|
4397
4423
|
updatedAt: z$1.ZodNumber;
|
|
4398
4424
|
waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -4439,6 +4465,7 @@ interface EnvironmentRemoval {
|
|
|
4439
4465
|
|
|
4440
4466
|
declare const threadContextResponseSchema: z$1.ZodObject<{
|
|
4441
4467
|
usage: z$1.ZodNullable<z$1.ZodObject<{
|
|
4468
|
+
compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
4442
4469
|
cost: z$1.ZodOptional<z$1.ZodObject<{
|
|
4443
4470
|
amount: z$1.ZodNumber;
|
|
4444
4471
|
currency: z$1.ZodString;
|
|
@@ -4940,6 +4967,11 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
|
|
|
4940
4967
|
fork: "fork";
|
|
4941
4968
|
}>>;
|
|
4942
4969
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
4970
|
+
parentNotifications: z$1.ZodEnum<{
|
|
4971
|
+
auto: "auto";
|
|
4972
|
+
off: "off";
|
|
4973
|
+
stuck: "stuck";
|
|
4974
|
+
}>;
|
|
4943
4975
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
4944
4976
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
4945
4977
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -5046,6 +5078,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
|
|
|
5046
5078
|
fork: "fork";
|
|
5047
5079
|
}>>;
|
|
5048
5080
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
5081
|
+
parentNotifications: z$1.ZodEnum<{
|
|
5082
|
+
auto: "auto";
|
|
5083
|
+
off: "off";
|
|
5084
|
+
stuck: "stuck";
|
|
5085
|
+
}>;
|
|
5049
5086
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
5050
5087
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
5051
5088
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -5150,6 +5187,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
|
|
|
5150
5187
|
fork: "fork";
|
|
5151
5188
|
}>>;
|
|
5152
5189
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
5190
|
+
parentNotifications: z$1.ZodEnum<{
|
|
5191
|
+
auto: "auto";
|
|
5192
|
+
off: "off";
|
|
5193
|
+
stuck: "stuck";
|
|
5194
|
+
}>;
|
|
5153
5195
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
5154
5196
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
5155
5197
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -5577,6 +5619,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
5577
5619
|
subject: z$1.ZodString;
|
|
5578
5620
|
}, z$1.core.$strip>>;
|
|
5579
5621
|
deletions: z$1.ZodNumber;
|
|
5622
|
+
fileCount: z$1.ZodNumber;
|
|
5580
5623
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
5581
5624
|
deletions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
5582
5625
|
insertions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -5599,6 +5642,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
5599
5642
|
}, z$1.core.$strip>>;
|
|
5600
5643
|
workingTree: z$1.ZodObject<{
|
|
5601
5644
|
deletions: z$1.ZodNumber;
|
|
5645
|
+
fileCount: z$1.ZodNumber;
|
|
5602
5646
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
5603
5647
|
deletions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
5604
5648
|
insertions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -8419,6 +8463,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8419
8463
|
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
8420
8464
|
"workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
|
|
8421
8465
|
environmentId: z$1.ZodString;
|
|
8466
|
+
maxFiles: z$1.ZodNumber;
|
|
8422
8467
|
maxUntrackedLineStatBytes: z$1.ZodNumber;
|
|
8423
8468
|
maxUntrackedLineStatFiles: z$1.ZodNumber;
|
|
8424
8469
|
mergeBaseBranch: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -8459,6 +8504,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8459
8504
|
subject: z$1.ZodString;
|
|
8460
8505
|
}, z$1.core.$strip>>;
|
|
8461
8506
|
deletions: z$1.ZodNumber;
|
|
8507
|
+
fileCount: z$1.ZodNumber;
|
|
8462
8508
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
8463
8509
|
deletions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
8464
8510
|
insertions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -8481,6 +8527,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8481
8527
|
}, z$1.core.$strip>>;
|
|
8482
8528
|
workingTree: z$1.ZodObject<{
|
|
8483
8529
|
deletions: z$1.ZodNumber;
|
|
8530
|
+
fileCount: z$1.ZodNumber;
|
|
8484
8531
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
8485
8532
|
deletions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
8486
8533
|
insertions: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -10790,8 +10837,10 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10790
10837
|
}, z$1.core.$strict>>;
|
|
10791
10838
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10792
10839
|
changelogPreview: "changelogPreview";
|
|
10840
|
+
compactExpiredCache: "compactExpiredCache";
|
|
10793
10841
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10794
10842
|
serverMove: "serverMove";
|
|
10843
|
+
timelinePush: "timelinePush";
|
|
10795
10844
|
}>, z$1.ZodBoolean>;
|
|
10796
10845
|
featureFlags: z$1.ZodObject<{
|
|
10797
10846
|
placeholder: z$1.ZodBoolean;
|
|
@@ -10802,6 +10851,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10802
10851
|
confirmThreadArchive: z$1.ZodBoolean;
|
|
10803
10852
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
10804
10853
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
10854
|
+
earlyAdopter: z$1.ZodBoolean;
|
|
10805
10855
|
keepHistoryAfterContextClear: z$1.ZodBoolean;
|
|
10806
10856
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
10807
10857
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10818,6 +10868,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10818
10868
|
showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
10819
10869
|
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
10820
10870
|
streamerMode: z$1.ZodBoolean;
|
|
10871
|
+
summarizeShellCommands: z$1.ZodBoolean;
|
|
10821
10872
|
telemetryEnabled: z$1.ZodBoolean;
|
|
10822
10873
|
}, z$1.core.$strict>;
|
|
10823
10874
|
hostDaemonPort: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -11191,6 +11242,7 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
|
|
|
11191
11242
|
commit: z$1.ZodNullable<z$1.ZodString>;
|
|
11192
11243
|
version: z$1.ZodString;
|
|
11193
11244
|
}, z$1.core.$strip>;
|
|
11245
|
+
desktopUpdateSupported: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11194
11246
|
lastResult: z$1.ZodNullable<z$1.ZodObject<{
|
|
11195
11247
|
acknowledged: z$1.ZodBoolean;
|
|
11196
11248
|
finishedAt: z$1.ZodString;
|
|
@@ -12949,6 +13001,11 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
|
|
|
12949
13001
|
fork: "fork";
|
|
12950
13002
|
}>>>;
|
|
12951
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
|
+
}>>;
|
|
12952
13009
|
parentThreadId: z$1.ZodOptional<z$1.ZodString>;
|
|
12953
13010
|
permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
12954
13011
|
"accept-edits": "accept-edits";
|
|
@@ -13233,6 +13290,7 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
|
|
|
13233
13290
|
}, z$1.core.$strict>;
|
|
13234
13291
|
type ForkThreadRequest = z$1.infer<typeof forkThreadRequestSchema>;
|
|
13235
13292
|
declare const sendMessageRequestSchema: z$1.ZodObject<{
|
|
13293
|
+
compactFirst: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
13236
13294
|
executionInputSources: z$1.ZodOptional<z$1.ZodObject<{
|
|
13237
13295
|
model: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13238
13296
|
"client-preference": "client-preference";
|
|
@@ -13501,6 +13559,14 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
13501
13559
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13502
13560
|
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
13503
13561
|
serviceTier: z$1.ZodString;
|
|
13562
|
+
state: z$1.ZodEnum<{
|
|
13563
|
+
claimed: "claimed";
|
|
13564
|
+
failed_exhausted: "failed_exhausted";
|
|
13565
|
+
failed_retrying: "failed_retrying";
|
|
13566
|
+
queued: "queued";
|
|
13567
|
+
scheduled: "scheduled";
|
|
13568
|
+
waiting: "waiting";
|
|
13569
|
+
}>;
|
|
13504
13570
|
threadId: z$1.ZodString;
|
|
13505
13571
|
updatedAt: z$1.ZodNumber;
|
|
13506
13572
|
waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -14063,6 +14129,14 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
14063
14129
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
14064
14130
|
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14065
14131
|
serviceTier: z$1.ZodString;
|
|
14132
|
+
state: z$1.ZodEnum<{
|
|
14133
|
+
claimed: "claimed";
|
|
14134
|
+
failed_exhausted: "failed_exhausted";
|
|
14135
|
+
failed_retrying: "failed_retrying";
|
|
14136
|
+
queued: "queued";
|
|
14137
|
+
scheduled: "scheduled";
|
|
14138
|
+
waiting: "waiting";
|
|
14139
|
+
}>;
|
|
14066
14140
|
threadId: z$1.ZodString;
|
|
14067
14141
|
updatedAt: z$1.ZodNumber;
|
|
14068
14142
|
waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -14120,6 +14194,11 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
14120
14194
|
fork: "fork";
|
|
14121
14195
|
}>>;
|
|
14122
14196
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14197
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14198
|
+
auto: "auto";
|
|
14199
|
+
off: "off";
|
|
14200
|
+
stuck: "stuck";
|
|
14201
|
+
}>;
|
|
14123
14202
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14124
14203
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
14125
14204
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -14221,6 +14300,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14221
14300
|
fork: "fork";
|
|
14222
14301
|
}>>;
|
|
14223
14302
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14303
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14304
|
+
auto: "auto";
|
|
14305
|
+
off: "off";
|
|
14306
|
+
stuck: "stuck";
|
|
14307
|
+
}>;
|
|
14224
14308
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14225
14309
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
14226
14310
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -14313,6 +14397,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14313
14397
|
fork: "fork";
|
|
14314
14398
|
}>>;
|
|
14315
14399
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14400
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14401
|
+
auto: "auto";
|
|
14402
|
+
off: "off";
|
|
14403
|
+
stuck: "stuck";
|
|
14404
|
+
}>;
|
|
14316
14405
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14317
14406
|
pinSortKey: z$1.ZodNullable<z$1.ZodString>;
|
|
14318
14407
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -14374,6 +14463,11 @@ declare const threadResponseSchema: z$1.ZodObject<{
|
|
|
14374
14463
|
fork: "fork";
|
|
14375
14464
|
}>>;
|
|
14376
14465
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14466
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14467
|
+
auto: "auto";
|
|
14468
|
+
off: "off";
|
|
14469
|
+
stuck: "stuck";
|
|
14470
|
+
}>;
|
|
14377
14471
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14378
14472
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
14379
14473
|
projectId: z$1.ZodString;
|
|
@@ -14562,6 +14656,11 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
14562
14656
|
fork: "fork";
|
|
14563
14657
|
}>>;
|
|
14564
14658
|
originPluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
14659
|
+
parentNotifications: z$1.ZodEnum<{
|
|
14660
|
+
auto: "auto";
|
|
14661
|
+
off: "off";
|
|
14662
|
+
stuck: "stuck";
|
|
14663
|
+
}>;
|
|
14565
14664
|
parentThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
14566
14665
|
pinnedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
14567
14666
|
projectId: z$1.ZodString;
|
|
@@ -15010,6 +15109,14 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
15010
15109
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
15011
15110
|
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
15012
15111
|
serviceTier: z$1.ZodString;
|
|
15112
|
+
state: z$1.ZodEnum<{
|
|
15113
|
+
claimed: "claimed";
|
|
15114
|
+
failed_exhausted: "failed_exhausted";
|
|
15115
|
+
failed_retrying: "failed_retrying";
|
|
15116
|
+
queued: "queued";
|
|
15117
|
+
scheduled: "scheduled";
|
|
15118
|
+
waiting: "waiting";
|
|
15119
|
+
}>;
|
|
15013
15120
|
threadId: z$1.ZodString;
|
|
15014
15121
|
updatedAt: z$1.ZodNumber;
|
|
15015
15122
|
waitingOn: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -15045,6 +15152,11 @@ declare const deleteThreadRequestSchema: z$1.ZodObject<{
|
|
|
15045
15152
|
type DeleteThreadRequest = z$1.infer<typeof deleteThreadRequestSchema>;
|
|
15046
15153
|
declare const updateThreadRequestSchema: z$1.ZodObject<{
|
|
15047
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
|
+
}>>;
|
|
15048
15160
|
parentThreadId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
15049
15161
|
reasoningLevel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
15050
15162
|
sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
@@ -15124,6 +15236,7 @@ declare const threadListQuerySchema: z$1.ZodObject<{
|
|
|
15124
15236
|
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
15125
15237
|
sectionId: z$1.ZodOptional<z$1.ZodString>;
|
|
15126
15238
|
sourceThreadId: z$1.ZodOptional<z$1.ZodString>;
|
|
15239
|
+
threadIds: z$1.ZodOptional<z$1.ZodString>;
|
|
15127
15240
|
unsectioned: z$1.ZodOptional<z$1.ZodEnum<{
|
|
15128
15241
|
false: "false";
|
|
15129
15242
|
true: "true";
|
|
@@ -16000,6 +16113,7 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
|
|
|
16000
16113
|
}>;
|
|
16001
16114
|
contextBoundarySeq: z$1.ZodNullable<z$1.ZodNumber>;
|
|
16002
16115
|
contextWindowUsage: z$1.ZodOptional<z$1.ZodObject<{
|
|
16116
|
+
compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
16003
16117
|
cost: z$1.ZodOptional<z$1.ZodObject<{
|
|
16004
16118
|
amount: z$1.ZodNumber;
|
|
16005
16119
|
currency: z$1.ZodString;
|
|
@@ -16116,26 +16230,14 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
|
|
|
16116
16230
|
value: z$1.ZodBoolean;
|
|
16117
16231
|
}, z$1.core.$strip>], "type">>>;
|
|
16118
16232
|
timelinePage: z$1.ZodObject<{
|
|
16119
|
-
|
|
16120
|
-
anchorSeq: z$1.ZodNumber;
|
|
16121
|
-
end: z$1.ZodNumber;
|
|
16122
|
-
start: z$1.ZodNumber;
|
|
16123
|
-
total: z$1.ZodNumber;
|
|
16124
|
-
}, z$1.core.$strip>>;
|
|
16125
|
-
hasOlderRows: z$1.ZodBoolean;
|
|
16126
|
-
historySnapshot: z$1.ZodOptional<z$1.ZodString>;
|
|
16127
|
-
kind: z$1.ZodEnum<{
|
|
16128
|
-
latest: "latest";
|
|
16129
|
-
older: "older";
|
|
16130
|
-
}>;
|
|
16233
|
+
historySnapshot: z$1.ZodString;
|
|
16131
16234
|
olderCursor: z$1.ZodNullable<z$1.ZodObject<{
|
|
16132
16235
|
anchorId: z$1.ZodString;
|
|
16133
16236
|
anchorSeq: z$1.ZodNumber;
|
|
16134
16237
|
}, z$1.core.$strict>>;
|
|
16135
16238
|
olderRowUpdates: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>>;
|
|
16136
|
-
olderRowsSourceSeqEnd: z$1.
|
|
16239
|
+
olderRowsSourceSeqEnd: z$1.ZodNullable<z$1.ZodNumber>;
|
|
16137
16240
|
returnedSegmentCount: z$1.ZodNumber;
|
|
16138
|
-
segmentLimit: z$1.ZodNumber;
|
|
16139
16241
|
}, z$1.core.$strict>;
|
|
16140
16242
|
}, z$1.core.$strip>;
|
|
16141
16243
|
type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
|
|
@@ -17606,6 +17708,7 @@ interface StatusGetArgs {
|
|
|
17606
17708
|
interface StatusThreadSummary {
|
|
17607
17709
|
environmentId: string | null;
|
|
17608
17710
|
id: string;
|
|
17711
|
+
parentNotifications: ThreadParentNotifications;
|
|
17609
17712
|
parentThreadId: string | null;
|
|
17610
17713
|
pinnedAt: number | null;
|
|
17611
17714
|
projectId: string;
|
|
@@ -17937,6 +18040,12 @@ interface ThreadListArgs {
|
|
|
17937
18040
|
projectId?: string;
|
|
17938
18041
|
signal?: AbortSignal;
|
|
17939
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[];
|
|
17940
18049
|
unsectioned?: boolean;
|
|
17941
18050
|
}
|
|
17942
18051
|
interface ThreadSearchArgs extends ThreadSearchQuery {
|
|
@@ -19623,6 +19732,25 @@ interface ExperimentalClipboardContent {
|
|
|
19623
19732
|
text: string;
|
|
19624
19733
|
html?: string;
|
|
19625
19734
|
}
|
|
19735
|
+
/**
|
|
19736
|
+
* What {@link PluginSdkApp.experimental_saveFile} saves: a URL on the bb
|
|
19737
|
+
* server (such as one of the plugin's own HTTP routes), or bytes already in
|
|
19738
|
+
* the page, plus the file name the user sees.
|
|
19739
|
+
*/
|
|
19740
|
+
type ExperimentalSaveFileRequest = {
|
|
19741
|
+
fileName: string;
|
|
19742
|
+
url: string;
|
|
19743
|
+
} | {
|
|
19744
|
+
fileName: string;
|
|
19745
|
+
blob: Blob;
|
|
19746
|
+
};
|
|
19747
|
+
/**
|
|
19748
|
+
* How {@link PluginSdkApp.experimental_saveFile} started. `started` means
|
|
19749
|
+
* the browser or native shell took over the download; completion and share
|
|
19750
|
+
* cancellation are not reported to the page. `failed` means the download
|
|
19751
|
+
* could not start; bb already showed an error toast.
|
|
19752
|
+
*/
|
|
19753
|
+
type ExperimentalSaveFileOutcome = "failed" | "started";
|
|
19626
19754
|
/**
|
|
19627
19755
|
* The `threads` area of {@link PluginBrowserBbSdk}: bb's public thread API
|
|
19628
19756
|
* with the calling plugin's identity filled in. `spawn` and `fork` stamp
|
|
@@ -19819,8 +19947,9 @@ interface PluginThreadActionRunInput {
|
|
|
19819
19947
|
interface PluginThreadAction {
|
|
19820
19948
|
label: string;
|
|
19821
19949
|
/**
|
|
19822
|
-
* Short secondary text
|
|
19823
|
-
*
|
|
19950
|
+
* Short secondary text, e.g. the current value of a choice list. Shown on
|
|
19951
|
+
* a muted second line under the label, except on rows with `choices`,
|
|
19952
|
+
* where only tooltips and screen readers include it.
|
|
19824
19953
|
*/
|
|
19825
19954
|
detail?: string;
|
|
19826
19955
|
icon: BbIconName;
|
|
@@ -19863,7 +19992,7 @@ interface PluginThreadActionItemInput<Data> {
|
|
|
19863
19992
|
* Add an action to every thread actions menu: the thread header's menu, the
|
|
19864
19993
|
* sidebar row's menu and right-click menu, the compact long-press drawer, and,
|
|
19865
19994
|
* when the user picks it, a sidebar row's quick-action buttons. bb's own
|
|
19866
|
-
* actions (Open in split, Copy
|
|
19995
|
+
* actions (Open in split, Copy link, Mark read, Pin, Rename, Archive,
|
|
19867
19996
|
* Delete, …) are registrations of this same shape.
|
|
19868
19997
|
*
|
|
19869
19998
|
* `useData` is a React hook the host calls once for the whole app, never per
|
|
@@ -21820,11 +21949,13 @@ interface PluginSdkApp {
|
|
|
21820
21949
|
experimental_ThreadActionsContextMenu: ComponentType<PluginThreadActionsContextMenuProps>;
|
|
21821
21950
|
/**
|
|
21822
21951
|
* bb's thread menu groups, for a registration that joins one:
|
|
21823
|
-
* `open` (split
|
|
21824
|
-
*
|
|
21952
|
+
* `open` (split, copy link, new thread in environment), `state` (pin,
|
|
21953
|
+
* read, notifications), `organize` (rename, move), `settings`, and
|
|
21954
|
+
* `lifecycle` (archive, delete). Experimental: see docs/api_to_audit.md.
|
|
21825
21955
|
*/
|
|
21826
21956
|
experimental_THREAD_ACTION_GROUPS: {
|
|
21827
21957
|
readonly open: "1_open";
|
|
21958
|
+
readonly state: "1_state";
|
|
21828
21959
|
readonly organize: "2_organize";
|
|
21829
21960
|
readonly settings: "3_settings";
|
|
21830
21961
|
readonly lifecycle: "4_lifecycle";
|
|
@@ -21952,6 +22083,19 @@ interface PluginSdkApp {
|
|
|
21952
22083
|
* failure feedback. Experimental: see docs/api_to_audit.md.
|
|
21953
22084
|
*/
|
|
21954
22085
|
experimental_copyToClipboard(content: ExperimentalClipboardContent): Promise<boolean>;
|
|
22086
|
+
/**
|
|
22087
|
+
* Saves a file through bb's own download path, the one bb's file preview
|
|
22088
|
+
* and attachment downloads use. Browsers and bb Desktop start an ordinary
|
|
22089
|
+
* download. In the bb iOS app, where a download link would otherwise
|
|
22090
|
+
* replace the app, the file goes to the system share sheet (Save to Files,
|
|
22091
|
+
* AirDrop, other apps). A plain function: call it from a click handler and
|
|
22092
|
+
* keep a real `href` on the link for copy-link and accessibility. Resolves
|
|
22093
|
+
* with `started` or `failed` and never rejects. Completion and share-sheet
|
|
22094
|
+
* cancellation are not reported. The native shell shows download errors;
|
|
22095
|
+
* bb shows an error toast when the download cannot start.
|
|
22096
|
+
* Experimental: see docs/api_to_audit.md.
|
|
22097
|
+
*/
|
|
22098
|
+
experimental_saveFile(request: ExperimentalSaveFileRequest): Promise<ExperimentalSaveFileOutcome>;
|
|
21955
22099
|
/**
|
|
21956
22100
|
* The host-owned chat component (see {@link ThreadChatProps}). Together
|
|
21957
22101
|
* with `Markdown`, the only components the SDK ships — everything else
|
|
@@ -24472,10 +24616,11 @@ declare function defineCli(spec: PluginCliSpec): PluginCliRegistration;
|
|
|
24472
24616
|
|
|
24473
24617
|
declare const experimental_THREAD_ACTION_GROUPS: {
|
|
24474
24618
|
readonly open: "1_open";
|
|
24619
|
+
readonly state: "1_state";
|
|
24475
24620
|
readonly organize: "2_organize";
|
|
24476
24621
|
readonly settings: "3_settings";
|
|
24477
24622
|
readonly lifecycle: "4_lifecycle";
|
|
24478
24623
|
};
|
|
24479
24624
|
|
|
24480
24625
|
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_THREAD_ACTION_GROUPS, experimental_defineHostEntry };
|
|
24481
|
-
export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
24626
|
+
export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
package/dist/app.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/thread-action-groups.ts
|
|
2
2
|
var experimental_THREAD_ACTION_GROUPS = {
|
|
3
3
|
open: "1_open",
|
|
4
|
+
state: "1_state",
|
|
4
5
|
organize: "2_organize",
|
|
5
6
|
settings: "3_settings",
|
|
6
7
|
lifecycle: "4_lifecycle"
|
|
@@ -161,6 +162,7 @@ var experimental_useCodeTheme = runtimeFunction(
|
|
|
161
162
|
var experimental_copyToClipboard = runtimeFunction(
|
|
162
163
|
"experimental_copyToClipboard"
|
|
163
164
|
);
|
|
165
|
+
var experimental_saveFile = runtimeFunction("experimental_saveFile");
|
|
164
166
|
export {
|
|
165
167
|
Markdown,
|
|
166
168
|
ThreadChat,
|
|
@@ -182,6 +184,7 @@ export {
|
|
|
182
184
|
experimental_ThreadStatusGlyph,
|
|
183
185
|
experimental_VoiceInputTextarea,
|
|
184
186
|
experimental_copyToClipboard,
|
|
187
|
+
experimental_saveFile,
|
|
185
188
|
experimental_useAppPanel,
|
|
186
189
|
experimental_useArchiveEnvironmentThreads,
|
|
187
190
|
experimental_useBranches,
|
package/dist/index.js
CHANGED
|
@@ -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({
|
|
@@ -23681,7 +23684,12 @@ async function handleModelList(id, params, dialectId) {
|
|
|
23681
23684
|
);
|
|
23682
23685
|
return;
|
|
23683
23686
|
}
|
|
23684
|
-
|
|
23687
|
+
if (params.listCommand) {
|
|
23688
|
+
throw new Error(
|
|
23689
|
+
"ACP model list command failed to provide a model catalog."
|
|
23690
|
+
);
|
|
23691
|
+
}
|
|
23692
|
+
const sessionDiscoveredModels = params.agent ? await loadSessionDiscoveredModels(
|
|
23685
23693
|
params.agent,
|
|
23686
23694
|
params.reasoningProbePriorityModelIds,
|
|
23687
23695
|
params.parameterizedModelPicker,
|
|
@@ -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({
|
|
@@ -17824,7 +17827,12 @@ async function handleModelList(id, params, dialectId) {
|
|
|
17824
17827
|
);
|
|
17825
17828
|
return;
|
|
17826
17829
|
}
|
|
17827
|
-
|
|
17830
|
+
if (params.listCommand) {
|
|
17831
|
+
throw new Error(
|
|
17832
|
+
"ACP model list command failed to provide a model catalog."
|
|
17833
|
+
);
|
|
17834
|
+
}
|
|
17835
|
+
const sessionDiscoveredModels = params.agent ? await loadSessionDiscoveredModels(
|
|
17828
17836
|
params.agent,
|
|
17829
17837
|
params.reasoningProbePriorityModelIds,
|
|
17830
17838
|
params.parameterizedModelPicker
|