@get-bb/plugin-sdk 0.6.39 → 0.6.42
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 +184 -1
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk.d.ts +184 -1
- package/dist/internal/plugin-app-collector.js +32 -0
- package/dist/testing/app.js +32 -0
- package/package.json +1 -1
|
@@ -10100,6 +10100,7 @@ declare const pluginMarketplaceSchema: z$1.ZodObject<{
|
|
|
10100
10100
|
https: "https";
|
|
10101
10101
|
path: "path";
|
|
10102
10102
|
}>;
|
|
10103
|
+
subdirectory: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
10103
10104
|
}, z$1.core.$strip>;
|
|
10104
10105
|
type PluginMarketplace = z$1.infer<typeof pluginMarketplaceSchema>;
|
|
10105
10106
|
declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
|
|
@@ -10120,6 +10121,7 @@ declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
|
|
|
10120
10121
|
https: "https";
|
|
10121
10122
|
path: "path";
|
|
10122
10123
|
}>;
|
|
10124
|
+
subdirectory: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
10123
10125
|
}, z$1.core.$strip>;
|
|
10124
10126
|
name: z$1.ZodString;
|
|
10125
10127
|
ok: z$1.ZodBoolean;
|
|
@@ -10476,6 +10478,108 @@ declare const testAiServiceResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
|
|
|
10476
10478
|
ok: z$1.ZodLiteral<false>;
|
|
10477
10479
|
}, z$1.core.$strip>], "ok">;
|
|
10478
10480
|
type TestAiServiceResponse = z$1.infer<typeof testAiServiceResponseSchema>;
|
|
10481
|
+
declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10482
|
+
name: z$1.ZodLiteral<"onboarding_agent_state">;
|
|
10483
|
+
properties: z$1.ZodObject<{
|
|
10484
|
+
agent_installed: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
10485
|
+
agent_ready: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
10486
|
+
entry: z$1.ZodEnum<{
|
|
10487
|
+
first_run: "first_run";
|
|
10488
|
+
replay: "replay";
|
|
10489
|
+
}>;
|
|
10490
|
+
}, z$1.core.$strict>;
|
|
10491
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10492
|
+
name: z$1.ZodLiteral<"onboarding_sign_in">;
|
|
10493
|
+
properties: z$1.ZodObject<{
|
|
10494
|
+
entry: z$1.ZodEnum<{
|
|
10495
|
+
first_run: "first_run";
|
|
10496
|
+
replay: "replay";
|
|
10497
|
+
}>;
|
|
10498
|
+
outcome: z$1.ZodEnum<{
|
|
10499
|
+
cancelled: "cancelled";
|
|
10500
|
+
exited: "exited";
|
|
10501
|
+
failed: "failed";
|
|
10502
|
+
ready: "ready";
|
|
10503
|
+
started: "started";
|
|
10504
|
+
}>;
|
|
10505
|
+
}, z$1.core.$strict>;
|
|
10506
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10507
|
+
name: z$1.ZodLiteral<"new_thread_submit">;
|
|
10508
|
+
properties: z$1.ZodObject<{
|
|
10509
|
+
outcome: z$1.ZodEnum<{
|
|
10510
|
+
accepted: "accepted";
|
|
10511
|
+
failed: "failed";
|
|
10512
|
+
started: "started";
|
|
10513
|
+
}>;
|
|
10514
|
+
}, z$1.core.$strict>;
|
|
10515
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10516
|
+
name: z$1.ZodLiteral<"onboarding_started">;
|
|
10517
|
+
properties: z$1.ZodObject<{
|
|
10518
|
+
agent_installed: z$1.ZodBoolean;
|
|
10519
|
+
agent_ready: z$1.ZodBoolean;
|
|
10520
|
+
}, z$1.core.$strict>;
|
|
10521
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10522
|
+
name: z$1.ZodLiteral<"onboarding_step_reached">;
|
|
10523
|
+
properties: z$1.ZodObject<{
|
|
10524
|
+
entry: z$1.ZodEnum<{
|
|
10525
|
+
first_run: "first_run";
|
|
10526
|
+
replay: "replay";
|
|
10527
|
+
}>;
|
|
10528
|
+
step: z$1.ZodEnum<{
|
|
10529
|
+
agent: "agent";
|
|
10530
|
+
devices: "devices";
|
|
10531
|
+
plugins: "plugins";
|
|
10532
|
+
projects: "projects";
|
|
10533
|
+
}>;
|
|
10534
|
+
}, z$1.core.$strict>;
|
|
10535
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10536
|
+
name: z$1.ZodLiteral<"onboarding_step_completed">;
|
|
10537
|
+
properties: z$1.ZodObject<{
|
|
10538
|
+
entry: z$1.ZodEnum<{
|
|
10539
|
+
first_run: "first_run";
|
|
10540
|
+
replay: "replay";
|
|
10541
|
+
}>;
|
|
10542
|
+
step: z$1.ZodEnum<{
|
|
10543
|
+
agent: "agent";
|
|
10544
|
+
devices: "devices";
|
|
10545
|
+
plugins: "plugins";
|
|
10546
|
+
projects: "projects";
|
|
10547
|
+
}>;
|
|
10548
|
+
}, z$1.core.$strict>;
|
|
10549
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10550
|
+
name: z$1.ZodLiteral<"onboarding_step_skipped">;
|
|
10551
|
+
properties: z$1.ZodObject<{
|
|
10552
|
+
entry: z$1.ZodEnum<{
|
|
10553
|
+
first_run: "first_run";
|
|
10554
|
+
replay: "replay";
|
|
10555
|
+
}>;
|
|
10556
|
+
step: z$1.ZodEnum<{
|
|
10557
|
+
agent: "agent";
|
|
10558
|
+
devices: "devices";
|
|
10559
|
+
plugins: "plugins";
|
|
10560
|
+
projects: "projects";
|
|
10561
|
+
}>;
|
|
10562
|
+
}, z$1.core.$strict>;
|
|
10563
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10564
|
+
name: z$1.ZodLiteral<"onboarding_finished">;
|
|
10565
|
+
properties: z$1.ZodObject<{
|
|
10566
|
+
entry: z$1.ZodEnum<{
|
|
10567
|
+
first_run: "first_run";
|
|
10568
|
+
replay: "replay";
|
|
10569
|
+
}>;
|
|
10570
|
+
last_step: z$1.ZodEnum<{
|
|
10571
|
+
agent: "agent";
|
|
10572
|
+
devices: "devices";
|
|
10573
|
+
plugins: "plugins";
|
|
10574
|
+
projects: "projects";
|
|
10575
|
+
}>;
|
|
10576
|
+
outcome: z$1.ZodEnum<{
|
|
10577
|
+
completed: "completed";
|
|
10578
|
+
skipped: "skipped";
|
|
10579
|
+
}>;
|
|
10580
|
+
}, z$1.core.$strict>;
|
|
10581
|
+
}, z$1.core.$strict>], "name">;
|
|
10582
|
+
type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
|
|
10479
10583
|
declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
10480
10584
|
appearance: z$1.ZodObject<{
|
|
10481
10585
|
customCss: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -17174,6 +17278,7 @@ interface PluginCatalogInstallPlanArgs {
|
|
|
17174
17278
|
}
|
|
17175
17279
|
interface PluginMarketplaceAddArgs {
|
|
17176
17280
|
source: string;
|
|
17281
|
+
subdirectory?: string;
|
|
17177
17282
|
}
|
|
17178
17283
|
interface PluginMarketplaceListArgs {
|
|
17179
17284
|
signal?: AbortSignal;
|
|
@@ -17546,6 +17651,10 @@ type SystemAiServicesResult = SystemAiServicesResponse;
|
|
|
17546
17651
|
type SystemSetAiServiceSelectionArgs = SetAiServiceSelectionRequest;
|
|
17547
17652
|
type SystemTestAiServiceArgs = TestAiServiceRequest;
|
|
17548
17653
|
type SystemTestAiServiceResult = TestAiServiceResponse;
|
|
17654
|
+
type SystemRecordTelemetryEventArgs = RecordTelemetryEventRequest;
|
|
17655
|
+
interface SystemRecordTelemetryEventResult {
|
|
17656
|
+
ok: true;
|
|
17657
|
+
}
|
|
17549
17658
|
interface SystemAiServicesArgs {
|
|
17550
17659
|
signal?: AbortSignal;
|
|
17551
17660
|
}
|
|
@@ -17601,6 +17710,7 @@ interface SystemArea {
|
|
|
17601
17710
|
executionOptions(args?: SystemExecutionOptionsArgs): Promise<SystemExecutionOptionsResult>;
|
|
17602
17711
|
cliSkillsStatus(args?: SystemCliSkillsStatusArgs): Promise<SystemCliSkillsStatusResult>;
|
|
17603
17712
|
installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
|
|
17713
|
+
experimental_recordTelemetryEvent(args: SystemRecordTelemetryEventArgs): Promise<SystemRecordTelemetryEventResult>;
|
|
17604
17714
|
reloadConfig(): Promise<SystemReloadConfigResult>;
|
|
17605
17715
|
setAiServiceSelection(args: SystemSetAiServiceSelectionArgs): Promise<SystemAiServicesResult>;
|
|
17606
17716
|
testAiService(args: SystemTestAiServiceArgs): Promise<SystemTestAiServiceResult>;
|
|
@@ -18652,6 +18762,49 @@ interface PluginMessageDirectiveProps {
|
|
|
18652
18762
|
*/
|
|
18653
18763
|
openWorkspaceFile: PluginMessageDirectiveOpenWorkspaceFile | null;
|
|
18654
18764
|
}
|
|
18765
|
+
/**
|
|
18766
|
+
* Where a fenced code block stands while its message is written.
|
|
18767
|
+
*
|
|
18768
|
+
* - `"streaming"`: the closing delimiter has not arrived and the message is
|
|
18769
|
+
* still being written; `code` is a prefix of the final body.
|
|
18770
|
+
* - `"closed"`: the closing delimiter is present; `code` is final.
|
|
18771
|
+
* - `"unclosed"`: the message ended without a closing delimiter (for example
|
|
18772
|
+
* an interrupted reply); `code` will not grow.
|
|
18773
|
+
*
|
|
18774
|
+
* @experimental Audit before relying on this as a stable contract.
|
|
18775
|
+
*/
|
|
18776
|
+
type ExperimentalCodeFenceStatus = "closed" | "streaming" | "unclosed";
|
|
18777
|
+
/**
|
|
18778
|
+
* Props passed to an `experimental_codeFenceRenderer` component — one fenced
|
|
18779
|
+
* code block whose info-string language the plugin claimed, inside assistant
|
|
18780
|
+
* (or nested agent) message Markdown. BB mounts the component once per fence
|
|
18781
|
+
* and keeps that instance for as long as the message stays on screen, so
|
|
18782
|
+
* component state survives the whole stream, including the moment the fence
|
|
18783
|
+
* closes and the moment the reply finishes.
|
|
18784
|
+
*
|
|
18785
|
+
* @experimental Audit before relying on this as a stable contract.
|
|
18786
|
+
*/
|
|
18787
|
+
interface ExperimentalCodeFenceRendererProps {
|
|
18788
|
+
/** The fence body received so far, without the fence delimiters. */
|
|
18789
|
+
code: string;
|
|
18790
|
+
/** The matched lowercase info-string language (e.g. `"ui"`). */
|
|
18791
|
+
language: string;
|
|
18792
|
+
status: ExperimentalCodeFenceStatus;
|
|
18793
|
+
/**
|
|
18794
|
+
* Zero-based ordinal of this fence among the fences of the same language in
|
|
18795
|
+
* the same message. It does not change while the message streams, so
|
|
18796
|
+
* `${message.id}#${language}#${index}` keys state that must outlive the
|
|
18797
|
+
* mounted component (a reload, or the message scrolling out of the rendered
|
|
18798
|
+
* window).
|
|
18799
|
+
*/
|
|
18800
|
+
index: number;
|
|
18801
|
+
message: PluginMessageDirectiveMessage;
|
|
18802
|
+
/**
|
|
18803
|
+
* BB's own code block for this fence. Render it to show the source, for
|
|
18804
|
+
* example while `status` is `"streaming"` or when `code` does not parse.
|
|
18805
|
+
*/
|
|
18806
|
+
Original: ComponentType;
|
|
18807
|
+
}
|
|
18655
18808
|
interface PluginHomepageSectionRegistration {
|
|
18656
18809
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
18657
18810
|
id: string;
|
|
@@ -19768,6 +19921,30 @@ interface PluginMessageDirectiveRegistration {
|
|
|
19768
19921
|
id: string;
|
|
19769
19922
|
component: ComponentType<PluginMessageDirectiveProps>;
|
|
19770
19923
|
}
|
|
19924
|
+
/**
|
|
19925
|
+
* Render fenced code blocks of chosen languages inside assistant (and nested
|
|
19926
|
+
* agent) message Markdown. ` ```ui ` matches a registration whose `languages`
|
|
19927
|
+
* include `"ui"`. Fences elsewhere (user messages, file previews, plugin
|
|
19928
|
+
* Markdown) keep BB's code block.
|
|
19929
|
+
*
|
|
19930
|
+
* BB's code block also renders when two plugins claim the same language (BB
|
|
19931
|
+
* logs a warning naming them), when the plugin is disabled, and for a fence
|
|
19932
|
+
* whose component throws. A throw affects that fence only, and BB tries the
|
|
19933
|
+
* component again when the fence's `code` or `status` changes.
|
|
19934
|
+
*
|
|
19935
|
+
* @experimental Audit before relying on this as a stable contract.
|
|
19936
|
+
*/
|
|
19937
|
+
interface ExperimentalCodeFenceRendererRegistration {
|
|
19938
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
19939
|
+
id: string;
|
|
19940
|
+
/**
|
|
19941
|
+
* Lowercase info-string languages, e.g. `["ui", "app"]`. Each starts with a
|
|
19942
|
+
* letter or digit and contains only `a-z`, `0-9`, `+`, `#`, `.`, `_`, `-`.
|
|
19943
|
+
* A language may be claimed once per plugin.
|
|
19944
|
+
*/
|
|
19945
|
+
languages: readonly string[];
|
|
19946
|
+
component: ComponentType<ExperimentalCodeFenceRendererProps>;
|
|
19947
|
+
}
|
|
19771
19948
|
/**
|
|
19772
19949
|
* A narrow, stable reference to one rendered chat message — NOT an internal
|
|
19773
19950
|
* timeline row. `sourceSeqEnd` is the last source event sequence the message
|
|
@@ -20177,6 +20354,12 @@ interface PluginAppSlots {
|
|
|
20177
20354
|
*/
|
|
20178
20355
|
experimental_diffRenderer(registration: PluginDiffRendererRegistration): void;
|
|
20179
20356
|
messageDirective(registration: PluginMessageDirectiveRegistration): void;
|
|
20357
|
+
/**
|
|
20358
|
+
* Render fenced code blocks of chosen languages in assistant messages (see
|
|
20359
|
+
* {@link ExperimentalCodeFenceRendererRegistration}). Experimental: see
|
|
20360
|
+
* docs/api_to_audit.md.
|
|
20361
|
+
*/
|
|
20362
|
+
experimental_codeFenceRenderer(registration: ExperimentalCodeFenceRendererRegistration): void;
|
|
20180
20363
|
messageAction(registration: PluginMessageActionRegistration): void;
|
|
20181
20364
|
/**
|
|
20182
20365
|
* @deprecated Use `app.commands.register` with the same registration.
|
|
@@ -21693,4 +21876,4 @@ declare const experimental_useCodeTheme: () => PluginCodeThemeState;
|
|
|
21693
21876
|
declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
21694
21877
|
|
|
21695
21878
|
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
21696
|
-
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, 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, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
21879
|
+
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, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, 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, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
9
|
+
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
10
10
|
|
|
11
11
|
type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
|
|
12
12
|
interface ExperimentalSidebarFooterRuntimeSnapshot {
|
|
@@ -76,6 +76,7 @@ interface CollectedPluginAppRegistrations {
|
|
|
76
76
|
sourceCodeRenderers: PluginSourceCodeRendererRegistration[];
|
|
77
77
|
diffRenderers: PluginDiffRendererRegistration[];
|
|
78
78
|
messageDirectives: PluginMessageDirectiveRegistration[];
|
|
79
|
+
codeFenceRenderers: ExperimentalCodeFenceRendererRegistration[];
|
|
79
80
|
messageActions: PluginMessageActionRegistration[];
|
|
80
81
|
commandPaletteActions: CollectedPluginCommandRegistration[];
|
|
81
82
|
providerIcons: CollectedPluginProviderIconRegistration[];
|
|
@@ -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, 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, 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';
|
|
11
11
|
|
|
12
12
|
type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
|
|
13
13
|
interface ExperimentalSidebarFooterRuntimeSnapshot {
|
|
@@ -191,6 +191,7 @@ interface CapturedPluginApp {
|
|
|
191
191
|
sourceCodeRenderers: PluginSourceCodeRendererRegistration[];
|
|
192
192
|
diffRenderers: PluginDiffRendererRegistration[];
|
|
193
193
|
messageDirectives: PluginMessageDirectiveRegistration[];
|
|
194
|
+
codeFenceRenderers: ExperimentalCodeFenceRendererRegistration[];
|
|
194
195
|
messageActions: PluginMessageActionRegistration[];
|
|
195
196
|
providerIcons: CollectedPluginProviderIconRegistration[];
|
|
196
197
|
icons: ExperimentalIconRegistration[];
|
|
@@ -10159,6 +10159,7 @@ declare const pluginMarketplaceSchema: z$1.ZodObject<{
|
|
|
10159
10159
|
https: "https";
|
|
10160
10160
|
path: "path";
|
|
10161
10161
|
}>;
|
|
10162
|
+
subdirectory: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
10162
10163
|
}, z$1.core.$strip>;
|
|
10163
10164
|
type PluginMarketplace = z$1.infer<typeof pluginMarketplaceSchema>;
|
|
10164
10165
|
declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
|
|
@@ -10179,6 +10180,7 @@ declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
|
|
|
10179
10180
|
https: "https";
|
|
10180
10181
|
path: "path";
|
|
10181
10182
|
}>;
|
|
10183
|
+
subdirectory: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
10182
10184
|
}, z$1.core.$strip>;
|
|
10183
10185
|
name: z$1.ZodString;
|
|
10184
10186
|
ok: z$1.ZodBoolean;
|
|
@@ -10535,6 +10537,108 @@ declare const testAiServiceResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
|
|
|
10535
10537
|
ok: z$1.ZodLiteral<false>;
|
|
10536
10538
|
}, z$1.core.$strip>], "ok">;
|
|
10537
10539
|
type TestAiServiceResponse = z$1.infer<typeof testAiServiceResponseSchema>;
|
|
10540
|
+
declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10541
|
+
name: z$1.ZodLiteral<"onboarding_agent_state">;
|
|
10542
|
+
properties: z$1.ZodObject<{
|
|
10543
|
+
agent_installed: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
10544
|
+
agent_ready: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
10545
|
+
entry: z$1.ZodEnum<{
|
|
10546
|
+
first_run: "first_run";
|
|
10547
|
+
replay: "replay";
|
|
10548
|
+
}>;
|
|
10549
|
+
}, z$1.core.$strict>;
|
|
10550
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10551
|
+
name: z$1.ZodLiteral<"onboarding_sign_in">;
|
|
10552
|
+
properties: z$1.ZodObject<{
|
|
10553
|
+
entry: z$1.ZodEnum<{
|
|
10554
|
+
first_run: "first_run";
|
|
10555
|
+
replay: "replay";
|
|
10556
|
+
}>;
|
|
10557
|
+
outcome: z$1.ZodEnum<{
|
|
10558
|
+
cancelled: "cancelled";
|
|
10559
|
+
exited: "exited";
|
|
10560
|
+
failed: "failed";
|
|
10561
|
+
ready: "ready";
|
|
10562
|
+
started: "started";
|
|
10563
|
+
}>;
|
|
10564
|
+
}, z$1.core.$strict>;
|
|
10565
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10566
|
+
name: z$1.ZodLiteral<"new_thread_submit">;
|
|
10567
|
+
properties: z$1.ZodObject<{
|
|
10568
|
+
outcome: z$1.ZodEnum<{
|
|
10569
|
+
accepted: "accepted";
|
|
10570
|
+
failed: "failed";
|
|
10571
|
+
started: "started";
|
|
10572
|
+
}>;
|
|
10573
|
+
}, z$1.core.$strict>;
|
|
10574
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10575
|
+
name: z$1.ZodLiteral<"onboarding_started">;
|
|
10576
|
+
properties: z$1.ZodObject<{
|
|
10577
|
+
agent_installed: z$1.ZodBoolean;
|
|
10578
|
+
agent_ready: z$1.ZodBoolean;
|
|
10579
|
+
}, z$1.core.$strict>;
|
|
10580
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10581
|
+
name: z$1.ZodLiteral<"onboarding_step_reached">;
|
|
10582
|
+
properties: z$1.ZodObject<{
|
|
10583
|
+
entry: z$1.ZodEnum<{
|
|
10584
|
+
first_run: "first_run";
|
|
10585
|
+
replay: "replay";
|
|
10586
|
+
}>;
|
|
10587
|
+
step: z$1.ZodEnum<{
|
|
10588
|
+
agent: "agent";
|
|
10589
|
+
devices: "devices";
|
|
10590
|
+
plugins: "plugins";
|
|
10591
|
+
projects: "projects";
|
|
10592
|
+
}>;
|
|
10593
|
+
}, z$1.core.$strict>;
|
|
10594
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10595
|
+
name: z$1.ZodLiteral<"onboarding_step_completed">;
|
|
10596
|
+
properties: z$1.ZodObject<{
|
|
10597
|
+
entry: z$1.ZodEnum<{
|
|
10598
|
+
first_run: "first_run";
|
|
10599
|
+
replay: "replay";
|
|
10600
|
+
}>;
|
|
10601
|
+
step: z$1.ZodEnum<{
|
|
10602
|
+
agent: "agent";
|
|
10603
|
+
devices: "devices";
|
|
10604
|
+
plugins: "plugins";
|
|
10605
|
+
projects: "projects";
|
|
10606
|
+
}>;
|
|
10607
|
+
}, z$1.core.$strict>;
|
|
10608
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10609
|
+
name: z$1.ZodLiteral<"onboarding_step_skipped">;
|
|
10610
|
+
properties: z$1.ZodObject<{
|
|
10611
|
+
entry: z$1.ZodEnum<{
|
|
10612
|
+
first_run: "first_run";
|
|
10613
|
+
replay: "replay";
|
|
10614
|
+
}>;
|
|
10615
|
+
step: z$1.ZodEnum<{
|
|
10616
|
+
agent: "agent";
|
|
10617
|
+
devices: "devices";
|
|
10618
|
+
plugins: "plugins";
|
|
10619
|
+
projects: "projects";
|
|
10620
|
+
}>;
|
|
10621
|
+
}, z$1.core.$strict>;
|
|
10622
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10623
|
+
name: z$1.ZodLiteral<"onboarding_finished">;
|
|
10624
|
+
properties: z$1.ZodObject<{
|
|
10625
|
+
entry: z$1.ZodEnum<{
|
|
10626
|
+
first_run: "first_run";
|
|
10627
|
+
replay: "replay";
|
|
10628
|
+
}>;
|
|
10629
|
+
last_step: z$1.ZodEnum<{
|
|
10630
|
+
agent: "agent";
|
|
10631
|
+
devices: "devices";
|
|
10632
|
+
plugins: "plugins";
|
|
10633
|
+
projects: "projects";
|
|
10634
|
+
}>;
|
|
10635
|
+
outcome: z$1.ZodEnum<{
|
|
10636
|
+
completed: "completed";
|
|
10637
|
+
skipped: "skipped";
|
|
10638
|
+
}>;
|
|
10639
|
+
}, z$1.core.$strict>;
|
|
10640
|
+
}, z$1.core.$strict>], "name">;
|
|
10641
|
+
type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
|
|
10538
10642
|
declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
10539
10643
|
appearance: z$1.ZodObject<{
|
|
10540
10644
|
customCss: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -17245,6 +17349,7 @@ interface PluginCatalogInstallPlanArgs {
|
|
|
17245
17349
|
}
|
|
17246
17350
|
interface PluginMarketplaceAddArgs {
|
|
17247
17351
|
source: string;
|
|
17352
|
+
subdirectory?: string;
|
|
17248
17353
|
}
|
|
17249
17354
|
interface PluginMarketplaceListArgs {
|
|
17250
17355
|
signal?: AbortSignal;
|
|
@@ -17617,6 +17722,10 @@ type SystemAiServicesResult = SystemAiServicesResponse;
|
|
|
17617
17722
|
type SystemSetAiServiceSelectionArgs = SetAiServiceSelectionRequest;
|
|
17618
17723
|
type SystemTestAiServiceArgs = TestAiServiceRequest;
|
|
17619
17724
|
type SystemTestAiServiceResult = TestAiServiceResponse;
|
|
17725
|
+
type SystemRecordTelemetryEventArgs = RecordTelemetryEventRequest;
|
|
17726
|
+
interface SystemRecordTelemetryEventResult {
|
|
17727
|
+
ok: true;
|
|
17728
|
+
}
|
|
17620
17729
|
interface SystemAiServicesArgs {
|
|
17621
17730
|
signal?: AbortSignal;
|
|
17622
17731
|
}
|
|
@@ -17672,6 +17781,7 @@ interface SystemArea {
|
|
|
17672
17781
|
executionOptions(args?: SystemExecutionOptionsArgs): Promise<SystemExecutionOptionsResult>;
|
|
17673
17782
|
cliSkillsStatus(args?: SystemCliSkillsStatusArgs): Promise<SystemCliSkillsStatusResult>;
|
|
17674
17783
|
installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
|
|
17784
|
+
experimental_recordTelemetryEvent(args: SystemRecordTelemetryEventArgs): Promise<SystemRecordTelemetryEventResult>;
|
|
17675
17785
|
reloadConfig(): Promise<SystemReloadConfigResult>;
|
|
17676
17786
|
setAiServiceSelection(args: SystemSetAiServiceSelectionArgs): Promise<SystemAiServicesResult>;
|
|
17677
17787
|
testAiService(args: SystemTestAiServiceArgs): Promise<SystemTestAiServiceResult>;
|
|
@@ -18836,6 +18946,49 @@ interface PluginMessageDirectiveProps {
|
|
|
18836
18946
|
*/
|
|
18837
18947
|
openWorkspaceFile: PluginMessageDirectiveOpenWorkspaceFile | null;
|
|
18838
18948
|
}
|
|
18949
|
+
/**
|
|
18950
|
+
* Where a fenced code block stands while its message is written.
|
|
18951
|
+
*
|
|
18952
|
+
* - `"streaming"`: the closing delimiter has not arrived and the message is
|
|
18953
|
+
* still being written; `code` is a prefix of the final body.
|
|
18954
|
+
* - `"closed"`: the closing delimiter is present; `code` is final.
|
|
18955
|
+
* - `"unclosed"`: the message ended without a closing delimiter (for example
|
|
18956
|
+
* an interrupted reply); `code` will not grow.
|
|
18957
|
+
*
|
|
18958
|
+
* @experimental Audit before relying on this as a stable contract.
|
|
18959
|
+
*/
|
|
18960
|
+
type ExperimentalCodeFenceStatus = "closed" | "streaming" | "unclosed";
|
|
18961
|
+
/**
|
|
18962
|
+
* Props passed to an `experimental_codeFenceRenderer` component — one fenced
|
|
18963
|
+
* code block whose info-string language the plugin claimed, inside assistant
|
|
18964
|
+
* (or nested agent) message Markdown. BB mounts the component once per fence
|
|
18965
|
+
* and keeps that instance for as long as the message stays on screen, so
|
|
18966
|
+
* component state survives the whole stream, including the moment the fence
|
|
18967
|
+
* closes and the moment the reply finishes.
|
|
18968
|
+
*
|
|
18969
|
+
* @experimental Audit before relying on this as a stable contract.
|
|
18970
|
+
*/
|
|
18971
|
+
interface ExperimentalCodeFenceRendererProps {
|
|
18972
|
+
/** The fence body received so far, without the fence delimiters. */
|
|
18973
|
+
code: string;
|
|
18974
|
+
/** The matched lowercase info-string language (e.g. `"ui"`). */
|
|
18975
|
+
language: string;
|
|
18976
|
+
status: ExperimentalCodeFenceStatus;
|
|
18977
|
+
/**
|
|
18978
|
+
* Zero-based ordinal of this fence among the fences of the same language in
|
|
18979
|
+
* the same message. It does not change while the message streams, so
|
|
18980
|
+
* `${message.id}#${language}#${index}` keys state that must outlive the
|
|
18981
|
+
* mounted component (a reload, or the message scrolling out of the rendered
|
|
18982
|
+
* window).
|
|
18983
|
+
*/
|
|
18984
|
+
index: number;
|
|
18985
|
+
message: PluginMessageDirectiveMessage;
|
|
18986
|
+
/**
|
|
18987
|
+
* BB's own code block for this fence. Render it to show the source, for
|
|
18988
|
+
* example while `status` is `"streaming"` or when `code` does not parse.
|
|
18989
|
+
*/
|
|
18990
|
+
Original: ComponentType;
|
|
18991
|
+
}
|
|
18839
18992
|
interface PluginHomepageSectionRegistration {
|
|
18840
18993
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
18841
18994
|
id: string;
|
|
@@ -19952,6 +20105,30 @@ interface PluginMessageDirectiveRegistration {
|
|
|
19952
20105
|
id: string;
|
|
19953
20106
|
component: ComponentType<PluginMessageDirectiveProps>;
|
|
19954
20107
|
}
|
|
20108
|
+
/**
|
|
20109
|
+
* Render fenced code blocks of chosen languages inside assistant (and nested
|
|
20110
|
+
* agent) message Markdown. ` ```ui ` matches a registration whose `languages`
|
|
20111
|
+
* include `"ui"`. Fences elsewhere (user messages, file previews, plugin
|
|
20112
|
+
* Markdown) keep BB's code block.
|
|
20113
|
+
*
|
|
20114
|
+
* BB's code block also renders when two plugins claim the same language (BB
|
|
20115
|
+
* logs a warning naming them), when the plugin is disabled, and for a fence
|
|
20116
|
+
* whose component throws. A throw affects that fence only, and BB tries the
|
|
20117
|
+
* component again when the fence's `code` or `status` changes.
|
|
20118
|
+
*
|
|
20119
|
+
* @experimental Audit before relying on this as a stable contract.
|
|
20120
|
+
*/
|
|
20121
|
+
interface ExperimentalCodeFenceRendererRegistration {
|
|
20122
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
20123
|
+
id: string;
|
|
20124
|
+
/**
|
|
20125
|
+
* Lowercase info-string languages, e.g. `["ui", "app"]`. Each starts with a
|
|
20126
|
+
* letter or digit and contains only `a-z`, `0-9`, `+`, `#`, `.`, `_`, `-`.
|
|
20127
|
+
* A language may be claimed once per plugin.
|
|
20128
|
+
*/
|
|
20129
|
+
languages: readonly string[];
|
|
20130
|
+
component: ComponentType<ExperimentalCodeFenceRendererProps>;
|
|
20131
|
+
}
|
|
19955
20132
|
/**
|
|
19956
20133
|
* A narrow, stable reference to one rendered chat message — NOT an internal
|
|
19957
20134
|
* timeline row. `sourceSeqEnd` is the last source event sequence the message
|
|
@@ -20361,6 +20538,12 @@ interface PluginAppSlots {
|
|
|
20361
20538
|
*/
|
|
20362
20539
|
experimental_diffRenderer(registration: PluginDiffRendererRegistration): void;
|
|
20363
20540
|
messageDirective(registration: PluginMessageDirectiveRegistration): void;
|
|
20541
|
+
/**
|
|
20542
|
+
* Render fenced code blocks of chosen languages in assistant messages (see
|
|
20543
|
+
* {@link ExperimentalCodeFenceRendererRegistration}). Experimental: see
|
|
20544
|
+
* docs/api_to_audit.md.
|
|
20545
|
+
*/
|
|
20546
|
+
experimental_codeFenceRenderer(registration: ExperimentalCodeFenceRendererRegistration): void;
|
|
20364
20547
|
messageAction(registration: PluginMessageActionRegistration): void;
|
|
20365
20548
|
/**
|
|
20366
20549
|
* @deprecated Use `app.commands.register` with the same registration.
|
|
@@ -24261,4 +24444,4 @@ declare const experimental_THREAD_ACTION_GROUPS: {
|
|
|
24261
24444
|
};
|
|
24262
24445
|
|
|
24263
24446
|
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_THREAD_ACTION_GROUPS, experimental_defineHostEntry };
|
|
24264
|
-
export type { BbContext, BbNavigate, BbPluginApi, 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, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
24447
|
+
export type { BbContext, BbNavigate, BbPluginApi, 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, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
@@ -248,6 +248,7 @@ function collectComposerCustomization(registration, seenIds, onRejected, seenPop
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
// src/internal/plugin-app-collector.ts
|
|
251
|
+
var CODE_FENCE_LANGUAGE_PATTERN = /^[a-z0-9][a-z0-9+#._-]*$/;
|
|
251
252
|
var sidebarFooterCommandSequence = 0;
|
|
252
253
|
var SIDEBAR_FOOTER_ACTION_KEYS = /* @__PURE__ */ new Set([
|
|
253
254
|
"id",
|
|
@@ -477,6 +478,7 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
|
|
|
477
478
|
sourceCodeRenderers: [],
|
|
478
479
|
diffRenderers: [],
|
|
479
480
|
messageDirectives: [],
|
|
481
|
+
codeFenceRenderers: [],
|
|
480
482
|
messageActions: [],
|
|
481
483
|
commandPaletteActions: [],
|
|
482
484
|
providerIcons: [],
|
|
@@ -506,6 +508,8 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
|
|
|
506
508
|
sourceCodeRenderer: /* @__PURE__ */ new Set(),
|
|
507
509
|
diffRenderer: /* @__PURE__ */ new Set(),
|
|
508
510
|
messageDirective: /* @__PURE__ */ new Set(),
|
|
511
|
+
codeFenceRenderer: /* @__PURE__ */ new Set(),
|
|
512
|
+
codeFenceLanguage: /* @__PURE__ */ new Set(),
|
|
509
513
|
messageAction: /* @__PURE__ */ new Set(),
|
|
510
514
|
command: /* @__PURE__ */ new Set(),
|
|
511
515
|
providerIcon: /* @__PURE__ */ new Set(),
|
|
@@ -822,6 +826,34 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
|
|
|
822
826
|
component: requireComponent(kind, registration.component)
|
|
823
827
|
});
|
|
824
828
|
},
|
|
829
|
+
experimental_codeFenceRenderer(registration) {
|
|
830
|
+
const kind = "slots.experimental_codeFenceRenderer";
|
|
831
|
+
const id = requireSlotId(kind, registration?.id);
|
|
832
|
+
requireUniqueId(kind, seenIds.codeFenceRenderer, id);
|
|
833
|
+
const rawLanguages = registration.languages;
|
|
834
|
+
if (!Array.isArray(rawLanguages) || rawLanguages.length === 0) {
|
|
835
|
+
throw new Error(
|
|
836
|
+
`${kind}: "languages" must be a non-empty array of lowercase info-string languages`
|
|
837
|
+
);
|
|
838
|
+
}
|
|
839
|
+
const languages = rawLanguages.map((language) => {
|
|
840
|
+
if (typeof language !== "string" || !CODE_FENCE_LANGUAGE_PATTERN.test(language)) {
|
|
841
|
+
throw new Error(
|
|
842
|
+
`${kind}: languages must match ${CODE_FENCE_LANGUAGE_PATTERN}, got ${JSON.stringify(language)}`
|
|
843
|
+
);
|
|
844
|
+
}
|
|
845
|
+
if (seenIds.codeFenceLanguage.has(language)) {
|
|
846
|
+
throw new Error(`${kind}: duplicate language "${language}"`);
|
|
847
|
+
}
|
|
848
|
+
seenIds.codeFenceLanguage.add(language);
|
|
849
|
+
return language;
|
|
850
|
+
});
|
|
851
|
+
collected.codeFenceRenderers.push({
|
|
852
|
+
id,
|
|
853
|
+
languages,
|
|
854
|
+
component: requireComponent(kind, registration.component)
|
|
855
|
+
});
|
|
856
|
+
},
|
|
825
857
|
messageAction(registration) {
|
|
826
858
|
const kind = "slots.messageAction";
|
|
827
859
|
const id = requireSlotId(kind, registration?.id);
|
package/dist/testing/app.js
CHANGED
|
@@ -967,6 +967,7 @@ var experimental_THREAD_ACTION_GROUPS = {
|
|
|
967
967
|
|
|
968
968
|
// src/internal/plugin-app-collector.ts
|
|
969
969
|
import { z as z2 } from "zod";
|
|
970
|
+
var CODE_FENCE_LANGUAGE_PATTERN = /^[a-z0-9][a-z0-9+#._-]*$/;
|
|
970
971
|
var sidebarFooterCommandSequence = 0;
|
|
971
972
|
var SIDEBAR_FOOTER_ACTION_KEYS = /* @__PURE__ */ new Set([
|
|
972
973
|
"id",
|
|
@@ -1193,6 +1194,7 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
|
|
|
1193
1194
|
sourceCodeRenderers: [],
|
|
1194
1195
|
diffRenderers: [],
|
|
1195
1196
|
messageDirectives: [],
|
|
1197
|
+
codeFenceRenderers: [],
|
|
1196
1198
|
messageActions: [],
|
|
1197
1199
|
commandPaletteActions: [],
|
|
1198
1200
|
providerIcons: [],
|
|
@@ -1222,6 +1224,8 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
|
|
|
1222
1224
|
sourceCodeRenderer: /* @__PURE__ */ new Set(),
|
|
1223
1225
|
diffRenderer: /* @__PURE__ */ new Set(),
|
|
1224
1226
|
messageDirective: /* @__PURE__ */ new Set(),
|
|
1227
|
+
codeFenceRenderer: /* @__PURE__ */ new Set(),
|
|
1228
|
+
codeFenceLanguage: /* @__PURE__ */ new Set(),
|
|
1225
1229
|
messageAction: /* @__PURE__ */ new Set(),
|
|
1226
1230
|
command: /* @__PURE__ */ new Set(),
|
|
1227
1231
|
providerIcon: /* @__PURE__ */ new Set(),
|
|
@@ -1538,6 +1542,34 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
|
|
|
1538
1542
|
component: requireComponent(kind, registration.component)
|
|
1539
1543
|
});
|
|
1540
1544
|
},
|
|
1545
|
+
experimental_codeFenceRenderer(registration) {
|
|
1546
|
+
const kind = "slots.experimental_codeFenceRenderer";
|
|
1547
|
+
const id = requireSlotId(kind, registration?.id);
|
|
1548
|
+
requireUniqueId(kind, seenIds.codeFenceRenderer, id);
|
|
1549
|
+
const rawLanguages = registration.languages;
|
|
1550
|
+
if (!Array.isArray(rawLanguages) || rawLanguages.length === 0) {
|
|
1551
|
+
throw new Error(
|
|
1552
|
+
`${kind}: "languages" must be a non-empty array of lowercase info-string languages`
|
|
1553
|
+
);
|
|
1554
|
+
}
|
|
1555
|
+
const languages = rawLanguages.map((language) => {
|
|
1556
|
+
if (typeof language !== "string" || !CODE_FENCE_LANGUAGE_PATTERN.test(language)) {
|
|
1557
|
+
throw new Error(
|
|
1558
|
+
`${kind}: languages must match ${CODE_FENCE_LANGUAGE_PATTERN}, got ${JSON.stringify(language)}`
|
|
1559
|
+
);
|
|
1560
|
+
}
|
|
1561
|
+
if (seenIds.codeFenceLanguage.has(language)) {
|
|
1562
|
+
throw new Error(`${kind}: duplicate language "${language}"`);
|
|
1563
|
+
}
|
|
1564
|
+
seenIds.codeFenceLanguage.add(language);
|
|
1565
|
+
return language;
|
|
1566
|
+
});
|
|
1567
|
+
collected.codeFenceRenderers.push({
|
|
1568
|
+
id,
|
|
1569
|
+
languages,
|
|
1570
|
+
component: requireComponent(kind, registration.component)
|
|
1571
|
+
});
|
|
1572
|
+
},
|
|
1541
1573
|
messageAction(registration) {
|
|
1542
1574
|
const kind = "slots.messageAction";
|
|
1543
1575
|
const id = requireSlotId(kind, registration?.id);
|