@get-bb/plugin-sdk 0.6.112 → 0.6.116
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 +58 -1
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +8 -3
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +10 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +10 -1
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk.d.ts +85 -5
- package/dist/index.js +161 -1
- package/dist/internal/plugin-app-collector.js +11 -0
- package/dist/internal/rpc-query-host.js +4 -2
- package/dist/provider-bridge-acp-next.js +30 -22
- package/dist/provider-bridge-acp.js +30 -22
- package/dist/replay-provider-child.mjs +21 -22
- package/dist/testing/app.js +15 -2
- package/package.json +1 -1
|
@@ -4500,6 +4500,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
4500
4500
|
kind: z$1.ZodLiteral<"plugin">;
|
|
4501
4501
|
pluginId: z$1.ZodString;
|
|
4502
4502
|
reason: z$1.ZodString;
|
|
4503
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4504
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
4503
4505
|
}, z$1.core.$strip>], "kind">>;
|
|
4504
4506
|
}, z$1.core.$strip>;
|
|
4505
4507
|
type ThreadQueuedMessage = z$1.infer<typeof threadQueuedMessageSchema>;
|
|
@@ -10049,6 +10051,7 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10049
10051
|
name: z$1.ZodLiteral<"recommendation">;
|
|
10050
10052
|
properties: z$1.ZodObject<{
|
|
10051
10053
|
action: z$1.ZodEnum<{
|
|
10054
|
+
deselected: "deselected";
|
|
10052
10055
|
selected: "selected";
|
|
10053
10056
|
shown: "shown";
|
|
10054
10057
|
}>;
|
|
@@ -10142,6 +10145,14 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10142
10145
|
started: "started";
|
|
10143
10146
|
}>;
|
|
10144
10147
|
}, z$1.core.$strict>;
|
|
10148
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10149
|
+
name: z$1.ZodLiteral<"onboarding_exposed">;
|
|
10150
|
+
properties: z$1.ZodObject<{
|
|
10151
|
+
entry: z$1.ZodEnum<{
|
|
10152
|
+
first_run: "first_run";
|
|
10153
|
+
replay: "replay";
|
|
10154
|
+
}>;
|
|
10155
|
+
}, z$1.core.$strict>;
|
|
10145
10156
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10146
10157
|
name: z$1.ZodLiteral<"onboarding_started">;
|
|
10147
10158
|
properties: z$1.ZodObject<{
|
|
@@ -10222,6 +10233,14 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10222
10233
|
properties: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
10223
10234
|
}, z$1.core.$strict>], "name">;
|
|
10224
10235
|
type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
|
|
10236
|
+
declare const systemSetupGuideResponseSchema: z$1.ZodObject<{
|
|
10237
|
+
featuredPluginEntryIds: z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>;
|
|
10238
|
+
variant: z$1.ZodEnum<{
|
|
10239
|
+
control: "control";
|
|
10240
|
+
new: "new";
|
|
10241
|
+
}>;
|
|
10242
|
+
}, z$1.core.$strip>;
|
|
10243
|
+
type SystemSetupGuideResponse = z$1.infer<typeof systemSetupGuideResponseSchema>;
|
|
10225
10244
|
declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
10226
10245
|
appearance: z$1.ZodObject<{
|
|
10227
10246
|
customCss: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -13140,6 +13159,8 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
13140
13159
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13141
13160
|
pluginId: z$1.ZodString;
|
|
13142
13161
|
reason: z$1.ZodString;
|
|
13162
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13163
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13143
13164
|
}, z$1.core.$strip>], "kind">>;
|
|
13144
13165
|
}, z$1.core.$strip>;
|
|
13145
13166
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -13311,6 +13332,8 @@ declare const retryTurnResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<
|
|
|
13311
13332
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13312
13333
|
pluginId: z$1.ZodString;
|
|
13313
13334
|
reason: z$1.ZodString;
|
|
13335
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13336
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13314
13337
|
}, z$1.core.$strip>], "kind">;
|
|
13315
13338
|
}, z$1.core.$strip>], "delivery">;
|
|
13316
13339
|
type RetryTurnResponse = z$1.infer<typeof retryTurnResponseSchema>;
|
|
@@ -13720,6 +13743,8 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
13720
13743
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13721
13744
|
pluginId: z$1.ZodString;
|
|
13722
13745
|
reason: z$1.ZodString;
|
|
13746
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13747
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13723
13748
|
}, z$1.core.$strip>], "kind">>;
|
|
13724
13749
|
}, z$1.core.$strip>;
|
|
13725
13750
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -14715,6 +14740,8 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
14715
14740
|
kind: z$1.ZodLiteral<"plugin">;
|
|
14716
14741
|
pluginId: z$1.ZodString;
|
|
14717
14742
|
reason: z$1.ZodString;
|
|
14743
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
14744
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
14718
14745
|
}, z$1.core.$strip>], "kind">>;
|
|
14719
14746
|
}, z$1.core.$strip>>;
|
|
14720
14747
|
type ThreadQueuedMessageListResponse = z$1.infer<typeof threadQueuedMessageListResponseSchema>;
|
|
@@ -18118,6 +18145,10 @@ type SystemRecordTelemetryEventArgs = RecordTelemetryEventRequest;
|
|
|
18118
18145
|
interface SystemRecordTelemetryEventResult {
|
|
18119
18146
|
ok: true;
|
|
18120
18147
|
}
|
|
18148
|
+
interface SystemSetupGuideArgs {
|
|
18149
|
+
signal?: AbortSignal;
|
|
18150
|
+
}
|
|
18151
|
+
type SystemSetupGuideResult = SystemSetupGuideResponse;
|
|
18121
18152
|
interface SystemAiServicesArgs {
|
|
18122
18153
|
signal?: AbortSignal;
|
|
18123
18154
|
}
|
|
@@ -18174,6 +18205,7 @@ interface SystemArea {
|
|
|
18174
18205
|
cliSkillsStatus(args?: SystemCliSkillsStatusArgs): Promise<SystemCliSkillsStatusResult>;
|
|
18175
18206
|
installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
|
|
18176
18207
|
experimental_recordTelemetryEvent(args: SystemRecordTelemetryEventArgs): Promise<SystemRecordTelemetryEventResult>;
|
|
18208
|
+
experimental_setupGuide(args?: SystemSetupGuideArgs): Promise<SystemSetupGuideResult>;
|
|
18177
18209
|
reloadConfig(): Promise<SystemReloadConfigResult>;
|
|
18178
18210
|
setAiServiceSelection(args: SystemSetAiServiceSelectionArgs): Promise<SystemAiServicesResult>;
|
|
18179
18211
|
testAiService(args: SystemTestAiServiceArgs): Promise<SystemTestAiServiceResult>;
|
|
@@ -18883,6 +18915,16 @@ interface PluginSettingsSectionProps {
|
|
|
18883
18915
|
*/
|
|
18884
18916
|
interface ExperimentalAppOverlayProps {
|
|
18885
18917
|
}
|
|
18918
|
+
/**
|
|
18919
|
+
* Props passed to an `internal_DO_NOT_USE_setupGuideSection` component.
|
|
18920
|
+
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
18921
|
+
*/
|
|
18922
|
+
interface InternalDoNotUseSetupGuideSectionProps {
|
|
18923
|
+
/** True when the setup guide is open on a phone. */
|
|
18924
|
+
onPhone: boolean;
|
|
18925
|
+
/** Call when the user starts setting up this section. */
|
|
18926
|
+
onSetupStarted: () => void;
|
|
18927
|
+
}
|
|
18886
18928
|
type ExperimentalPageTitle = ({
|
|
18887
18929
|
title: string;
|
|
18888
18930
|
breadcrumbs?: never;
|
|
@@ -19600,6 +19642,15 @@ interface ExperimentalAppOverlayRegistration {
|
|
|
19600
19642
|
id: string;
|
|
19601
19643
|
component: ComponentType<ExperimentalAppOverlayProps>;
|
|
19602
19644
|
}
|
|
19645
|
+
/**
|
|
19646
|
+
* Render one row in the first-run setup guide's "Where you use bb" group.
|
|
19647
|
+
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
19648
|
+
*/
|
|
19649
|
+
interface InternalDoNotUseSetupGuideSectionRegistration {
|
|
19650
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
19651
|
+
id: string;
|
|
19652
|
+
component: ComponentType<InternalDoNotUseSetupGuideSectionProps>;
|
|
19653
|
+
}
|
|
19603
19654
|
/**
|
|
19604
19655
|
* A name the host resolves to a glyph, in this order: a name any plugin
|
|
19605
19656
|
* registered with `app.experimental_icons.register()`, then a built-in BB icon
|
|
@@ -22200,6 +22251,12 @@ interface PluginAppSlots {
|
|
|
22200
22251
|
* docs/api_to_audit.md.
|
|
22201
22252
|
*/
|
|
22202
22253
|
experimental_appOverlay(registration: ExperimentalAppOverlayRegistration): void;
|
|
22254
|
+
/**
|
|
22255
|
+
* Render a setup guide row (see
|
|
22256
|
+
* {@link InternalDoNotUseSetupGuideSectionRegistration}). Internal: see
|
|
22257
|
+
* docs/api_to_audit.md.
|
|
22258
|
+
*/
|
|
22259
|
+
internal_DO_NOT_USE_setupGuideSection(registration: InternalDoNotUseSetupGuideSectionRegistration): void;
|
|
22203
22260
|
navPanel(registration: PluginNavPanelRegistration): void;
|
|
22204
22261
|
/** Register a context-scoped tab. Experimental: see docs/api_to_audit.md. */
|
|
22205
22262
|
experimental_tab<C extends ExperimentalTabContext, A extends "action" | "fixed">(registration: ExperimentalTabInput<C, A>): void;
|
|
@@ -24349,4 +24406,4 @@ declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
|
24349
24406
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
24350
24407
|
|
|
24351
24408
|
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
24352
|
-
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, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, 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, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
24409
|
+
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, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, 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, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
@@ -472,6 +472,8 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
|
|
|
472
472
|
kind: z.ZodLiteral<"plugin">;
|
|
473
473
|
pluginId: z.ZodString;
|
|
474
474
|
reason: z.ZodString;
|
|
475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
476
|
+
kind: z.ZodLiteral<"superseded">;
|
|
475
477
|
}, z.core.$strip>], "kind">>;
|
|
476
478
|
}, z.core.$strip>;
|
|
477
479
|
type ThreadQueuedMessage = z.infer<typeof threadQueuedMessageSchema>;
|
|
@@ -1052,9 +1054,12 @@ type PluginDispatchAttemptKind = "join-turn" | "start-turn";
|
|
|
1052
1054
|
*
|
|
1053
1055
|
* It runs identically whether the attempt is inline (someone just sent) or
|
|
1054
1056
|
* from a drain (a queued row became eligible again), and whether the message
|
|
1055
|
-
* is a thread's first, a follow-up, a steer,
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1057
|
+
* is a thread's first, a follow-up, a steer, a retry of a failed turn, or one
|
|
1058
|
+
* of core's own notices to a thread (a child finished, needs attention, or
|
|
1059
|
+
* changed owner), which arrives with `initiator: "system"`. Compaction and an
|
|
1060
|
+
* edited message's re-send operate on the existing conversation and do not
|
|
1061
|
+
* pass through it. A handler must therefore be idempotent for one logical
|
|
1062
|
+
* dispatch: passes re-run on every drain, on restart, and on retry.
|
|
1058
1063
|
*/
|
|
1059
1064
|
interface MessageDispatchHookContext {
|
|
1060
1065
|
/**
|
|
@@ -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, 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';
|
|
9
|
+
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, 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,6 +94,7 @@ interface CollectedPluginAppRegistrations {
|
|
|
94
94
|
homepageSections: PluginHomepageSectionRegistration[];
|
|
95
95
|
settingsSections: PluginSettingsSectionRegistration[];
|
|
96
96
|
appOverlays: ExperimentalAppOverlayRegistration[];
|
|
97
|
+
setupGuideSections: InternalDoNotUseSetupGuideSectionRegistration[];
|
|
97
98
|
navPanels: LegacyNavPanelRegistration[];
|
|
98
99
|
tabs: ExperimentalTabRegistration[];
|
|
99
100
|
threadPanelActions: LegacyThreadPanelActionRegistration[];
|
|
@@ -440,7 +440,8 @@ interface AcpDialect {
|
|
|
440
440
|
toolIdentity?(event: AcpToolCallUpdateEvent): AcpToolIdentity | undefined;
|
|
441
441
|
classifyToolCall?(event: AcpToolCallUpdateEvent): AcpClassifiedToolCall | undefined;
|
|
442
442
|
commandResult?(event: AcpToolCallUpdateEvent): AcpCommandResult | undefined;
|
|
443
|
-
normalizeCommandEvent?(event: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
443
|
+
normalizeCommandEvent?(event: AcpToolCallUpdateEvent, call: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
444
|
+
normalizeToolCallEvent?(event: AcpToolCallUpdateEvent, call: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
444
445
|
readonly clientRequestMethods?: readonly string[];
|
|
445
446
|
handleClientRequest?(method: string, params: unknown): AcpClientRequestOutcome | undefined;
|
|
446
447
|
maintenance?: AcpMaintenanceDialect;
|
|
@@ -583,6 +584,14 @@ interface AgentModelCatalog {
|
|
|
583
584
|
* });
|
|
584
585
|
* ```
|
|
585
586
|
*
|
|
587
|
+
* `normalizeCommandEvent` and `normalizeToolCallEvent` rewrite a tool call
|
|
588
|
+
* update before bb reads its output: command output and exit code for the
|
|
589
|
+
* first, progress and result text for every other tool. Each receives the
|
|
590
|
+
* update and the call: everything the agent has reported for that tool call
|
|
591
|
+
* so far, this update included. A dialect can therefore judge an update by
|
|
592
|
+
* the call's `rawInput` without keeping per-call state; the two arguments
|
|
593
|
+
* are the same event when the call closes.
|
|
594
|
+
*
|
|
586
595
|
* The registration then names it: `acpDialect: "amp"`. A built-in id cannot
|
|
587
596
|
* be replaced, and an id nothing registered falls back to the generic
|
|
588
597
|
* dialect. The registry is one per host artifact, and a dialect's hooks are
|
|
@@ -440,7 +440,8 @@ interface AcpDialect {
|
|
|
440
440
|
toolIdentity?(event: AcpToolCallUpdateEvent): AcpToolIdentity | undefined;
|
|
441
441
|
classifyToolCall?(event: AcpToolCallUpdateEvent): AcpClassifiedToolCall | undefined;
|
|
442
442
|
commandResult?(event: AcpToolCallUpdateEvent): AcpCommandResult | undefined;
|
|
443
|
-
normalizeCommandEvent?(event: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
443
|
+
normalizeCommandEvent?(event: AcpToolCallUpdateEvent, call: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
444
|
+
normalizeToolCallEvent?(event: AcpToolCallUpdateEvent, call: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
444
445
|
readonly clientRequestMethods?: readonly string[];
|
|
445
446
|
handleClientRequest?(method: string, params: unknown): AcpClientRequestOutcome | undefined;
|
|
446
447
|
maintenance?: AcpMaintenanceDialect;
|
|
@@ -584,6 +585,14 @@ interface AgentModelCatalog {
|
|
|
584
585
|
* });
|
|
585
586
|
* ```
|
|
586
587
|
*
|
|
588
|
+
* `normalizeCommandEvent` and `normalizeToolCallEvent` rewrite a tool call
|
|
589
|
+
* update before bb reads its output: command output and exit code for the
|
|
590
|
+
* first, progress and result text for every other tool. Each receives the
|
|
591
|
+
* update and the call: everything the agent has reported for that tool call
|
|
592
|
+
* so far, this update included. A dialect can therefore judge an update by
|
|
593
|
+
* the call's `rawInput` without keeping per-call state; the two arguments
|
|
594
|
+
* are the same event when the call closes.
|
|
595
|
+
*
|
|
587
596
|
* The registration then names it: `acpDialect: "amp"`. A built-in id cannot
|
|
588
597
|
* be replaced, and an id nothing registered falls back to the generic
|
|
589
598
|
* dialect. The registry is one per host artifact, and a dialect's hooks are
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
8
|
import * as _get_bb_plugin_sdk from '@get-bb/plugin-sdk';
|
|
9
|
-
import { ExperimentalSidebarFooterItemRegistration, PluginNavPanelRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, BbNavigate, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, ExperimentalThreadContextKind, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, ExperimentalComposerRendererApi, ExperimentalSidebarNavigationItem, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState, ExperimentalLiveFileTarget, ExperimentalServers, ExperimentalPanelController, ExperimentalPanelTabs, JsonValue, ExperimentalPageTitle, ExperimentalOpenTabOptions, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationTarget } from '@get-bb/plugin-sdk';
|
|
9
|
+
import { ExperimentalSidebarFooterItemRegistration, PluginNavPanelRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, BbNavigate, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, ExperimentalThreadContextKind, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, ExperimentalComposerRendererApi, ExperimentalSidebarNavigationItem, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState, ExperimentalLiveFileTarget, ExperimentalServers, ExperimentalPanelController, ExperimentalPanelTabs, JsonValue, ExperimentalPageTitle, ExperimentalOpenTabOptions, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationTarget } from '@get-bb/plugin-sdk';
|
|
10
10
|
import { ComponentType, ReactNode } from 'react';
|
|
11
11
|
import { RenderResult } from '@testing-library/react';
|
|
12
12
|
|
|
@@ -228,6 +228,7 @@ interface CapturedPluginApp {
|
|
|
228
228
|
homepageSections: PluginHomepageSectionRegistration[];
|
|
229
229
|
settingsSections: PluginSettingsSectionRegistration[];
|
|
230
230
|
appOverlays: ExperimentalAppOverlayRegistration[];
|
|
231
|
+
setupGuideSections: InternalDoNotUseSetupGuideSectionRegistration[];
|
|
231
232
|
navPanels: LegacyNavPanelRegistration[];
|
|
232
233
|
tabs: ExperimentalTabRegistration[];
|
|
233
234
|
threadPanelActions: LegacyThreadPanelActionRegistration[];
|
|
@@ -4162,6 +4162,26 @@ type PendingInteraction = ProviderPendingInteraction | PluginPendingInteraction;
|
|
|
4162
4162
|
|
|
4163
4163
|
declare const pluginMetadataSchema: z.ZodType<JsonObject, unknown, zod_v4_core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
4164
4164
|
|
|
4165
|
+
interface JoinHostPathArgs {
|
|
4166
|
+
rootPath: string;
|
|
4167
|
+
relativePath: string;
|
|
4168
|
+
}
|
|
4169
|
+
interface IsHostPathWithinArgs {
|
|
4170
|
+
rootPath: string;
|
|
4171
|
+
candidatePath: string;
|
|
4172
|
+
}
|
|
4173
|
+
declare function normalizeHostPath(path: string): string | null;
|
|
4174
|
+
declare function getHostPathComparisonKey(path: string): string | null;
|
|
4175
|
+
declare function isHostPathWithin({ rootPath, candidatePath, }: IsHostPathWithinArgs): boolean;
|
|
4176
|
+
declare function joinHostPath({ rootPath, relativePath, }: JoinHostPathArgs): string | null;
|
|
4177
|
+
declare function resolveHostPath({ rootPath, path, }: {
|
|
4178
|
+
rootPath: string;
|
|
4179
|
+
path: string;
|
|
4180
|
+
}): string | null;
|
|
4181
|
+
declare function getHostPathDirname(path: string): string | null;
|
|
4182
|
+
declare function getHostPathBasename(path: string): string | null;
|
|
4183
|
+
declare function getRelativeHostPath({ rootPath, candidatePath, }: IsHostPathWithinArgs): string | null;
|
|
4184
|
+
|
|
4165
4185
|
declare const projectSchema: z$1.ZodObject<{
|
|
4166
4186
|
createdAt: z$1.ZodNumber;
|
|
4167
4187
|
gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -4687,6 +4707,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
4687
4707
|
kind: z$1.ZodLiteral<"plugin">;
|
|
4688
4708
|
pluginId: z$1.ZodString;
|
|
4689
4709
|
reason: z$1.ZodString;
|
|
4710
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4711
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
4690
4712
|
}, z$1.core.$strip>], "kind">>;
|
|
4691
4713
|
}, z$1.core.$strip>;
|
|
4692
4714
|
type ThreadQueuedMessage = z$1.infer<typeof threadQueuedMessageSchema>;
|
|
@@ -10244,6 +10266,7 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10244
10266
|
name: z$1.ZodLiteral<"recommendation">;
|
|
10245
10267
|
properties: z$1.ZodObject<{
|
|
10246
10268
|
action: z$1.ZodEnum<{
|
|
10269
|
+
deselected: "deselected";
|
|
10247
10270
|
selected: "selected";
|
|
10248
10271
|
shown: "shown";
|
|
10249
10272
|
}>;
|
|
@@ -10337,6 +10360,14 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10337
10360
|
started: "started";
|
|
10338
10361
|
}>;
|
|
10339
10362
|
}, z$1.core.$strict>;
|
|
10363
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10364
|
+
name: z$1.ZodLiteral<"onboarding_exposed">;
|
|
10365
|
+
properties: z$1.ZodObject<{
|
|
10366
|
+
entry: z$1.ZodEnum<{
|
|
10367
|
+
first_run: "first_run";
|
|
10368
|
+
replay: "replay";
|
|
10369
|
+
}>;
|
|
10370
|
+
}, z$1.core.$strict>;
|
|
10340
10371
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10341
10372
|
name: z$1.ZodLiteral<"onboarding_started">;
|
|
10342
10373
|
properties: z$1.ZodObject<{
|
|
@@ -10417,6 +10448,14 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10417
10448
|
properties: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
10418
10449
|
}, z$1.core.$strict>], "name">;
|
|
10419
10450
|
type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
|
|
10451
|
+
declare const systemSetupGuideResponseSchema: z$1.ZodObject<{
|
|
10452
|
+
featuredPluginEntryIds: z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>;
|
|
10453
|
+
variant: z$1.ZodEnum<{
|
|
10454
|
+
control: "control";
|
|
10455
|
+
new: "new";
|
|
10456
|
+
}>;
|
|
10457
|
+
}, z$1.core.$strip>;
|
|
10458
|
+
type SystemSetupGuideResponse = z$1.infer<typeof systemSetupGuideResponseSchema>;
|
|
10420
10459
|
declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
10421
10460
|
appearance: z$1.ZodObject<{
|
|
10422
10461
|
customCss: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -13336,6 +13375,8 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
13336
13375
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13337
13376
|
pluginId: z$1.ZodString;
|
|
13338
13377
|
reason: z$1.ZodString;
|
|
13378
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13379
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13339
13380
|
}, z$1.core.$strip>], "kind">>;
|
|
13340
13381
|
}, z$1.core.$strip>;
|
|
13341
13382
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -13507,6 +13548,8 @@ declare const retryTurnResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<
|
|
|
13507
13548
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13508
13549
|
pluginId: z$1.ZodString;
|
|
13509
13550
|
reason: z$1.ZodString;
|
|
13551
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13552
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13510
13553
|
}, z$1.core.$strip>], "kind">;
|
|
13511
13554
|
}, z$1.core.$strip>], "delivery">;
|
|
13512
13555
|
type RetryTurnResponse = z$1.infer<typeof retryTurnResponseSchema>;
|
|
@@ -13916,6 +13959,8 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
13916
13959
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13917
13960
|
pluginId: z$1.ZodString;
|
|
13918
13961
|
reason: z$1.ZodString;
|
|
13962
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13963
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13919
13964
|
}, z$1.core.$strip>], "kind">>;
|
|
13920
13965
|
}, z$1.core.$strip>;
|
|
13921
13966
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -14911,6 +14956,8 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
14911
14956
|
kind: z$1.ZodLiteral<"plugin">;
|
|
14912
14957
|
pluginId: z$1.ZodString;
|
|
14913
14958
|
reason: z$1.ZodString;
|
|
14959
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
14960
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
14914
14961
|
}, z$1.core.$strip>], "kind">>;
|
|
14915
14962
|
}, z$1.core.$strip>>;
|
|
14916
14963
|
type ThreadQueuedMessageListResponse = z$1.infer<typeof threadQueuedMessageListResponseSchema>;
|
|
@@ -18325,6 +18372,10 @@ type SystemRecordTelemetryEventArgs = RecordTelemetryEventRequest;
|
|
|
18325
18372
|
interface SystemRecordTelemetryEventResult {
|
|
18326
18373
|
ok: true;
|
|
18327
18374
|
}
|
|
18375
|
+
interface SystemSetupGuideArgs {
|
|
18376
|
+
signal?: AbortSignal;
|
|
18377
|
+
}
|
|
18378
|
+
type SystemSetupGuideResult = SystemSetupGuideResponse;
|
|
18328
18379
|
interface SystemAiServicesArgs {
|
|
18329
18380
|
signal?: AbortSignal;
|
|
18330
18381
|
}
|
|
@@ -18381,6 +18432,7 @@ interface SystemArea {
|
|
|
18381
18432
|
cliSkillsStatus(args?: SystemCliSkillsStatusArgs): Promise<SystemCliSkillsStatusResult>;
|
|
18382
18433
|
installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
|
|
18383
18434
|
experimental_recordTelemetryEvent(args: SystemRecordTelemetryEventArgs): Promise<SystemRecordTelemetryEventResult>;
|
|
18435
|
+
experimental_setupGuide(args?: SystemSetupGuideArgs): Promise<SystemSetupGuideResult>;
|
|
18384
18436
|
reloadConfig(): Promise<SystemReloadConfigResult>;
|
|
18385
18437
|
setAiServiceSelection(args: SystemSetAiServiceSelectionArgs): Promise<SystemAiServicesResult>;
|
|
18386
18438
|
testAiService(args: SystemTestAiServiceArgs): Promise<SystemTestAiServiceResult>;
|
|
@@ -19938,9 +19990,12 @@ type PluginDispatchAttemptKind = "join-turn" | "start-turn";
|
|
|
19938
19990
|
*
|
|
19939
19991
|
* It runs identically whether the attempt is inline (someone just sent) or
|
|
19940
19992
|
* from a drain (a queued row became eligible again), and whether the message
|
|
19941
|
-
* is a thread's first, a follow-up, a steer,
|
|
19942
|
-
*
|
|
19943
|
-
*
|
|
19993
|
+
* is a thread's first, a follow-up, a steer, a retry of a failed turn, or one
|
|
19994
|
+
* of core's own notices to a thread (a child finished, needs attention, or
|
|
19995
|
+
* changed owner), which arrives with `initiator: "system"`. Compaction and an
|
|
19996
|
+
* edited message's re-send operate on the existing conversation and do not
|
|
19997
|
+
* pass through it. A handler must therefore be idempotent for one logical
|
|
19998
|
+
* dispatch: passes re-run on every drain, on restart, and on retry.
|
|
19944
19999
|
*/
|
|
19945
20000
|
interface MessageDispatchHookContext {
|
|
19946
20001
|
/**
|
|
@@ -21444,6 +21499,16 @@ interface PluginSettingsSectionProps {
|
|
|
21444
21499
|
*/
|
|
21445
21500
|
interface ExperimentalAppOverlayProps {
|
|
21446
21501
|
}
|
|
21502
|
+
/**
|
|
21503
|
+
* Props passed to an `internal_DO_NOT_USE_setupGuideSection` component.
|
|
21504
|
+
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
21505
|
+
*/
|
|
21506
|
+
interface InternalDoNotUseSetupGuideSectionProps {
|
|
21507
|
+
/** True when the setup guide is open on a phone. */
|
|
21508
|
+
onPhone: boolean;
|
|
21509
|
+
/** Call when the user starts setting up this section. */
|
|
21510
|
+
onSetupStarted: () => void;
|
|
21511
|
+
}
|
|
21447
21512
|
type ExperimentalPageTitle = ({
|
|
21448
21513
|
title: string;
|
|
21449
21514
|
breadcrumbs?: never;
|
|
@@ -22161,6 +22226,15 @@ interface ExperimentalAppOverlayRegistration {
|
|
|
22161
22226
|
id: string;
|
|
22162
22227
|
component: ComponentType<ExperimentalAppOverlayProps>;
|
|
22163
22228
|
}
|
|
22229
|
+
/**
|
|
22230
|
+
* Render one row in the first-run setup guide's "Where you use bb" group.
|
|
22231
|
+
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
22232
|
+
*/
|
|
22233
|
+
interface InternalDoNotUseSetupGuideSectionRegistration {
|
|
22234
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
22235
|
+
id: string;
|
|
22236
|
+
component: ComponentType<InternalDoNotUseSetupGuideSectionProps>;
|
|
22237
|
+
}
|
|
22164
22238
|
/**
|
|
22165
22239
|
* A name the host resolves to a glyph, in this order: a name any plugin
|
|
22166
22240
|
* registered with `app.experimental_icons.register()`, then a built-in BB icon
|
|
@@ -24761,6 +24835,12 @@ interface PluginAppSlots {
|
|
|
24761
24835
|
* docs/api_to_audit.md.
|
|
24762
24836
|
*/
|
|
24763
24837
|
experimental_appOverlay(registration: ExperimentalAppOverlayRegistration): void;
|
|
24838
|
+
/**
|
|
24839
|
+
* Render a setup guide row (see
|
|
24840
|
+
* {@link InternalDoNotUseSetupGuideSectionRegistration}). Internal: see
|
|
24841
|
+
* docs/api_to_audit.md.
|
|
24842
|
+
*/
|
|
24843
|
+
internal_DO_NOT_USE_setupGuideSection(registration: InternalDoNotUseSetupGuideSectionRegistration): void;
|
|
24764
24844
|
navPanel(registration: PluginNavPanelRegistration): void;
|
|
24765
24845
|
/** Register a context-scoped tab. Experimental: see docs/api_to_audit.md. */
|
|
24766
24846
|
experimental_tab<C extends ExperimentalTabContext, A extends "action" | "fixed">(registration: ExperimentalTabInput<C, A>): void;
|
|
@@ -27036,5 +27116,5 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
|
27036
27116
|
readonly storage: "3_storage";
|
|
27037
27117
|
};
|
|
27038
27118
|
|
|
27039
|
-
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry };
|
|
27040
|
-
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, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, 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, 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, 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, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
27119
|
+
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry, getHostPathBasename as experimental_getHostPathBasename, getHostPathComparisonKey as experimental_getHostPathComparisonKey, getHostPathDirname as experimental_getHostPathDirname, getRelativeHostPath as experimental_getRelativeHostPath, isHostPathWithin as experimental_isHostPathWithin, joinHostPath as experimental_joinHostPath, normalizeHostPath as experimental_normalizeHostPath, resolveHostPath as experimental_resolveHostPath };
|
|
27120
|
+
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, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, 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, 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, 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, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
package/dist/index.js
CHANGED
|
@@ -918,6 +918,158 @@ var experimental_THREAD_INFO_SECTION_GROUPS = {
|
|
|
918
918
|
changes: "2_changes",
|
|
919
919
|
storage: "3_storage"
|
|
920
920
|
};
|
|
921
|
+
|
|
922
|
+
// ../domain/src/host-path.ts
|
|
923
|
+
var WINDOWS_DRIVE_PATH_PATTERN = /^([A-Za-z]):(?:[\\/]+|$)/u;
|
|
924
|
+
var WINDOWS_UNC_PATH_PATTERN = /^[\\/]{2}([^\\/]+)[\\/]+([^\\/]+)(?:[\\/]+|$)/u;
|
|
925
|
+
var WINDOWS_SEPARATOR_PATTERN = /[\\/]+/u;
|
|
926
|
+
function collapseSegments(rawSegments) {
|
|
927
|
+
const segments = [];
|
|
928
|
+
for (const segment of rawSegments) {
|
|
929
|
+
if (segment.length === 0 || segment === ".") {
|
|
930
|
+
continue;
|
|
931
|
+
}
|
|
932
|
+
if (segment === "..") {
|
|
933
|
+
segments.pop();
|
|
934
|
+
continue;
|
|
935
|
+
}
|
|
936
|
+
segments.push(segment);
|
|
937
|
+
}
|
|
938
|
+
return segments;
|
|
939
|
+
}
|
|
940
|
+
function splitHostPathRoot(path) {
|
|
941
|
+
const drive = WINDOWS_DRIVE_PATH_PATTERN.exec(path);
|
|
942
|
+
if (drive) {
|
|
943
|
+
return {
|
|
944
|
+
flavor: "windows",
|
|
945
|
+
root: `${(drive[1] ?? "").toUpperCase()}:\\`,
|
|
946
|
+
relativePath: path.slice(drive[0].length)
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
const unc = WINDOWS_UNC_PATH_PATTERN.exec(path);
|
|
950
|
+
if (unc) {
|
|
951
|
+
return {
|
|
952
|
+
flavor: "windows",
|
|
953
|
+
root: `\\\\${unc[1] ?? ""}\\${unc[2] ?? ""}\\`,
|
|
954
|
+
relativePath: path.slice(unc[0].length)
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
if (path.startsWith("/")) {
|
|
958
|
+
return { flavor: "posix", root: "/", relativePath: path.slice(1) };
|
|
959
|
+
}
|
|
960
|
+
return null;
|
|
961
|
+
}
|
|
962
|
+
function parseHostPath(path) {
|
|
963
|
+
const split = splitHostPathRoot(path);
|
|
964
|
+
if (split === null) {
|
|
965
|
+
return null;
|
|
966
|
+
}
|
|
967
|
+
return {
|
|
968
|
+
flavor: split.flavor,
|
|
969
|
+
root: split.root,
|
|
970
|
+
segments: collapseSegments(
|
|
971
|
+
split.relativePath.split(
|
|
972
|
+
split.flavor === "windows" ? WINDOWS_SEPARATOR_PATTERN : "/"
|
|
973
|
+
)
|
|
974
|
+
)
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
function formatHostPath(parsed) {
|
|
978
|
+
if (parsed.flavor === "posix") {
|
|
979
|
+
return `/${parsed.segments.join("/")}`;
|
|
980
|
+
}
|
|
981
|
+
if (parsed.segments.length === 0) {
|
|
982
|
+
return parsed.root;
|
|
983
|
+
}
|
|
984
|
+
return `${parsed.root}${parsed.segments.join("\\")}`;
|
|
985
|
+
}
|
|
986
|
+
function comparisonSegments(parsed) {
|
|
987
|
+
return parsed.flavor === "windows" ? parsed.segments.map((segment) => segment.toLowerCase()) : parsed.segments;
|
|
988
|
+
}
|
|
989
|
+
function comparisonRoot(parsed) {
|
|
990
|
+
return parsed.flavor === "windows" ? parsed.root.toLowerCase() : parsed.root;
|
|
991
|
+
}
|
|
992
|
+
function normalizeHostPath(path) {
|
|
993
|
+
const parsed = parseHostPath(path);
|
|
994
|
+
return parsed === null ? null : formatHostPath(parsed);
|
|
995
|
+
}
|
|
996
|
+
function getHostPathComparisonKey(path) {
|
|
997
|
+
const parsed = parseHostPath(path);
|
|
998
|
+
if (parsed === null) {
|
|
999
|
+
return null;
|
|
1000
|
+
}
|
|
1001
|
+
return formatHostPath({
|
|
1002
|
+
flavor: parsed.flavor,
|
|
1003
|
+
root: comparisonRoot(parsed),
|
|
1004
|
+
segments: comparisonSegments(parsed)
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
function isHostPathWithin({
|
|
1008
|
+
rootPath,
|
|
1009
|
+
candidatePath
|
|
1010
|
+
}) {
|
|
1011
|
+
const root = parseHostPath(rootPath);
|
|
1012
|
+
const candidate = parseHostPath(candidatePath);
|
|
1013
|
+
if (root === null || candidate === null || root.flavor !== candidate.flavor || comparisonRoot(root) !== comparisonRoot(candidate)) {
|
|
1014
|
+
return false;
|
|
1015
|
+
}
|
|
1016
|
+
const rootSegments = comparisonSegments(root);
|
|
1017
|
+
const candidateSegments = comparisonSegments(candidate);
|
|
1018
|
+
return rootSegments.length <= candidateSegments.length && rootSegments.every((segment, index) => segment === candidateSegments[index]);
|
|
1019
|
+
}
|
|
1020
|
+
function joinHostPath({
|
|
1021
|
+
rootPath,
|
|
1022
|
+
relativePath
|
|
1023
|
+
}) {
|
|
1024
|
+
const parsed = parseHostPath(rootPath);
|
|
1025
|
+
if (parsed === null) {
|
|
1026
|
+
return null;
|
|
1027
|
+
}
|
|
1028
|
+
const relativeSegments = relativePath.split(
|
|
1029
|
+
parsed.flavor === "windows" ? WINDOWS_SEPARATOR_PATTERN : "/"
|
|
1030
|
+
);
|
|
1031
|
+
return formatHostPath({
|
|
1032
|
+
...parsed,
|
|
1033
|
+
segments: collapseSegments([...parsed.segments, ...relativeSegments])
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
function resolveHostPath({
|
|
1037
|
+
rootPath,
|
|
1038
|
+
path
|
|
1039
|
+
}) {
|
|
1040
|
+
if (path.length === 0 || path.includes("\0") || rootPath.includes("\0")) {
|
|
1041
|
+
return null;
|
|
1042
|
+
}
|
|
1043
|
+
const absolute = normalizeHostPath(path);
|
|
1044
|
+
if (absolute !== null) return absolute;
|
|
1045
|
+
if (path.startsWith("\\") || /^[A-Za-z]:/u.test(path)) return null;
|
|
1046
|
+
return joinHostPath({ rootPath, relativePath: path });
|
|
1047
|
+
}
|
|
1048
|
+
function getHostPathDirname(path) {
|
|
1049
|
+
const parsed = parseHostPath(path);
|
|
1050
|
+
if (parsed === null) {
|
|
1051
|
+
return null;
|
|
1052
|
+
}
|
|
1053
|
+
return formatHostPath({ ...parsed, segments: parsed.segments.slice(0, -1) });
|
|
1054
|
+
}
|
|
1055
|
+
function getHostPathBasename(path) {
|
|
1056
|
+
const parsed = parseHostPath(path);
|
|
1057
|
+
if (parsed === null) {
|
|
1058
|
+
return null;
|
|
1059
|
+
}
|
|
1060
|
+
return parsed.segments.at(-1) ?? "";
|
|
1061
|
+
}
|
|
1062
|
+
function getRelativeHostPath({
|
|
1063
|
+
rootPath,
|
|
1064
|
+
candidatePath
|
|
1065
|
+
}) {
|
|
1066
|
+
if (!isHostPathWithin({ rootPath, candidatePath })) {
|
|
1067
|
+
return null;
|
|
1068
|
+
}
|
|
1069
|
+
const rootSegments = parseHostPath(rootPath)?.segments ?? [];
|
|
1070
|
+
const candidateSegments = parseHostPath(candidatePath)?.segments ?? [];
|
|
1071
|
+
return candidateSegments.slice(rootSegments.length).join("/");
|
|
1072
|
+
}
|
|
921
1073
|
export {
|
|
922
1074
|
PLUGIN_CLI_OUTPUT_MAX_BYTES,
|
|
923
1075
|
PluginCliError,
|
|
@@ -930,5 +1082,13 @@ export {
|
|
|
930
1082
|
experimental_THREAD_CONTEXT_SEGMENT_GROUPS,
|
|
931
1083
|
experimental_THREAD_INFO_ROW_GROUPS,
|
|
932
1084
|
experimental_THREAD_INFO_SECTION_GROUPS,
|
|
933
|
-
experimental_defineHostEntry
|
|
1085
|
+
experimental_defineHostEntry,
|
|
1086
|
+
getHostPathBasename as experimental_getHostPathBasename,
|
|
1087
|
+
getHostPathComparisonKey as experimental_getHostPathComparisonKey,
|
|
1088
|
+
getHostPathDirname as experimental_getHostPathDirname,
|
|
1089
|
+
getRelativeHostPath as experimental_getRelativeHostPath,
|
|
1090
|
+
isHostPathWithin as experimental_isHostPathWithin,
|
|
1091
|
+
joinHostPath as experimental_joinHostPath,
|
|
1092
|
+
normalizeHostPath as experimental_normalizeHostPath,
|
|
1093
|
+
resolveHostPath as experimental_resolveHostPath
|
|
934
1094
|
};
|
|
@@ -484,6 +484,7 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
484
484
|
homepageSections: [],
|
|
485
485
|
settingsSections: [],
|
|
486
486
|
appOverlays: [],
|
|
487
|
+
setupGuideSections: [],
|
|
487
488
|
navPanels: [],
|
|
488
489
|
tabs: [],
|
|
489
490
|
get threadPanelActions() {
|
|
@@ -528,6 +529,7 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
528
529
|
homepageSection: /* @__PURE__ */ new Set(),
|
|
529
530
|
settingsSection: /* @__PURE__ */ new Set(),
|
|
530
531
|
appOverlay: /* @__PURE__ */ new Set(),
|
|
532
|
+
setupGuideSection: /* @__PURE__ */ new Set(),
|
|
531
533
|
navPanel: /* @__PURE__ */ new Set(),
|
|
532
534
|
tab: /* @__PURE__ */ new Set(),
|
|
533
535
|
newThreadPanelAction: /* @__PURE__ */ new Set(),
|
|
@@ -730,6 +732,15 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
730
732
|
component: requireComponent(kind, registration.component)
|
|
731
733
|
});
|
|
732
734
|
},
|
|
735
|
+
internal_DO_NOT_USE_setupGuideSection(registration) {
|
|
736
|
+
const kind = "slots.internal_DO_NOT_USE_setupGuideSection";
|
|
737
|
+
const id = requireSlotId(kind, registration?.id);
|
|
738
|
+
requireUniqueId(kind, seenIds.setupGuideSection, id);
|
|
739
|
+
collected.setupGuideSections.push({
|
|
740
|
+
id,
|
|
741
|
+
component: requireComponent(kind, registration.component)
|
|
742
|
+
});
|
|
743
|
+
},
|
|
733
744
|
navPanel(registration) {
|
|
734
745
|
const kind = "slots.navPanel";
|
|
735
746
|
const id = requireSlotId(kind, registration?.id);
|
|
@@ -1752,7 +1752,8 @@ var queuedMessageWaitingOnKindValues = [
|
|
|
1752
1752
|
"provisioning",
|
|
1753
1753
|
"host-offline",
|
|
1754
1754
|
"interaction",
|
|
1755
|
-
"plugin"
|
|
1755
|
+
"plugin",
|
|
1756
|
+
"superseded"
|
|
1756
1757
|
];
|
|
1757
1758
|
var queuedMessageWaitingOnKindSchema = z9.enum(
|
|
1758
1759
|
queuedMessageWaitingOnKindValues
|
|
@@ -1775,7 +1776,8 @@ var queuedMessageWaitingOnSchema = z9.discriminatedUnion("kind", [
|
|
|
1775
1776
|
kind: z9.literal("plugin"),
|
|
1776
1777
|
pluginId: pluginIdSchema,
|
|
1777
1778
|
reason: queuedMessageWaitReasonSchema
|
|
1778
|
-
})
|
|
1779
|
+
}),
|
|
1780
|
+
z9.object({ kind: z9.literal("superseded") })
|
|
1779
1781
|
]);
|
|
1780
1782
|
var QUEUED_MESSAGE_FAILURE_REASON_MAX_LENGTH = 200;
|
|
1781
1783
|
var queuedMessageFailureReasonSchema = z9.string().min(1).max(QUEUED_MESSAGE_FAILURE_REASON_MAX_LENGTH);
|
|
@@ -15058,7 +15058,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15058
15058
|
};
|
|
15059
15059
|
}
|
|
15060
15060
|
function commandCloseFields(event, status) {
|
|
15061
|
-
const normalizedEvent = dialect.normalizeCommandEvent?.(event) ?? event;
|
|
15061
|
+
const normalizedEvent = dialect.normalizeCommandEvent?.(event, event) ?? event;
|
|
15062
15062
|
const result = dialect.commandResult?.(normalizedEvent) ?? extractAcpCommandResult(normalizedEvent);
|
|
15063
15063
|
const exitCode = result.exitCode ?? (status === "failed" ? 1 : void 0);
|
|
15064
15064
|
return {
|
|
@@ -15067,7 +15067,8 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15067
15067
|
};
|
|
15068
15068
|
}
|
|
15069
15069
|
function genericCloseFields(event) {
|
|
15070
|
-
const
|
|
15070
|
+
const normalizedEvent = dialect.normalizeToolCallEvent?.(event, event) ?? event;
|
|
15071
|
+
const outputText = extractAcpToolCallOutputText(normalizedEvent);
|
|
15071
15072
|
return outputText === void 0 ? {} : { resultText: outputText };
|
|
15072
15073
|
}
|
|
15073
15074
|
function drainOpenToolCalls(context, status) {
|
|
@@ -15206,7 +15207,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15206
15207
|
...open?.clientFileWrites === void 0 ? {} : { clientFileWrites: open.clientFileWrites }
|
|
15207
15208
|
});
|
|
15208
15209
|
if (event.status === "in_progress" && mergedType === "command" && open?.openedType === "command") {
|
|
15209
|
-
const normalizedEvent = dialect.normalizeCommandEvent?.(event) ?? event;
|
|
15210
|
+
const normalizedEvent = dialect.normalizeCommandEvent?.(event, merged) ?? event;
|
|
15210
15211
|
const streamed = extractAcpStreamedCommandOutput(normalizedEvent);
|
|
15211
15212
|
return streamed === void 0 ? suppressedUnhandled(rawEvent) : [
|
|
15212
15213
|
{
|
|
@@ -15216,7 +15217,8 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15216
15217
|
}
|
|
15217
15218
|
];
|
|
15218
15219
|
}
|
|
15219
|
-
const
|
|
15220
|
+
const progressEvent = dialect.normalizeToolCallEvent?.(event, merged) ?? event;
|
|
15221
|
+
const progressText = extractAcpToolCallOutputText(progressEvent);
|
|
15220
15222
|
if (progressText === void 0) {
|
|
15221
15223
|
return suppressedUnhandled(rawEvent);
|
|
15222
15224
|
}
|
|
@@ -22910,24 +22912,30 @@ async function discoverAcpNativeModelSupport(args) {
|
|
|
22910
22912
|
for (const model of modelsToProbe) {
|
|
22911
22913
|
if (timedOut) break;
|
|
22912
22914
|
try {
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22919
|
-
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
|
|
22926
|
-
|
|
22927
|
-
|
|
22928
|
-
|
|
22929
|
-
|
|
22930
|
-
|
|
22915
|
+
for (let attempt = 0; attempt < 2; attempt += 1) {
|
|
22916
|
+
const configState = await args.connection.request({
|
|
22917
|
+
method: "session/set_config_option",
|
|
22918
|
+
params: {
|
|
22919
|
+
sessionId: args.sessionId,
|
|
22920
|
+
configId: modelOption.id,
|
|
22921
|
+
value: model.value
|
|
22922
|
+
},
|
|
22923
|
+
resultSchema: acpConfigStateResultSchema
|
|
22924
|
+
});
|
|
22925
|
+
if (timedOut) break;
|
|
22926
|
+
if (findAcpModelConfigOption(configState.configOptions)?.currentValue !== model.value) {
|
|
22927
|
+
continue;
|
|
22928
|
+
}
|
|
22929
|
+
supportByModel.set(model.value, {
|
|
22930
|
+
...buildAcpNativeReasoningSupport(
|
|
22931
|
+
findAcpThoughtLevelConfigOption(configState.configOptions)
|
|
22932
|
+
),
|
|
22933
|
+
supportedServiceTiers: findAcpFastConfigOption(
|
|
22934
|
+
configState.configOptions
|
|
22935
|
+
)?.options?.some((option) => option.value === "true") ? [{ id: "fast" }] : []
|
|
22936
|
+
});
|
|
22937
|
+
break;
|
|
22938
|
+
}
|
|
22931
22939
|
} catch (error) {
|
|
22932
22940
|
if (timedOut) {
|
|
22933
22941
|
break;
|
|
@@ -15058,7 +15058,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15058
15058
|
};
|
|
15059
15059
|
}
|
|
15060
15060
|
function commandCloseFields(event, status) {
|
|
15061
|
-
const normalizedEvent = dialect.normalizeCommandEvent?.(event) ?? event;
|
|
15061
|
+
const normalizedEvent = dialect.normalizeCommandEvent?.(event, event) ?? event;
|
|
15062
15062
|
const result = dialect.commandResult?.(normalizedEvent) ?? extractAcpCommandResult(normalizedEvent);
|
|
15063
15063
|
const exitCode = result.exitCode ?? (status === "failed" ? 1 : void 0);
|
|
15064
15064
|
return {
|
|
@@ -15067,7 +15067,8 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15067
15067
|
};
|
|
15068
15068
|
}
|
|
15069
15069
|
function genericCloseFields(event) {
|
|
15070
|
-
const
|
|
15070
|
+
const normalizedEvent = dialect.normalizeToolCallEvent?.(event, event) ?? event;
|
|
15071
|
+
const outputText = extractAcpToolCallOutputText(normalizedEvent);
|
|
15071
15072
|
return outputText === void 0 ? {} : { resultText: outputText };
|
|
15072
15073
|
}
|
|
15073
15074
|
function drainOpenToolCalls(context, status) {
|
|
@@ -15206,7 +15207,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15206
15207
|
...open?.clientFileWrites === void 0 ? {} : { clientFileWrites: open.clientFileWrites }
|
|
15207
15208
|
});
|
|
15208
15209
|
if (event.status === "in_progress" && mergedType === "command" && open?.openedType === "command") {
|
|
15209
|
-
const normalizedEvent = dialect.normalizeCommandEvent?.(event) ?? event;
|
|
15210
|
+
const normalizedEvent = dialect.normalizeCommandEvent?.(event, merged) ?? event;
|
|
15210
15211
|
const streamed = extractAcpStreamedCommandOutput(normalizedEvent);
|
|
15211
15212
|
return streamed === void 0 ? suppressedUnhandled(rawEvent) : [
|
|
15212
15213
|
{
|
|
@@ -15216,7 +15217,8 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15216
15217
|
}
|
|
15217
15218
|
];
|
|
15218
15219
|
}
|
|
15219
|
-
const
|
|
15220
|
+
const progressEvent = dialect.normalizeToolCallEvent?.(event, merged) ?? event;
|
|
15221
|
+
const progressText = extractAcpToolCallOutputText(progressEvent);
|
|
15220
15222
|
if (progressText === void 0) {
|
|
15221
15223
|
return suppressedUnhandled(rawEvent);
|
|
15222
15224
|
}
|
|
@@ -22910,24 +22912,30 @@ async function discoverAcpNativeModelSupport(args) {
|
|
|
22910
22912
|
for (const model of modelsToProbe) {
|
|
22911
22913
|
if (timedOut) break;
|
|
22912
22914
|
try {
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22919
|
-
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
|
|
22926
|
-
|
|
22927
|
-
|
|
22928
|
-
|
|
22929
|
-
|
|
22930
|
-
|
|
22915
|
+
for (let attempt = 0; attempt < 2; attempt += 1) {
|
|
22916
|
+
const configState = await args.connection.request({
|
|
22917
|
+
method: "session/set_config_option",
|
|
22918
|
+
params: {
|
|
22919
|
+
sessionId: args.sessionId,
|
|
22920
|
+
configId: modelOption.id,
|
|
22921
|
+
value: model.value
|
|
22922
|
+
},
|
|
22923
|
+
resultSchema: acpConfigStateResultSchema
|
|
22924
|
+
});
|
|
22925
|
+
if (timedOut) break;
|
|
22926
|
+
if (findAcpModelConfigOption(configState.configOptions)?.currentValue !== model.value) {
|
|
22927
|
+
continue;
|
|
22928
|
+
}
|
|
22929
|
+
supportByModel.set(model.value, {
|
|
22930
|
+
...buildAcpNativeReasoningSupport(
|
|
22931
|
+
findAcpThoughtLevelConfigOption(configState.configOptions)
|
|
22932
|
+
),
|
|
22933
|
+
supportedServiceTiers: findAcpFastConfigOption(
|
|
22934
|
+
configState.configOptions
|
|
22935
|
+
)?.options?.some((option) => option.value === "true") ? [{ id: "fast" }] : []
|
|
22936
|
+
});
|
|
22937
|
+
break;
|
|
22938
|
+
}
|
|
22931
22939
|
} catch (error) {
|
|
22932
22940
|
if (timedOut) {
|
|
22933
22941
|
break;
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
* STALL_MS is answered with a generic success, and a child past the end of its
|
|
34
34
|
* segment answers everything generically. Both are logged on stderr.
|
|
35
35
|
*/
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
36
|
+
import { existsSync, mkdirSync, readFileSync, rmdirSync } from "node:fs";
|
|
37
|
+
import { connect } from "node:net";
|
|
38
38
|
import { StringDecoder } from "node:string_decoder";
|
|
39
39
|
import { join } from "node:path";
|
|
40
40
|
|
|
@@ -159,15 +159,15 @@ const DIALECTS = {
|
|
|
159
159
|
* `pi --mode rpc`: commands carry `{ id, type }`, responses are
|
|
160
160
|
* `{ id, type: "response", command, success }`, and every other line is a
|
|
161
161
|
* raw AgentSessionEvent (or an `extension_ui_request`). The bb extension's
|
|
162
|
-
* channel (
|
|
163
|
-
* same lanes wrapped as `{ bbChannel: <message> }`; this
|
|
164
|
-
* those back onto
|
|
162
|
+
* channel (the socket the bridge names in `BB_PI_BRIDGE_CHANNEL`) is
|
|
163
|
+
* recorded on the same lanes wrapped as `{ bbChannel: <message> }`; this
|
|
164
|
+
* dialect routes those back onto that socket.
|
|
165
165
|
*/
|
|
166
166
|
"pi-rpc": {
|
|
167
167
|
channel: {
|
|
168
168
|
key: "bbChannel",
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
addressEnv: "BB_PI_BRIDGE_CHANNEL",
|
|
170
|
+
tokenEnv: "BB_PI_BRIDGE_CHANNEL_TOKEN",
|
|
171
171
|
},
|
|
172
172
|
classify(message) {
|
|
173
173
|
const channel = message.bbChannel;
|
|
@@ -353,6 +353,14 @@ function readNewlineDelimitedLines(input, onLine) {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
function connectChannel(channel) {
|
|
357
|
+
const socket = connect(process.env[channel.addressEnv]);
|
|
358
|
+
socket.on("error", () => {});
|
|
359
|
+
socket.unref();
|
|
360
|
+
socket.write(`${process.env[channel.tokenEnv]}\n`);
|
|
361
|
+
return socket;
|
|
362
|
+
}
|
|
363
|
+
|
|
356
364
|
// ---------------------------------------------------------------------------
|
|
357
365
|
// Player
|
|
358
366
|
// ---------------------------------------------------------------------------
|
|
@@ -381,14 +389,11 @@ function servePiCatalog(entries) {
|
|
|
381
389
|
}
|
|
382
390
|
}
|
|
383
391
|
}
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
channelIn.on("error", () => {});
|
|
387
|
-
channelIn.unref();
|
|
388
|
-
readNewlineDelimitedLines(channelIn, (line) => {
|
|
392
|
+
const channel = connectChannel(DIALECTS["pi-rpc"].channel);
|
|
393
|
+
readNewlineDelimitedLines(channel, (line) => {
|
|
389
394
|
const message = parseLine(line);
|
|
390
395
|
if (message?.kind !== "request" || message.method !== "model-scope") return;
|
|
391
|
-
|
|
396
|
+
channel.write(
|
|
392
397
|
`${JSON.stringify({
|
|
393
398
|
kind: "reply",
|
|
394
399
|
id: message.id,
|
|
@@ -471,10 +476,10 @@ function main() {
|
|
|
471
476
|
let emitTimer = null;
|
|
472
477
|
|
|
473
478
|
const channel = dialect.channel ?? null;
|
|
474
|
-
const
|
|
479
|
+
const channelSocket = channel ? connectChannel(channel) : null;
|
|
475
480
|
function emit(message) {
|
|
476
481
|
if (channel && typeof message[channel.key] === "object" && message[channel.key] !== null) {
|
|
477
|
-
|
|
482
|
+
channelSocket.write(`${JSON.stringify(message[channel.key])}\n`);
|
|
478
483
|
return;
|
|
479
484
|
}
|
|
480
485
|
process.stdout.write(`${JSON.stringify(message)}\n`);
|
|
@@ -710,13 +715,7 @@ function main() {
|
|
|
710
715
|
process.exit(0);
|
|
711
716
|
});
|
|
712
717
|
if (channel) {
|
|
713
|
-
|
|
714
|
-
// their own fd; wrap them the way the recorder did so they match. A
|
|
715
|
-
// net.Socket reads the pipe non-blockingly, as the real extension does.
|
|
716
|
-
const channelIn = new Socket({ fd: channel.bridgeToChildFd, readable: true, writable: false });
|
|
717
|
-
channelIn.on("error", () => {});
|
|
718
|
-
channelIn.unref();
|
|
719
|
-
readNewlineDelimitedLines(channelIn, (line) => {
|
|
718
|
+
readNewlineDelimitedLines(channelSocket, (line) => {
|
|
720
719
|
const message = parseLine(line);
|
|
721
720
|
if (message !== null) onLiveMessage({ [channel.key]: message });
|
|
722
721
|
});
|
package/dist/testing/app.js
CHANGED
|
@@ -1755,7 +1755,8 @@ var queuedMessageWaitingOnKindValues = [
|
|
|
1755
1755
|
"provisioning",
|
|
1756
1756
|
"host-offline",
|
|
1757
1757
|
"interaction",
|
|
1758
|
-
"plugin"
|
|
1758
|
+
"plugin",
|
|
1759
|
+
"superseded"
|
|
1759
1760
|
];
|
|
1760
1761
|
var queuedMessageWaitingOnKindSchema = z9.enum(
|
|
1761
1762
|
queuedMessageWaitingOnKindValues
|
|
@@ -1778,7 +1779,8 @@ var queuedMessageWaitingOnSchema = z9.discriminatedUnion("kind", [
|
|
|
1778
1779
|
kind: z9.literal("plugin"),
|
|
1779
1780
|
pluginId: pluginIdSchema,
|
|
1780
1781
|
reason: queuedMessageWaitReasonSchema
|
|
1781
|
-
})
|
|
1782
|
+
}),
|
|
1783
|
+
z9.object({ kind: z9.literal("superseded") })
|
|
1782
1784
|
]);
|
|
1783
1785
|
var QUEUED_MESSAGE_FAILURE_REASON_MAX_LENGTH = 200;
|
|
1784
1786
|
var queuedMessageFailureReasonSchema = z9.string().min(1).max(QUEUED_MESSAGE_FAILURE_REASON_MAX_LENGTH);
|
|
@@ -3942,6 +3944,7 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
3942
3944
|
homepageSections: [],
|
|
3943
3945
|
settingsSections: [],
|
|
3944
3946
|
appOverlays: [],
|
|
3947
|
+
setupGuideSections: [],
|
|
3945
3948
|
navPanels: [],
|
|
3946
3949
|
tabs: [],
|
|
3947
3950
|
get threadPanelActions() {
|
|
@@ -3986,6 +3989,7 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
3986
3989
|
homepageSection: /* @__PURE__ */ new Set(),
|
|
3987
3990
|
settingsSection: /* @__PURE__ */ new Set(),
|
|
3988
3991
|
appOverlay: /* @__PURE__ */ new Set(),
|
|
3992
|
+
setupGuideSection: /* @__PURE__ */ new Set(),
|
|
3989
3993
|
navPanel: /* @__PURE__ */ new Set(),
|
|
3990
3994
|
tab: /* @__PURE__ */ new Set(),
|
|
3991
3995
|
newThreadPanelAction: /* @__PURE__ */ new Set(),
|
|
@@ -4188,6 +4192,15 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
4188
4192
|
component: requireComponent(kind, registration.component)
|
|
4189
4193
|
});
|
|
4190
4194
|
},
|
|
4195
|
+
internal_DO_NOT_USE_setupGuideSection(registration) {
|
|
4196
|
+
const kind = "slots.internal_DO_NOT_USE_setupGuideSection";
|
|
4197
|
+
const id = requireSlotId(kind, registration?.id);
|
|
4198
|
+
requireUniqueId(kind, seenIds.setupGuideSection, id);
|
|
4199
|
+
collected.setupGuideSections.push({
|
|
4200
|
+
id,
|
|
4201
|
+
component: requireComponent(kind, registration.component)
|
|
4202
|
+
});
|
|
4203
|
+
},
|
|
4191
4204
|
navPanel(registration) {
|
|
4192
4205
|
const kind = "slots.navPanel";
|
|
4193
4206
|
const id = requireSlotId(kind, registration?.id);
|