@get-bb/plugin-sdk 0.6.26 → 0.6.31
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 +107 -7
- 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-provider-bridge.d.ts +2 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +26 -1
- package/bundled-types/bb-plugin-sdk.d.ts +117 -7
- package/dist/app.js +4 -0
- package/dist/host.js +111 -11
- package/dist/internal/host-policy.js +5 -2
- 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 -1
- package/dist/testing/index.js +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,8 +22,9 @@ write into a composer the user picks use `useComposers()`, one handle per
|
|
|
22
22
|
composer on screen.
|
|
23
23
|
Any mounted plugin component can use
|
|
24
24
|
`useBbNavigate().openThreadPanel(...)` to request one of the
|
|
25
|
-
same plugin's registered
|
|
26
|
-
|
|
25
|
+
same plugin's registered panel actions: `threadPanelAction` in a thread,
|
|
26
|
+
`experimental_newThreadPanelAction` on the New thread screen. It returns false
|
|
27
|
+
on plugin pages, which have no panel actions.
|
|
27
28
|
|
|
28
29
|
Use `UrlLink` for a real anchor that applies BB's current
|
|
29
30
|
in-app/external-browser preference on ordinary HTTP(S) activation, or
|
|
@@ -48,6 +49,13 @@ the current host accepted the intent. Targets never infer an ambient workspace.
|
|
|
48
49
|
The frontend harness records both methods and accepts `openFilePreview` and
|
|
49
50
|
`openFileExternally` behavior options.
|
|
50
51
|
|
|
52
|
+
To show a terminal beside your UI, create it with `useSdk().terminals.create`
|
|
53
|
+
in the thread, environment, or host directory you want, then call
|
|
54
|
+
`useBbNavigate().experimental_openTerminal({ terminalId })`. It resolves
|
|
55
|
+
whether the current surface selected the terminal's tab; thread surfaces accept
|
|
56
|
+
only their own thread's terminals. The harness records the call and accepts an
|
|
57
|
+
`openTerminal` behavior option.
|
|
58
|
+
|
|
51
59
|
A nav panel's `fixedTabs` entries must include the containing nav
|
|
52
60
|
panel's `id` as `panelId`; each entry is also a stable reference to that
|
|
53
61
|
plugin's own tab. Give a targeted tab an `experimental_target.validate` type guard, call
|
|
@@ -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;
|
|
@@ -8126,6 +8135,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8126
8135
|
canInstall: z$1.ZodBoolean;
|
|
8127
8136
|
canUpdate: z$1.ZodBoolean;
|
|
8128
8137
|
installedVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
8138
|
+
localLoginCommand: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
8129
8139
|
loginCommand: z$1.ZodNullable<z$1.ZodString>;
|
|
8130
8140
|
minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
8131
8141
|
planLabel: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -8315,6 +8325,20 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8315
8325
|
status: z$1.ZodLiteral<"error">;
|
|
8316
8326
|
}, z$1.core.$loose>], "status">;
|
|
8317
8327
|
}, z$1.core.$loose>], "supported">, "onlineRpc", true>;
|
|
8328
|
+
"host.discover_repos": HostDaemonCommandDescriptor<"host.discover_repos", z$1.ZodObject<{
|
|
8329
|
+
limit: z$1.ZodNumber;
|
|
8330
|
+
maxDepth: z$1.ZodNumber;
|
|
8331
|
+
sinceDays: z$1.ZodNumber;
|
|
8332
|
+
type: z$1.ZodLiteral<"host.discover_repos">;
|
|
8333
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8334
|
+
repos: z$1.ZodArray<z$1.ZodObject<{
|
|
8335
|
+
lastActivityAt: z$1.ZodString;
|
|
8336
|
+
name: z$1.ZodString;
|
|
8337
|
+
originUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
8338
|
+
path: z$1.ZodString;
|
|
8339
|
+
}, z$1.core.$strict>>;
|
|
8340
|
+
truncated: z$1.ZodBoolean;
|
|
8341
|
+
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
8318
8342
|
"workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
|
|
8319
8343
|
environmentId: z$1.ZodString;
|
|
8320
8344
|
maxUntrackedLineStatBytes: z$1.ZodNumber;
|
|
@@ -9069,6 +9093,17 @@ declare const hostDirectoryListingSchema: z$1.ZodObject<{
|
|
|
9069
9093
|
parent: z$1.ZodNullable<z$1.ZodString>;
|
|
9070
9094
|
}, z$1.core.$strip>;
|
|
9071
9095
|
type HostDirectoryListing = z$1.infer<typeof hostDirectoryListingSchema>;
|
|
9096
|
+
declare const hostDiscoveredReposResponseSchema: z$1.ZodObject<{
|
|
9097
|
+
repos: z$1.ZodArray<z$1.ZodObject<{
|
|
9098
|
+
lastActivityAt: z$1.ZodString;
|
|
9099
|
+
name: z$1.ZodString;
|
|
9100
|
+
originUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9101
|
+
path: z$1.ZodString;
|
|
9102
|
+
projectId: z$1.ZodNullable<z$1.ZodString>;
|
|
9103
|
+
}, z$1.core.$strip>>;
|
|
9104
|
+
truncated: z$1.ZodBoolean;
|
|
9105
|
+
}, z$1.core.$strip>;
|
|
9106
|
+
type HostDiscoveredReposResponse = z$1.infer<typeof hostDiscoveredReposResponseSchema>;
|
|
9072
9107
|
declare const hostCloneDefaultPathQuerySchema: z$1.ZodObject<{
|
|
9073
9108
|
projectId: z$1.ZodString;
|
|
9074
9109
|
}, z$1.core.$strip>;
|
|
@@ -10291,6 +10326,10 @@ type SystemExecutionOptionsQuery = z$1.infer<typeof systemExecutionOptionsQueryS
|
|
|
10291
10326
|
declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
|
|
10292
10327
|
hostId: z$1.ZodOptional<z$1.ZodString>;
|
|
10293
10328
|
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
10329
|
+
refresh: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10330
|
+
false: "false";
|
|
10331
|
+
true: "true";
|
|
10332
|
+
}>>;
|
|
10294
10333
|
}, z$1.core.$strip>;
|
|
10295
10334
|
type SystemUsageLimitsQuery = z$1.infer<typeof systemUsageLimitsQuerySchema>;
|
|
10296
10335
|
declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
|
|
@@ -10304,6 +10343,7 @@ declare const systemProviderStatesResponseSchema: z$1.ZodObject<{
|
|
|
10304
10343
|
canUpdate: z$1.ZodBoolean;
|
|
10305
10344
|
displayName: z$1.ZodString;
|
|
10306
10345
|
installedVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
10346
|
+
localLoginCommand: z$1.ZodNullable<z$1.ZodString>;
|
|
10307
10347
|
loginCommand: z$1.ZodNullable<z$1.ZodString>;
|
|
10308
10348
|
minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
10309
10349
|
planLabel: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10568,14 +10608,17 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10568
10608
|
confirmThreadArchive: z$1.ZodBoolean;
|
|
10569
10609
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
10570
10610
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
10611
|
+
keepHistoryAfterContextClear: z$1.ZodBoolean;
|
|
10571
10612
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
10572
10613
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
10573
10614
|
managedBranchPrefix: z$1.ZodString;
|
|
10615
|
+
onboardingCompletedAt: z$1.ZodNullable<z$1.ZodString>;
|
|
10574
10616
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
10575
10617
|
collapse: "collapse";
|
|
10576
10618
|
flat: "flat";
|
|
10577
10619
|
}>>;
|
|
10578
10620
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
10621
|
+
setupChecklistVisible: z$1.ZodBoolean;
|
|
10579
10622
|
showDiagnosticEvents: z$1.ZodBoolean;
|
|
10580
10623
|
showGitChanges: z$1.ZodBoolean;
|
|
10581
10624
|
showKeyboardHints: z$1.ZodBoolean;
|
|
@@ -13650,6 +13693,10 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13650
13693
|
}, z$1.core.$strip>], "type">>;
|
|
13651
13694
|
}, z$1.core.$strip>;
|
|
13652
13695
|
type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
|
|
13696
|
+
declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
|
|
13697
|
+
leaseMs: z$1.ZodNumber;
|
|
13698
|
+
}, z$1.core.$strip>;
|
|
13699
|
+
type QueuedMessageEditHoldResponse = z$1.infer<typeof queuedMessageEditHoldResponseSchema>;
|
|
13653
13700
|
declare const sendQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
13654
13701
|
mode: z$1.ZodEnum<{
|
|
13655
13702
|
auto: "auto";
|
|
@@ -16648,6 +16695,10 @@ interface HostDirectoryArgs extends HostDirectoryQuery {
|
|
|
16648
16695
|
hostId: string;
|
|
16649
16696
|
signal?: AbortSignal;
|
|
16650
16697
|
}
|
|
16698
|
+
interface HostDiscoverReposArgs {
|
|
16699
|
+
hostId: string;
|
|
16700
|
+
signal?: AbortSignal;
|
|
16701
|
+
}
|
|
16651
16702
|
interface HostCloneDefaultPathArgs extends HostCloneDefaultPathQuery {
|
|
16652
16703
|
hostId: string;
|
|
16653
16704
|
signal?: AbortSignal;
|
|
@@ -16680,6 +16731,7 @@ type HostDeleteResult = {
|
|
|
16680
16731
|
ok: true;
|
|
16681
16732
|
};
|
|
16682
16733
|
type HostDirectoryResult = HostDirectoryListing;
|
|
16734
|
+
type HostDiscoverReposResult = HostDiscoveredReposResponse;
|
|
16683
16735
|
type HostGetResult = Host & {
|
|
16684
16736
|
connectMachineId: string | null;
|
|
16685
16737
|
threadStorageRootPath: string | null;
|
|
@@ -16705,6 +16757,7 @@ interface HostsArea {
|
|
|
16705
16757
|
delete(args: HostDeleteArgs): Promise<HostDeleteResult>;
|
|
16706
16758
|
experimental_deleteOldServerCopy(args: HostActionArgs): Promise<DeleteOldServerCopyResponse>;
|
|
16707
16759
|
directory(args: HostDirectoryArgs): Promise<HostDirectoryResult>;
|
|
16760
|
+
experimental_discoverRepos(args: HostDiscoverReposArgs): Promise<HostDiscoverReposResult>;
|
|
16708
16761
|
get(args: HostGetArgs): Promise<HostGetResult>;
|
|
16709
16762
|
cloneDefaultPath(args: HostCloneDefaultPathArgs): Promise<HostCloneDefaultPathResult>;
|
|
16710
16763
|
installProviderCli(args: HostProviderCliInstallArgs): Promise<HostProviderCliInstallResult>;
|
|
@@ -17022,6 +17075,9 @@ interface PluginListUpdateResultsArgs {
|
|
|
17022
17075
|
interface PluginGetSafeModeArgs {
|
|
17023
17076
|
signal?: AbortSignal;
|
|
17024
17077
|
}
|
|
17078
|
+
interface PluginRpcDiscoveryArgs extends PluginRpcDiscoveryQuery {
|
|
17079
|
+
signal?: AbortSignal;
|
|
17080
|
+
}
|
|
17025
17081
|
interface PluginSetSafeModeArgs {
|
|
17026
17082
|
enabled: boolean;
|
|
17027
17083
|
}
|
|
@@ -17081,7 +17137,7 @@ interface PluginUpdateJobsArea {
|
|
|
17081
17137
|
}): Promise<PluginUpdateJob[]>;
|
|
17082
17138
|
}
|
|
17083
17139
|
interface PluginsArea {
|
|
17084
|
-
experimental_discoverRpc(args?:
|
|
17140
|
+
experimental_discoverRpc(args?: PluginRpcDiscoveryArgs): Promise<PublishedPluginRpcMethod[]>;
|
|
17085
17141
|
experimental_getSafeMode(args?: PluginGetSafeModeArgs): Promise<PluginSafeModeResult>;
|
|
17086
17142
|
experimental_setSafeMode(args: PluginSetSafeModeArgs): Promise<PluginSetSafeModeResult>;
|
|
17087
17143
|
experimental_pruneCache(args?: PluginPruneCacheArgs): Promise<PluginPruneCacheResult>;
|
|
@@ -17313,7 +17369,8 @@ interface SystemConfigArgs {
|
|
|
17313
17369
|
interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
|
|
17314
17370
|
signal?: AbortSignal;
|
|
17315
17371
|
}
|
|
17316
|
-
interface SystemUsageLimitsArgs extends SystemUsageLimitsQuery {
|
|
17372
|
+
interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
|
|
17373
|
+
refresh?: boolean;
|
|
17317
17374
|
signal?: AbortSignal;
|
|
17318
17375
|
}
|
|
17319
17376
|
interface SystemVersionArgs {
|
|
@@ -17624,6 +17681,10 @@ type ThreadQueuedMessageUpdateResult = ThreadQueuedMessage;
|
|
|
17624
17681
|
type ThreadQueuedMessageDeleteResult = {
|
|
17625
17682
|
ok: true;
|
|
17626
17683
|
};
|
|
17684
|
+
type ThreadQueuedMessageEditHoldResult = QueuedMessageEditHoldResponse;
|
|
17685
|
+
type ThreadQueuedMessageEditHoldReleaseResult = {
|
|
17686
|
+
ok: true;
|
|
17687
|
+
};
|
|
17627
17688
|
type ThreadQueuedMessageReorderResult = ThreadQueuedMessageListResponse;
|
|
17628
17689
|
type ThreadQueuedMessageSendResult = SendQueuedMessageResponse;
|
|
17629
17690
|
type ThreadQueuedMessageGroupBoundaryResult = ThreadQueuedMessageListResponse;
|
|
@@ -17854,6 +17915,8 @@ interface ThreadEventsArea {
|
|
|
17854
17915
|
interface ThreadQueuedMessagesArea {
|
|
17855
17916
|
create(args: ThreadQueuedMessageCreateArgs): Promise<ThreadQueuedMessageCreateResult>;
|
|
17856
17917
|
delete(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageDeleteResult>;
|
|
17918
|
+
experimental_holdForEdit(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageEditHoldResult>;
|
|
17919
|
+
experimental_releaseEditHold(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageEditHoldReleaseResult>;
|
|
17857
17920
|
list(args: ThreadQueuedMessageArgs): Promise<ThreadQueuedMessagesResult>;
|
|
17858
17921
|
reorder(args: ThreadQueuedMessageReorderArgs): Promise<ThreadQueuedMessageReorderResult>;
|
|
17859
17922
|
send(args: ThreadQueuedMessageSendArgs): Promise<ThreadQueuedMessageSendResult>;
|
|
@@ -19177,6 +19240,15 @@ interface PluginCodeThemeState {
|
|
|
19177
19240
|
/** null only before the first theme file resolves. */
|
|
19178
19241
|
theme: PluginCodeThemeData | null;
|
|
19179
19242
|
}
|
|
19243
|
+
/**
|
|
19244
|
+
* What {@link PluginSdkApp.experimental_copyToClipboard} writes: plain text,
|
|
19245
|
+
* plus an HTML representation for paste targets that accept rich text.
|
|
19246
|
+
* Without `html`, only plain text is written.
|
|
19247
|
+
*/
|
|
19248
|
+
interface ExperimentalClipboardContent {
|
|
19249
|
+
text: string;
|
|
19250
|
+
html?: string;
|
|
19251
|
+
}
|
|
19180
19252
|
/**
|
|
19181
19253
|
* The `threads` area of {@link PluginBrowserBbSdk}: bb's public thread API
|
|
19182
19254
|
* with the calling plugin's identity filled in. `spawn` and `fork` stamp
|
|
@@ -21011,9 +21083,11 @@ interface BbNavigate {
|
|
|
21011
21083
|
focusPrompt?: boolean;
|
|
21012
21084
|
}): void;
|
|
21013
21085
|
/**
|
|
21014
|
-
* Open one of this plugin's registered
|
|
21015
|
-
*
|
|
21016
|
-
* the
|
|
21086
|
+
* Open one of this plugin's registered panel actions in the current
|
|
21087
|
+
* surface's side panel: a `threadPanelAction` in a thread, or an
|
|
21088
|
+
* `experimental_newThreadPanelAction` on the New thread screen. Plugin
|
|
21089
|
+
* commands use the same opener. Returns false when the surface has no side
|
|
21090
|
+
* panel actions (plugin pages) or the action is unavailable.
|
|
21017
21091
|
*/
|
|
21018
21092
|
openThreadPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
|
|
21019
21093
|
/**
|
|
@@ -21026,6 +21100,20 @@ interface BbNavigate {
|
|
|
21026
21100
|
experimental_openFilePreview(options: ExperimentalFileOpenOptions): boolean;
|
|
21027
21101
|
/** Open a live file in this client's preferred external file target. */
|
|
21028
21102
|
experimental_openFileExternally(options: ExperimentalFileOpenOptions): boolean;
|
|
21103
|
+
/**
|
|
21104
|
+
* Show a terminal session in this surface's BB terminal panel: select its
|
|
21105
|
+
* tab, adding one when needed, and reveal the panel. Create the session
|
|
21106
|
+
* first with `useSdk().terminals.create`, whose scope chooses the thread,
|
|
21107
|
+
* environment, or host directory it runs in. A thread surface accepts only
|
|
21108
|
+
* that thread's terminals, the New thread screen only terminals in its
|
|
21109
|
+
* current terminal scope, and a plugin page any terminal. Resolves false
|
|
21110
|
+
* for unknown or exited terminals and surfaces without a terminal panel.
|
|
21111
|
+
* Closing the tab closes the terminal. Experimental: see
|
|
21112
|
+
* docs/api_to_audit.md.
|
|
21113
|
+
*/
|
|
21114
|
+
experimental_openTerminal(options: {
|
|
21115
|
+
terminalId: string;
|
|
21116
|
+
}): Promise<boolean>;
|
|
21029
21117
|
}
|
|
21030
21118
|
/**
|
|
21031
21119
|
* Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
|
|
@@ -21242,6 +21330,17 @@ interface PluginSdkApp {
|
|
|
21242
21330
|
* docs/api_to_audit.md.
|
|
21243
21331
|
*/
|
|
21244
21332
|
experimental_useCodeTheme(): PluginCodeThemeState;
|
|
21333
|
+
/**
|
|
21334
|
+
* Writes content to the system clipboard through bb's own clipboard writer,
|
|
21335
|
+
* the one bb's copy actions use. A plain function, callable from
|
|
21336
|
+
* components, content scripts, and command callbacks. bb Desktop writes
|
|
21337
|
+
* through the native clipboard, so copies work without window focus or a
|
|
21338
|
+
* secure origin; browsers use the Clipboard API, then the copy command.
|
|
21339
|
+
* Resolves true once the clipboard holds the content and false when every
|
|
21340
|
+
* write path failed; it never rejects. Callers own their success and
|
|
21341
|
+
* failure feedback. Experimental: see docs/api_to_audit.md.
|
|
21342
|
+
*/
|
|
21343
|
+
experimental_copyToClipboard(content: ExperimentalClipboardContent): Promise<boolean>;
|
|
21245
21344
|
/**
|
|
21246
21345
|
* The host-owned chat component (see {@link ThreadChatProps}). Together
|
|
21247
21346
|
* with `Markdown`, the only components the SDK ships — everything else
|
|
@@ -21371,6 +21470,7 @@ declare const useEnvironmentProviders: () => PluginEnvironmentProvidersState;
|
|
|
21371
21470
|
declare const useSdk: () => PluginBrowserBbSdk;
|
|
21372
21471
|
declare const experimental_useProviders: () => PluginProvidersState;
|
|
21373
21472
|
declare const experimental_useCodeTheme: () => PluginCodeThemeState;
|
|
21473
|
+
declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
21374
21474
|
|
|
21375
|
-
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_VoiceInputTextarea, experimental_useAppPanel, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadActions, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
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, ExperimentalSidebarHeaderProps, ExperimentalSidebarHeaderRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, 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 };
|
|
21475
|
+
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_useAppPanel, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadActions, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
21476
|
+
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, ExperimentalSidebarHeaderProps, ExperimentalSidebarHeaderRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, 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 };
|
|
@@ -628,7 +628,7 @@ interface ProcessWithCwd {
|
|
|
628
628
|
cwd: string;
|
|
629
629
|
}
|
|
630
630
|
interface KillProcessesWithCwdUnderArgs {
|
|
631
|
-
|
|
631
|
+
directories: readonly string[];
|
|
632
632
|
graceMs?: number;
|
|
633
633
|
}
|
|
634
634
|
declare function killProcessesWithCwdUnder(args: KillProcessesWithCwdUnderArgs): Promise<ProcessWithCwd[]>;
|
|
@@ -639,5 +639,32 @@ interface SanitizeInheritedChildProcessEnvArgs {
|
|
|
639
639
|
}
|
|
640
640
|
declare function sanitizeInheritedChildProcessEnv(args: SanitizeInheritedChildProcessEnvArgs): NodeJS.ProcessEnv;
|
|
641
641
|
|
|
642
|
-
|
|
643
|
-
|
|
642
|
+
/**
|
|
643
|
+
* Kills every process whose working directory is at or under any of `directories`,
|
|
644
|
+
* SIGTERM first and SIGKILL after the grace, for a provider tearing down a
|
|
645
|
+
* workspace it made. Plugins built against SDK 0.6.26 or earlier that still pass
|
|
646
|
+
* `{ directory }` keep working at runtime. Experimental: see docs/api_to_audit.md.
|
|
647
|
+
*/
|
|
648
|
+
declare function experimental_killProcessesWithCwdUnder(args: Parameters<typeof killProcessesWithCwdUnder>[0]): ReturnType<typeof killProcessesWithCwdUnder>;
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* What the operating system reports about a running process. `command` is its
|
|
652
|
+
* full command line, or null when the OS does not expose it. `startedAt` is its
|
|
653
|
+
* start time in epoch milliseconds, accurate to about a second on POSIX, or null
|
|
654
|
+
* when it cannot be read.
|
|
655
|
+
*/
|
|
656
|
+
interface ExperimentalProcessIdentity {
|
|
657
|
+
command: string | null;
|
|
658
|
+
startedAt: number | null;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Reads a running process's command line and approximate start time, or null
|
|
662
|
+
* when the process is gone or cannot be inspected, so a host entry can confirm
|
|
663
|
+
* a recorded PID still belongs to the process it launched before signalling
|
|
664
|
+
* it. Uses `ps` on POSIX and PowerShell CIM on Windows. Experimental: see
|
|
665
|
+
* docs/api_to_audit.md.
|
|
666
|
+
*/
|
|
667
|
+
declare function experimental_readProcessIdentity(pid: number): Promise<ExperimentalProcessIdentity | null>;
|
|
668
|
+
|
|
669
|
+
export { experimental_defineHostEntry, experimental_filterResolvedNativeRoots, experimental_killProcessesWithCwdUnder, experimental_nativeRootsHostContract, experimental_nativeRootsResolveInputSchema, experimental_nativeRootsResolveOutputSchema, experimental_readProcessIdentity, experimental_resolveClaudePluginRoots, experimental_resolveVendorPluginRoots, sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv, spawnPortableOutputProcess as experimental_spawnPortableOutputProcess };
|
|
670
|
+
export type { ExperimentalClaudePluginRoots, ExperimentalClaudePluginRootsArgs, ExperimentalDroppedNativeRoot, ExperimentalFilteredNativeRoots, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalNativeRootsHostContract, ExperimentalNativeRootsResolveAnswer, ExperimentalNativeRootsResolveInput, ExperimentalNativeRootsResolveOutput, ExperimentalProcessIdentity, SanitizeInheritedChildProcessEnvArgs as ExperimentalSanitizeInheritedChildProcessEnvArgs, ExperimentalVendorPlugin, ExperimentalVendorPluginRoots, ExperimentalVendorPluginRootsArgs };
|
|
@@ -1164,7 +1164,7 @@ interface PluginInteractionRequest {
|
|
|
1164
1164
|
rendererId: string;
|
|
1165
1165
|
title: string;
|
|
1166
1166
|
payload: JsonValue;
|
|
1167
|
-
/** Defaults to ten minutes; capped at
|
|
1167
|
+
/** Defaults to ten minutes; capped at seven days. */
|
|
1168
1168
|
timeoutMs?: number;
|
|
1169
1169
|
/**
|
|
1170
1170
|
* How the form reads as a timeline row while it waits and once it settles,
|
|
@@ -4084,6 +4084,7 @@ declare const providerHealthSchema: z.ZodObject<{
|
|
|
4084
4084
|
canInstall: z.ZodBoolean;
|
|
4085
4085
|
canUpdate: z.ZodBoolean;
|
|
4086
4086
|
installedVersion: z.ZodNullable<z.ZodString>;
|
|
4087
|
+
localLoginCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4087
4088
|
loginCommand: z.ZodNullable<z.ZodString>;
|
|
4088
4089
|
minimumSupportedVersion: z.ZodNullable<z.ZodString>;
|
|
4089
4090
|
planLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -4142,6 +4143,7 @@ declare const providerHealthResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4142
4143
|
canInstall: z.ZodBoolean;
|
|
4143
4144
|
canUpdate: z.ZodBoolean;
|
|
4144
4145
|
installedVersion: z.ZodNullable<z.ZodString>;
|
|
4146
|
+
localLoginCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4145
4147
|
loginCommand: z.ZodNullable<z.ZodString>;
|
|
4146
4148
|
minimumSupportedVersion: z.ZodNullable<z.ZodString>;
|
|
4147
4149
|
planLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { ReactNode, ComponentType } from 'react';
|
|
9
9
|
import { RenderResult } from '@testing-library/react';
|
|
10
|
-
import { ExperimentalSidebarFooterItemRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarHeaderRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, PluginMessageActionRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, PluginComposerThreadRowStatus, ExperimentalOpenFixedTabOptions, JsonValue, BbNavigate, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, PluginSidebarPullRequest, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, ExperimentalSidebarNavigationItem, PluginEnvironmentProvidersState, PluginSidebarThreadActions, ExperimentalSidebarNavigationActions } from '@get-bb/plugin-sdk';
|
|
10
|
+
import { ExperimentalSidebarFooterItemRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarHeaderRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, PluginMessageActionRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, ExperimentalOpenFixedTabOptions, JsonValue, BbNavigate, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, PluginSidebarPullRequest, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, ExperimentalSidebarNavigationItem, PluginEnvironmentProvidersState, PluginSidebarThreadActions, ExperimentalSidebarNavigationActions } from '@get-bb/plugin-sdk';
|
|
11
11
|
|
|
12
12
|
type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
|
|
13
13
|
interface ExperimentalSidebarFooterRuntimeSnapshot {
|
|
@@ -102,6 +102,9 @@ type NavigateCall = {
|
|
|
102
102
|
} | {
|
|
103
103
|
method: "experimental_openFileExternally";
|
|
104
104
|
options: ExperimentalFileOpenOptions;
|
|
105
|
+
} | {
|
|
106
|
+
method: "experimental_openTerminal";
|
|
107
|
+
options: Parameters<BbNavigate["experimental_openTerminal"]>[0];
|
|
105
108
|
};
|
|
106
109
|
interface ExperimentalFixedTabOpenCall {
|
|
107
110
|
surface: ExperimentalOpenFixedTabOptions<JsonValue>["surface"];
|
|
@@ -170,6 +173,7 @@ interface SidebarNavigationCall {
|
|
|
170
173
|
isVisible?: boolean;
|
|
171
174
|
openInSplit?: boolean;
|
|
172
175
|
}
|
|
176
|
+
type TestClipboard = (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
173
177
|
/**
|
|
174
178
|
* Install the test runtime at `globalThis.__bbPluginRuntime.pluginSdkApp`,
|
|
175
179
|
* plus the React the `@get-bb/plugin-sdk/app` components render through.
|
|
@@ -225,6 +229,13 @@ interface ContentScriptTestMountOptions {
|
|
|
225
229
|
* thread-row status API. Current-host behavior is enabled by default.
|
|
226
230
|
*/
|
|
227
231
|
omitExperimentalThreadRowStatus?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Host result for `experimental_copyToClipboard()` writes, which are
|
|
234
|
+
* recorded in `inspection.experimental_clipboardWrites` until another
|
|
235
|
+
* mount or `renderSlot` takes the clipboard. Omitted → every write
|
|
236
|
+
* succeeds.
|
|
237
|
+
*/
|
|
238
|
+
experimental_copyToClipboard?: TestClipboard;
|
|
228
239
|
}
|
|
229
240
|
interface ContentScriptThreadRowStatusCall {
|
|
230
241
|
threadId: string;
|
|
@@ -237,6 +248,8 @@ interface MountedPluginContentScripts {
|
|
|
237
248
|
readonly disposed: boolean;
|
|
238
249
|
readonly threadRowStatusCalls: readonly ContentScriptThreadRowStatusCall[];
|
|
239
250
|
getThreadRowStatus(threadId: string): PluginComposerThreadRowStatus | null;
|
|
251
|
+
/** Every `experimental_copyToClipboard()` write, in order. */
|
|
252
|
+
readonly experimental_clipboardWrites: readonly ExperimentalClipboardContent[];
|
|
240
253
|
};
|
|
241
254
|
lifecycle: {
|
|
242
255
|
/** Abort, then run returned cleanup functions once in reverse order. */
|
|
@@ -305,6 +318,14 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
305
318
|
* mode with no resolved document, the state a plugin sees on first paint.
|
|
306
319
|
*/
|
|
307
320
|
codeTheme?: Partial<PluginCodeThemeState>;
|
|
321
|
+
/**
|
|
322
|
+
* Host result for `experimental_copyToClipboard()` writes, which are
|
|
323
|
+
* recorded in `inspection.experimental_clipboardWrites` either way. The
|
|
324
|
+
* clipboard is not slot-scoped: writes from anywhere (components, command
|
|
325
|
+
* callbacks) go to the most recently rendered slot or mounted content
|
|
326
|
+
* scripts. Omitted → every write succeeds.
|
|
327
|
+
*/
|
|
328
|
+
experimental_copyToClipboard?: TestClipboard;
|
|
308
329
|
branchesState?: Partial<BranchesState>;
|
|
309
330
|
/** Checkout facts `experimental_useCheckoutState()` reports. */
|
|
310
331
|
checkoutState?: Partial<CheckoutState>;
|
|
@@ -360,6 +381,8 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
360
381
|
openFilePreview?: (options: ExperimentalFileOpenOptions) => boolean;
|
|
361
382
|
/** Host acceptance for preferred-external file intents. */
|
|
362
383
|
openFileExternally?: (options: ExperimentalFileOpenOptions) => boolean;
|
|
384
|
+
/** Host acceptance for `useBbNavigate().experimental_openTerminal`. */
|
|
385
|
+
openTerminal?: (options: Parameters<BbNavigate["experimental_openTerminal"]>[0]) => boolean;
|
|
363
386
|
/** Host acceptance for an owner-scoped fixed-tab selection. */
|
|
364
387
|
experimental_openFixedTab?: (call: ExperimentalFixedTabOpenCall) => boolean;
|
|
365
388
|
/** Initial session target visible to `experimental_useFixedTabTarget`. */
|
|
@@ -400,6 +423,8 @@ interface RenderedSlotInspectionState {
|
|
|
400
423
|
readonly sidebarNavigationCalls: SidebarNavigationCall[];
|
|
401
424
|
/** Every `useSdk()` call, in order, as `"<area>.<method>"`. */
|
|
402
425
|
readonly sdkCalls: SdkCall[];
|
|
426
|
+
/** Every `experimental_copyToClipboard()` write, in order. */
|
|
427
|
+
readonly experimental_clipboardWrites: ExperimentalClipboardContent[];
|
|
403
428
|
/** Everything written through `useComposer()`. */
|
|
404
429
|
readonly composer: ComposerLog;
|
|
405
430
|
}
|