@get-bb/plugin-sdk 0.6.26 → 0.6.33
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/README.md +10 -2
- package/bundled-types/bb-plugin-sdk-app.d.ts +148 -281
- package/bundled-types/bb-plugin-sdk-host.d.ts +30 -3
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +1 -1
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +1 -3
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +2 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +27 -30
- package/bundled-types/bb-plugin-sdk.d.ts +158 -278
- package/dist/app.js +4 -12
- package/dist/host.js +111 -11
- package/dist/internal/host-policy.js +5 -2
- package/dist/internal/plugin-app-collector.js +0 -22
- package/dist/provider-bridge-acp.js +133 -42
- package/dist/provider-bridge-testing.js +8 -2
- package/dist/provider-bridge.js +3 -1
- package/dist/testing/app.js +29 -99
- package/dist/testing/index.js +7 -2
- package/package.json +1 -1
|
@@ -100,14 +100,17 @@ 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
|
+
keepHistoryAfterContextClear: z$1.ZodBoolean;
|
|
103
104
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
104
105
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
105
106
|
managedBranchPrefix: z$1.ZodString;
|
|
107
|
+
onboardingCompletedAt: z$1.ZodNullable<z$1.ZodString>;
|
|
106
108
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
107
109
|
collapse: "collapse";
|
|
108
110
|
flat: "flat";
|
|
109
111
|
}>>;
|
|
110
112
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
113
|
+
setupChecklistVisible: z$1.ZodBoolean;
|
|
111
114
|
showDiagnosticEvents: z$1.ZodBoolean;
|
|
112
115
|
showGitChanges: z$1.ZodBoolean;
|
|
113
116
|
showKeyboardHints: z$1.ZodBoolean;
|
|
@@ -121,14 +124,17 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
121
124
|
confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
122
125
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
123
126
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
127
|
+
keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
124
128
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
125
129
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
126
130
|
managedBranchPrefix: z$1.ZodString;
|
|
131
|
+
onboardingCompletedAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
127
132
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
128
133
|
collapse: "collapse";
|
|
129
134
|
flat: "flat";
|
|
130
135
|
}>>;
|
|
131
136
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
137
|
+
setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
132
138
|
showDiagnosticEvents: z$1.ZodBoolean;
|
|
133
139
|
showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
134
140
|
showKeyboardHints: z$1.ZodBoolean;
|
|
@@ -141,14 +147,17 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
141
147
|
confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
142
148
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
143
149
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
150
|
+
keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
144
151
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
145
152
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
146
153
|
managedBranchPrefix: z$1.ZodString;
|
|
154
|
+
onboardingCompletedAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
147
155
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
148
156
|
collapse: "collapse";
|
|
149
157
|
flat: "flat";
|
|
150
158
|
}>>;
|
|
151
159
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
160
|
+
setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
152
161
|
showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
153
162
|
showKeyboardHints: z$1.ZodBoolean;
|
|
154
163
|
showUnhandledProviderEvents: z$1.ZodBoolean;
|
|
@@ -158,7 +167,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
158
167
|
}, z$1.core.$strict>]>;
|
|
159
168
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
160
169
|
|
|
161
|
-
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.
|
|
170
|
+
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.threadListProvider", "infoPanel.collapsedSections"];
|
|
162
171
|
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
163
172
|
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
164
173
|
schema: Schema;
|
|
@@ -200,8 +209,6 @@ declare const uiPreferenceDefinitions: {
|
|
|
200
209
|
readonly "sidebar.hiddenFooterItems": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
201
210
|
readonly "sidebar.pluginPanelOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
202
211
|
readonly "sidebar.visiblePluginPanels": UiPreferenceDefinition<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>>;
|
|
203
|
-
readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
204
|
-
readonly "sidebar.headerProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
205
212
|
readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
206
213
|
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
207
214
|
};
|
|
@@ -294,6 +301,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
294
301
|
"thread.search": "thread.search";
|
|
295
302
|
"window.find": "window.find";
|
|
296
303
|
"window.new": "window.new";
|
|
304
|
+
"window.reload": "window.reload";
|
|
297
305
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
298
306
|
}>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
|
|
299
307
|
platform: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -548,14 +556,12 @@ type Environment = z$1.infer<typeof environmentSchema>;
|
|
|
548
556
|
|
|
549
557
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
550
558
|
changelogPreview: "changelogPreview";
|
|
551
|
-
navigationRail: "navigationRail";
|
|
552
559
|
performanceDiagnostics: "performanceDiagnostics";
|
|
553
560
|
serverMove: "serverMove";
|
|
554
561
|
}>, z$1.ZodBoolean>;
|
|
555
562
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
556
563
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
557
564
|
changelogPreview: "changelogPreview";
|
|
558
|
-
navigationRail: "navigationRail";
|
|
559
565
|
performanceDiagnostics: "performanceDiagnostics";
|
|
560
566
|
serverMove: "serverMove";
|
|
561
567
|
}> & z$1.core.$partial, z$1.ZodBoolean>;
|
|
@@ -5302,6 +5308,10 @@ declare const promptHistoryListResponseSchema: z$1.ZodObject<{
|
|
|
5302
5308
|
}>>;
|
|
5303
5309
|
}, z$1.core.$strip>], "type">>;
|
|
5304
5310
|
projectId: z$1.ZodString;
|
|
5311
|
+
scope: z$1.ZodEnum<{
|
|
5312
|
+
project: "project";
|
|
5313
|
+
thread: "thread";
|
|
5314
|
+
}>;
|
|
5305
5315
|
threadId: z$1.ZodString;
|
|
5306
5316
|
}, z$1.core.$strip>>;
|
|
5307
5317
|
nextCursor: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -8126,6 +8136,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8126
8136
|
canInstall: z$1.ZodBoolean;
|
|
8127
8137
|
canUpdate: z$1.ZodBoolean;
|
|
8128
8138
|
installedVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
8139
|
+
localLoginCommand: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
8129
8140
|
loginCommand: z$1.ZodNullable<z$1.ZodString>;
|
|
8130
8141
|
minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
8131
8142
|
planLabel: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -8315,6 +8326,20 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8315
8326
|
status: z$1.ZodLiteral<"error">;
|
|
8316
8327
|
}, z$1.core.$loose>], "status">;
|
|
8317
8328
|
}, z$1.core.$loose>], "supported">, "onlineRpc", true>;
|
|
8329
|
+
"host.discover_repos": HostDaemonCommandDescriptor<"host.discover_repos", z$1.ZodObject<{
|
|
8330
|
+
limit: z$1.ZodNumber;
|
|
8331
|
+
maxDepth: z$1.ZodNumber;
|
|
8332
|
+
sinceDays: z$1.ZodNumber;
|
|
8333
|
+
type: z$1.ZodLiteral<"host.discover_repos">;
|
|
8334
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8335
|
+
repos: z$1.ZodArray<z$1.ZodObject<{
|
|
8336
|
+
lastActivityAt: z$1.ZodString;
|
|
8337
|
+
name: z$1.ZodString;
|
|
8338
|
+
originUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
8339
|
+
path: z$1.ZodString;
|
|
8340
|
+
}, z$1.core.$strict>>;
|
|
8341
|
+
truncated: z$1.ZodBoolean;
|
|
8342
|
+
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
8318
8343
|
"workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
|
|
8319
8344
|
environmentId: z$1.ZodString;
|
|
8320
8345
|
maxUntrackedLineStatBytes: z$1.ZodNumber;
|
|
@@ -9069,6 +9094,17 @@ declare const hostDirectoryListingSchema: z$1.ZodObject<{
|
|
|
9069
9094
|
parent: z$1.ZodNullable<z$1.ZodString>;
|
|
9070
9095
|
}, z$1.core.$strip>;
|
|
9071
9096
|
type HostDirectoryListing = z$1.infer<typeof hostDirectoryListingSchema>;
|
|
9097
|
+
declare const hostDiscoveredReposResponseSchema: z$1.ZodObject<{
|
|
9098
|
+
repos: z$1.ZodArray<z$1.ZodObject<{
|
|
9099
|
+
lastActivityAt: z$1.ZodString;
|
|
9100
|
+
name: z$1.ZodString;
|
|
9101
|
+
originUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9102
|
+
path: z$1.ZodString;
|
|
9103
|
+
projectId: z$1.ZodNullable<z$1.ZodString>;
|
|
9104
|
+
}, z$1.core.$strip>>;
|
|
9105
|
+
truncated: z$1.ZodBoolean;
|
|
9106
|
+
}, z$1.core.$strip>;
|
|
9107
|
+
type HostDiscoveredReposResponse = z$1.infer<typeof hostDiscoveredReposResponseSchema>;
|
|
9072
9108
|
declare const hostCloneDefaultPathQuerySchema: z$1.ZodObject<{
|
|
9073
9109
|
projectId: z$1.ZodString;
|
|
9074
9110
|
}, z$1.core.$strip>;
|
|
@@ -10291,6 +10327,10 @@ type SystemExecutionOptionsQuery = z$1.infer<typeof systemExecutionOptionsQueryS
|
|
|
10291
10327
|
declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
|
|
10292
10328
|
hostId: z$1.ZodOptional<z$1.ZodString>;
|
|
10293
10329
|
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
10330
|
+
refresh: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10331
|
+
false: "false";
|
|
10332
|
+
true: "true";
|
|
10333
|
+
}>>;
|
|
10294
10334
|
}, z$1.core.$strip>;
|
|
10295
10335
|
type SystemUsageLimitsQuery = z$1.infer<typeof systemUsageLimitsQuerySchema>;
|
|
10296
10336
|
declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
|
|
@@ -10304,6 +10344,7 @@ declare const systemProviderStatesResponseSchema: z$1.ZodObject<{
|
|
|
10304
10344
|
canUpdate: z$1.ZodBoolean;
|
|
10305
10345
|
displayName: z$1.ZodString;
|
|
10306
10346
|
installedVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
10347
|
+
localLoginCommand: z$1.ZodNullable<z$1.ZodString>;
|
|
10307
10348
|
loginCommand: z$1.ZodNullable<z$1.ZodString>;
|
|
10308
10349
|
minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
10309
10350
|
planLabel: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10509,6 +10550,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10509
10550
|
"thread.search": "thread.search";
|
|
10510
10551
|
"window.find": "window.find";
|
|
10511
10552
|
"window.new": "window.new";
|
|
10553
|
+
"window.reload": "window.reload";
|
|
10512
10554
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
10513
10555
|
}>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
|
|
10514
10556
|
desktopOnly: z$1.ZodBoolean;
|
|
@@ -10555,7 +10597,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10555
10597
|
}, z$1.core.$strict>>;
|
|
10556
10598
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10557
10599
|
changelogPreview: "changelogPreview";
|
|
10558
|
-
navigationRail: "navigationRail";
|
|
10559
10600
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10560
10601
|
serverMove: "serverMove";
|
|
10561
10602
|
}>, z$1.ZodBoolean>;
|
|
@@ -10568,14 +10609,17 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10568
10609
|
confirmThreadArchive: z$1.ZodBoolean;
|
|
10569
10610
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
10570
10611
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
10612
|
+
keepHistoryAfterContextClear: z$1.ZodBoolean;
|
|
10571
10613
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
10572
10614
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
10573
10615
|
managedBranchPrefix: z$1.ZodString;
|
|
10616
|
+
onboardingCompletedAt: z$1.ZodNullable<z$1.ZodString>;
|
|
10574
10617
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
10575
10618
|
collapse: "collapse";
|
|
10576
10619
|
flat: "flat";
|
|
10577
10620
|
}>>;
|
|
10578
10621
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
10622
|
+
setupChecklistVisible: z$1.ZodBoolean;
|
|
10579
10623
|
showDiagnosticEvents: z$1.ZodBoolean;
|
|
10580
10624
|
showGitChanges: z$1.ZodBoolean;
|
|
10581
10625
|
showKeyboardHints: z$1.ZodBoolean;
|
|
@@ -10665,6 +10709,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10665
10709
|
"thread.search": "thread.search";
|
|
10666
10710
|
"window.find": "window.find";
|
|
10667
10711
|
"window.new": "window.new";
|
|
10712
|
+
"window.reload": "window.reload";
|
|
10668
10713
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
10669
10714
|
}>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
|
|
10670
10715
|
platform: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -10761,6 +10806,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10761
10806
|
"thread.search": "thread.search";
|
|
10762
10807
|
"window.find": "window.find";
|
|
10763
10808
|
"window.new": "window.new";
|
|
10809
|
+
"window.reload": "window.reload";
|
|
10764
10810
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
10765
10811
|
}>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
|
|
10766
10812
|
desktopOnly: z$1.ZodBoolean;
|
|
@@ -11546,6 +11592,7 @@ declare const timelineSystemRowSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
11546
11592
|
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
11547
11593
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11548
11594
|
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11595
|
+
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11549
11596
|
createdAt: z$1.ZodNumber;
|
|
11550
11597
|
detail: z$1.ZodNullable<z$1.ZodString>;
|
|
11551
11598
|
id: z$1.ZodString;
|
|
@@ -11639,6 +11686,7 @@ declare const timelineCommandWorkRowSchema: z$1.ZodObject<{
|
|
|
11639
11686
|
callId: z$1.ZodString;
|
|
11640
11687
|
command: z$1.ZodString;
|
|
11641
11688
|
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11689
|
+
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11642
11690
|
createdAt: z$1.ZodNumber;
|
|
11643
11691
|
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
11644
11692
|
exitCode: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -11700,6 +11748,7 @@ declare const timelineToolWorkRowSchema: z$1.ZodObject<{
|
|
|
11700
11748
|
}>>;
|
|
11701
11749
|
callId: z$1.ZodString;
|
|
11702
11750
|
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11751
|
+
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11703
11752
|
createdAt: z$1.ZodNumber;
|
|
11704
11753
|
id: z$1.ZodString;
|
|
11705
11754
|
kind: z$1.ZodLiteral<"work">;
|
|
@@ -11769,6 +11818,7 @@ declare const timelineFileChangeWorkRowSchema: z$1.ZodObject<{
|
|
|
11769
11818
|
movePath: z$1.ZodNullable<z$1.ZodString>;
|
|
11770
11819
|
path: z$1.ZodString;
|
|
11771
11820
|
}, z$1.core.$strip>;
|
|
11821
|
+
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11772
11822
|
createdAt: z$1.ZodNumber;
|
|
11773
11823
|
id: z$1.ZodString;
|
|
11774
11824
|
kind: z$1.ZodLiteral<"work">;
|
|
@@ -12372,7 +12422,7 @@ interface TimelineDelegationWorkRow extends TimelineWorkRowBase {
|
|
|
12372
12422
|
description: string | null;
|
|
12373
12423
|
output: string;
|
|
12374
12424
|
completedAt: number | null;
|
|
12375
|
-
childRows: TimelineRow[];
|
|
12425
|
+
childRows: TimelineRow[] | null;
|
|
12376
12426
|
presentation?: TimelineRowPresentation;
|
|
12377
12427
|
}
|
|
12378
12428
|
declare const timelineWorkflowWorkRowSchema: z$1.ZodObject<{
|
|
@@ -13650,6 +13700,10 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13650
13700
|
}, z$1.core.$strip>], "type">>;
|
|
13651
13701
|
}, z$1.core.$strip>;
|
|
13652
13702
|
type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
|
|
13703
|
+
declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
|
|
13704
|
+
leaseMs: z$1.ZodNumber;
|
|
13705
|
+
}, z$1.core.$strip>;
|
|
13706
|
+
type QueuedMessageEditHoldResponse = z$1.infer<typeof queuedMessageEditHoldResponseSchema>;
|
|
13653
13707
|
declare const sendQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
13654
13708
|
mode: z$1.ZodEnum<{
|
|
13655
13709
|
auto: "auto";
|
|
@@ -14902,6 +14956,10 @@ declare const threadTimelineQuerySchema: z$1.ZodObject<{
|
|
|
14902
14956
|
afterSequence: z$1.ZodOptional<z$1.ZodString>;
|
|
14903
14957
|
beforeAnchorId: z$1.ZodOptional<z$1.ZodString>;
|
|
14904
14958
|
beforeAnchorSeq: z$1.ZodOptional<z$1.ZodString>;
|
|
14959
|
+
deferContent: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14960
|
+
false: "false";
|
|
14961
|
+
true: "true";
|
|
14962
|
+
}>>;
|
|
14905
14963
|
includeNestedRows: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14906
14964
|
false: "false";
|
|
14907
14965
|
true: "true";
|
|
@@ -14915,6 +14973,11 @@ declare const threadTimelineQuerySchema: z$1.ZodObject<{
|
|
|
14915
14973
|
type ThreadTimelineQuery = z$1.infer<typeof threadTimelineQuerySchema>;
|
|
14916
14974
|
declare const timelineTurnSummaryDetailsQuerySchema: z$1.ZodObject<{
|
|
14917
14975
|
beforeCursor: z$1.ZodOptional<z$1.ZodString>;
|
|
14976
|
+
deferContent: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14977
|
+
false: "false";
|
|
14978
|
+
true: "true";
|
|
14979
|
+
}>>;
|
|
14980
|
+
itemId: z$1.ZodOptional<z$1.ZodString>;
|
|
14918
14981
|
sourceSeqEnd: z$1.ZodString;
|
|
14919
14982
|
sourceSeqStart: z$1.ZodString;
|
|
14920
14983
|
turnId: z$1.ZodString;
|
|
@@ -15781,6 +15844,13 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
|
|
|
15781
15844
|
}, z$1.core.$strict>;
|
|
15782
15845
|
}, z$1.core.$strip>;
|
|
15783
15846
|
type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
|
|
15847
|
+
declare const threadConversationOutlineQuerySchema: z$1.ZodObject<{
|
|
15848
|
+
role: z$1.ZodOptional<z$1.ZodEnum<{
|
|
15849
|
+
assistant: "assistant";
|
|
15850
|
+
user: "user";
|
|
15851
|
+
}>>;
|
|
15852
|
+
}, z$1.core.$strip>;
|
|
15853
|
+
type ThreadConversationOutlineQuery = z$1.infer<typeof threadConversationOutlineQuerySchema>;
|
|
15784
15854
|
declare const threadConversationOutlineResponseSchema: z$1.ZodObject<{
|
|
15785
15855
|
items: z$1.ZodArray<z$1.ZodObject<{
|
|
15786
15856
|
attachmentSummary: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -16648,6 +16718,10 @@ interface HostDirectoryArgs extends HostDirectoryQuery {
|
|
|
16648
16718
|
hostId: string;
|
|
16649
16719
|
signal?: AbortSignal;
|
|
16650
16720
|
}
|
|
16721
|
+
interface HostDiscoverReposArgs {
|
|
16722
|
+
hostId: string;
|
|
16723
|
+
signal?: AbortSignal;
|
|
16724
|
+
}
|
|
16651
16725
|
interface HostCloneDefaultPathArgs extends HostCloneDefaultPathQuery {
|
|
16652
16726
|
hostId: string;
|
|
16653
16727
|
signal?: AbortSignal;
|
|
@@ -16680,6 +16754,7 @@ type HostDeleteResult = {
|
|
|
16680
16754
|
ok: true;
|
|
16681
16755
|
};
|
|
16682
16756
|
type HostDirectoryResult = HostDirectoryListing;
|
|
16757
|
+
type HostDiscoverReposResult = HostDiscoveredReposResponse;
|
|
16683
16758
|
type HostGetResult = Host & {
|
|
16684
16759
|
connectMachineId: string | null;
|
|
16685
16760
|
threadStorageRootPath: string | null;
|
|
@@ -16705,6 +16780,7 @@ interface HostsArea {
|
|
|
16705
16780
|
delete(args: HostDeleteArgs): Promise<HostDeleteResult>;
|
|
16706
16781
|
experimental_deleteOldServerCopy(args: HostActionArgs): Promise<DeleteOldServerCopyResponse>;
|
|
16707
16782
|
directory(args: HostDirectoryArgs): Promise<HostDirectoryResult>;
|
|
16783
|
+
experimental_discoverRepos(args: HostDiscoverReposArgs): Promise<HostDiscoverReposResult>;
|
|
16708
16784
|
get(args: HostGetArgs): Promise<HostGetResult>;
|
|
16709
16785
|
cloneDefaultPath(args: HostCloneDefaultPathArgs): Promise<HostCloneDefaultPathResult>;
|
|
16710
16786
|
installProviderCli(args: HostProviderCliInstallArgs): Promise<HostProviderCliInstallResult>;
|
|
@@ -17022,6 +17098,9 @@ interface PluginListUpdateResultsArgs {
|
|
|
17022
17098
|
interface PluginGetSafeModeArgs {
|
|
17023
17099
|
signal?: AbortSignal;
|
|
17024
17100
|
}
|
|
17101
|
+
interface PluginRpcDiscoveryArgs extends PluginRpcDiscoveryQuery {
|
|
17102
|
+
signal?: AbortSignal;
|
|
17103
|
+
}
|
|
17025
17104
|
interface PluginSetSafeModeArgs {
|
|
17026
17105
|
enabled: boolean;
|
|
17027
17106
|
}
|
|
@@ -17081,7 +17160,7 @@ interface PluginUpdateJobsArea {
|
|
|
17081
17160
|
}): Promise<PluginUpdateJob[]>;
|
|
17082
17161
|
}
|
|
17083
17162
|
interface PluginsArea {
|
|
17084
|
-
experimental_discoverRpc(args?:
|
|
17163
|
+
experimental_discoverRpc(args?: PluginRpcDiscoveryArgs): Promise<PublishedPluginRpcMethod[]>;
|
|
17085
17164
|
experimental_getSafeMode(args?: PluginGetSafeModeArgs): Promise<PluginSafeModeResult>;
|
|
17086
17165
|
experimental_setSafeMode(args: PluginSetSafeModeArgs): Promise<PluginSetSafeModeResult>;
|
|
17087
17166
|
experimental_pruneCache(args?: PluginPruneCacheArgs): Promise<PluginPruneCacheResult>;
|
|
@@ -17313,7 +17392,8 @@ interface SystemConfigArgs {
|
|
|
17313
17392
|
interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
|
|
17314
17393
|
signal?: AbortSignal;
|
|
17315
17394
|
}
|
|
17316
|
-
interface SystemUsageLimitsArgs extends SystemUsageLimitsQuery {
|
|
17395
|
+
interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
|
|
17396
|
+
refresh?: boolean;
|
|
17317
17397
|
signal?: AbortSignal;
|
|
17318
17398
|
}
|
|
17319
17399
|
interface SystemVersionArgs {
|
|
@@ -17624,6 +17704,10 @@ type ThreadQueuedMessageUpdateResult = ThreadQueuedMessage;
|
|
|
17624
17704
|
type ThreadQueuedMessageDeleteResult = {
|
|
17625
17705
|
ok: true;
|
|
17626
17706
|
};
|
|
17707
|
+
type ThreadQueuedMessageEditHoldResult = QueuedMessageEditHoldResponse;
|
|
17708
|
+
type ThreadQueuedMessageEditHoldReleaseResult = {
|
|
17709
|
+
ok: true;
|
|
17710
|
+
};
|
|
17627
17711
|
type ThreadQueuedMessageReorderResult = ThreadQueuedMessageListResponse;
|
|
17628
17712
|
type ThreadQueuedMessageSendResult = SendQueuedMessageResponse;
|
|
17629
17713
|
type ThreadQueuedMessageGroupBoundaryResult = ThreadQueuedMessageListResponse;
|
|
@@ -17746,6 +17830,10 @@ interface ThreadStoragePathsArgs extends ThreadStoragePathsQuery {
|
|
|
17746
17830
|
signal?: AbortSignal;
|
|
17747
17831
|
threadId: string;
|
|
17748
17832
|
}
|
|
17833
|
+
interface ThreadConversationOutlineArgs extends ThreadConversationOutlineQuery {
|
|
17834
|
+
signal?: AbortSignal;
|
|
17835
|
+
threadId: string;
|
|
17836
|
+
}
|
|
17749
17837
|
interface ThreadTimelineTurnSummaryDetailsArgs extends TimelineTurnSummaryDetailsQuery {
|
|
17750
17838
|
signal?: AbortSignal;
|
|
17751
17839
|
threadId: string;
|
|
@@ -17854,6 +17942,8 @@ interface ThreadEventsArea {
|
|
|
17854
17942
|
interface ThreadQueuedMessagesArea {
|
|
17855
17943
|
create(args: ThreadQueuedMessageCreateArgs): Promise<ThreadQueuedMessageCreateResult>;
|
|
17856
17944
|
delete(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageDeleteResult>;
|
|
17945
|
+
experimental_holdForEdit(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageEditHoldResult>;
|
|
17946
|
+
experimental_releaseEditHold(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageEditHoldReleaseResult>;
|
|
17857
17947
|
list(args: ThreadQueuedMessageArgs): Promise<ThreadQueuedMessagesResult>;
|
|
17858
17948
|
reorder(args: ThreadQueuedMessageReorderArgs): Promise<ThreadQueuedMessageReorderResult>;
|
|
17859
17949
|
send(args: ThreadQueuedMessageSendArgs): Promise<ThreadQueuedMessageSendResult>;
|
|
@@ -17884,7 +17974,7 @@ interface ThreadsArea {
|
|
|
17884
17974
|
cancelPlan(args: ThreadActionArgs): Promise<ThreadBannerActionResult>;
|
|
17885
17975
|
clearContext(args: ThreadActionArgs): Promise<ThreadBannerActionResult>;
|
|
17886
17976
|
clearGoal(args: ThreadActionArgs): Promise<ThreadBannerActionResult>;
|
|
17887
|
-
conversationOutline(args:
|
|
17977
|
+
conversationOutline(args: ThreadConversationOutlineArgs): Promise<ThreadConversationOutlineResult>;
|
|
17888
17978
|
count(args?: ThreadCountArgs): Promise<ThreadCountResult>;
|
|
17889
17979
|
defaultExecutionOptions(args: ThreadStatusArgs): Promise<ThreadDefaultExecutionOptionsResult>;
|
|
17890
17980
|
delete(args: ThreadDeleteArgs): Promise<ThreadDeleteResult>;
|
|
@@ -18117,198 +18207,6 @@ interface ExperimentalSidebarFooterDisclosureProps {
|
|
|
18117
18207
|
/** Hide this disclosure without affecting another plugin's open disclosure. */
|
|
18118
18208
|
dismiss(): void;
|
|
18119
18209
|
}
|
|
18120
|
-
/** Display and accessibility metadata for a host-owned sidebar shortcut. */
|
|
18121
|
-
interface ExperimentalSidebarNavigationShortcut {
|
|
18122
|
-
label: string;
|
|
18123
|
-
ariaKeyShortcuts: string;
|
|
18124
|
-
}
|
|
18125
|
-
/** Host-owned behavior represented by one sidebar navigation item. */
|
|
18126
|
-
type ExperimentalSidebarNavigationAction = {
|
|
18127
|
-
kind: "new-thread";
|
|
18128
|
-
} | {
|
|
18129
|
-
kind: "search-threads";
|
|
18130
|
-
} | {
|
|
18131
|
-
kind: "open-extensions";
|
|
18132
|
-
} | {
|
|
18133
|
-
kind: "open-skills";
|
|
18134
|
-
} | {
|
|
18135
|
-
kind: "open-plugin-panel";
|
|
18136
|
-
pluginId: string;
|
|
18137
|
-
panelId: string;
|
|
18138
|
-
};
|
|
18139
|
-
/**
|
|
18140
|
-
* Semantic icon identity for one sidebar navigation item. Render it with
|
|
18141
|
-
* {@link PluginSdkApp.experimental_SidebarNavigationIcon} to match bb's
|
|
18142
|
-
* artwork, including panel icons with plugin branding as their fallback.
|
|
18143
|
-
*/
|
|
18144
|
-
type ExperimentalSidebarNavigationIcon = {
|
|
18145
|
-
kind: "host";
|
|
18146
|
-
name: "extensions" | "new-thread" | "search" | "skills";
|
|
18147
|
-
} | {
|
|
18148
|
-
kind: "plugin";
|
|
18149
|
-
pluginId: string;
|
|
18150
|
-
icon: string | null;
|
|
18151
|
-
};
|
|
18152
|
-
/** One host-owned destination or action a plugin may arrange. */
|
|
18153
|
-
interface ExperimentalSidebarNavigationItem {
|
|
18154
|
-
/**
|
|
18155
|
-
* Arrangement key, stable across reloads: `__bb__/new-thread`,
|
|
18156
|
-
* `__bb__/search-threads`, `__bb__/extensions`, `__bb__/skills`,
|
|
18157
|
-
* `__bb__/automations`, or `<pluginId>/<panelId>`. The same keys appear in
|
|
18158
|
-
* the `sidebar.pluginPanelOrder` and `sidebar.visiblePluginPanels`
|
|
18159
|
-
* settings.
|
|
18160
|
-
*/
|
|
18161
|
-
id: string;
|
|
18162
|
-
label: string;
|
|
18163
|
-
icon: ExperimentalSidebarNavigationIcon;
|
|
18164
|
-
action: ExperimentalSidebarNavigationAction;
|
|
18165
|
-
isDisabled: boolean;
|
|
18166
|
-
/**
|
|
18167
|
-
* False when the user hid the item from the sidebar. Draw hidden items in an
|
|
18168
|
-
* overflow menu rather than dropping them, so they stay reachable.
|
|
18169
|
-
*/
|
|
18170
|
-
isVisible: boolean;
|
|
18171
|
-
/**
|
|
18172
|
-
* A plugin panel remembered from the last session whose bundle has not
|
|
18173
|
-
* registered yet. Activating it does nothing until it loads.
|
|
18174
|
-
*/
|
|
18175
|
-
isLoading: boolean;
|
|
18176
|
-
/**
|
|
18177
|
-
* The plugin that contributed this panel; null for bb's own items. Gates
|
|
18178
|
-
* `openDetails` and `disablePlugin`.
|
|
18179
|
-
*/
|
|
18180
|
-
pluginId: string | null;
|
|
18181
|
-
shortcut: ExperimentalSidebarNavigationShortcut | null;
|
|
18182
|
-
/**
|
|
18183
|
-
* The panel's `experimental_sidebarAccessory`, already wrapped in the host's
|
|
18184
|
-
* crash boundary. Null for bb's items, panels without an accessory, and on
|
|
18185
|
-
* compact viewports. Keep it within one line, about 4rem by 1.25rem.
|
|
18186
|
-
*/
|
|
18187
|
-
experimental_Accessory: ComponentType | null;
|
|
18188
|
-
}
|
|
18189
|
-
/** How the host should activate a sidebar navigation item. */
|
|
18190
|
-
interface ExperimentalSidebarNavigationActivationOptions {
|
|
18191
|
-
openInSplit: boolean;
|
|
18192
|
-
}
|
|
18193
|
-
/**
|
|
18194
|
-
* Host behavior for sidebar navigation items (see
|
|
18195
|
-
* {@link ExperimentalSidebarNavigationState}). Unknown item ids are ignored.
|
|
18196
|
-
* Calls made after the calling component unmounts do nothing.
|
|
18197
|
-
*/
|
|
18198
|
-
interface ExperimentalSidebarNavigationActions {
|
|
18199
|
-
/**
|
|
18200
|
-
* Run the item's host behavior and close the mobile sidebar drawer.
|
|
18201
|
-
* `openInSplit` is ignored where splits are unavailable, and disabled or
|
|
18202
|
-
* loading items do nothing.
|
|
18203
|
-
*/
|
|
18204
|
-
activate(itemId: string, options: ExperimentalSidebarNavigationActivationOptions): void;
|
|
18205
|
-
/** Hide or show one item. Persists to `sidebar.visiblePluginPanels`. */
|
|
18206
|
-
setVisible(itemId: string, isVisible: boolean): void;
|
|
18207
|
-
/**
|
|
18208
|
-
* Save a new order. Pass item ids in the order you want; unknown ids are
|
|
18209
|
-
* dropped and ids you leave out keep their relative order after the ones
|
|
18210
|
-
* you pass. Persists to `sidebar.pluginPanelOrder`.
|
|
18211
|
-
*/
|
|
18212
|
-
setOrder(itemIds: readonly string[]): void;
|
|
18213
|
-
/** Open bb's customize editor, which reorders and hides items. */
|
|
18214
|
-
openCustomize(): void;
|
|
18215
|
-
/** Open the owning plugin's details. Does nothing when `pluginId` is null. */
|
|
18216
|
-
openDetails(itemId: string): void;
|
|
18217
|
-
/**
|
|
18218
|
-
* Disable the owning plugin, leave its panel if it is open, and show a
|
|
18219
|
-
* toast. Rejects after the host's error toast when disabling fails. Does
|
|
18220
|
-
* nothing when `pluginId` is null.
|
|
18221
|
-
*/
|
|
18222
|
-
disablePlugin(itemId: string): Promise<void>;
|
|
18223
|
-
}
|
|
18224
|
-
/** What {@link PluginSdkApp.experimental_useSidebarNavigation} returns. */
|
|
18225
|
-
interface ExperimentalSidebarNavigationState {
|
|
18226
|
-
/** Every item in the user's saved order, visible and hidden. */
|
|
18227
|
-
items: readonly ExperimentalSidebarNavigationItem[];
|
|
18228
|
-
/** The item whose destination the route currently shows, or null. */
|
|
18229
|
-
activeItemId: string | null;
|
|
18230
|
-
/**
|
|
18231
|
-
* True while the user holds the app command modifier, when bb's own rows
|
|
18232
|
-
* reveal their `shortcut` labels. Show yours at the same time.
|
|
18233
|
-
*/
|
|
18234
|
-
isShortcutModifierHeld: boolean;
|
|
18235
|
-
actions: ExperimentalSidebarNavigationActions;
|
|
18236
|
-
}
|
|
18237
|
-
/**
|
|
18238
|
-
* Per-item drag-to-split support (see
|
|
18239
|
-
* {@link PluginSdkApp.experimental_useSidebarNavigationSplit}). Same contract
|
|
18240
|
-
* as {@link PluginSidebarThreadSplit}.
|
|
18241
|
-
*/
|
|
18242
|
-
interface ExperimentalSidebarNavigationSplit {
|
|
18243
|
-
/**
|
|
18244
|
-
* Spread onto the item's interactive element. Empty when the item cannot
|
|
18245
|
-
* open in a pane, so spreading it is always safe.
|
|
18246
|
-
*/
|
|
18247
|
-
splitProps: {
|
|
18248
|
-
onPointerDown?: (event: react.PointerEvent<HTMLElement>) => void;
|
|
18249
|
-
};
|
|
18250
|
-
/**
|
|
18251
|
-
* False for items that cannot open in a pane (Search, Plugins, Skills), on
|
|
18252
|
-
* compact viewports, and when splits are unavailable.
|
|
18253
|
-
*/
|
|
18254
|
-
isAvailable: boolean;
|
|
18255
|
-
/** Where this item's destination sits in the split layout, or null. */
|
|
18256
|
-
layout: {
|
|
18257
|
-
panes: readonly PluginSidebarSplitPane[];
|
|
18258
|
-
} | null;
|
|
18259
|
-
}
|
|
18260
|
-
/** Options for {@link PluginSdkApp.experimental_useSidebarNavigationSplit}. */
|
|
18261
|
-
interface ExperimentalSidebarNavigationSplitOptions {
|
|
18262
|
-
/**
|
|
18263
|
-
* `sidebar` (the default) engages the drag once the pointer leaves the
|
|
18264
|
-
* sidebar, so a row list with its own drag-to-reorder keeps working.
|
|
18265
|
-
* `distance` engages after a short movement in any direction; use it for
|
|
18266
|
-
* rows inside a menu or popover that covers the main area.
|
|
18267
|
-
*/
|
|
18268
|
-
activation?: "distance" | "sidebar";
|
|
18269
|
-
/** Called when the drag engages, for example to close the menu the row is in. */
|
|
18270
|
-
onDragStart?: () => void;
|
|
18271
|
-
}
|
|
18272
|
-
/** Props for {@link PluginSdkApp.experimental_SidebarNavigationIcon}. */
|
|
18273
|
-
interface ExperimentalSidebarNavigationIconProps {
|
|
18274
|
-
icon: ExperimentalSidebarNavigationIcon;
|
|
18275
|
-
className?: string;
|
|
18276
|
-
}
|
|
18277
|
-
/**
|
|
18278
|
-
* Props passed to an `experimental_sidebarNavigation` component. Read the
|
|
18279
|
-
* items and their actions with
|
|
18280
|
-
* {@link PluginSdkApp.experimental_useSidebarNavigation}.
|
|
18281
|
-
*/
|
|
18282
|
-
interface ExperimentalSidebarNavigationProps {
|
|
18283
|
-
isCompactViewport: boolean;
|
|
18284
|
-
/**
|
|
18285
|
-
* Renders bb's bundled Navigation plugin, or nothing while it is disabled.
|
|
18286
|
-
* Kept for plugins written before `experimental_useSidebarNavigation`;
|
|
18287
|
-
* render items from that hook instead. Scheduled for removal.
|
|
18288
|
-
*
|
|
18289
|
-
* @deprecated
|
|
18290
|
-
*/
|
|
18291
|
-
experimental_Original: ComponentType;
|
|
18292
|
-
}
|
|
18293
|
-
/**
|
|
18294
|
-
* Props passed to an `experimental_sidebarHeader` component, rendered in the
|
|
18295
|
-
* sidebar's header row between the sidebar toggle (and the macOS window
|
|
18296
|
-
* controls) and bb's back and forward buttons.
|
|
18297
|
-
*/
|
|
18298
|
-
interface ExperimentalSidebarHeaderProps {
|
|
18299
|
-
/**
|
|
18300
|
-
* Width in px of the space the component may use, updated when the sidebar
|
|
18301
|
-
* resizes or the window chrome changes. It can be smaller than
|
|
18302
|
-
* `controlSize` in a narrow sidebar.
|
|
18303
|
-
*/
|
|
18304
|
-
width: number;
|
|
18305
|
-
/**
|
|
18306
|
-
* Width and height in px of the header's own buttons, equal to the
|
|
18307
|
-
* `--bb-sidebar-control-size` CSS variable. Size your controls to match.
|
|
18308
|
-
*/
|
|
18309
|
-
controlSize: number;
|
|
18310
|
-
isCompactViewport: boolean;
|
|
18311
|
-
}
|
|
18312
18210
|
/**
|
|
18313
18211
|
* Props passed to an `experimental_threadList` component — the sidebar's
|
|
18314
18212
|
* scrolling thread area, replaced wholesale by one plugin.
|
|
@@ -18690,13 +18588,12 @@ interface PluginNavPanelRegistration {
|
|
|
18690
18588
|
*/
|
|
18691
18589
|
fixedTabs?: readonly PluginFixedTabDeclaration[];
|
|
18692
18590
|
/**
|
|
18693
|
-
* Optional presentational component
|
|
18694
|
-
* panel's sidebar
|
|
18695
|
-
* value through the ordinary SDK hooks without coupling
|
|
18696
|
-
* host sidebar. The host
|
|
18697
|
-
* to a small, single-line box
|
|
18698
|
-
*
|
|
18699
|
-
* do not render controls or rely on unbounded content here.
|
|
18591
|
+
* Optional presentational component for a narrow live value next to this
|
|
18592
|
+
* panel's entry in the sidebar. It receives no props so it can own that
|
|
18593
|
+
* value through the ordinary SDK hooks without coupling its state to the
|
|
18594
|
+
* host sidebar. The host still validates it, but no host surface currently
|
|
18595
|
+
* mounts it. Keep it to a small, single-line box; do not render controls or
|
|
18596
|
+
* rely on unbounded content here.
|
|
18700
18597
|
*
|
|
18701
18598
|
* Experimental: see docs/api_to_audit.md.
|
|
18702
18599
|
*/
|
|
@@ -19177,6 +19074,15 @@ interface PluginCodeThemeState {
|
|
|
19177
19074
|
/** null only before the first theme file resolves. */
|
|
19178
19075
|
theme: PluginCodeThemeData | null;
|
|
19179
19076
|
}
|
|
19077
|
+
/**
|
|
19078
|
+
* What {@link PluginSdkApp.experimental_copyToClipboard} writes: plain text,
|
|
19079
|
+
* plus an HTML representation for paste targets that accept rich text.
|
|
19080
|
+
* Without `html`, only plain text is written.
|
|
19081
|
+
*/
|
|
19082
|
+
interface ExperimentalClipboardContent {
|
|
19083
|
+
text: string;
|
|
19084
|
+
html?: string;
|
|
19085
|
+
}
|
|
19180
19086
|
/**
|
|
19181
19087
|
* The `threads` area of {@link PluginBrowserBbSdk}: bb's public thread API
|
|
19182
19088
|
* with the calling plugin's identity filled in. `spawn` and `fork` stamp
|
|
@@ -19438,41 +19344,6 @@ interface PluginThreadListRegistration {
|
|
|
19438
19344
|
description?: string;
|
|
19439
19345
|
component: ComponentType<PluginThreadListProps>;
|
|
19440
19346
|
}
|
|
19441
|
-
/**
|
|
19442
|
-
* Replace the navigation controls above the sidebar thread list. Exclusive:
|
|
19443
|
-
* bb ships its own rows as the bundled Navigation plugin
|
|
19444
|
-
* (`navigation/navigation`). By default the first registered provider other
|
|
19445
|
-
* than Navigation is active, falling back to Navigation; the user can pin one
|
|
19446
|
-
* provider under Settings → Appearance → Navigation. A pinned provider that is
|
|
19447
|
-
* disabled or removed falls back to Navigation; a crashing provider is
|
|
19448
|
-
* replaced by a placeholder with a Reload button.
|
|
19449
|
-
*/
|
|
19450
|
-
interface ExperimentalSidebarNavigationRegistration {
|
|
19451
|
-
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
19452
|
-
id: string;
|
|
19453
|
-
/** Label shown in Settings → Appearance and capability details. */
|
|
19454
|
-
title: string;
|
|
19455
|
-
/** Optional one-line description shown with the provider choice. */
|
|
19456
|
-
description?: string;
|
|
19457
|
-
component: ComponentType<ExperimentalSidebarNavigationProps>;
|
|
19458
|
-
}
|
|
19459
|
-
/**
|
|
19460
|
-
* Render a component in the sidebar's header row, between the sidebar toggle
|
|
19461
|
-
* and bb's back and forward buttons. Exclusive: the user picks at most one
|
|
19462
|
-
* header under Settings → Appearance, and by default the header shows only
|
|
19463
|
-
* bb's own controls. Content is clipped to the row, so it cannot move the
|
|
19464
|
-
* thread list or bb's controls. On macOS the empty space keeps dragging the
|
|
19465
|
-
* window; buttons, links, and inputs do not.
|
|
19466
|
-
*/
|
|
19467
|
-
interface ExperimentalSidebarHeaderRegistration {
|
|
19468
|
-
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
19469
|
-
id: string;
|
|
19470
|
-
/** Label shown in Settings → Appearance and capability details. */
|
|
19471
|
-
title: string;
|
|
19472
|
-
/** Optional one-line description shown with the provider choice. */
|
|
19473
|
-
description?: string;
|
|
19474
|
-
component: ComponentType<ExperimentalSidebarHeaderProps>;
|
|
19475
|
-
}
|
|
19476
19347
|
/**
|
|
19477
19348
|
* Register this plugin as a viewer/editor for file extensions. By default,
|
|
19478
19349
|
* matching files render the first applicable opener in deterministic slot
|
|
@@ -19914,14 +19785,6 @@ interface PluginAppSlots {
|
|
|
19914
19785
|
experimental_newThreadPanelAction(registration: PluginNewThreadPanelActionRegistration): void;
|
|
19915
19786
|
pendingInteraction(registration: PluginPendingInteractionRegistration): void;
|
|
19916
19787
|
sidebarFooterAction(registration: PluginSidebarFooterActionRegistration): void;
|
|
19917
|
-
/** Replace the bounded sidebar navigation controls. */
|
|
19918
|
-
experimental_sidebarNavigation(registration: ExperimentalSidebarNavigationRegistration): void;
|
|
19919
|
-
/**
|
|
19920
|
-
* Render a component in the sidebar header row (see
|
|
19921
|
-
* {@link ExperimentalSidebarHeaderRegistration}). Experimental: see
|
|
19922
|
-
* docs/api_to_audit.md.
|
|
19923
|
-
*/
|
|
19924
|
-
experimental_sidebarHeader(registration: ExperimentalSidebarHeaderRegistration): void;
|
|
19925
19788
|
/**
|
|
19926
19789
|
* Replace the sidebar's thread list (see
|
|
19927
19790
|
* {@link PluginThreadListRegistration}). Experimental: see
|
|
@@ -21011,9 +20874,11 @@ interface BbNavigate {
|
|
|
21011
20874
|
focusPrompt?: boolean;
|
|
21012
20875
|
}): void;
|
|
21013
20876
|
/**
|
|
21014
|
-
* Open one of this plugin's registered
|
|
21015
|
-
*
|
|
21016
|
-
* the
|
|
20877
|
+
* Open one of this plugin's registered panel actions in the current
|
|
20878
|
+
* surface's side panel: a `threadPanelAction` in a thread, or an
|
|
20879
|
+
* `experimental_newThreadPanelAction` on the New thread screen. Plugin
|
|
20880
|
+
* commands use the same opener. Returns false when the surface has no side
|
|
20881
|
+
* panel actions (plugin pages) or the action is unavailable.
|
|
21017
20882
|
*/
|
|
21018
20883
|
openThreadPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
|
|
21019
20884
|
/**
|
|
@@ -21026,6 +20891,20 @@ interface BbNavigate {
|
|
|
21026
20891
|
experimental_openFilePreview(options: ExperimentalFileOpenOptions): boolean;
|
|
21027
20892
|
/** Open a live file in this client's preferred external file target. */
|
|
21028
20893
|
experimental_openFileExternally(options: ExperimentalFileOpenOptions): boolean;
|
|
20894
|
+
/**
|
|
20895
|
+
* Show a terminal session in this surface's BB terminal panel: select its
|
|
20896
|
+
* tab, adding one when needed, and reveal the panel. Create the session
|
|
20897
|
+
* first with `useSdk().terminals.create`, whose scope chooses the thread,
|
|
20898
|
+
* environment, or host directory it runs in. A thread surface accepts only
|
|
20899
|
+
* that thread's terminals, the New thread screen only terminals in its
|
|
20900
|
+
* current terminal scope, and a plugin page any terminal. Resolves false
|
|
20901
|
+
* for unknown or exited terminals and surfaces without a terminal panel.
|
|
20902
|
+
* Closing the tab closes the terminal. Experimental: see
|
|
20903
|
+
* docs/api_to_audit.md.
|
|
20904
|
+
*/
|
|
20905
|
+
experimental_openTerminal(options: {
|
|
20906
|
+
terminalId: string;
|
|
20907
|
+
}): Promise<boolean>;
|
|
21029
20908
|
}
|
|
21030
20909
|
/**
|
|
21031
20910
|
* Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
|
|
@@ -21133,27 +21012,6 @@ interface PluginSdkApp {
|
|
|
21133
21012
|
* Experimental: see docs/api_to_audit.md.
|
|
21134
21013
|
*/
|
|
21135
21014
|
experimental_useSidebarThreadSplit(threadId: string): PluginSidebarThreadSplit;
|
|
21136
|
-
/**
|
|
21137
|
-
* The sidebar navigation items in the user's saved order, the active item,
|
|
21138
|
-
* and the host actions that activate, hide, reorder, and customize them
|
|
21139
|
-
* (see {@link ExperimentalSidebarNavigationState}). One model shared by
|
|
21140
|
-
* every caller in the sidebar. Items keep their identity while unchanged.
|
|
21141
|
-
* Outside the sidebar it returns no items and actions that do nothing.
|
|
21142
|
-
* Experimental: see docs/api_to_audit.md.
|
|
21143
|
-
*/
|
|
21144
|
-
experimental_useSidebarNavigation(): ExperimentalSidebarNavigationState;
|
|
21145
|
-
/**
|
|
21146
|
-
* Per-item drag-to-split support for navigation items (see
|
|
21147
|
-
* {@link ExperimentalSidebarNavigationSplit}). Call it once per rendered
|
|
21148
|
-
* item. Experimental: see docs/api_to_audit.md.
|
|
21149
|
-
*/
|
|
21150
|
-
experimental_useSidebarNavigationSplit(itemId: string, options?: ExperimentalSidebarNavigationSplitOptions): ExperimentalSidebarNavigationSplit;
|
|
21151
|
-
/**
|
|
21152
|
-
* bb's artwork for a navigation item's icon: bb's glyphs for its own items,
|
|
21153
|
-
* and the panel's explicit icon, falling back to plugin branding, for plugin panels. Experimental:
|
|
21154
|
-
* see docs/api_to_audit.md.
|
|
21155
|
-
*/
|
|
21156
|
-
experimental_SidebarNavigationIcon: ComponentType<ExperimentalSidebarNavigationIconProps>;
|
|
21157
21015
|
/**
|
|
21158
21016
|
* Whether the composer holds an unsent draft for one thread (see
|
|
21159
21017
|
* {@link PluginSidebarThreadDraftState}). Per row, because a draft is
|
|
@@ -21242,6 +21100,17 @@ interface PluginSdkApp {
|
|
|
21242
21100
|
* docs/api_to_audit.md.
|
|
21243
21101
|
*/
|
|
21244
21102
|
experimental_useCodeTheme(): PluginCodeThemeState;
|
|
21103
|
+
/**
|
|
21104
|
+
* Writes content to the system clipboard through bb's own clipboard writer,
|
|
21105
|
+
* the one bb's copy actions use. A plain function, callable from
|
|
21106
|
+
* components, content scripts, and command callbacks. bb Desktop writes
|
|
21107
|
+
* through the native clipboard, so copies work without window focus or a
|
|
21108
|
+
* secure origin; browsers use the Clipboard API, then the copy command.
|
|
21109
|
+
* Resolves true once the clipboard holds the content and false when every
|
|
21110
|
+
* write path failed; it never rejects. Callers own their success and
|
|
21111
|
+
* failure feedback. Experimental: see docs/api_to_audit.md.
|
|
21112
|
+
*/
|
|
21113
|
+
experimental_copyToClipboard(content: ExperimentalClipboardContent): Promise<boolean>;
|
|
21245
21114
|
/**
|
|
21246
21115
|
* The host-owned chat component (see {@link ThreadChatProps}). Together
|
|
21247
21116
|
* with `Markdown`, the only components the SDK ships — everything else
|
|
@@ -21357,9 +21226,6 @@ declare const experimental_useSidebarThreads: (options?: {
|
|
|
21357
21226
|
declare const experimental_useSidebarThreadActions: () => PluginSidebarThreadActions;
|
|
21358
21227
|
declare const experimental_useSidebarThreadPullRequest: (threadId: string) => PluginSidebarThreadPullRequestState;
|
|
21359
21228
|
declare const experimental_useSidebarThreadSplit: (threadId: string) => PluginSidebarThreadSplit;
|
|
21360
|
-
declare const experimental_useSidebarNavigation: () => ExperimentalSidebarNavigationState;
|
|
21361
|
-
declare const experimental_useSidebarNavigationSplit: (itemId: string, options?: ExperimentalSidebarNavigationSplitOptions) => ExperimentalSidebarNavigationSplit;
|
|
21362
|
-
declare const experimental_SidebarNavigationIcon: react.ComponentType<ExperimentalSidebarNavigationIconProps>;
|
|
21363
21229
|
declare const useSidebarThreadDraft: (threadId: string) => PluginSidebarThreadDraftState;
|
|
21364
21230
|
declare const useSidebarThreadDraftIds: () => ReadonlySet<string>;
|
|
21365
21231
|
declare const useSidebarThreadRowStatus: (threadId: string) => PluginSidebarThreadRowStatus | null;
|
|
@@ -21371,6 +21237,7 @@ declare const useEnvironmentProviders: () => PluginEnvironmentProvidersState;
|
|
|
21371
21237
|
declare const useSdk: () => PluginBrowserBbSdk;
|
|
21372
21238
|
declare const experimental_useProviders: () => PluginProvidersState;
|
|
21373
21239
|
declare const experimental_useCodeTheme: () => PluginCodeThemeState;
|
|
21240
|
+
declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
21374
21241
|
|
|
21375
|
-
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker,
|
|
21376
|
-
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, 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,
|
|
21242
|
+
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_VoiceInputTextarea, experimental_copyToClipboard, experimental_useAppPanel, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarThreadActions, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
21243
|
+
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, 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, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|