@get-bb/plugin-sdk 0.6.116 → 0.6.125
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 +381 -163
- 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 +68 -1
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +1 -2
- 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 +6 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +5 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +8 -4
- package/bundled-types/bb-plugin-sdk.d.ts +390 -164
- package/dist/app.js +4 -0
- package/dist/internal/file-navigation-validation.js +13 -0
- package/dist/internal/host-policy.js +3 -5
- package/dist/internal/plugin-app-collector.js +2 -13
- package/dist/internal/rpc-query-host.js +9 -5
- package/dist/provider-bridge-acp-next.js +3 -0
- package/dist/provider-bridge-acp.js +3 -0
- package/dist/provider-bridge-testing.js +5 -0
- package/dist/provider-bridge.js +3 -0
- package/dist/testing/app.js +17 -18
- package/dist/testing/index.js +5 -5
- package/package.json +1 -1
|
@@ -45,5 +45,9 @@ interface ExperimentalFileOpenOptions {
|
|
|
45
45
|
declare function normalizeExperimentalLiveFileTarget(value: unknown): ExperimentalLiveFileTarget | null;
|
|
46
46
|
declare function normalizeExperimentalFileLocation(value: unknown): ExperimentalFileLocation | null | undefined;
|
|
47
47
|
declare function normalizeExperimentalFileOpenOptions(value: unknown): ExperimentalFileOpenOptions | null;
|
|
48
|
+
declare function normalizeExperimentalFilePreviewOptions(value: unknown): {
|
|
49
|
+
options: ExperimentalFileOpenOptions;
|
|
50
|
+
opener: string | null;
|
|
51
|
+
} | null;
|
|
48
52
|
|
|
49
|
-
export { normalizeExperimentalFileLocation, normalizeExperimentalFileOpenOptions, normalizeExperimentalLiveFileTarget };
|
|
53
|
+
export { normalizeExperimentalFileLocation, normalizeExperimentalFileOpenOptions, normalizeExperimentalFilePreviewOptions, normalizeExperimentalLiveFileTarget };
|
|
@@ -451,6 +451,70 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
|
|
|
451
451
|
scheduled: "scheduled";
|
|
452
452
|
waiting: "waiting";
|
|
453
453
|
}>;
|
|
454
|
+
systemNotice: z.ZodNullable<z.ZodObject<{
|
|
455
|
+
kind: z.ZodEnum<{
|
|
456
|
+
"child-completed": "child-completed";
|
|
457
|
+
"child-failed": "child-failed";
|
|
458
|
+
"child-interrupted": "child-interrupted";
|
|
459
|
+
"child-needs-attention": "child-needs-attention";
|
|
460
|
+
"child-outcome-batch": "child-outcome-batch";
|
|
461
|
+
"environment-directory-updated": "environment-directory-updated";
|
|
462
|
+
"ownership-assigned": "ownership-assigned";
|
|
463
|
+
"ownership-batch": "ownership-batch";
|
|
464
|
+
"ownership-removed": "ownership-removed";
|
|
465
|
+
"tool-result-delivered": "tool-result-delivered";
|
|
466
|
+
unlabeled: "unlabeled";
|
|
467
|
+
}>;
|
|
468
|
+
subject: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
469
|
+
kind: z.ZodLiteral<"thread">;
|
|
470
|
+
outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
471
|
+
interruption: z.ZodOptional<z.ZodObject<{
|
|
472
|
+
cause: z.ZodOptional<z.ZodLiteral<"host-connection-lost">>;
|
|
473
|
+
reason: z.ZodEnum<{
|
|
474
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
475
|
+
"host-removed": "host-removed";
|
|
476
|
+
"manual-stop": "manual-stop";
|
|
477
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
478
|
+
}>;
|
|
479
|
+
}, z.core.$strip>>;
|
|
480
|
+
status: z.ZodEnum<{
|
|
481
|
+
completed: "completed";
|
|
482
|
+
failed: "failed";
|
|
483
|
+
interrupted: "interrupted";
|
|
484
|
+
}>;
|
|
485
|
+
threadId: z.ZodString;
|
|
486
|
+
}, z.core.$strip>>>;
|
|
487
|
+
threadId: z.ZodString;
|
|
488
|
+
threadName: z.ZodString;
|
|
489
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
490
|
+
count: z.ZodNumber;
|
|
491
|
+
kind: z.ZodLiteral<"thread-batch">;
|
|
492
|
+
outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
493
|
+
interruption: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
cause: z.ZodOptional<z.ZodLiteral<"host-connection-lost">>;
|
|
495
|
+
reason: z.ZodEnum<{
|
|
496
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
497
|
+
"host-removed": "host-removed";
|
|
498
|
+
"manual-stop": "manual-stop";
|
|
499
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
500
|
+
}>;
|
|
501
|
+
}, z.core.$strip>>;
|
|
502
|
+
status: z.ZodEnum<{
|
|
503
|
+
completed: "completed";
|
|
504
|
+
failed: "failed";
|
|
505
|
+
interrupted: "interrupted";
|
|
506
|
+
}>;
|
|
507
|
+
threadId: z.ZodString;
|
|
508
|
+
}, z.core.$strip>>>;
|
|
509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
510
|
+
kind: z.ZodLiteral<"tool-call">;
|
|
511
|
+
suppress: z.ZodBoolean;
|
|
512
|
+
toolName: z.ZodString;
|
|
513
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
514
|
+
kind: z.ZodLiteral<"directory">;
|
|
515
|
+
path: z.ZodString;
|
|
516
|
+
}, z.core.$strip>], "kind">>;
|
|
517
|
+
}, z.core.$strip>>;
|
|
454
518
|
threadId: z.ZodString;
|
|
455
519
|
updatedAt: z.ZodNumber;
|
|
456
520
|
waitingOn: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -468,6 +532,8 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
|
|
|
468
532
|
kind: z.ZodLiteral<"host-offline">;
|
|
469
533
|
}, z.core.$strip>, z.ZodObject<{
|
|
470
534
|
kind: z.ZodLiteral<"interaction">;
|
|
535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
536
|
+
kind: z.ZodLiteral<"app-update">;
|
|
471
537
|
}, z.core.$strip>, z.ZodObject<{
|
|
472
538
|
kind: z.ZodLiteral<"plugin">;
|
|
473
539
|
pluginId: z.ZodString;
|
|
@@ -1842,6 +1908,7 @@ declare const PLUGIN_PROVIDER_ENV_MAX_ENTRIES = 32;
|
|
|
1842
1908
|
declare function validatePluginProviderEnvEntries(value: unknown): ExperimentalPluginProviderEnvEntry[];
|
|
1843
1909
|
/** Status labels ride on every tool-call event and share one timeline row. */
|
|
1844
1910
|
declare const PLUGIN_AGENT_STATUS_LABEL_MAX_CHARS = 80;
|
|
1911
|
+
declare const PLUGIN_DYNAMIC_INSTRUCTIONS_MAX_CHARS = 32768;
|
|
1845
1912
|
declare const PROVIDER_ID_PATTERN: RegExp;
|
|
1846
1913
|
declare const PLUGIN_PROVIDER_BRIDGE_OPTIONS_MAX_BYTES: number;
|
|
1847
1914
|
declare const SETTING_KEY_PATTERN: RegExp;
|
|
@@ -2173,5 +2240,5 @@ declare function readPluginRpcRefusal(error: unknown): PluginRpcError | null;
|
|
|
2173
2240
|
declare function validateRpcValue(schema: StandardSchemaV1, value: unknown, phase: "input" | "output", fail: (error: PluginRpcError) => never): Promise<unknown>;
|
|
2174
2241
|
declare function normalizeRpcJsonResult(value: unknown, fail: (error: PluginRpcError) => never): JsonValue;
|
|
2175
2242
|
|
|
2176
|
-
export { ENVIRONMENT_PROVIDER_DESCRIPTION_MAX_CHARS, ENVIRONMENT_PROVIDER_DISPLAY_NAME_MAX_CHARS, ENVIRONMENT_PROVIDER_ID_PATTERN, ENVIRONMENT_PROVIDER_REQUIREMENT_NAMES, KV_VALUE_MAX_BYTES, MACHINE_PROVIDER_DESCRIPTION_MAX_CHARS, PLUGIN_AGENT_STATUS_LABEL_MAX_CHARS, PLUGIN_MENTION_TRIGGER_VALUES, PLUGIN_PROVIDER_BRIDGE_OPTIONS_MAX_BYTES, PLUGIN_PROVIDER_COMPOSER_ACTION_VALUES, PLUGIN_PROVIDER_DISPLAY_NAME_MAX_CHARS, PLUGIN_PROVIDER_ENV_MAX_ENTRIES, PLUGIN_PROVIDER_ENV_NAME_PATTERN, PLUGIN_PROVIDER_PERMISSION_MODE_VALUES, PLUGIN_PROVIDER_REASONING_LEVEL_VALUES, PROVIDER_ID_PATTERN, RESERVED_AGENT_TOOL_NAMES, RESERVED_BB_CLI_COMMANDS, SETTING_KEY_PATTERN, adoptHttpRouteResponse, aiServiceAlreadyRegisteredMessage, coerceStoredPluginSettingValue, deriveValidatedProviderOptions, enforcePluginCliOutputLimit, environmentCompositionSchema, isPluginMentionTrigger, isStandardSchema, normalizeAgentToolRegistration, normalizeCliRegistration, normalizeHttpRouteRegistration, normalizeInteractionRequest, normalizeMentionProviderRegistration, normalizePluginAgentConfiguration, normalizeRealtimePayload, normalizeRpcJsonResult, normalizeRpcRegistration, normalizeWebSocketRouteRegistration, parsePluginRowPresentation, pluginCliCollisionWarning, pluginHookAlreadyRegisteredMessage, providerAlreadyRegisteredMessage, providerDeclarationIconRefusal, providerIconRefusalMessage, providerWithoutBridgeMessage, publishRpcMethod, readPluginRpcRefusal, readRpcPublicationOptions, registerSettingDescriptors, runPluginStorageMigrations, storePluginHook, summarizeStandardIssues, undeclaredIconProblem, validateBackgroundServiceRegistration, validatePluginAiServiceDeclaration, validatePluginEnvironmentProviderDeclaration, validatePluginMachineProviderDeclaration, validatePluginProviderDeclaration, validatePluginProviderEnvEntries, validateProviderEnvContribution, validateRpcValue, validateScheduleRegistration, validateServerAccessProviderDeclaration, validateSettingsUpdate };
|
|
2243
|
+
export { ENVIRONMENT_PROVIDER_DESCRIPTION_MAX_CHARS, ENVIRONMENT_PROVIDER_DISPLAY_NAME_MAX_CHARS, ENVIRONMENT_PROVIDER_ID_PATTERN, ENVIRONMENT_PROVIDER_REQUIREMENT_NAMES, KV_VALUE_MAX_BYTES, MACHINE_PROVIDER_DESCRIPTION_MAX_CHARS, PLUGIN_AGENT_STATUS_LABEL_MAX_CHARS, PLUGIN_DYNAMIC_INSTRUCTIONS_MAX_CHARS, PLUGIN_MENTION_TRIGGER_VALUES, PLUGIN_PROVIDER_BRIDGE_OPTIONS_MAX_BYTES, PLUGIN_PROVIDER_COMPOSER_ACTION_VALUES, PLUGIN_PROVIDER_DISPLAY_NAME_MAX_CHARS, PLUGIN_PROVIDER_ENV_MAX_ENTRIES, PLUGIN_PROVIDER_ENV_NAME_PATTERN, PLUGIN_PROVIDER_PERMISSION_MODE_VALUES, PLUGIN_PROVIDER_REASONING_LEVEL_VALUES, PROVIDER_ID_PATTERN, RESERVED_AGENT_TOOL_NAMES, RESERVED_BB_CLI_COMMANDS, SETTING_KEY_PATTERN, adoptHttpRouteResponse, aiServiceAlreadyRegisteredMessage, coerceStoredPluginSettingValue, deriveValidatedProviderOptions, enforcePluginCliOutputLimit, environmentCompositionSchema, isPluginMentionTrigger, isStandardSchema, normalizeAgentToolRegistration, normalizeCliRegistration, normalizeHttpRouteRegistration, normalizeInteractionRequest, normalizeMentionProviderRegistration, normalizePluginAgentConfiguration, normalizeRealtimePayload, normalizeRpcJsonResult, normalizeRpcRegistration, normalizeWebSocketRouteRegistration, parsePluginRowPresentation, pluginCliCollisionWarning, pluginHookAlreadyRegisteredMessage, providerAlreadyRegisteredMessage, providerDeclarationIconRefusal, providerIconRefusalMessage, providerWithoutBridgeMessage, publishRpcMethod, readPluginRpcRefusal, readRpcPublicationOptions, registerSettingDescriptors, runPluginStorageMigrations, storePluginHook, summarizeStandardIssues, undeclaredIconProblem, validateBackgroundServiceRegistration, validatePluginAiServiceDeclaration, validatePluginEnvironmentProviderDeclaration, validatePluginMachineProviderDeclaration, validatePluginProviderDeclaration, validatePluginProviderEnvEntries, validateProviderEnvContribution, validateRpcValue, validateScheduleRegistration, validateServerAccessProviderDeclaration, validateSettingsUpdate };
|
|
2177
2244
|
export type { NormalizedPluginAiService, NormalizedPluginEnvironmentComposition, NormalizedPluginEnvironmentProvider, NormalizedPluginEnvironmentProviderRequirements, NormalizedPluginInteractionRequest, NormalizedPluginMachineProvider, NormalizedPluginProviderDeclaration };
|
|
@@ -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 { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration,
|
|
9
|
+
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
10
10
|
import { ComponentType } from 'react';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
|
|
@@ -94,7 +94,6 @@ interface CollectedPluginAppRegistrations {
|
|
|
94
94
|
homepageSections: PluginHomepageSectionRegistration[];
|
|
95
95
|
settingsSections: PluginSettingsSectionRegistration[];
|
|
96
96
|
appOverlays: ExperimentalAppOverlayRegistration[];
|
|
97
|
-
setupGuideSections: InternalDoNotUseSetupGuideSectionRegistration[];
|
|
98
97
|
navPanels: LegacyNavPanelRegistration[];
|
|
99
98
|
tabs: ExperimentalTabRegistration[];
|
|
100
99
|
threadPanelActions: LegacyThreadPanelActionRegistration[];
|
|
@@ -96,6 +96,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
96
96
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
97
97
|
command: z.ZodString;
|
|
98
98
|
cwd: z.ZodString;
|
|
99
|
+
description: z.ZodOptional<z.ZodString>;
|
|
99
100
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
100
101
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
101
102
|
type: z.ZodLiteral<"command">;
|
|
@@ -94,6 +94,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
94
94
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
95
95
|
command: z.ZodString;
|
|
96
96
|
cwd: z.ZodString;
|
|
97
|
+
description: z.ZodOptional<z.ZodString>;
|
|
97
98
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
98
99
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
99
100
|
type: z.ZodLiteral<"command">;
|
|
@@ -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;
|
|
@@ -3619,6 +3622,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
3619
3622
|
"child-outcome-batch": "child-outcome-batch";
|
|
3620
3623
|
"environment-directory-updated": "environment-directory-updated";
|
|
3621
3624
|
"ownership-assigned": "ownership-assigned";
|
|
3625
|
+
"ownership-batch": "ownership-batch";
|
|
3622
3626
|
"ownership-removed": "ownership-removed";
|
|
3623
3627
|
"tool-result-delivered": "tool-result-delivered";
|
|
3624
3628
|
unlabeled: "unlabeled";
|
|
@@ -4263,6 +4267,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4263
4267
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
4264
4268
|
command: z.ZodString;
|
|
4265
4269
|
cwd: z.ZodString;
|
|
4270
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4266
4271
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
4267
4272
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
4268
4273
|
type: z.ZodLiteral<"command">;
|
|
@@ -4471,6 +4476,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4471
4476
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
4472
4477
|
command: z.ZodString;
|
|
4473
4478
|
cwd: z.ZodString;
|
|
4479
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4474
4480
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
4475
4481
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
4476
4482
|
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,
|
|
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;
|
|
@@ -228,7 +228,6 @@ interface CapturedPluginApp {
|
|
|
228
228
|
homepageSections: PluginHomepageSectionRegistration[];
|
|
229
229
|
settingsSections: PluginSettingsSectionRegistration[];
|
|
230
230
|
appOverlays: ExperimentalAppOverlayRegistration[];
|
|
231
|
-
setupGuideSections: InternalDoNotUseSetupGuideSectionRegistration[];
|
|
232
231
|
navPanels: LegacyNavPanelRegistration[];
|
|
233
232
|
tabs: ExperimentalTabRegistration[];
|
|
234
233
|
threadPanelActions: LegacyThreadPanelActionRegistration[];
|
|
@@ -451,7 +450,7 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
451
450
|
/** Host acceptance for URL intents from the hook or `UrlLink`. */
|
|
452
451
|
openUrl?: (url: string) => boolean;
|
|
453
452
|
/** Host acceptance for preview intents from the hook or file link. */
|
|
454
|
-
openFilePreview?: (options:
|
|
453
|
+
openFilePreview?: (options: ExperimentalFilePreviewOptions) => boolean;
|
|
455
454
|
/** Host acceptance for preferred-external file intents. */
|
|
456
455
|
openFileExternally?: (options: ExperimentalFileOpenOptions) => boolean;
|
|
457
456
|
/**
|
|
@@ -459,6 +458,11 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
459
458
|
* false for every target.
|
|
460
459
|
*/
|
|
461
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;
|
|
462
466
|
/**
|
|
463
467
|
* Answer for `experimental_useTabVisible()`. Omitted → true, as for a tab
|
|
464
468
|
* that is selected in an open panel.
|