@get-bb/plugin-sdk 0.6.112 → 0.6.121
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 +3 -1
- package/bundled-types/bb-plugin-sdk-app.d.ts +90 -115
- package/bundled-types/bb-plugin-sdk-internal-file-navigation-validation.d.ts +5 -1
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +8 -3
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +11 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +11 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +5 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +5 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +8 -3
- package/bundled-types/bb-plugin-sdk.d.ts +124 -118
- package/dist/app.js +4 -0
- package/dist/index.js +161 -1
- package/dist/internal/file-navigation-validation.js +13 -0
- package/dist/internal/plugin-app-collector.js +2 -2
- package/dist/internal/rpc-query-host.js +7 -5
- package/dist/provider-bridge-acp-next.js +32 -22
- package/dist/provider-bridge-acp.js +32 -22
- package/dist/provider-bridge-testing.js +4 -0
- package/dist/provider-bridge.js +2 -0
- package/dist/replay-provider-child.mjs +21 -22
- package/dist/testing/app.js +15 -7
- package/dist/testing/index.js +2 -0
- package/package.json +1 -1
|
@@ -484,6 +484,7 @@ declare const threadEventItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
484
484
|
}>>;
|
|
485
485
|
command: z.ZodString;
|
|
486
486
|
cwd: z.ZodString;
|
|
487
|
+
description: z.ZodOptional<z.ZodString>;
|
|
487
488
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
488
489
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
489
490
|
id: z.ZodString;
|
|
@@ -1319,6 +1320,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
1319
1320
|
}>>;
|
|
1320
1321
|
command: z.ZodString;
|
|
1321
1322
|
cwd: z.ZodString;
|
|
1323
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1322
1324
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1323
1325
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
1324
1326
|
id: z.ZodString;
|
|
@@ -2086,6 +2088,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
2086
2088
|
}>>;
|
|
2087
2089
|
command: z.ZodString;
|
|
2088
2090
|
cwd: z.ZodString;
|
|
2091
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2089
2092
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2090
2093
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
2091
2094
|
id: z.ZodString;
|
|
@@ -4263,6 +4266,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4263
4266
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
4264
4267
|
command: z.ZodString;
|
|
4265
4268
|
cwd: z.ZodString;
|
|
4269
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4266
4270
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
4267
4271
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
4268
4272
|
type: z.ZodLiteral<"command">;
|
|
@@ -4471,6 +4475,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4471
4475
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
4472
4476
|
command: z.ZodString;
|
|
4473
4477
|
cwd: z.ZodString;
|
|
4478
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4474
4479
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
4475
4480
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
4476
4481
|
type: z.ZodLiteral<"command">;
|
|
@@ -2030,6 +2030,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2030
2030
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
2031
2031
|
command: z.ZodString;
|
|
2032
2032
|
cwd: z.ZodString;
|
|
2033
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2033
2034
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2034
2035
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
2035
2036
|
type: z.ZodLiteral<"command">;
|
|
@@ -2328,6 +2329,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2328
2329
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
2329
2330
|
command: z.ZodString;
|
|
2330
2331
|
cwd: z.ZodString;
|
|
2332
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2331
2333
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2332
2334
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
2333
2335
|
type: z.ZodLiteral<"command">;
|
|
@@ -2536,6 +2538,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2536
2538
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
2537
2539
|
command: z.ZodString;
|
|
2538
2540
|
cwd: z.ZodString;
|
|
2541
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2539
2542
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2540
2543
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
2541
2544
|
type: z.ZodLiteral<"command">;
|
|
@@ -3188,6 +3191,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3188
3191
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
3189
3192
|
command: z.ZodString;
|
|
3190
3193
|
cwd: z.ZodString;
|
|
3194
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3191
3195
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3192
3196
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
3193
3197
|
type: z.ZodLiteral<"command">;
|
|
@@ -3396,6 +3400,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3396
3400
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
3397
3401
|
command: z.ZodString;
|
|
3398
3402
|
cwd: z.ZodString;
|
|
3403
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3399
3404
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3400
3405
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
3401
3406
|
type: z.ZodLiteral<"command">;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
8
|
import * as _get_bb_plugin_sdk from '@get-bb/plugin-sdk';
|
|
9
|
-
import { ExperimentalSidebarFooterItemRegistration, PluginNavPanelRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, BbNavigate, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, ExperimentalThreadContextKind, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, ExperimentalComposerRendererApi, ExperimentalSidebarNavigationItem, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState, ExperimentalLiveFileTarget, ExperimentalServers, ExperimentalPanelController, ExperimentalPanelTabs, JsonValue, ExperimentalPageTitle, ExperimentalOpenTabOptions, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationTarget } from '@get-bb/plugin-sdk';
|
|
9
|
+
import { ExperimentalSidebarFooterItemRegistration, PluginNavPanelRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, BbNavigate, ExperimentalFilePreviewOptions, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, ExperimentalThreadContextKind, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, ExperimentalComposerRendererApi, ExperimentalSidebarNavigationItem, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState, ExperimentalLiveFileTarget, ExperimentalFilePreviewFile, ExperimentalServers, ExperimentalPanelController, ExperimentalPanelTabs, JsonValue, ExperimentalPageTitle, ExperimentalOpenTabOptions, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationTarget } from '@get-bb/plugin-sdk';
|
|
10
10
|
import { ComponentType, ReactNode } from 'react';
|
|
11
11
|
import { RenderResult } from '@testing-library/react';
|
|
12
12
|
|
|
@@ -125,7 +125,7 @@ type NavigateCall = {
|
|
|
125
125
|
url: string;
|
|
126
126
|
} | {
|
|
127
127
|
method: "experimental_openFilePreview";
|
|
128
|
-
options:
|
|
128
|
+
options: ExperimentalFilePreviewOptions;
|
|
129
129
|
} | {
|
|
130
130
|
method: "experimental_openFileExternally";
|
|
131
131
|
options: ExperimentalFileOpenOptions;
|
|
@@ -450,7 +450,7 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
450
450
|
/** Host acceptance for URL intents from the hook or `UrlLink`. */
|
|
451
451
|
openUrl?: (url: string) => boolean;
|
|
452
452
|
/** Host acceptance for preview intents from the hook or file link. */
|
|
453
|
-
openFilePreview?: (options:
|
|
453
|
+
openFilePreview?: (options: ExperimentalFilePreviewOptions) => boolean;
|
|
454
454
|
/** Host acceptance for preferred-external file intents. */
|
|
455
455
|
openFileExternally?: (options: ExperimentalFileOpenOptions) => boolean;
|
|
456
456
|
/**
|
|
@@ -458,6 +458,11 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
458
458
|
* false for every target.
|
|
459
459
|
*/
|
|
460
460
|
canOpenFileExternally?: (target: ExperimentalLiveFileTarget) => boolean;
|
|
461
|
+
/**
|
|
462
|
+
* The loaded file `experimental_FilePreview` hands its `renderPreview` for a
|
|
463
|
+
* target. Omitted or null → the stand-in draws no Preview body.
|
|
464
|
+
*/
|
|
465
|
+
filePreview?: (target: ExperimentalLiveFileTarget) => ExperimentalFilePreviewFile | null;
|
|
461
466
|
/**
|
|
462
467
|
* Answer for `experimental_useTabVisible()`. Omitted → true, as for a tab
|
|
463
468
|
* that is selected in an open panel.
|