@get-bb/plugin-sdk 0.6.136 → 0.6.140
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 +137 -5
- package/bundled-types/bb-plugin-sdk.d.ts +137 -5
- package/dist/internal/rpc-query-host.js +2 -1
- package/dist/provider-bridge-acp-next.js +70 -20
- package/dist/provider-bridge-acp.js +70 -20
- package/dist/testing/app.js +2 -1
- package/package.json +3 -2
|
@@ -496,6 +496,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
496
496
|
changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
|
|
497
497
|
"host-connected": "host-connected";
|
|
498
498
|
"host-disconnected": "host-disconnected";
|
|
499
|
+
"provider-cli-install-jobs-changed": "provider-cli-install-jobs-changed";
|
|
499
500
|
"provider-cli-status-changed": "provider-cli-status-changed";
|
|
500
501
|
"provider-commands-changed": "provider-commands-changed";
|
|
501
502
|
"provider-model-catalog-changed": "provider-model-catalog-changed";
|
|
@@ -8704,6 +8705,64 @@ type HostPickFolderResponse = PickFolderResponse;
|
|
|
8704
8705
|
type HostProviderCliStatusResponse = ProviderCliStatusResponse;
|
|
8705
8706
|
type HostProviderCliInstallRequest = ProviderCliInstallRequest;
|
|
8706
8707
|
type HostProviderCliInstallEvent = ProviderCliInstallEvent;
|
|
8708
|
+
declare const hostProviderCliInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8709
|
+
actionKind: z$1.ZodEnum<{
|
|
8710
|
+
install: "install";
|
|
8711
|
+
update: "update";
|
|
8712
|
+
}>;
|
|
8713
|
+
hostId: z$1.ZodString;
|
|
8714
|
+
id: z$1.ZodString;
|
|
8715
|
+
provider: z$1.ZodString;
|
|
8716
|
+
startedAt: z$1.ZodNumber;
|
|
8717
|
+
state: z$1.ZodLiteral<"running">;
|
|
8718
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8719
|
+
actionKind: z$1.ZodEnum<{
|
|
8720
|
+
install: "install";
|
|
8721
|
+
update: "update";
|
|
8722
|
+
}>;
|
|
8723
|
+
events: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8724
|
+
command: z$1.ZodString;
|
|
8725
|
+
provider: z$1.ZodString;
|
|
8726
|
+
type: z$1.ZodLiteral<"started">;
|
|
8727
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8728
|
+
provider: z$1.ZodString;
|
|
8729
|
+
stream: z$1.ZodEnum<{
|
|
8730
|
+
stderr: "stderr";
|
|
8731
|
+
stdout: "stdout";
|
|
8732
|
+
}>;
|
|
8733
|
+
text: z$1.ZodString;
|
|
8734
|
+
type: z$1.ZodLiteral<"output">;
|
|
8735
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8736
|
+
exitCode: z$1.ZodNullable<z$1.ZodNumber>;
|
|
8737
|
+
provider: z$1.ZodString;
|
|
8738
|
+
signal: z$1.ZodNullable<z$1.ZodString>;
|
|
8739
|
+
success: z$1.ZodBoolean;
|
|
8740
|
+
type: z$1.ZodLiteral<"completed">;
|
|
8741
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8742
|
+
message: z$1.ZodString;
|
|
8743
|
+
provider: z$1.ZodString;
|
|
8744
|
+
type: z$1.ZodLiteral<"error">;
|
|
8745
|
+
}, z$1.core.$strip>], "type">>;
|
|
8746
|
+
finishedAt: z$1.ZodNumber;
|
|
8747
|
+
hostId: z$1.ZodString;
|
|
8748
|
+
id: z$1.ZodString;
|
|
8749
|
+
provider: z$1.ZodString;
|
|
8750
|
+
startedAt: z$1.ZodNumber;
|
|
8751
|
+
state: z$1.ZodLiteral<"completed">;
|
|
8752
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8753
|
+
actionKind: z$1.ZodEnum<{
|
|
8754
|
+
install: "install";
|
|
8755
|
+
update: "update";
|
|
8756
|
+
}>;
|
|
8757
|
+
error: z$1.ZodString;
|
|
8758
|
+
finishedAt: z$1.ZodNumber;
|
|
8759
|
+
hostId: z$1.ZodString;
|
|
8760
|
+
id: z$1.ZodString;
|
|
8761
|
+
provider: z$1.ZodString;
|
|
8762
|
+
startedAt: z$1.ZodNumber;
|
|
8763
|
+
state: z$1.ZodLiteral<"failed">;
|
|
8764
|
+
}, z$1.core.$strip>], "state">;
|
|
8765
|
+
type HostProviderCliInstallJob = z$1.infer<typeof hostProviderCliInstallJobSchema>;
|
|
8707
8766
|
|
|
8708
8767
|
declare const pluginUpdateCheckEntrySchema: z$1.ZodObject<{
|
|
8709
8768
|
blocked: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -10193,6 +10252,32 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10193
10252
|
first_run: "first_run";
|
|
10194
10253
|
replay: "replay";
|
|
10195
10254
|
}>;
|
|
10255
|
+
exit_code: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10256
|
+
failure_detail: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10257
|
+
account_unavailable: "account_unavailable";
|
|
10258
|
+
already_used: "already_used";
|
|
10259
|
+
denied: "denied";
|
|
10260
|
+
disk_full: "disk_full";
|
|
10261
|
+
exit_nonzero: "exit_nonzero";
|
|
10262
|
+
expired: "expired";
|
|
10263
|
+
expired_code: "expired_code";
|
|
10264
|
+
in_progress: "in_progress";
|
|
10265
|
+
invalid_code: "invalid_code";
|
|
10266
|
+
login_failed: "login_failed";
|
|
10267
|
+
network: "network";
|
|
10268
|
+
not_found: "not_found";
|
|
10269
|
+
npm_error: "npm_error";
|
|
10270
|
+
other: "other";
|
|
10271
|
+
permission: "permission";
|
|
10272
|
+
profile_unavailable: "profile_unavailable";
|
|
10273
|
+
rate_limited: "rate_limited";
|
|
10274
|
+
service_unavailable: "service_unavailable";
|
|
10275
|
+
signal: "signal";
|
|
10276
|
+
superseded: "superseded";
|
|
10277
|
+
unauthorized: "unauthorized";
|
|
10278
|
+
unavailable: "unavailable";
|
|
10279
|
+
verification_failed: "verification_failed";
|
|
10280
|
+
}>>;
|
|
10196
10281
|
failure_reason: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10197
10282
|
command_failed: "command_failed";
|
|
10198
10283
|
host_unavailable: "host_unavailable";
|
|
@@ -10262,6 +10347,32 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10262
10347
|
first_run: "first_run";
|
|
10263
10348
|
replay: "replay";
|
|
10264
10349
|
}>;
|
|
10350
|
+
exit_code: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10351
|
+
failure_detail: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10352
|
+
account_unavailable: "account_unavailable";
|
|
10353
|
+
already_used: "already_used";
|
|
10354
|
+
denied: "denied";
|
|
10355
|
+
disk_full: "disk_full";
|
|
10356
|
+
exit_nonzero: "exit_nonzero";
|
|
10357
|
+
expired: "expired";
|
|
10358
|
+
expired_code: "expired_code";
|
|
10359
|
+
in_progress: "in_progress";
|
|
10360
|
+
invalid_code: "invalid_code";
|
|
10361
|
+
login_failed: "login_failed";
|
|
10362
|
+
network: "network";
|
|
10363
|
+
not_found: "not_found";
|
|
10364
|
+
npm_error: "npm_error";
|
|
10365
|
+
other: "other";
|
|
10366
|
+
permission: "permission";
|
|
10367
|
+
profile_unavailable: "profile_unavailable";
|
|
10368
|
+
rate_limited: "rate_limited";
|
|
10369
|
+
service_unavailable: "service_unavailable";
|
|
10370
|
+
signal: "signal";
|
|
10371
|
+
superseded: "superseded";
|
|
10372
|
+
unauthorized: "unauthorized";
|
|
10373
|
+
unavailable: "unavailable";
|
|
10374
|
+
verification_failed: "verification_failed";
|
|
10375
|
+
}>>;
|
|
10265
10376
|
failure_reason: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10266
10377
|
command_failed: "command_failed";
|
|
10267
10378
|
host_unavailable: "host_unavailable";
|
|
@@ -17881,6 +17992,20 @@ interface HostPickFolderArgs extends HostPickFolderRequest {
|
|
|
17881
17992
|
}
|
|
17882
17993
|
interface HostProviderCliInstallArgs extends HostProviderCliInstallRequest {
|
|
17883
17994
|
hostId: string;
|
|
17995
|
+
signal?: AbortSignal;
|
|
17996
|
+
}
|
|
17997
|
+
interface HostProviderCliInstallJobArgs {
|
|
17998
|
+
hostId: string;
|
|
17999
|
+
jobId: string;
|
|
18000
|
+
signal?: AbortSignal;
|
|
18001
|
+
}
|
|
18002
|
+
interface HostProviderCliInstallJobWaitArgs extends HostProviderCliInstallJobArgs {
|
|
18003
|
+
onJob?: (job: HostProviderCliInstallJob) => void;
|
|
18004
|
+
}
|
|
18005
|
+
interface HostProviderCliInstallJobsArea {
|
|
18006
|
+
list(args: HostGetArgs): Promise<HostProviderCliInstallJob[]>;
|
|
18007
|
+
get(args: HostProviderCliInstallJobArgs): Promise<HostProviderCliInstallJob>;
|
|
18008
|
+
wait(args: HostProviderCliInstallJobWaitArgs): Promise<HostProviderCliInstallJob>;
|
|
17884
18009
|
}
|
|
17885
18010
|
interface HostListArgs {
|
|
17886
18011
|
includeCreating?: boolean;
|
|
@@ -17929,6 +18054,8 @@ interface HostsArea {
|
|
|
17929
18054
|
get(args: HostGetArgs): Promise<HostGetResult>;
|
|
17930
18055
|
cloneDefaultPath(args: HostCloneDefaultPathArgs): Promise<HostCloneDefaultPathResult>;
|
|
17931
18056
|
installProviderCli(args: HostProviderCliInstallArgs): Promise<HostProviderCliInstallResult>;
|
|
18057
|
+
experimental_startProviderCliInstall(args: HostProviderCliInstallArgs): Promise<HostProviderCliInstallJob>;
|
|
18058
|
+
experimental_providerCliInstallJobs: HostProviderCliInstallJobsArea;
|
|
17932
18059
|
list(args?: HostListArgs): Promise<HostListResult>;
|
|
17933
18060
|
experimental_listProviders(args?: MachineProviderListArgs): Promise<MachineProviderListResult>;
|
|
17934
18061
|
pathsExist(args: HostPathsExistArgs): Promise<HostPathsExistResult>;
|
|
@@ -19374,15 +19501,20 @@ interface PluginSettingsSectionProps {
|
|
|
19374
19501
|
/**
|
|
19375
19502
|
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
19376
19503
|
* Set only when the setup guide renders the section; call it when a setup
|
|
19377
|
-
* attempt fails, with the stage that failed.
|
|
19504
|
+
* attempt fails, with the stage that failed and, when known, why.
|
|
19378
19505
|
*/
|
|
19379
|
-
internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage) => void;
|
|
19506
|
+
internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
|
|
19380
19507
|
}
|
|
19381
19508
|
/**
|
|
19382
19509
|
* Stage of a setup guide section's setup attempt that failed.
|
|
19383
19510
|
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
19384
19511
|
*/
|
|
19385
19512
|
type InternalDoNotUseSetupFailureStage = "pairing" | "sign_in" | "turn_on";
|
|
19513
|
+
/**
|
|
19514
|
+
* Why a setup guide section's setup attempt failed: a fixed code, never a
|
|
19515
|
+
* message. Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
19516
|
+
*/
|
|
19517
|
+
type InternalDoNotUseSetupFailureDetail = "account_unavailable" | "already_used" | "denied" | "expired" | "expired_code" | "invalid_code" | "login_failed" | "network" | "other" | "profile_unavailable" | "rate_limited" | "service_unavailable" | "superseded" | "unauthorized";
|
|
19386
19518
|
/**
|
|
19387
19519
|
* Props passed to an `experimental_appOverlay` component.
|
|
19388
19520
|
*
|
|
@@ -19400,8 +19532,8 @@ interface InternalDoNotUseSetupGuideSectionProps {
|
|
|
19400
19532
|
onPhone: boolean;
|
|
19401
19533
|
/** Call when the user starts setting up this section. */
|
|
19402
19534
|
onSetupStarted: () => void;
|
|
19403
|
-
/** Call when a setup attempt fails, with the stage that failed. */
|
|
19404
|
-
onSetupFailed: (stage: InternalDoNotUseSetupFailureStage) => void;
|
|
19535
|
+
/** Call when a setup attempt fails, with the stage that failed and, when known, why. */
|
|
19536
|
+
onSetupFailed: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
|
|
19405
19537
|
}
|
|
19406
19538
|
type ExperimentalPageTitle = ({
|
|
19407
19539
|
title: string;
|
|
@@ -24962,4 +25094,4 @@ declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
|
24962
25094
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
24963
25095
|
|
|
24964
25096
|
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_CollapsibleStackCard, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_FilePreview, 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_useThreadExtensionState, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
24965
|
-
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, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, 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, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, 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, InternalDoNotUseSetupFailureStage, 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 };
|
|
25097
|
+
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, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, 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, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, 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, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, 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 };
|
|
@@ -581,6 +581,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
581
581
|
changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
|
|
582
582
|
"host-connected": "host-connected";
|
|
583
583
|
"host-disconnected": "host-disconnected";
|
|
584
|
+
"provider-cli-install-jobs-changed": "provider-cli-install-jobs-changed";
|
|
584
585
|
"provider-cli-status-changed": "provider-cli-status-changed";
|
|
585
586
|
"provider-commands-changed": "provider-commands-changed";
|
|
586
587
|
"provider-model-catalog-changed": "provider-model-catalog-changed";
|
|
@@ -8919,6 +8920,64 @@ type HostPickFolderResponse = PickFolderResponse;
|
|
|
8919
8920
|
type HostProviderCliStatusResponse = ProviderCliStatusResponse;
|
|
8920
8921
|
type HostProviderCliInstallRequest = ProviderCliInstallRequest;
|
|
8921
8922
|
type HostProviderCliInstallEvent = ProviderCliInstallEvent;
|
|
8923
|
+
declare const hostProviderCliInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8924
|
+
actionKind: z$1.ZodEnum<{
|
|
8925
|
+
install: "install";
|
|
8926
|
+
update: "update";
|
|
8927
|
+
}>;
|
|
8928
|
+
hostId: z$1.ZodString;
|
|
8929
|
+
id: z$1.ZodString;
|
|
8930
|
+
provider: z$1.ZodString;
|
|
8931
|
+
startedAt: z$1.ZodNumber;
|
|
8932
|
+
state: z$1.ZodLiteral<"running">;
|
|
8933
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8934
|
+
actionKind: z$1.ZodEnum<{
|
|
8935
|
+
install: "install";
|
|
8936
|
+
update: "update";
|
|
8937
|
+
}>;
|
|
8938
|
+
events: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8939
|
+
command: z$1.ZodString;
|
|
8940
|
+
provider: z$1.ZodString;
|
|
8941
|
+
type: z$1.ZodLiteral<"started">;
|
|
8942
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8943
|
+
provider: z$1.ZodString;
|
|
8944
|
+
stream: z$1.ZodEnum<{
|
|
8945
|
+
stderr: "stderr";
|
|
8946
|
+
stdout: "stdout";
|
|
8947
|
+
}>;
|
|
8948
|
+
text: z$1.ZodString;
|
|
8949
|
+
type: z$1.ZodLiteral<"output">;
|
|
8950
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8951
|
+
exitCode: z$1.ZodNullable<z$1.ZodNumber>;
|
|
8952
|
+
provider: z$1.ZodString;
|
|
8953
|
+
signal: z$1.ZodNullable<z$1.ZodString>;
|
|
8954
|
+
success: z$1.ZodBoolean;
|
|
8955
|
+
type: z$1.ZodLiteral<"completed">;
|
|
8956
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8957
|
+
message: z$1.ZodString;
|
|
8958
|
+
provider: z$1.ZodString;
|
|
8959
|
+
type: z$1.ZodLiteral<"error">;
|
|
8960
|
+
}, z$1.core.$strip>], "type">>;
|
|
8961
|
+
finishedAt: z$1.ZodNumber;
|
|
8962
|
+
hostId: z$1.ZodString;
|
|
8963
|
+
id: z$1.ZodString;
|
|
8964
|
+
provider: z$1.ZodString;
|
|
8965
|
+
startedAt: z$1.ZodNumber;
|
|
8966
|
+
state: z$1.ZodLiteral<"completed">;
|
|
8967
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8968
|
+
actionKind: z$1.ZodEnum<{
|
|
8969
|
+
install: "install";
|
|
8970
|
+
update: "update";
|
|
8971
|
+
}>;
|
|
8972
|
+
error: z$1.ZodString;
|
|
8973
|
+
finishedAt: z$1.ZodNumber;
|
|
8974
|
+
hostId: z$1.ZodString;
|
|
8975
|
+
id: z$1.ZodString;
|
|
8976
|
+
provider: z$1.ZodString;
|
|
8977
|
+
startedAt: z$1.ZodNumber;
|
|
8978
|
+
state: z$1.ZodLiteral<"failed">;
|
|
8979
|
+
}, z$1.core.$strip>], "state">;
|
|
8980
|
+
type HostProviderCliInstallJob = z$1.infer<typeof hostProviderCliInstallJobSchema>;
|
|
8922
8981
|
|
|
8923
8982
|
declare const pluginUpdateCheckEntrySchema: z$1.ZodObject<{
|
|
8924
8983
|
blocked: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -10408,6 +10467,32 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10408
10467
|
first_run: "first_run";
|
|
10409
10468
|
replay: "replay";
|
|
10410
10469
|
}>;
|
|
10470
|
+
exit_code: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10471
|
+
failure_detail: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10472
|
+
account_unavailable: "account_unavailable";
|
|
10473
|
+
already_used: "already_used";
|
|
10474
|
+
denied: "denied";
|
|
10475
|
+
disk_full: "disk_full";
|
|
10476
|
+
exit_nonzero: "exit_nonzero";
|
|
10477
|
+
expired: "expired";
|
|
10478
|
+
expired_code: "expired_code";
|
|
10479
|
+
in_progress: "in_progress";
|
|
10480
|
+
invalid_code: "invalid_code";
|
|
10481
|
+
login_failed: "login_failed";
|
|
10482
|
+
network: "network";
|
|
10483
|
+
not_found: "not_found";
|
|
10484
|
+
npm_error: "npm_error";
|
|
10485
|
+
other: "other";
|
|
10486
|
+
permission: "permission";
|
|
10487
|
+
profile_unavailable: "profile_unavailable";
|
|
10488
|
+
rate_limited: "rate_limited";
|
|
10489
|
+
service_unavailable: "service_unavailable";
|
|
10490
|
+
signal: "signal";
|
|
10491
|
+
superseded: "superseded";
|
|
10492
|
+
unauthorized: "unauthorized";
|
|
10493
|
+
unavailable: "unavailable";
|
|
10494
|
+
verification_failed: "verification_failed";
|
|
10495
|
+
}>>;
|
|
10411
10496
|
failure_reason: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10412
10497
|
command_failed: "command_failed";
|
|
10413
10498
|
host_unavailable: "host_unavailable";
|
|
@@ -10477,6 +10562,32 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10477
10562
|
first_run: "first_run";
|
|
10478
10563
|
replay: "replay";
|
|
10479
10564
|
}>;
|
|
10565
|
+
exit_code: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10566
|
+
failure_detail: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10567
|
+
account_unavailable: "account_unavailable";
|
|
10568
|
+
already_used: "already_used";
|
|
10569
|
+
denied: "denied";
|
|
10570
|
+
disk_full: "disk_full";
|
|
10571
|
+
exit_nonzero: "exit_nonzero";
|
|
10572
|
+
expired: "expired";
|
|
10573
|
+
expired_code: "expired_code";
|
|
10574
|
+
in_progress: "in_progress";
|
|
10575
|
+
invalid_code: "invalid_code";
|
|
10576
|
+
login_failed: "login_failed";
|
|
10577
|
+
network: "network";
|
|
10578
|
+
not_found: "not_found";
|
|
10579
|
+
npm_error: "npm_error";
|
|
10580
|
+
other: "other";
|
|
10581
|
+
permission: "permission";
|
|
10582
|
+
profile_unavailable: "profile_unavailable";
|
|
10583
|
+
rate_limited: "rate_limited";
|
|
10584
|
+
service_unavailable: "service_unavailable";
|
|
10585
|
+
signal: "signal";
|
|
10586
|
+
superseded: "superseded";
|
|
10587
|
+
unauthorized: "unauthorized";
|
|
10588
|
+
unavailable: "unavailable";
|
|
10589
|
+
verification_failed: "verification_failed";
|
|
10590
|
+
}>>;
|
|
10480
10591
|
failure_reason: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10481
10592
|
command_failed: "command_failed";
|
|
10482
10593
|
host_unavailable: "host_unavailable";
|
|
@@ -18108,6 +18219,20 @@ interface HostPickFolderArgs extends HostPickFolderRequest {
|
|
|
18108
18219
|
}
|
|
18109
18220
|
interface HostProviderCliInstallArgs extends HostProviderCliInstallRequest {
|
|
18110
18221
|
hostId: string;
|
|
18222
|
+
signal?: AbortSignal;
|
|
18223
|
+
}
|
|
18224
|
+
interface HostProviderCliInstallJobArgs {
|
|
18225
|
+
hostId: string;
|
|
18226
|
+
jobId: string;
|
|
18227
|
+
signal?: AbortSignal;
|
|
18228
|
+
}
|
|
18229
|
+
interface HostProviderCliInstallJobWaitArgs extends HostProviderCliInstallJobArgs {
|
|
18230
|
+
onJob?: (job: HostProviderCliInstallJob) => void;
|
|
18231
|
+
}
|
|
18232
|
+
interface HostProviderCliInstallJobsArea {
|
|
18233
|
+
list(args: HostGetArgs): Promise<HostProviderCliInstallJob[]>;
|
|
18234
|
+
get(args: HostProviderCliInstallJobArgs): Promise<HostProviderCliInstallJob>;
|
|
18235
|
+
wait(args: HostProviderCliInstallJobWaitArgs): Promise<HostProviderCliInstallJob>;
|
|
18111
18236
|
}
|
|
18112
18237
|
interface HostListArgs {
|
|
18113
18238
|
includeCreating?: boolean;
|
|
@@ -18156,6 +18281,8 @@ interface HostsArea {
|
|
|
18156
18281
|
get(args: HostGetArgs): Promise<HostGetResult>;
|
|
18157
18282
|
cloneDefaultPath(args: HostCloneDefaultPathArgs): Promise<HostCloneDefaultPathResult>;
|
|
18158
18283
|
installProviderCli(args: HostProviderCliInstallArgs): Promise<HostProviderCliInstallResult>;
|
|
18284
|
+
experimental_startProviderCliInstall(args: HostProviderCliInstallArgs): Promise<HostProviderCliInstallJob>;
|
|
18285
|
+
experimental_providerCliInstallJobs: HostProviderCliInstallJobsArea;
|
|
18159
18286
|
list(args?: HostListArgs): Promise<HostListResult>;
|
|
18160
18287
|
experimental_listProviders(args?: MachineProviderListArgs): Promise<MachineProviderListResult>;
|
|
18161
18288
|
pathsExist(args: HostPathsExistArgs): Promise<HostPathsExistResult>;
|
|
@@ -21977,15 +22104,20 @@ interface PluginSettingsSectionProps {
|
|
|
21977
22104
|
/**
|
|
21978
22105
|
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
21979
22106
|
* Set only when the setup guide renders the section; call it when a setup
|
|
21980
|
-
* attempt fails, with the stage that failed.
|
|
22107
|
+
* attempt fails, with the stage that failed and, when known, why.
|
|
21981
22108
|
*/
|
|
21982
|
-
internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage) => void;
|
|
22109
|
+
internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
|
|
21983
22110
|
}
|
|
21984
22111
|
/**
|
|
21985
22112
|
* Stage of a setup guide section's setup attempt that failed.
|
|
21986
22113
|
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
21987
22114
|
*/
|
|
21988
22115
|
type InternalDoNotUseSetupFailureStage = "pairing" | "sign_in" | "turn_on";
|
|
22116
|
+
/**
|
|
22117
|
+
* Why a setup guide section's setup attempt failed: a fixed code, never a
|
|
22118
|
+
* message. Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
22119
|
+
*/
|
|
22120
|
+
type InternalDoNotUseSetupFailureDetail = "account_unavailable" | "already_used" | "denied" | "expired" | "expired_code" | "invalid_code" | "login_failed" | "network" | "other" | "profile_unavailable" | "rate_limited" | "service_unavailable" | "superseded" | "unauthorized";
|
|
21989
22121
|
/**
|
|
21990
22122
|
* Props passed to an `experimental_appOverlay` component.
|
|
21991
22123
|
*
|
|
@@ -22003,8 +22135,8 @@ interface InternalDoNotUseSetupGuideSectionProps {
|
|
|
22003
22135
|
onPhone: boolean;
|
|
22004
22136
|
/** Call when the user starts setting up this section. */
|
|
22005
22137
|
onSetupStarted: () => void;
|
|
22006
|
-
/** Call when a setup attempt fails, with the stage that failed. */
|
|
22007
|
-
onSetupFailed: (stage: InternalDoNotUseSetupFailureStage) => void;
|
|
22138
|
+
/** Call when a setup attempt fails, with the stage that failed and, when known, why. */
|
|
22139
|
+
onSetupFailed: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
|
|
22008
22140
|
}
|
|
22009
22141
|
type ExperimentalPageTitle = ({
|
|
22010
22142
|
title: string;
|
|
@@ -27689,4 +27821,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
|
27689
27821
|
};
|
|
27690
27822
|
|
|
27691
27823
|
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 };
|
|
27692
|
-
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, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, 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, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, 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, InternalDoNotUseSetupFailureStage, 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 };
|
|
27824
|
+
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, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, 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, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, 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, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, 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 };
|
|
@@ -2033,7 +2033,8 @@ var HOST_CHANGE_KINDS = [
|
|
|
2033
2033
|
"host-disconnected",
|
|
2034
2034
|
"provider-model-catalog-changed",
|
|
2035
2035
|
"provider-commands-changed",
|
|
2036
|
-
"provider-cli-status-changed"
|
|
2036
|
+
"provider-cli-status-changed",
|
|
2037
|
+
"provider-cli-install-jobs-changed"
|
|
2037
2038
|
];
|
|
2038
2039
|
var SYSTEM_CHANGE_KINDS = [
|
|
2039
2040
|
"config-changed",
|
|
@@ -15235,7 +15235,19 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15235
15235
|
})
|
|
15236
15236
|
];
|
|
15237
15237
|
}
|
|
15238
|
-
const
|
|
15238
|
+
const classified = classifyCall(context, merged);
|
|
15239
|
+
const mergedType = classified.item.type;
|
|
15240
|
+
const previous = open === void 0 ? void 0 : classifyCall(context, open.event);
|
|
15241
|
+
const refreshed = [];
|
|
15242
|
+
if (previous?.item.type === "command" && classified.item.type === "command" && (previous.item.command !== classified.item.command || previous.presentation.title !== classified.presentation.title)) {
|
|
15243
|
+
refreshed.push({
|
|
15244
|
+
kind: "item.open",
|
|
15245
|
+
key: { providerItemId: event.toolCallId },
|
|
15246
|
+
item: classified.item,
|
|
15247
|
+
presentation: classified.presentation,
|
|
15248
|
+
noTurnFallback: noTurnFallbackFor(rawEvent)
|
|
15249
|
+
});
|
|
15250
|
+
}
|
|
15239
15251
|
mergedToolCalls.set(key, {
|
|
15240
15252
|
event: merged,
|
|
15241
15253
|
openedType: open?.openedType ?? mergedType,
|
|
@@ -15246,7 +15258,11 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15246
15258
|
if (event.status === "in_progress" && mergedType === "command" && open?.openedType === "command") {
|
|
15247
15259
|
const normalizedEvent = dialect.normalizeCommandEvent?.(event, merged) ?? event;
|
|
15248
15260
|
const streamed = extractAcpStreamedCommandOutput(normalizedEvent);
|
|
15249
|
-
|
|
15261
|
+
if (streamed === void 0) {
|
|
15262
|
+
return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
|
|
15263
|
+
}
|
|
15264
|
+
return [
|
|
15265
|
+
...refreshed,
|
|
15250
15266
|
{
|
|
15251
15267
|
kind: "command.outputSnapshot",
|
|
15252
15268
|
key: { providerItemId: event.toolCallId },
|
|
@@ -15257,7 +15273,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15257
15273
|
const progressEvent = dialect.normalizeToolCallEvent?.(event, merged) ?? event;
|
|
15258
15274
|
const progressText = extractAcpToolCallOutputText(progressEvent);
|
|
15259
15275
|
if (progressText === void 0) {
|
|
15260
|
-
return suppressedUnhandled(rawEvent);
|
|
15276
|
+
return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
|
|
15261
15277
|
}
|
|
15262
15278
|
if (mergedType !== "command" && mergedType !== "fileChange") {
|
|
15263
15279
|
return [
|
|
@@ -15271,7 +15287,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15271
15287
|
}
|
|
15272
15288
|
];
|
|
15273
15289
|
}
|
|
15274
|
-
return suppressedUnhandled(rawEvent);
|
|
15290
|
+
return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
|
|
15275
15291
|
}
|
|
15276
15292
|
case "plan": {
|
|
15277
15293
|
const parsed = acpPlanUpdateSchema.safeParse(update);
|
|
@@ -15376,8 +15392,10 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15376
15392
|
function translateAcpEvent(event, context) {
|
|
15377
15393
|
const errorEnvelope = errorEnvelopeSchema.safeParse(event);
|
|
15378
15394
|
if (errorEnvelope.success) {
|
|
15395
|
+
const closed = flushOpenTurnWork(context, "failed");
|
|
15379
15396
|
clearThreadCalls(context);
|
|
15380
15397
|
return [
|
|
15398
|
+
...closed,
|
|
15381
15399
|
{
|
|
15382
15400
|
kind: "provider.error",
|
|
15383
15401
|
message: "Provider error",
|
|
@@ -15398,9 +15416,10 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15398
15416
|
if (!params.success) {
|
|
15399
15417
|
return [];
|
|
15400
15418
|
}
|
|
15419
|
+
const closed = flushOpenTurnWork(context, "interrupted");
|
|
15401
15420
|
clearThreadCalls(context);
|
|
15402
15421
|
filesAddedThisTurn.clear();
|
|
15403
|
-
return [{ kind: "turn.open" }];
|
|
15422
|
+
return [...closed, { kind: "turn.open" }];
|
|
15404
15423
|
}
|
|
15405
15424
|
case ACP_PROMPT_INTERRUPTED_METHOD: {
|
|
15406
15425
|
const params = acpTurnStartedNotificationParamsSchema.safeParse(
|
|
@@ -15427,8 +15446,10 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15427
15446
|
if (!params.success) {
|
|
15428
15447
|
return [];
|
|
15429
15448
|
}
|
|
15449
|
+
const closed = flushOpenTurnWork(context, "interrupted");
|
|
15430
15450
|
clearThreadCalls(context);
|
|
15431
15451
|
return [
|
|
15452
|
+
...closed,
|
|
15432
15453
|
{ kind: "turn.open" },
|
|
15433
15454
|
{
|
|
15434
15455
|
kind: "item.open",
|
|
@@ -22432,7 +22453,7 @@ async function loadDeclaredSessionOptions(agent, parameterizedModelPicker, diale
|
|
|
22432
22453
|
let timeout;
|
|
22433
22454
|
const timeoutReached = new Promise((_, reject) => {
|
|
22434
22455
|
timeout = setTimeout(() => {
|
|
22435
|
-
connection.kill();
|
|
22456
|
+
void connection.kill();
|
|
22436
22457
|
reject(
|
|
22437
22458
|
new Error(
|
|
22438
22459
|
`ACP option discovery timed out after ${MODEL_LIST_TIMEOUT_MS}ms`
|
|
@@ -22530,7 +22551,7 @@ async function loadSessionDiscoveredModels(agent, reasoningProbePriorityModelIds
|
|
|
22530
22551
|
let timeout;
|
|
22531
22552
|
const timeoutReached = new Promise((_, reject) => {
|
|
22532
22553
|
timeout = setTimeout(() => {
|
|
22533
|
-
connection.kill();
|
|
22554
|
+
void connection.kill();
|
|
22534
22555
|
reject(
|
|
22535
22556
|
new Error(
|
|
22536
22557
|
`The agent did not answer within ${MODEL_LIST_TIMEOUT_MS / 1e3} seconds while bb asked it for its models`
|
|
@@ -22666,7 +22687,7 @@ async function discoverAcpNativeModelSupport(args) {
|
|
|
22666
22687
|
const timeoutReached = new Promise((resolve5) => {
|
|
22667
22688
|
timeout = setTimeout(() => {
|
|
22668
22689
|
timedOut = true;
|
|
22669
|
-
args.connection.kill();
|
|
22690
|
+
void args.connection.kill();
|
|
22670
22691
|
resolve5(supportByModel);
|
|
22671
22692
|
}, ACP_NATIVE_REASONING_DISCOVERY_TIMEOUT_MS);
|
|
22672
22693
|
});
|
|
@@ -23503,13 +23524,18 @@ async function startAgentSession(request) {
|
|
|
23503
23524
|
let loadedConfigOptions;
|
|
23504
23525
|
let loadedModels;
|
|
23505
23526
|
let createdFreshSession = false;
|
|
23527
|
+
let forkHandoffProviderThreadId;
|
|
23506
23528
|
if (request.kind === "fork") {
|
|
23507
|
-
const
|
|
23529
|
+
const source = getSessionByProviderThreadId(
|
|
23530
|
+
request.sourceProviderThreadId
|
|
23531
|
+
);
|
|
23532
|
+
const handoffSource = source !== void 0 && !source.stopping && !source.connection.exited && source.capabilities?.session.fork === true && source.capabilities.session.close === true && (capabilities.session.resume || supportsLoadSession) ? source : void 0;
|
|
23533
|
+
const forkedSession = await (handoffSource?.connection ?? connection).request({
|
|
23508
23534
|
method: "session/fork",
|
|
23509
23535
|
params: {
|
|
23510
23536
|
sessionId: request.sourceProviderThreadId,
|
|
23511
23537
|
cwd: params.cwd,
|
|
23512
|
-
mcpServers,
|
|
23538
|
+
mcpServers: handoffSource === void 0 ? mcpServers : [],
|
|
23513
23539
|
...additionalSessionDirectories(params, capabilities)
|
|
23514
23540
|
},
|
|
23515
23541
|
resultSchema: acpSessionForkResultSchema,
|
|
@@ -23520,21 +23546,33 @@ async function startAgentSession(request) {
|
|
|
23520
23546
|
`ACP agent "${agentLabel}" returned an active session ID for session/fork.`
|
|
23521
23547
|
);
|
|
23522
23548
|
}
|
|
23523
|
-
sessionId = forkedSession.sessionId;
|
|
23524
23549
|
loadedConfigOptions = forkedSession.configOptions;
|
|
23525
23550
|
loadedModels = forkedSession.models;
|
|
23526
|
-
|
|
23527
|
-
|
|
23551
|
+
if (handoffSource === void 0) {
|
|
23552
|
+
sessionId = forkedSession.sessionId;
|
|
23553
|
+
rememberGrokContextWindow(session, forkedSession.models);
|
|
23554
|
+
} else {
|
|
23555
|
+
forkHandoffProviderThreadId = forkedSession.sessionId;
|
|
23556
|
+
await handoffSource.connection.request({
|
|
23557
|
+
method: "session/close",
|
|
23558
|
+
params: { sessionId: forkedSession.sessionId },
|
|
23559
|
+
resultSchema: z51.unknown(),
|
|
23560
|
+
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
23561
|
+
});
|
|
23562
|
+
}
|
|
23563
|
+
}
|
|
23564
|
+
const resumeProviderThreadId = request.kind === "resume" ? request.resumeProviderThreadId : forkHandoffProviderThreadId;
|
|
23565
|
+
if (resumeProviderThreadId !== void 0 && (capabilities.session.resume || supportsLoadSession)) {
|
|
23528
23566
|
const restoreMethod = capabilities.session.resume ? "session/resume" : "session/load";
|
|
23529
23567
|
session.loading = true;
|
|
23530
|
-
session.loadingSessionId =
|
|
23568
|
+
session.loadingSessionId = resumeProviderThreadId;
|
|
23531
23569
|
session.pendingLoadUsageUpdate = void 0;
|
|
23532
23570
|
session.model.beginReplay();
|
|
23533
23571
|
try {
|
|
23534
23572
|
const configState = await connection.request({
|
|
23535
23573
|
method: restoreMethod,
|
|
23536
23574
|
params: {
|
|
23537
|
-
sessionId:
|
|
23575
|
+
sessionId: resumeProviderThreadId,
|
|
23538
23576
|
cwd: params.cwd,
|
|
23539
23577
|
mcpServers,
|
|
23540
23578
|
...additionalSessionDirectories(params, capabilities)
|
|
@@ -23542,12 +23580,16 @@ async function startAgentSession(request) {
|
|
|
23542
23580
|
resultSchema: z51.union([acpConfigStateResultSchema, z51.null()]),
|
|
23543
23581
|
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
23544
23582
|
});
|
|
23545
|
-
|
|
23546
|
-
|
|
23583
|
+
if (configState?.configOptions !== void 0) {
|
|
23584
|
+
loadedConfigOptions = configState.configOptions;
|
|
23585
|
+
}
|
|
23586
|
+
if (configState?.models !== void 0) {
|
|
23587
|
+
loadedModels = configState.models;
|
|
23588
|
+
}
|
|
23547
23589
|
rememberGrokContextWindow(session, configState?.models);
|
|
23548
|
-
sessionId =
|
|
23590
|
+
sessionId = resumeProviderThreadId;
|
|
23549
23591
|
} catch (error) {
|
|
23550
|
-
if (isAcpAuthRequiredResponse(error)) {
|
|
23592
|
+
if (isAcpAuthRequiredResponse(error) || request.kind === "fork") {
|
|
23551
23593
|
throw error;
|
|
23552
23594
|
}
|
|
23553
23595
|
sessionId = void 0;
|
|
@@ -23872,6 +23914,9 @@ function noteAgentResponse(session, method, result) {
|
|
|
23872
23914
|
case "session/load":
|
|
23873
23915
|
case "session/resume":
|
|
23874
23916
|
case "session/fork":
|
|
23917
|
+
if (session.providerThreadId !== "") {
|
|
23918
|
+
return;
|
|
23919
|
+
}
|
|
23875
23920
|
publishSessionStateEvents(
|
|
23876
23921
|
session,
|
|
23877
23922
|
session.model.applySessionSetup(result)
|
|
@@ -24908,7 +24953,12 @@ async function probeAcpAgent(request) {
|
|
|
24908
24953
|
} catch (error) {
|
|
24909
24954
|
return { reachable: false, reason: describe(error) };
|
|
24910
24955
|
} finally {
|
|
24911
|
-
connected.kill()
|
|
24956
|
+
void connected.kill().catch((error) => {
|
|
24957
|
+
process.stderr.write(
|
|
24958
|
+
`acp probe: stopping "${request.command}" failed: ${describe(error)}
|
|
24959
|
+
`
|
|
24960
|
+
);
|
|
24961
|
+
});
|
|
24912
24962
|
}
|
|
24913
24963
|
}
|
|
24914
24964
|
var acpAgentProbeSchema = z52.union([
|
|
@@ -15235,7 +15235,19 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15235
15235
|
})
|
|
15236
15236
|
];
|
|
15237
15237
|
}
|
|
15238
|
-
const
|
|
15238
|
+
const classified = classifyCall(context, merged);
|
|
15239
|
+
const mergedType = classified.item.type;
|
|
15240
|
+
const previous = open === void 0 ? void 0 : classifyCall(context, open.event);
|
|
15241
|
+
const refreshed = [];
|
|
15242
|
+
if (previous?.item.type === "command" && classified.item.type === "command" && (previous.item.command !== classified.item.command || previous.presentation.title !== classified.presentation.title)) {
|
|
15243
|
+
refreshed.push({
|
|
15244
|
+
kind: "item.open",
|
|
15245
|
+
key: { providerItemId: event.toolCallId },
|
|
15246
|
+
item: classified.item,
|
|
15247
|
+
presentation: classified.presentation,
|
|
15248
|
+
noTurnFallback: noTurnFallbackFor(rawEvent)
|
|
15249
|
+
});
|
|
15250
|
+
}
|
|
15239
15251
|
mergedToolCalls.set(key, {
|
|
15240
15252
|
event: merged,
|
|
15241
15253
|
openedType: open?.openedType ?? mergedType,
|
|
@@ -15246,7 +15258,11 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15246
15258
|
if (event.status === "in_progress" && mergedType === "command" && open?.openedType === "command") {
|
|
15247
15259
|
const normalizedEvent = dialect.normalizeCommandEvent?.(event, merged) ?? event;
|
|
15248
15260
|
const streamed = extractAcpStreamedCommandOutput(normalizedEvent);
|
|
15249
|
-
|
|
15261
|
+
if (streamed === void 0) {
|
|
15262
|
+
return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
|
|
15263
|
+
}
|
|
15264
|
+
return [
|
|
15265
|
+
...refreshed,
|
|
15250
15266
|
{
|
|
15251
15267
|
kind: "command.outputSnapshot",
|
|
15252
15268
|
key: { providerItemId: event.toolCallId },
|
|
@@ -15257,7 +15273,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15257
15273
|
const progressEvent = dialect.normalizeToolCallEvent?.(event, merged) ?? event;
|
|
15258
15274
|
const progressText = extractAcpToolCallOutputText(progressEvent);
|
|
15259
15275
|
if (progressText === void 0) {
|
|
15260
|
-
return suppressedUnhandled(rawEvent);
|
|
15276
|
+
return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
|
|
15261
15277
|
}
|
|
15262
15278
|
if (mergedType !== "command" && mergedType !== "fileChange") {
|
|
15263
15279
|
return [
|
|
@@ -15271,7 +15287,7 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15271
15287
|
}
|
|
15272
15288
|
];
|
|
15273
15289
|
}
|
|
15274
|
-
return suppressedUnhandled(rawEvent);
|
|
15290
|
+
return refreshed.length === 0 ? suppressedUnhandled(rawEvent) : refreshed;
|
|
15275
15291
|
}
|
|
15276
15292
|
case "plan": {
|
|
15277
15293
|
const parsed = acpPlanUpdateSchema.safeParse(update);
|
|
@@ -15376,8 +15392,10 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15376
15392
|
function translateAcpEvent(event, context) {
|
|
15377
15393
|
const errorEnvelope = errorEnvelopeSchema.safeParse(event);
|
|
15378
15394
|
if (errorEnvelope.success) {
|
|
15395
|
+
const closed = flushOpenTurnWork(context, "failed");
|
|
15379
15396
|
clearThreadCalls(context);
|
|
15380
15397
|
return [
|
|
15398
|
+
...closed,
|
|
15381
15399
|
{
|
|
15382
15400
|
kind: "provider.error",
|
|
15383
15401
|
message: "Provider error",
|
|
@@ -15398,9 +15416,10 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15398
15416
|
if (!params.success) {
|
|
15399
15417
|
return [];
|
|
15400
15418
|
}
|
|
15419
|
+
const closed = flushOpenTurnWork(context, "interrupted");
|
|
15401
15420
|
clearThreadCalls(context);
|
|
15402
15421
|
filesAddedThisTurn.clear();
|
|
15403
|
-
return [{ kind: "turn.open" }];
|
|
15422
|
+
return [...closed, { kind: "turn.open" }];
|
|
15404
15423
|
}
|
|
15405
15424
|
case ACP_PROMPT_INTERRUPTED_METHOD: {
|
|
15406
15425
|
const params = acpTurnStartedNotificationParamsSchema.safeParse(
|
|
@@ -15427,8 +15446,10 @@ function createAcpDeltaTranslator(options = {}) {
|
|
|
15427
15446
|
if (!params.success) {
|
|
15428
15447
|
return [];
|
|
15429
15448
|
}
|
|
15449
|
+
const closed = flushOpenTurnWork(context, "interrupted");
|
|
15430
15450
|
clearThreadCalls(context);
|
|
15431
15451
|
return [
|
|
15452
|
+
...closed,
|
|
15432
15453
|
{ kind: "turn.open" },
|
|
15433
15454
|
{
|
|
15434
15455
|
kind: "item.open",
|
|
@@ -22432,7 +22453,7 @@ async function loadDeclaredSessionOptions(agent, parameterizedModelPicker, diale
|
|
|
22432
22453
|
let timeout;
|
|
22433
22454
|
const timeoutReached = new Promise((_, reject) => {
|
|
22434
22455
|
timeout = setTimeout(() => {
|
|
22435
|
-
connection.kill();
|
|
22456
|
+
void connection.kill();
|
|
22436
22457
|
reject(
|
|
22437
22458
|
new Error(
|
|
22438
22459
|
`ACP option discovery timed out after ${MODEL_LIST_TIMEOUT_MS}ms`
|
|
@@ -22530,7 +22551,7 @@ async function loadSessionDiscoveredModels(agent, reasoningProbePriorityModelIds
|
|
|
22530
22551
|
let timeout;
|
|
22531
22552
|
const timeoutReached = new Promise((_, reject) => {
|
|
22532
22553
|
timeout = setTimeout(() => {
|
|
22533
|
-
connection.kill();
|
|
22554
|
+
void connection.kill();
|
|
22534
22555
|
reject(
|
|
22535
22556
|
new Error(
|
|
22536
22557
|
`The agent did not answer within ${MODEL_LIST_TIMEOUT_MS / 1e3} seconds while bb asked it for its models`
|
|
@@ -22666,7 +22687,7 @@ async function discoverAcpNativeModelSupport(args) {
|
|
|
22666
22687
|
const timeoutReached = new Promise((resolve5) => {
|
|
22667
22688
|
timeout = setTimeout(() => {
|
|
22668
22689
|
timedOut = true;
|
|
22669
|
-
args.connection.kill();
|
|
22690
|
+
void args.connection.kill();
|
|
22670
22691
|
resolve5(supportByModel);
|
|
22671
22692
|
}, ACP_NATIVE_REASONING_DISCOVERY_TIMEOUT_MS);
|
|
22672
22693
|
});
|
|
@@ -23503,13 +23524,18 @@ async function startAgentSession(request) {
|
|
|
23503
23524
|
let loadedConfigOptions;
|
|
23504
23525
|
let loadedModels;
|
|
23505
23526
|
let createdFreshSession = false;
|
|
23527
|
+
let forkHandoffProviderThreadId;
|
|
23506
23528
|
if (request.kind === "fork") {
|
|
23507
|
-
const
|
|
23529
|
+
const source = getSessionByProviderThreadId(
|
|
23530
|
+
request.sourceProviderThreadId
|
|
23531
|
+
);
|
|
23532
|
+
const handoffSource = source !== void 0 && !source.stopping && !source.connection.exited && source.capabilities?.session.fork === true && source.capabilities.session.close === true && (capabilities.session.resume || supportsLoadSession) ? source : void 0;
|
|
23533
|
+
const forkedSession = await (handoffSource?.connection ?? connection).request({
|
|
23508
23534
|
method: "session/fork",
|
|
23509
23535
|
params: {
|
|
23510
23536
|
sessionId: request.sourceProviderThreadId,
|
|
23511
23537
|
cwd: params.cwd,
|
|
23512
|
-
mcpServers,
|
|
23538
|
+
mcpServers: handoffSource === void 0 ? mcpServers : [],
|
|
23513
23539
|
...additionalSessionDirectories(params, capabilities)
|
|
23514
23540
|
},
|
|
23515
23541
|
resultSchema: acpSessionForkResultSchema,
|
|
@@ -23520,21 +23546,33 @@ async function startAgentSession(request) {
|
|
|
23520
23546
|
`ACP agent "${agentLabel}" returned an active session ID for session/fork.`
|
|
23521
23547
|
);
|
|
23522
23548
|
}
|
|
23523
|
-
sessionId = forkedSession.sessionId;
|
|
23524
23549
|
loadedConfigOptions = forkedSession.configOptions;
|
|
23525
23550
|
loadedModels = forkedSession.models;
|
|
23526
|
-
|
|
23527
|
-
|
|
23551
|
+
if (handoffSource === void 0) {
|
|
23552
|
+
sessionId = forkedSession.sessionId;
|
|
23553
|
+
rememberGrokContextWindow(session, forkedSession.models);
|
|
23554
|
+
} else {
|
|
23555
|
+
forkHandoffProviderThreadId = forkedSession.sessionId;
|
|
23556
|
+
await handoffSource.connection.request({
|
|
23557
|
+
method: "session/close",
|
|
23558
|
+
params: { sessionId: forkedSession.sessionId },
|
|
23559
|
+
resultSchema: z51.unknown(),
|
|
23560
|
+
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
23561
|
+
});
|
|
23562
|
+
}
|
|
23563
|
+
}
|
|
23564
|
+
const resumeProviderThreadId = request.kind === "resume" ? request.resumeProviderThreadId : forkHandoffProviderThreadId;
|
|
23565
|
+
if (resumeProviderThreadId !== void 0 && (capabilities.session.resume || supportsLoadSession)) {
|
|
23528
23566
|
const restoreMethod = capabilities.session.resume ? "session/resume" : "session/load";
|
|
23529
23567
|
session.loading = true;
|
|
23530
|
-
session.loadingSessionId =
|
|
23568
|
+
session.loadingSessionId = resumeProviderThreadId;
|
|
23531
23569
|
session.pendingLoadUsageUpdate = void 0;
|
|
23532
23570
|
session.model.beginReplay();
|
|
23533
23571
|
try {
|
|
23534
23572
|
const configState = await connection.request({
|
|
23535
23573
|
method: restoreMethod,
|
|
23536
23574
|
params: {
|
|
23537
|
-
sessionId:
|
|
23575
|
+
sessionId: resumeProviderThreadId,
|
|
23538
23576
|
cwd: params.cwd,
|
|
23539
23577
|
mcpServers,
|
|
23540
23578
|
...additionalSessionDirectories(params, capabilities)
|
|
@@ -23542,12 +23580,16 @@ async function startAgentSession(request) {
|
|
|
23542
23580
|
resultSchema: z51.union([acpConfigStateResultSchema, z51.null()]),
|
|
23543
23581
|
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
23544
23582
|
});
|
|
23545
|
-
|
|
23546
|
-
|
|
23583
|
+
if (configState?.configOptions !== void 0) {
|
|
23584
|
+
loadedConfigOptions = configState.configOptions;
|
|
23585
|
+
}
|
|
23586
|
+
if (configState?.models !== void 0) {
|
|
23587
|
+
loadedModels = configState.models;
|
|
23588
|
+
}
|
|
23547
23589
|
rememberGrokContextWindow(session, configState?.models);
|
|
23548
|
-
sessionId =
|
|
23590
|
+
sessionId = resumeProviderThreadId;
|
|
23549
23591
|
} catch (error) {
|
|
23550
|
-
if (isAcpAuthRequiredResponse(error)) {
|
|
23592
|
+
if (isAcpAuthRequiredResponse(error) || request.kind === "fork") {
|
|
23551
23593
|
throw error;
|
|
23552
23594
|
}
|
|
23553
23595
|
sessionId = void 0;
|
|
@@ -23872,6 +23914,9 @@ function noteAgentResponse(session, method, result) {
|
|
|
23872
23914
|
case "session/load":
|
|
23873
23915
|
case "session/resume":
|
|
23874
23916
|
case "session/fork":
|
|
23917
|
+
if (session.providerThreadId !== "") {
|
|
23918
|
+
return;
|
|
23919
|
+
}
|
|
23875
23920
|
publishSessionStateEvents(
|
|
23876
23921
|
session,
|
|
23877
23922
|
session.model.applySessionSetup(result)
|
|
@@ -24908,7 +24953,12 @@ async function probeAcpAgent(request) {
|
|
|
24908
24953
|
} catch (error) {
|
|
24909
24954
|
return { reachable: false, reason: describe(error) };
|
|
24910
24955
|
} finally {
|
|
24911
|
-
connected.kill()
|
|
24956
|
+
void connected.kill().catch((error) => {
|
|
24957
|
+
process.stderr.write(
|
|
24958
|
+
`acp probe: stopping "${request.command}" failed: ${describe(error)}
|
|
24959
|
+
`
|
|
24960
|
+
);
|
|
24961
|
+
});
|
|
24912
24962
|
}
|
|
24913
24963
|
}
|
|
24914
24964
|
var acpAgentProbeSchema = z52.union([
|
package/dist/testing/app.js
CHANGED
|
@@ -2036,7 +2036,8 @@ var HOST_CHANGE_KINDS = [
|
|
|
2036
2036
|
"host-disconnected",
|
|
2037
2037
|
"provider-model-catalog-changed",
|
|
2038
2038
|
"provider-commands-changed",
|
|
2039
|
-
"provider-cli-status-changed"
|
|
2039
|
+
"provider-cli-status-changed",
|
|
2040
|
+
"provider-cli-install-jobs-changed"
|
|
2040
2041
|
];
|
|
2041
2042
|
var SYSTEM_CHANGE_KINDS = [
|
|
2042
2043
|
"config-changed",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@get-bb/plugin-sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.140",
|
|
4
4
|
"homepage": "https://github.com/get-bb/bb#readme",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/get-bb/bb/issues"
|
|
@@ -161,7 +161,8 @@
|
|
|
161
161
|
"clean": "rimraf bundled-types dist tsconfig.tsbuildinfo",
|
|
162
162
|
"prepack": "node --max-semi-space-size=128 --max-old-space-size=4096 scripts/build-bundled-dts.mjs && node scripts/build-runtime.mjs",
|
|
163
163
|
"test": "vitest run --config vitest.config.ts",
|
|
164
|
-
"typecheck": "tsrs --noEmit"
|
|
164
|
+
"typecheck": "tsrs --noEmit",
|
|
165
|
+
"lint:type-aware": "oxlint -c ../../.oxlintrc.type-aware.json"
|
|
165
166
|
},
|
|
166
167
|
"dependencies": {
|
|
167
168
|
"@tanstack/react-query": "^5.106.1",
|