@get-bb/plugin-sdk 0.6.52 → 0.6.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-types/bb-plugin-sdk-app.d.ts +350 -12
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +7 -3
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +9 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +9 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +30 -2
- package/bundled-types/bb-plugin-sdk.d.ts +346 -11
- package/dist/app.js +12 -0
- package/dist/internal/plugin-app-collector.js +89 -15
- package/dist/provider-bridge-acp-next.js +24 -12
- package/dist/provider-bridge-acp.js +24 -12
- package/dist/provider-bridge-testing.js +3 -0
- package/dist/provider-bridge.js +2 -0
- package/dist/testing/app.js +169 -15
- package/package.json +1 -1
|
@@ -1903,6 +1903,7 @@ declare const deltaBackgroundTaskShapeSchema: z.ZodObject<{
|
|
|
1903
1903
|
description: z.ZodString;
|
|
1904
1904
|
error: z.ZodOptional<z.ZodString>;
|
|
1905
1905
|
familyId: z.ZodString;
|
|
1906
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
1906
1907
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
1907
1908
|
skipTranscript: z.ZodBoolean;
|
|
1908
1909
|
status: z.ZodEnum<{
|
|
@@ -2076,6 +2077,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2076
2077
|
description: z.ZodString;
|
|
2077
2078
|
error: z.ZodOptional<z.ZodString>;
|
|
2078
2079
|
familyId: z.ZodString;
|
|
2080
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2079
2081
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2080
2082
|
skipTranscript: z.ZodBoolean;
|
|
2081
2083
|
status: z.ZodEnum<{
|
|
@@ -2181,6 +2183,7 @@ declare const deltaProgressSnapshotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2181
2183
|
description: z.ZodString;
|
|
2182
2184
|
error: z.ZodOptional<z.ZodString>;
|
|
2183
2185
|
familyId: z.ZodString;
|
|
2186
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2184
2187
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2185
2188
|
skipTranscript: z.ZodBoolean;
|
|
2186
2189
|
status: z.ZodEnum<{
|
|
@@ -2366,6 +2369,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2366
2369
|
description: z.ZodString;
|
|
2367
2370
|
error: z.ZodOptional<z.ZodString>;
|
|
2368
2371
|
familyId: z.ZodString;
|
|
2372
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2369
2373
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2370
2374
|
skipTranscript: z.ZodBoolean;
|
|
2371
2375
|
status: z.ZodEnum<{
|
|
@@ -2573,6 +2577,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2573
2577
|
description: z.ZodString;
|
|
2574
2578
|
error: z.ZodOptional<z.ZodString>;
|
|
2575
2579
|
familyId: z.ZodString;
|
|
2580
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2576
2581
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2577
2582
|
skipTranscript: z.ZodBoolean;
|
|
2578
2583
|
status: z.ZodEnum<{
|
|
@@ -2743,6 +2748,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2743
2748
|
description: z.ZodString;
|
|
2744
2749
|
error: z.ZodOptional<z.ZodString>;
|
|
2745
2750
|
familyId: z.ZodString;
|
|
2751
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2746
2752
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2747
2753
|
skipTranscript: z.ZodBoolean;
|
|
2748
2754
|
status: z.ZodEnum<{
|
|
@@ -3217,6 +3223,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3217
3223
|
description: z.ZodString;
|
|
3218
3224
|
error: z.ZodOptional<z.ZodString>;
|
|
3219
3225
|
familyId: z.ZodString;
|
|
3226
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
3220
3227
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
3221
3228
|
skipTranscript: z.ZodBoolean;
|
|
3222
3229
|
status: z.ZodEnum<{
|
|
@@ -3424,6 +3431,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3424
3431
|
description: z.ZodString;
|
|
3425
3432
|
error: z.ZodOptional<z.ZodString>;
|
|
3426
3433
|
familyId: z.ZodString;
|
|
3434
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
3427
3435
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
3428
3436
|
skipTranscript: z.ZodBoolean;
|
|
3429
3437
|
status: z.ZodEnum<{
|
|
@@ -3594,6 +3602,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3594
3602
|
description: z.ZodString;
|
|
3595
3603
|
error: z.ZodOptional<z.ZodString>;
|
|
3596
3604
|
familyId: z.ZodString;
|
|
3605
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
3597
3606
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
3598
3607
|
skipTranscript: z.ZodBoolean;
|
|
3599
3608
|
status: z.ZodEnum<{
|
|
@@ -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, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, 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, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState } from '@get-bb/plugin-sdk';
|
|
10
|
+
import { ExperimentalSidebarFooterItemRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, 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, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState, ExperimentalSidebarNavigationActions } from '@get-bb/plugin-sdk';
|
|
11
11
|
|
|
12
12
|
type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
|
|
13
13
|
interface ExperimentalSidebarFooterRuntimeSnapshot {
|
|
@@ -163,6 +163,17 @@ interface ComposerLog {
|
|
|
163
163
|
type TestThreadActionsResolver = (thread: PluginThreadActionTarget, options: {
|
|
164
164
|
requestRename(threadId: string): void;
|
|
165
165
|
}) => readonly PluginThreadActionEntry[];
|
|
166
|
+
/**
|
|
167
|
+
* One recorded `experimental_useSidebarNavigation()` action, or a split drag
|
|
168
|
+
* started from `experimental_useSidebarNavigationSplit()` (`beginSplitDrag`).
|
|
169
|
+
*/
|
|
170
|
+
interface SidebarNavigationCall {
|
|
171
|
+
method: keyof ExperimentalSidebarNavigationActions | "beginSplitDrag";
|
|
172
|
+
itemId?: string;
|
|
173
|
+
itemIds?: string[];
|
|
174
|
+
isVisible?: boolean;
|
|
175
|
+
openInSplit?: boolean;
|
|
176
|
+
}
|
|
166
177
|
type TestClipboard = (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
167
178
|
/**
|
|
168
179
|
* Install the test runtime at `globalThis.__bbPluginRuntime.pluginSdkApp`,
|
|
@@ -184,6 +195,7 @@ interface CapturedPluginApp {
|
|
|
184
195
|
sidebarFooterActions: PluginSidebarFooterActionRegistration[];
|
|
185
196
|
experimentalSidebarFooterItems: CollectedExperimentalSidebarFooterItem[];
|
|
186
197
|
threadLists: PluginThreadListRegistration[];
|
|
198
|
+
experimentalSidebarNavigations: ExperimentalSidebarNavigationRegistration[];
|
|
187
199
|
threadHeaderActions: PluginThreadHeaderActionRegistration[];
|
|
188
200
|
threadActions: PluginThreadActionRegistration<unknown>[];
|
|
189
201
|
browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
|
|
@@ -342,6 +354,17 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
342
354
|
sidebarShortcuts?: Record<string, PluginSidebarThreadShortcut>;
|
|
343
355
|
/** The split layout `useSidebarSplitLayout()` reports. Omitted → null. */
|
|
344
356
|
sidebarSplitLayout?: PluginSidebarSplitLayout;
|
|
357
|
+
/**
|
|
358
|
+
* Items and the active item `experimental_useSidebarNavigation()` reports.
|
|
359
|
+
* Omitted → no items. Actions are recorded in `sidebarNavigationCalls` and
|
|
360
|
+
* do not change the items.
|
|
361
|
+
*/
|
|
362
|
+
sidebarNavigation?: {
|
|
363
|
+
items?: readonly ExperimentalSidebarNavigationItem[];
|
|
364
|
+
activeItemId?: string | null;
|
|
365
|
+
isHomeActive?: boolean;
|
|
366
|
+
isShortcutModifierHeld?: boolean;
|
|
367
|
+
};
|
|
345
368
|
/**
|
|
346
369
|
* What `experimental_useThreadActions()` reports for a thread, in menu
|
|
347
370
|
* order. Omitted → an empty list.
|
|
@@ -404,6 +427,11 @@ interface RenderedSlotInspectionState {
|
|
|
404
427
|
readonly navigateCalls: NavigateCall[];
|
|
405
428
|
/** Every validated `experimental_useAppPanel().openFixedTab` call. */
|
|
406
429
|
readonly experimental_fixedTabOpenCalls: ExperimentalFixedTabOpenCall[];
|
|
430
|
+
/**
|
|
431
|
+
* Every `experimental_useSidebarNavigation()` action and navigation split
|
|
432
|
+
* drag, in order.
|
|
433
|
+
*/
|
|
434
|
+
readonly sidebarNavigationCalls: SidebarNavigationCall[];
|
|
407
435
|
/**
|
|
408
436
|
* The environment id of every `experimental_useArchiveEnvironmentThreads()`
|
|
409
437
|
* call, in order.
|
|
@@ -435,4 +463,4 @@ declare function renderSlot<Props extends object, Contract extends PluginRpcCont
|
|
|
435
463
|
}, props: Props, options?: RenderSlotOptions<Contract>): RenderedSlot;
|
|
436
464
|
|
|
437
465
|
export { installTestPluginRuntime, loadPluginApp, mountPluginContentScripts, renderSlot };
|
|
438
|
-
export type { CapturedPluginApp, ComposerLog, ContentScriptTestMountOptions, ContentScriptThreadRowStatusCall, ExperimentalFixedTabOpenCall, MountedPluginContentScripts, NavigateCall, PluginAppSource, PluginRpcTestHandlers, PluginSdkTestFakes, RenderSlotOptions, RenderedSlot, RenderedSlotBehaviorDrivers, RenderedSlotInspectionState, RenderedSlotLifecycleControls, RpcCall, SdkCall, TestThreadActionsResolver };
|
|
466
|
+
export type { CapturedPluginApp, ComposerLog, ContentScriptTestMountOptions, ContentScriptThreadRowStatusCall, ExperimentalFixedTabOpenCall, MountedPluginContentScripts, NavigateCall, PluginAppSource, PluginRpcTestHandlers, PluginSdkTestFakes, RenderSlotOptions, RenderedSlot, RenderedSlotBehaviorDrivers, RenderedSlotInspectionState, RenderedSlotLifecycleControls, RpcCall, SdkCall, SidebarNavigationCall, TestThreadActionsResolver };
|