@get-bb/plugin-sdk 0.6.89 → 0.6.90
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 +54 -29
- package/bundled-types/bb-plugin-sdk-internal-rpc-query-host.d.ts +7 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +5 -0
- package/bundled-types/bb-plugin-sdk.d.ts +50 -28
- package/dist/app.js +12 -0
- package/dist/internal/rpc-query-host.js +68 -50
- package/dist/provider-bridge-acp-next.js +15 -3
- package/dist/provider-bridge-acp.js +15 -3
- package/dist/testing/app.js +74 -50
- package/package.json +1 -1
|
@@ -146,7 +146,7 @@ declare const uiPreferenceDefinitions: {
|
|
|
146
146
|
readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
147
147
|
readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
148
148
|
readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
|
|
149
|
-
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString
|
|
149
|
+
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
150
150
|
};
|
|
151
151
|
type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
|
|
152
152
|
interface UiPreferenceEntry<Key extends UiPreferenceKey = UiPreferenceKey> {
|
|
@@ -165,7 +165,6 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
165
165
|
"browser.reload": "browser.reload";
|
|
166
166
|
"composer.focus": "composer.focus";
|
|
167
167
|
"dataDirectory.open": "dataDirectory.open";
|
|
168
|
-
"diff.toggle": "diff.toggle";
|
|
169
168
|
"file.quickOpen": "file.quickOpen";
|
|
170
169
|
"history.back": "history.back";
|
|
171
170
|
"history.forward": "history.forward";
|
|
@@ -503,6 +502,7 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
503
502
|
type Environment = z$1.infer<typeof environmentSchema>;
|
|
504
503
|
|
|
505
504
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
505
|
+
applicationLinks: "applicationLinks";
|
|
506
506
|
changelogPreview: "changelogPreview";
|
|
507
507
|
compactExpiredCache: "compactExpiredCache";
|
|
508
508
|
performanceDiagnostics: "performanceDiagnostics";
|
|
@@ -510,9 +510,11 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
510
510
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
511
511
|
timelinePush: "timelinePush";
|
|
512
512
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
513
|
+
websocketCompression: "websocketCompression";
|
|
513
514
|
}>, z$1.ZodBoolean>;
|
|
514
515
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
515
516
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
517
|
+
applicationLinks: "applicationLinks";
|
|
516
518
|
changelogPreview: "changelogPreview";
|
|
517
519
|
compactExpiredCache: "compactExpiredCache";
|
|
518
520
|
performanceDiagnostics: "performanceDiagnostics";
|
|
@@ -520,6 +522,7 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
520
522
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
521
523
|
timelinePush: "timelinePush";
|
|
522
524
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
525
|
+
websocketCompression: "websocketCompression";
|
|
523
526
|
}> & z$1.core.$partial, z$1.ZodBoolean>;
|
|
524
527
|
type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
|
|
525
528
|
|
|
@@ -10120,7 +10123,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10120
10123
|
"browser.reload": "browser.reload";
|
|
10121
10124
|
"composer.focus": "composer.focus";
|
|
10122
10125
|
"dataDirectory.open": "dataDirectory.open";
|
|
10123
|
-
"diff.toggle": "diff.toggle";
|
|
10124
10126
|
"file.quickOpen": "file.quickOpen";
|
|
10125
10127
|
"history.back": "history.back";
|
|
10126
10128
|
"history.forward": "history.forward";
|
|
@@ -10240,6 +10242,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10240
10242
|
}, z$1.core.$strict>;
|
|
10241
10243
|
}, z$1.core.$strict>>;
|
|
10242
10244
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10245
|
+
applicationLinks: "applicationLinks";
|
|
10243
10246
|
changelogPreview: "changelogPreview";
|
|
10244
10247
|
compactExpiredCache: "compactExpiredCache";
|
|
10245
10248
|
performanceDiagnostics: "performanceDiagnostics";
|
|
@@ -10247,6 +10250,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10247
10250
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
10248
10251
|
timelinePush: "timelinePush";
|
|
10249
10252
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
10253
|
+
websocketCompression: "websocketCompression";
|
|
10250
10254
|
}>, z$1.ZodBoolean>;
|
|
10251
10255
|
featureFlags: z$1.ZodObject<{
|
|
10252
10256
|
initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
@@ -10289,7 +10293,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10289
10293
|
"browser.reload": "browser.reload";
|
|
10290
10294
|
"composer.focus": "composer.focus";
|
|
10291
10295
|
"dataDirectory.open": "dataDirectory.open";
|
|
10292
|
-
"diff.toggle": "diff.toggle";
|
|
10293
10296
|
"file.quickOpen": "file.quickOpen";
|
|
10294
10297
|
"history.back": "history.back";
|
|
10295
10298
|
"history.forward": "history.forward";
|
|
@@ -10388,7 +10391,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10388
10391
|
"browser.reload": "browser.reload";
|
|
10389
10392
|
"composer.focus": "composer.focus";
|
|
10390
10393
|
"dataDirectory.open": "dataDirectory.open";
|
|
10391
|
-
"diff.toggle": "diff.toggle";
|
|
10392
10394
|
"file.quickOpen": "file.quickOpen";
|
|
10393
10395
|
"history.back": "history.back";
|
|
10394
10396
|
"history.forward": "history.forward";
|
|
@@ -18737,8 +18739,7 @@ interface PluginNavPanelProps {
|
|
|
18737
18739
|
* This slot is rendered only for an existing thread. Use
|
|
18738
18740
|
* `experimental_newThreadPanelAction` for the root New thread screen.
|
|
18739
18741
|
*/
|
|
18740
|
-
interface ExperimentalThreadActionTabProps {
|
|
18741
|
-
threadId: string;
|
|
18742
|
+
interface ExperimentalThreadActionTabProps extends ExperimentalThreadTabProps {
|
|
18742
18743
|
/**
|
|
18743
18744
|
* The JSON `params` the tab was opened with (round-tripped through
|
|
18744
18745
|
* persistence, so the tab restores across reloads); null when it was
|
|
@@ -18746,6 +18747,17 @@ interface ExperimentalThreadActionTabProps {
|
|
|
18746
18747
|
*/
|
|
18747
18748
|
params: JsonValue$1 | null;
|
|
18748
18749
|
}
|
|
18750
|
+
/** Props every thread tab receives, fixed or action. */
|
|
18751
|
+
interface ExperimentalThreadTabProps {
|
|
18752
|
+
threadId: string;
|
|
18753
|
+
/**
|
|
18754
|
+
* The thread's environment, taken from the thread so it is present on the
|
|
18755
|
+
* first render; null only when the thread has no environment. The tab reads
|
|
18756
|
+
* whatever it needs about the environment itself and handles loading and
|
|
18757
|
+
* failure there.
|
|
18758
|
+
*/
|
|
18759
|
+
environment: ExperimentalThreadEnvironment | null;
|
|
18760
|
+
}
|
|
18749
18761
|
/** Props passed to a panel tab opened by `experimental_newThreadPanelAction`. */
|
|
18750
18762
|
interface PluginNewThreadPanelProps {
|
|
18751
18763
|
/** Project selected in the root composer; null in projectless compose. */
|
|
@@ -19582,9 +19594,7 @@ type ExperimentalTabLifecycle<Props, Context> = {
|
|
|
19582
19594
|
};
|
|
19583
19595
|
type ExperimentalTabContextProps<C extends ExperimentalTabContext> = C extends {
|
|
19584
19596
|
kind: "thread";
|
|
19585
|
-
} ?
|
|
19586
|
-
threadId: string;
|
|
19587
|
-
} : PluginNavPanelProps;
|
|
19597
|
+
} ? ExperimentalThreadTabProps : PluginNavPanelProps;
|
|
19588
19598
|
type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" | "fixed"> = {
|
|
19589
19599
|
id: string;
|
|
19590
19600
|
title: string;
|
|
@@ -19614,21 +19624,11 @@ type ExperimentalTabRegistration = ExperimentalTabCommon & (({
|
|
|
19614
19624
|
context: {
|
|
19615
19625
|
kind: "thread";
|
|
19616
19626
|
};
|
|
19617
|
-
useVisible?(props:
|
|
19618
|
-
|
|
19619
|
-
}): boolean;
|
|
19620
|
-
} & ((ExperimentalTabLifecycle<{
|
|
19621
|
-
threadId: string;
|
|
19622
|
-
}, {
|
|
19623
|
-
threadId: string;
|
|
19624
|
-
}> & {
|
|
19627
|
+
useVisible?(props: ExperimentalThreadTabProps): boolean;
|
|
19628
|
+
} & ((ExperimentalTabLifecycle<ExperimentalThreadTabProps, ExperimentalThreadTabProps> & {
|
|
19625
19629
|
availability: "action";
|
|
19626
19630
|
experimental_target?: never;
|
|
19627
|
-
}) | (ExperimentalTabLifecycle<{
|
|
19628
|
-
threadId: string;
|
|
19629
|
-
}, {
|
|
19630
|
-
threadId: string;
|
|
19631
|
-
}> & {
|
|
19631
|
+
}) | (ExperimentalTabLifecycle<ExperimentalThreadTabProps, ExperimentalThreadTabProps> & {
|
|
19632
19632
|
availability: "fixed";
|
|
19633
19633
|
experimental_target?: ExperimentalFixedTabTargetContract<JsonValue$1>;
|
|
19634
19634
|
}))) | ({
|
|
@@ -20174,8 +20174,8 @@ interface ExperimentalThreadInfoProps {
|
|
|
20174
20174
|
threadId: string;
|
|
20175
20175
|
projectId: string;
|
|
20176
20176
|
/**
|
|
20177
|
-
* The thread's environment,
|
|
20178
|
-
*
|
|
20177
|
+
* The thread's environment, taken from the thread; null only when the
|
|
20178
|
+
* thread has no environment. Read its state (host, checkout, git) yourself.
|
|
20179
20179
|
*/
|
|
20180
20180
|
environment: ExperimentalThreadEnvironment | null;
|
|
20181
20181
|
}
|
|
@@ -23009,8 +23009,10 @@ interface BbNavigate {
|
|
|
23009
23009
|
hostId?: string;
|
|
23010
23010
|
}): void;
|
|
23011
23011
|
/**
|
|
23012
|
-
* Open an HTTP(S) URL using this client's BB browser preference
|
|
23013
|
-
*
|
|
23012
|
+
* Open an HTTP(S) URL using this client's BB browser preference, or request
|
|
23013
|
+
* an application link on this device with confirmation unless its scheme is approved when
|
|
23014
|
+
* the applicationLinks experiment is enabled. Returns false
|
|
23015
|
+
* for blocked or unsupported schemes. True means handled, not launched. See
|
|
23014
23016
|
* docs/api_to_audit.md.
|
|
23015
23017
|
*/
|
|
23016
23018
|
openUrl(url: string): boolean;
|
|
@@ -23056,6 +23058,13 @@ interface ExperimentalRpcQueryState<T> {
|
|
|
23056
23058
|
refetch(): Promise<void>;
|
|
23057
23059
|
}
|
|
23058
23060
|
interface ExperimentalRpcKeyedQueryState<T, Selection = Record<string, T>> extends ExperimentalRpcQueryState<Selection> {
|
|
23061
|
+
/**
|
|
23062
|
+
* Read these keys again and keep every other loaded row, for retrying one
|
|
23063
|
+
* failed row without refreshing the rest. Keys must be among this query's
|
|
23064
|
+
* keys; others are ignored. Resolves once the read settles; failures update
|
|
23065
|
+
* `error` and retain data.
|
|
23066
|
+
*/
|
|
23067
|
+
refetchKeys(keys: readonly string[]): Promise<void>;
|
|
23059
23068
|
}
|
|
23060
23069
|
interface ExperimentalRpcQueryOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
|
|
23061
23070
|
contract: Contract;
|
|
@@ -23104,6 +23113,10 @@ interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
|
|
|
23104
23113
|
* shims the specifier to that object on `globalThis.__bbPluginRuntime`.
|
|
23105
23114
|
*/
|
|
23106
23115
|
interface PluginSdkApp {
|
|
23116
|
+
/** List URL schemes approved for this BB site in the viewing client's localStorage. Core Settings uses the same implementation. */
|
|
23117
|
+
experimental_getApplicationLinkApprovals(): Promise<string[]>;
|
|
23118
|
+
/** Revoke one scheme, or all with null, for this BB site on this client. Does not grant permission. */
|
|
23119
|
+
experimental_revokeApplicationLinkApproval(scheme: string | null): Promise<string[]>;
|
|
23107
23120
|
experimental_PluginRpcCallError: typeof experimental_PluginRpcCallError;
|
|
23108
23121
|
experimental_useRpcRefresh(): {
|
|
23109
23122
|
refresh(): void;
|
|
@@ -23176,6 +23189,15 @@ interface PluginSdkApp {
|
|
|
23176
23189
|
* the answer changes. Experimental: see docs/api_to_audit.md.
|
|
23177
23190
|
*/
|
|
23178
23191
|
experimental_useCanOpenFileExternally(target: ExperimentalLiveFileTarget): boolean;
|
|
23192
|
+
/**
|
|
23193
|
+
* Whether the panel tab this component renders in is showing: it is the
|
|
23194
|
+
* selected tab of its pane and the side panel is open. False while the panel
|
|
23195
|
+
* is closed or suppressed, while another tab is selected, and outside a
|
|
23196
|
+
* panel tab. bb keeps a closed panel's tab mounted, so pause reads that only
|
|
23197
|
+
* feed what the tab draws while this is false. Works in fixed and action
|
|
23198
|
+
* tabs. Experimental: see docs/api_to_audit.md.
|
|
23199
|
+
*/
|
|
23200
|
+
experimental_useTabVisible(): boolean;
|
|
23179
23201
|
/**
|
|
23180
23202
|
* The side panel of the surface the calling component renders in: the
|
|
23181
23203
|
* thread view, the plugin page, or the New thread screen.
|
|
@@ -23688,6 +23710,7 @@ declare const experimental_usePluginId: () => string;
|
|
|
23688
23710
|
declare const experimental_useQuestionFormHost: () => ExperimentalQuestionFormHost;
|
|
23689
23711
|
declare const useBbNavigate: () => BbNavigate;
|
|
23690
23712
|
declare const experimental_useCanOpenFileExternally: (target: ExperimentalLiveFileTarget) => boolean;
|
|
23713
|
+
declare const experimental_useTabVisible: () => boolean;
|
|
23691
23714
|
declare const experimental_useAppPanel: () => ExperimentalPanelController;
|
|
23692
23715
|
declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
|
|
23693
23716
|
declare const useComposer: () => PluginComposerApi;
|
|
@@ -23737,6 +23760,8 @@ declare const experimental_useProviders: () => PluginProvidersState;
|
|
|
23737
23760
|
declare const experimental_useCodeTheme: () => PluginCodeThemeState;
|
|
23738
23761
|
declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
23739
23762
|
declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
|
|
23763
|
+
declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
23764
|
+
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
23740
23765
|
|
|
23741
|
-
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_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_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, 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_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
23742
|
-
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, 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, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
23766
|
+
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_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_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, 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_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
23767
|
+
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, 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, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
@@ -137,6 +137,13 @@ interface ExperimentalRpcQueryState<T> {
|
|
|
137
137
|
refetch(): Promise<void>;
|
|
138
138
|
}
|
|
139
139
|
interface ExperimentalRpcKeyedQueryState<T, Selection = Record<string, T>> extends ExperimentalRpcQueryState<Selection> {
|
|
140
|
+
/**
|
|
141
|
+
* Read these keys again and keep every other loaded row, for retrying one
|
|
142
|
+
* failed row without refreshing the rest. Keys must be among this query's
|
|
143
|
+
* keys; others are ignored. Resolves once the read settles; failures update
|
|
144
|
+
* `error` and retain data.
|
|
145
|
+
*/
|
|
146
|
+
refetchKeys(keys: readonly string[]): Promise<void>;
|
|
140
147
|
}
|
|
141
148
|
interface ExperimentalRpcQueryOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
|
|
142
149
|
contract: Contract;
|
|
@@ -439,6 +439,11 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
439
439
|
* false for every target.
|
|
440
440
|
*/
|
|
441
441
|
canOpenFileExternally?: (target: ExperimentalLiveFileTarget) => boolean;
|
|
442
|
+
/**
|
|
443
|
+
* Answer for `experimental_useTabVisible()`. Omitted → true, as for a tab
|
|
444
|
+
* that is selected in an open panel.
|
|
445
|
+
*/
|
|
446
|
+
tabVisible?: boolean;
|
|
442
447
|
/** Host acceptance for `useBbNavigate().experimental_openTerminal`. */
|
|
443
448
|
openTerminal?: (options: Parameters<BbNavigate["experimental_openTerminal"]>[0]) => boolean;
|
|
444
449
|
/**
|
|
@@ -161,7 +161,7 @@ declare const uiPreferenceDefinitions: {
|
|
|
161
161
|
readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
162
162
|
readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
163
163
|
readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
|
|
164
|
-
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString
|
|
164
|
+
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
165
165
|
};
|
|
166
166
|
type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
|
|
167
167
|
interface UiPreferenceEntry<Key extends UiPreferenceKey = UiPreferenceKey> {
|
|
@@ -180,7 +180,6 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
180
180
|
"browser.reload": "browser.reload";
|
|
181
181
|
"composer.focus": "composer.focus";
|
|
182
182
|
"dataDirectory.open": "dataDirectory.open";
|
|
183
|
-
"diff.toggle": "diff.toggle";
|
|
184
183
|
"file.quickOpen": "file.quickOpen";
|
|
185
184
|
"history.back": "history.back";
|
|
186
185
|
"history.forward": "history.forward";
|
|
@@ -524,6 +523,7 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
524
523
|
type Environment = z$1.infer<typeof environmentSchema>;
|
|
525
524
|
|
|
526
525
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
526
|
+
applicationLinks: "applicationLinks";
|
|
527
527
|
changelogPreview: "changelogPreview";
|
|
528
528
|
compactExpiredCache: "compactExpiredCache";
|
|
529
529
|
performanceDiagnostics: "performanceDiagnostics";
|
|
@@ -531,9 +531,11 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
531
531
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
532
532
|
timelinePush: "timelinePush";
|
|
533
533
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
534
|
+
websocketCompression: "websocketCompression";
|
|
534
535
|
}>, z$1.ZodBoolean>;
|
|
535
536
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
536
537
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
538
|
+
applicationLinks: "applicationLinks";
|
|
537
539
|
changelogPreview: "changelogPreview";
|
|
538
540
|
compactExpiredCache: "compactExpiredCache";
|
|
539
541
|
performanceDiagnostics: "performanceDiagnostics";
|
|
@@ -541,6 +543,7 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
541
543
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
542
544
|
timelinePush: "timelinePush";
|
|
543
545
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
546
|
+
websocketCompression: "websocketCompression";
|
|
544
547
|
}> & z$1.core.$partial, z$1.ZodBoolean>;
|
|
545
548
|
type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
|
|
546
549
|
|
|
@@ -10306,7 +10309,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10306
10309
|
"browser.reload": "browser.reload";
|
|
10307
10310
|
"composer.focus": "composer.focus";
|
|
10308
10311
|
"dataDirectory.open": "dataDirectory.open";
|
|
10309
|
-
"diff.toggle": "diff.toggle";
|
|
10310
10312
|
"file.quickOpen": "file.quickOpen";
|
|
10311
10313
|
"history.back": "history.back";
|
|
10312
10314
|
"history.forward": "history.forward";
|
|
@@ -10426,6 +10428,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10426
10428
|
}, z$1.core.$strict>;
|
|
10427
10429
|
}, z$1.core.$strict>>;
|
|
10428
10430
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10431
|
+
applicationLinks: "applicationLinks";
|
|
10429
10432
|
changelogPreview: "changelogPreview";
|
|
10430
10433
|
compactExpiredCache: "compactExpiredCache";
|
|
10431
10434
|
performanceDiagnostics: "performanceDiagnostics";
|
|
@@ -10433,6 +10436,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10433
10436
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
10434
10437
|
timelinePush: "timelinePush";
|
|
10435
10438
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
10439
|
+
websocketCompression: "websocketCompression";
|
|
10436
10440
|
}>, z$1.ZodBoolean>;
|
|
10437
10441
|
featureFlags: z$1.ZodObject<{
|
|
10438
10442
|
initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
@@ -10475,7 +10479,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10475
10479
|
"browser.reload": "browser.reload";
|
|
10476
10480
|
"composer.focus": "composer.focus";
|
|
10477
10481
|
"dataDirectory.open": "dataDirectory.open";
|
|
10478
|
-
"diff.toggle": "diff.toggle";
|
|
10479
10482
|
"file.quickOpen": "file.quickOpen";
|
|
10480
10483
|
"history.back": "history.back";
|
|
10481
10484
|
"history.forward": "history.forward";
|
|
@@ -10574,7 +10577,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10574
10577
|
"browser.reload": "browser.reload";
|
|
10575
10578
|
"composer.focus": "composer.focus";
|
|
10576
10579
|
"dataDirectory.open": "dataDirectory.open";
|
|
10577
|
-
"diff.toggle": "diff.toggle";
|
|
10578
10580
|
"file.quickOpen": "file.quickOpen";
|
|
10579
10581
|
"history.back": "history.back";
|
|
10580
10582
|
"history.forward": "history.forward";
|
|
@@ -21274,8 +21276,7 @@ interface PluginNavPanelProps {
|
|
|
21274
21276
|
* This slot is rendered only for an existing thread. Use
|
|
21275
21277
|
* `experimental_newThreadPanelAction` for the root New thread screen.
|
|
21276
21278
|
*/
|
|
21277
|
-
interface ExperimentalThreadActionTabProps {
|
|
21278
|
-
threadId: string;
|
|
21279
|
+
interface ExperimentalThreadActionTabProps extends ExperimentalThreadTabProps {
|
|
21279
21280
|
/**
|
|
21280
21281
|
* The JSON `params` the tab was opened with (round-tripped through
|
|
21281
21282
|
* persistence, so the tab restores across reloads); null when it was
|
|
@@ -21283,6 +21284,17 @@ interface ExperimentalThreadActionTabProps {
|
|
|
21283
21284
|
*/
|
|
21284
21285
|
params: JsonValue | null;
|
|
21285
21286
|
}
|
|
21287
|
+
/** Props every thread tab receives, fixed or action. */
|
|
21288
|
+
interface ExperimentalThreadTabProps {
|
|
21289
|
+
threadId: string;
|
|
21290
|
+
/**
|
|
21291
|
+
* The thread's environment, taken from the thread so it is present on the
|
|
21292
|
+
* first render; null only when the thread has no environment. The tab reads
|
|
21293
|
+
* whatever it needs about the environment itself and handles loading and
|
|
21294
|
+
* failure there.
|
|
21295
|
+
*/
|
|
21296
|
+
environment: ExperimentalThreadEnvironment | null;
|
|
21297
|
+
}
|
|
21286
21298
|
/** Props passed to a panel tab opened by `experimental_newThreadPanelAction`. */
|
|
21287
21299
|
interface PluginNewThreadPanelProps {
|
|
21288
21300
|
/** Project selected in the root composer; null in projectless compose. */
|
|
@@ -22119,9 +22131,7 @@ type ExperimentalTabLifecycle<Props, Context> = {
|
|
|
22119
22131
|
};
|
|
22120
22132
|
type ExperimentalTabContextProps<C extends ExperimentalTabContext> = C extends {
|
|
22121
22133
|
kind: "thread";
|
|
22122
|
-
} ?
|
|
22123
|
-
threadId: string;
|
|
22124
|
-
} : PluginNavPanelProps;
|
|
22134
|
+
} ? ExperimentalThreadTabProps : PluginNavPanelProps;
|
|
22125
22135
|
type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" | "fixed"> = {
|
|
22126
22136
|
id: string;
|
|
22127
22137
|
title: string;
|
|
@@ -22151,21 +22161,11 @@ type ExperimentalTabRegistration = ExperimentalTabCommon & (({
|
|
|
22151
22161
|
context: {
|
|
22152
22162
|
kind: "thread";
|
|
22153
22163
|
};
|
|
22154
|
-
useVisible?(props:
|
|
22155
|
-
|
|
22156
|
-
}): boolean;
|
|
22157
|
-
} & ((ExperimentalTabLifecycle<{
|
|
22158
|
-
threadId: string;
|
|
22159
|
-
}, {
|
|
22160
|
-
threadId: string;
|
|
22161
|
-
}> & {
|
|
22164
|
+
useVisible?(props: ExperimentalThreadTabProps): boolean;
|
|
22165
|
+
} & ((ExperimentalTabLifecycle<ExperimentalThreadTabProps, ExperimentalThreadTabProps> & {
|
|
22162
22166
|
availability: "action";
|
|
22163
22167
|
experimental_target?: never;
|
|
22164
|
-
}) | (ExperimentalTabLifecycle<{
|
|
22165
|
-
threadId: string;
|
|
22166
|
-
}, {
|
|
22167
|
-
threadId: string;
|
|
22168
|
-
}> & {
|
|
22168
|
+
}) | (ExperimentalTabLifecycle<ExperimentalThreadTabProps, ExperimentalThreadTabProps> & {
|
|
22169
22169
|
availability: "fixed";
|
|
22170
22170
|
experimental_target?: ExperimentalFixedTabTargetContract<JsonValue>;
|
|
22171
22171
|
}))) | ({
|
|
@@ -22711,8 +22711,8 @@ interface ExperimentalThreadInfoProps {
|
|
|
22711
22711
|
threadId: string;
|
|
22712
22712
|
projectId: string;
|
|
22713
22713
|
/**
|
|
22714
|
-
* The thread's environment,
|
|
22715
|
-
*
|
|
22714
|
+
* The thread's environment, taken from the thread; null only when the
|
|
22715
|
+
* thread has no environment. Read its state (host, checkout, git) yourself.
|
|
22716
22716
|
*/
|
|
22717
22717
|
environment: ExperimentalThreadEnvironment | null;
|
|
22718
22718
|
}
|
|
@@ -25546,8 +25546,10 @@ interface BbNavigate {
|
|
|
25546
25546
|
hostId?: string;
|
|
25547
25547
|
}): void;
|
|
25548
25548
|
/**
|
|
25549
|
-
* Open an HTTP(S) URL using this client's BB browser preference
|
|
25550
|
-
*
|
|
25549
|
+
* Open an HTTP(S) URL using this client's BB browser preference, or request
|
|
25550
|
+
* an application link on this device with confirmation unless its scheme is approved when
|
|
25551
|
+
* the applicationLinks experiment is enabled. Returns false
|
|
25552
|
+
* for blocked or unsupported schemes. True means handled, not launched. See
|
|
25551
25553
|
* docs/api_to_audit.md.
|
|
25552
25554
|
*/
|
|
25553
25555
|
openUrl(url: string): boolean;
|
|
@@ -25593,6 +25595,13 @@ interface ExperimentalRpcQueryState<T> {
|
|
|
25593
25595
|
refetch(): Promise<void>;
|
|
25594
25596
|
}
|
|
25595
25597
|
interface ExperimentalRpcKeyedQueryState<T, Selection = Record<string, T>> extends ExperimentalRpcQueryState<Selection> {
|
|
25598
|
+
/**
|
|
25599
|
+
* Read these keys again and keep every other loaded row, for retrying one
|
|
25600
|
+
* failed row without refreshing the rest. Keys must be among this query's
|
|
25601
|
+
* keys; others are ignored. Resolves once the read settles; failures update
|
|
25602
|
+
* `error` and retain data.
|
|
25603
|
+
*/
|
|
25604
|
+
refetchKeys(keys: readonly string[]): Promise<void>;
|
|
25596
25605
|
}
|
|
25597
25606
|
interface ExperimentalRpcQueryOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
|
|
25598
25607
|
contract: Contract;
|
|
@@ -25641,6 +25650,10 @@ interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
|
|
|
25641
25650
|
* shims the specifier to that object on `globalThis.__bbPluginRuntime`.
|
|
25642
25651
|
*/
|
|
25643
25652
|
interface PluginSdkApp {
|
|
25653
|
+
/** List URL schemes approved for this BB site in the viewing client's localStorage. Core Settings uses the same implementation. */
|
|
25654
|
+
experimental_getApplicationLinkApprovals(): Promise<string[]>;
|
|
25655
|
+
/** Revoke one scheme, or all with null, for this BB site on this client. Does not grant permission. */
|
|
25656
|
+
experimental_revokeApplicationLinkApproval(scheme: string | null): Promise<string[]>;
|
|
25644
25657
|
experimental_PluginRpcCallError: typeof experimental_PluginRpcCallError;
|
|
25645
25658
|
experimental_useRpcRefresh(): {
|
|
25646
25659
|
refresh(): void;
|
|
@@ -25713,6 +25726,15 @@ interface PluginSdkApp {
|
|
|
25713
25726
|
* the answer changes. Experimental: see docs/api_to_audit.md.
|
|
25714
25727
|
*/
|
|
25715
25728
|
experimental_useCanOpenFileExternally(target: ExperimentalLiveFileTarget): boolean;
|
|
25729
|
+
/**
|
|
25730
|
+
* Whether the panel tab this component renders in is showing: it is the
|
|
25731
|
+
* selected tab of its pane and the side panel is open. False while the panel
|
|
25732
|
+
* is closed or suppressed, while another tab is selected, and outside a
|
|
25733
|
+
* panel tab. bb keeps a closed panel's tab mounted, so pause reads that only
|
|
25734
|
+
* feed what the tab draws while this is false. Works in fixed and action
|
|
25735
|
+
* tabs. Experimental: see docs/api_to_audit.md.
|
|
25736
|
+
*/
|
|
25737
|
+
experimental_useTabVisible(): boolean;
|
|
25716
25738
|
/**
|
|
25717
25739
|
* The side panel of the surface the calling component renders in: the
|
|
25718
25740
|
* thread view, the plugin page, or the New thread screen.
|
|
@@ -26415,4 +26437,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
|
26415
26437
|
};
|
|
26416
26438
|
|
|
26417
26439
|
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 };
|
|
26418
|
-
export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, 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, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, 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, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
26440
|
+
export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, 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, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, 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, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
package/dist/app.js
CHANGED
|
@@ -219,6 +219,9 @@ var useBbNavigate = runtimeFunction("useBbNavigate");
|
|
|
219
219
|
var experimental_useCanOpenFileExternally = runtimeFunction(
|
|
220
220
|
"experimental_useCanOpenFileExternally"
|
|
221
221
|
);
|
|
222
|
+
var experimental_useTabVisible = runtimeFunction(
|
|
223
|
+
"experimental_useTabVisible"
|
|
224
|
+
);
|
|
222
225
|
var experimental_useAppPanel = runtimeFunction(
|
|
223
226
|
"experimental_useAppPanel"
|
|
224
227
|
);
|
|
@@ -347,6 +350,12 @@ var experimental_copyToClipboard = runtimeFunction(
|
|
|
347
350
|
"experimental_copyToClipboard"
|
|
348
351
|
);
|
|
349
352
|
var experimental_saveFile = runtimeFunction("experimental_saveFile");
|
|
353
|
+
var experimental_getApplicationLinkApprovals = runtimeFunction(
|
|
354
|
+
"experimental_getApplicationLinkApprovals"
|
|
355
|
+
);
|
|
356
|
+
var experimental_revokeApplicationLinkApproval = runtimeFunction(
|
|
357
|
+
"experimental_revokeApplicationLinkApproval"
|
|
358
|
+
);
|
|
350
359
|
export {
|
|
351
360
|
Markdown,
|
|
352
361
|
ThreadChat,
|
|
@@ -387,8 +396,10 @@ export {
|
|
|
387
396
|
experimental_VoiceRecordingBar,
|
|
388
397
|
experimental_copyToClipboard,
|
|
389
398
|
experimental_describePromptMention,
|
|
399
|
+
experimental_getApplicationLinkApprovals,
|
|
390
400
|
experimental_promptMentionClipboardAttributes,
|
|
391
401
|
experimental_readPromptMentionClipboard,
|
|
402
|
+
experimental_revokeApplicationLinkApproval,
|
|
392
403
|
experimental_saveFile,
|
|
393
404
|
experimental_useAppPanel,
|
|
394
405
|
experimental_useArchiveEnvironmentThreads,
|
|
@@ -414,6 +425,7 @@ export {
|
|
|
414
425
|
experimental_useSidebarThreadActions,
|
|
415
426
|
experimental_useSidebarThreadSplit,
|
|
416
427
|
experimental_useSidebarThreads,
|
|
428
|
+
experimental_useTabVisible,
|
|
417
429
|
experimental_useThreadActionRegistrations,
|
|
418
430
|
experimental_useThreadActions,
|
|
419
431
|
experimental_useThreadTitleDisplayText,
|
|
@@ -1192,6 +1192,15 @@ function createTaggedKeyedQueryOwner(options) {
|
|
|
1192
1192
|
let stop;
|
|
1193
1193
|
return {
|
|
1194
1194
|
observer,
|
|
1195
|
+
async refetchKeys(requested) {
|
|
1196
|
+
const subscribed = requested.filter((key) => keys.has(key));
|
|
1197
|
+
if (subscribed.length === 0) return;
|
|
1198
|
+
for (const key of subscribed) dirtyKeys.add(key);
|
|
1199
|
+
if (observer.getCurrentResult().isFetching) {
|
|
1200
|
+
restartTaggedRead(observer.getCurrentQuery());
|
|
1201
|
+
}
|
|
1202
|
+
await observer.refetch({ cancelRefetch: false });
|
|
1203
|
+
},
|
|
1195
1204
|
subscribe(requested, listener) {
|
|
1196
1205
|
let added = false;
|
|
1197
1206
|
for (const key of requested) {
|
|
@@ -1500,11 +1509,15 @@ var projectExecutionDefaultsSchema = z2.object({
|
|
|
1500
1509
|
permissionMode: permissionModeSchema
|
|
1501
1510
|
});
|
|
1502
1511
|
|
|
1512
|
+
// ../domain/src/plugin-id.ts
|
|
1513
|
+
import { z as z3 } from "zod";
|
|
1514
|
+
var pluginIdSchema = z3.string().regex(/^[a-z0-9][a-z0-9-]*$/u);
|
|
1515
|
+
|
|
1503
1516
|
// ../domain/src/change-kinds.ts
|
|
1504
1517
|
import { z as z17 } from "zod";
|
|
1505
1518
|
|
|
1506
1519
|
// ../domain/src/thread-event-types.ts
|
|
1507
|
-
import { z as
|
|
1520
|
+
import { z as z4 } from "zod";
|
|
1508
1521
|
var systemEventTypeValues = [
|
|
1509
1522
|
"client/thread/start",
|
|
1510
1523
|
"client/turn/requested",
|
|
@@ -1563,7 +1576,7 @@ var threadEventTypeValues = [
|
|
|
1563
1576
|
...systemEventTypeValues
|
|
1564
1577
|
];
|
|
1565
1578
|
var threadEventTypeSet = new Set(threadEventTypeValues);
|
|
1566
|
-
var threadEventTypeSchema =
|
|
1579
|
+
var threadEventTypeSchema = z4.string().refine(
|
|
1567
1580
|
(value) => threadEventTypeSet.has(value),
|
|
1568
1581
|
"Invalid thread event type"
|
|
1569
1582
|
);
|
|
@@ -1572,21 +1585,21 @@ var threadEventTypeSchema = z3.string().refine(
|
|
|
1572
1585
|
import { z as z16 } from "zod";
|
|
1573
1586
|
|
|
1574
1587
|
// ../domain/src/thread-create-origin.ts
|
|
1575
|
-
import { z as
|
|
1588
|
+
import { z as z5 } from "zod";
|
|
1576
1589
|
var threadCreateOriginValues = ["app", "cli", "sdk", "plugin"];
|
|
1577
|
-
var threadCreateOriginSchema =
|
|
1590
|
+
var threadCreateOriginSchema = z5.enum(threadCreateOriginValues);
|
|
1578
1591
|
|
|
1579
1592
|
// ../domain/src/environment.ts
|
|
1580
|
-
import { z as
|
|
1581
|
-
var environmentMachineSelectionSchema =
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
type:
|
|
1585
|
-
machineProviderId:
|
|
1593
|
+
import { z as z6 } from "zod";
|
|
1594
|
+
var environmentMachineSelectionSchema = z6.discriminatedUnion("type", [
|
|
1595
|
+
z6.object({ type: z6.literal("existing"), hostId: z6.string().min(1) }),
|
|
1596
|
+
z6.object({
|
|
1597
|
+
type: z6.literal("new"),
|
|
1598
|
+
machineProviderId: z6.string().min(1),
|
|
1586
1599
|
inputs: jsonValueSchema.nullable()
|
|
1587
1600
|
})
|
|
1588
1601
|
]);
|
|
1589
|
-
var environmentProviderSelectionSchema =
|
|
1602
|
+
var environmentProviderSelectionSchema = z6.object({
|
|
1590
1603
|
machine: environmentMachineSelectionSchema,
|
|
1591
1604
|
inputs: jsonValueSchema.nullable()
|
|
1592
1605
|
});
|
|
@@ -1597,14 +1610,14 @@ var environmentStatusValues = [
|
|
|
1597
1610
|
"error",
|
|
1598
1611
|
"destroyed"
|
|
1599
1612
|
];
|
|
1600
|
-
var environmentStatusSchema =
|
|
1613
|
+
var environmentStatusSchema = z6.enum(environmentStatusValues);
|
|
1601
1614
|
var environmentHostLifecycleValues = [
|
|
1602
1615
|
"active",
|
|
1603
1616
|
"removing",
|
|
1604
1617
|
"cleanup-failed",
|
|
1605
1618
|
"removed"
|
|
1606
1619
|
];
|
|
1607
|
-
var environmentHostLifecycleSchema =
|
|
1620
|
+
var environmentHostLifecycleSchema = z6.enum(
|
|
1608
1621
|
environmentHostLifecycleValues
|
|
1609
1622
|
);
|
|
1610
1623
|
var WORKSPACE_PROVISION_TYPES = [
|
|
@@ -1612,62 +1625,58 @@ var WORKSPACE_PROVISION_TYPES = [
|
|
|
1612
1625
|
"managed-worktree",
|
|
1613
1626
|
"personal"
|
|
1614
1627
|
];
|
|
1615
|
-
var workspaceProvisionTypeSchema =
|
|
1628
|
+
var workspaceProvisionTypeSchema = z6.enum(WORKSPACE_PROVISION_TYPES);
|
|
1616
1629
|
var environmentWorkspaceDisplayKindValues = [
|
|
1617
1630
|
"managed-worktree",
|
|
1618
1631
|
"unmanaged-worktree",
|
|
1619
1632
|
"other"
|
|
1620
1633
|
];
|
|
1621
|
-
var environmentWorkspaceDisplayKindSchema =
|
|
1634
|
+
var environmentWorkspaceDisplayKindSchema = z6.enum(
|
|
1622
1635
|
environmentWorkspaceDisplayKindValues
|
|
1623
1636
|
);
|
|
1624
|
-
var discoveredWorkspacePropertiesSchema =
|
|
1625
|
-
path:
|
|
1626
|
-
isGitRepo:
|
|
1627
|
-
isWorktree:
|
|
1628
|
-
branchName:
|
|
1629
|
-
defaultBranch:
|
|
1637
|
+
var discoveredWorkspacePropertiesSchema = z6.object({
|
|
1638
|
+
path: z6.string().min(1),
|
|
1639
|
+
isGitRepo: z6.boolean(),
|
|
1640
|
+
isWorktree: z6.boolean(),
|
|
1641
|
+
branchName: z6.string().nullable(),
|
|
1642
|
+
defaultBranch: z6.string().nullable()
|
|
1630
1643
|
});
|
|
1631
|
-
var environmentLifecycleSchema =
|
|
1632
|
-
phase:
|
|
1633
|
-
retireAt:
|
|
1634
|
-
teardown:
|
|
1635
|
-
status:
|
|
1636
|
-
attempt:
|
|
1637
|
-
message:
|
|
1644
|
+
var environmentLifecycleSchema = z6.object({
|
|
1645
|
+
phase: z6.enum(["active", "retiring", "teardown", "destroyed"]),
|
|
1646
|
+
retireAt: z6.number().nullable(),
|
|
1647
|
+
teardown: z6.object({
|
|
1648
|
+
status: z6.enum(["running", "failed", "removed"]),
|
|
1649
|
+
attempt: z6.number().int().nonnegative(),
|
|
1650
|
+
message: z6.string().optional()
|
|
1638
1651
|
}).nullable()
|
|
1639
1652
|
});
|
|
1640
|
-
var environmentSchema =
|
|
1641
|
-
id:
|
|
1642
|
-
name:
|
|
1643
|
-
projectId:
|
|
1644
|
-
hostId:
|
|
1645
|
-
path:
|
|
1646
|
-
isGitRepo:
|
|
1647
|
-
isWorktree:
|
|
1648
|
-
branchName:
|
|
1649
|
-
baseBranch:
|
|
1650
|
-
defaultBranch:
|
|
1651
|
-
mergeBaseBranch:
|
|
1653
|
+
var environmentSchema = z6.object({
|
|
1654
|
+
id: z6.string(),
|
|
1655
|
+
name: z6.string().nullable(),
|
|
1656
|
+
projectId: z6.string(),
|
|
1657
|
+
hostId: z6.string(),
|
|
1658
|
+
path: z6.string().nullable(),
|
|
1659
|
+
isGitRepo: z6.boolean(),
|
|
1660
|
+
isWorktree: z6.boolean(),
|
|
1661
|
+
branchName: z6.string().nullable(),
|
|
1662
|
+
baseBranch: z6.string().nullable(),
|
|
1663
|
+
defaultBranch: z6.string().nullable(),
|
|
1664
|
+
mergeBaseBranch: z6.string().nullable(),
|
|
1652
1665
|
status: environmentStatusSchema,
|
|
1653
|
-
environmentProviderId:
|
|
1666
|
+
environmentProviderId: z6.string().nullable(),
|
|
1654
1667
|
lifecycle: environmentLifecycleSchema,
|
|
1655
1668
|
hostLifecycle: environmentHostLifecycleSchema,
|
|
1656
1669
|
environmentProviderSelection: environmentProviderSelectionSchema.nullable(),
|
|
1657
|
-
environmentProviderInstanceKey:
|
|
1658
|
-
managed:
|
|
1670
|
+
environmentProviderInstanceKey: z6.string().nullable(),
|
|
1671
|
+
managed: z6.boolean(),
|
|
1659
1672
|
workspaceProvisionType: workspaceProvisionTypeSchema.nullable(),
|
|
1660
|
-
createdAt:
|
|
1661
|
-
updatedAt:
|
|
1673
|
+
createdAt: z6.number(),
|
|
1674
|
+
updatedAt: z6.number()
|
|
1662
1675
|
});
|
|
1663
1676
|
|
|
1664
1677
|
// ../domain/src/queued-message.ts
|
|
1665
1678
|
import { z as z9 } from "zod";
|
|
1666
1679
|
|
|
1667
|
-
// ../domain/src/plugin-id.ts
|
|
1668
|
-
import { z as z6 } from "zod";
|
|
1669
|
-
var pluginIdSchema = z6.string().regex(/^[a-z0-9][a-z0-9-]*$/u);
|
|
1670
|
-
|
|
1671
1680
|
// ../domain/src/protocol-ids.ts
|
|
1672
1681
|
import { z as z7 } from "zod";
|
|
1673
1682
|
var clientTurnRequestIdSchema = z7.string().regex(/^creq_[23456789abcdefghijkmnpqrstuvwxyz]{10}$/u);
|
|
@@ -2483,9 +2492,18 @@ function createRpcQueryHooks(useHost) {
|
|
|
2483
2492
|
const refetch = useCallback2(async () => {
|
|
2484
2493
|
await current.observer.refetch();
|
|
2485
2494
|
}, [current]);
|
|
2495
|
+
const refetchKeys = useCallback2(
|
|
2496
|
+
async (requested) => {
|
|
2497
|
+
await current.refetchKeys(
|
|
2498
|
+
requested.filter((key) => keys.includes(key))
|
|
2499
|
+
);
|
|
2500
|
+
},
|
|
2501
|
+
[current, keys]
|
|
2502
|
+
);
|
|
2486
2503
|
return {
|
|
2487
2504
|
...query,
|
|
2488
|
-
refetch
|
|
2505
|
+
refetch,
|
|
2506
|
+
refetchKeys
|
|
2489
2507
|
};
|
|
2490
2508
|
}
|
|
2491
2509
|
function experimental_useRpcMutation(options) {
|
|
@@ -23325,6 +23325,12 @@ function dialectLaunchEnv(dialectId, permissionMode) {
|
|
|
23325
23325
|
})
|
|
23326
23326
|
};
|
|
23327
23327
|
}
|
|
23328
|
+
function additionalSessionDirectories(params, capabilities) {
|
|
23329
|
+
const directories = params.workspaceWriteRoots.filter(
|
|
23330
|
+
(root) => root !== params.cwd
|
|
23331
|
+
);
|
|
23332
|
+
return directories.length > 0 && capabilities.session.additionalDirectories ? { additionalDirectories: directories } : {};
|
|
23333
|
+
}
|
|
23328
23334
|
async function startAgentSession(request) {
|
|
23329
23335
|
const params = request.params;
|
|
23330
23336
|
const bbThreadId = params.threadId;
|
|
@@ -23489,7 +23495,8 @@ async function startAgentSession(request) {
|
|
|
23489
23495
|
params: {
|
|
23490
23496
|
sessionId: request.sourceProviderThreadId,
|
|
23491
23497
|
cwd: params.cwd,
|
|
23492
|
-
mcpServers
|
|
23498
|
+
mcpServers,
|
|
23499
|
+
...additionalSessionDirectories(params, capabilities)
|
|
23493
23500
|
},
|
|
23494
23501
|
resultSchema: acpSessionForkResultSchema,
|
|
23495
23502
|
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
@@ -23515,7 +23522,8 @@ async function startAgentSession(request) {
|
|
|
23515
23522
|
params: {
|
|
23516
23523
|
sessionId: request.resumeProviderThreadId,
|
|
23517
23524
|
cwd: params.cwd,
|
|
23518
|
-
mcpServers
|
|
23525
|
+
mcpServers,
|
|
23526
|
+
...additionalSessionDirectories(params, capabilities)
|
|
23519
23527
|
},
|
|
23520
23528
|
resultSchema: z49.union([acpConfigStateResultSchema, z49.null()]),
|
|
23521
23529
|
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
@@ -23542,7 +23550,11 @@ async function startAgentSession(request) {
|
|
|
23542
23550
|
session.pendingLoadUsageUpdate = void 0;
|
|
23543
23551
|
const newSession = await connection.request({
|
|
23544
23552
|
method: "session/new",
|
|
23545
|
-
params: {
|
|
23553
|
+
params: {
|
|
23554
|
+
cwd: params.cwd,
|
|
23555
|
+
mcpServers,
|
|
23556
|
+
...additionalSessionDirectories(params, capabilities)
|
|
23557
|
+
},
|
|
23546
23558
|
resultSchema: acpSessionNewResultSchema,
|
|
23547
23559
|
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
23548
23560
|
});
|
|
@@ -23325,6 +23325,12 @@ function dialectLaunchEnv(dialectId, permissionMode) {
|
|
|
23325
23325
|
})
|
|
23326
23326
|
};
|
|
23327
23327
|
}
|
|
23328
|
+
function additionalSessionDirectories(params, capabilities) {
|
|
23329
|
+
const directories = params.workspaceWriteRoots.filter(
|
|
23330
|
+
(root) => root !== params.cwd
|
|
23331
|
+
);
|
|
23332
|
+
return directories.length > 0 && capabilities.session.additionalDirectories ? { additionalDirectories: directories } : {};
|
|
23333
|
+
}
|
|
23328
23334
|
async function startAgentSession(request) {
|
|
23329
23335
|
const params = request.params;
|
|
23330
23336
|
const bbThreadId = params.threadId;
|
|
@@ -23489,7 +23495,8 @@ async function startAgentSession(request) {
|
|
|
23489
23495
|
params: {
|
|
23490
23496
|
sessionId: request.sourceProviderThreadId,
|
|
23491
23497
|
cwd: params.cwd,
|
|
23492
|
-
mcpServers
|
|
23498
|
+
mcpServers,
|
|
23499
|
+
...additionalSessionDirectories(params, capabilities)
|
|
23493
23500
|
},
|
|
23494
23501
|
resultSchema: acpSessionForkResultSchema,
|
|
23495
23502
|
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
@@ -23515,7 +23522,8 @@ async function startAgentSession(request) {
|
|
|
23515
23522
|
params: {
|
|
23516
23523
|
sessionId: request.resumeProviderThreadId,
|
|
23517
23524
|
cwd: params.cwd,
|
|
23518
|
-
mcpServers
|
|
23525
|
+
mcpServers,
|
|
23526
|
+
...additionalSessionDirectories(params, capabilities)
|
|
23519
23527
|
},
|
|
23520
23528
|
resultSchema: z49.union([acpConfigStateResultSchema, z49.null()]),
|
|
23521
23529
|
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
@@ -23542,7 +23550,11 @@ async function startAgentSession(request) {
|
|
|
23542
23550
|
session.pendingLoadUsageUpdate = void 0;
|
|
23543
23551
|
const newSession = await connection.request({
|
|
23544
23552
|
method: "session/new",
|
|
23545
|
-
params: {
|
|
23553
|
+
params: {
|
|
23554
|
+
cwd: params.cwd,
|
|
23555
|
+
mcpServers,
|
|
23556
|
+
...additionalSessionDirectories(params, capabilities)
|
|
23557
|
+
},
|
|
23546
23558
|
resultSchema: acpSessionNewResultSchema,
|
|
23547
23559
|
timeoutMs: ACP_SESSION_SETUP_TIMEOUT_MS
|
|
23548
23560
|
});
|
package/dist/testing/app.js
CHANGED
|
@@ -1188,6 +1188,15 @@ function createTaggedKeyedQueryOwner(options) {
|
|
|
1188
1188
|
let stop;
|
|
1189
1189
|
return {
|
|
1190
1190
|
observer,
|
|
1191
|
+
async refetchKeys(requested) {
|
|
1192
|
+
const subscribed = requested.filter((key) => keys.has(key));
|
|
1193
|
+
if (subscribed.length === 0) return;
|
|
1194
|
+
for (const key of subscribed) dirtyKeys.add(key);
|
|
1195
|
+
if (observer.getCurrentResult().isFetching) {
|
|
1196
|
+
restartTaggedRead(observer.getCurrentQuery());
|
|
1197
|
+
}
|
|
1198
|
+
await observer.refetch({ cancelRefetch: false });
|
|
1199
|
+
},
|
|
1191
1200
|
subscribe(requested, listener) {
|
|
1192
1201
|
let added = false;
|
|
1193
1202
|
for (const key of requested) {
|
|
@@ -1503,11 +1512,15 @@ var projectExecutionDefaultsSchema = z2.object({
|
|
|
1503
1512
|
permissionMode: permissionModeSchema
|
|
1504
1513
|
});
|
|
1505
1514
|
|
|
1515
|
+
// ../domain/src/plugin-id.ts
|
|
1516
|
+
import { z as z3 } from "zod";
|
|
1517
|
+
var pluginIdSchema = z3.string().regex(/^[a-z0-9][a-z0-9-]*$/u);
|
|
1518
|
+
|
|
1506
1519
|
// ../domain/src/change-kinds.ts
|
|
1507
1520
|
import { z as z17 } from "zod";
|
|
1508
1521
|
|
|
1509
1522
|
// ../domain/src/thread-event-types.ts
|
|
1510
|
-
import { z as
|
|
1523
|
+
import { z as z4 } from "zod";
|
|
1511
1524
|
var systemEventTypeValues = [
|
|
1512
1525
|
"client/thread/start",
|
|
1513
1526
|
"client/turn/requested",
|
|
@@ -1566,7 +1579,7 @@ var threadEventTypeValues = [
|
|
|
1566
1579
|
...systemEventTypeValues
|
|
1567
1580
|
];
|
|
1568
1581
|
var threadEventTypeSet = new Set(threadEventTypeValues);
|
|
1569
|
-
var threadEventTypeSchema =
|
|
1582
|
+
var threadEventTypeSchema = z4.string().refine(
|
|
1570
1583
|
(value) => threadEventTypeSet.has(value),
|
|
1571
1584
|
"Invalid thread event type"
|
|
1572
1585
|
);
|
|
@@ -1575,21 +1588,21 @@ var threadEventTypeSchema = z3.string().refine(
|
|
|
1575
1588
|
import { z as z16 } from "zod";
|
|
1576
1589
|
|
|
1577
1590
|
// ../domain/src/thread-create-origin.ts
|
|
1578
|
-
import { z as
|
|
1591
|
+
import { z as z5 } from "zod";
|
|
1579
1592
|
var threadCreateOriginValues = ["app", "cli", "sdk", "plugin"];
|
|
1580
|
-
var threadCreateOriginSchema =
|
|
1593
|
+
var threadCreateOriginSchema = z5.enum(threadCreateOriginValues);
|
|
1581
1594
|
|
|
1582
1595
|
// ../domain/src/environment.ts
|
|
1583
|
-
import { z as
|
|
1584
|
-
var environmentMachineSelectionSchema =
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
type:
|
|
1588
|
-
machineProviderId:
|
|
1596
|
+
import { z as z6 } from "zod";
|
|
1597
|
+
var environmentMachineSelectionSchema = z6.discriminatedUnion("type", [
|
|
1598
|
+
z6.object({ type: z6.literal("existing"), hostId: z6.string().min(1) }),
|
|
1599
|
+
z6.object({
|
|
1600
|
+
type: z6.literal("new"),
|
|
1601
|
+
machineProviderId: z6.string().min(1),
|
|
1589
1602
|
inputs: jsonValueSchema.nullable()
|
|
1590
1603
|
})
|
|
1591
1604
|
]);
|
|
1592
|
-
var environmentProviderSelectionSchema =
|
|
1605
|
+
var environmentProviderSelectionSchema = z6.object({
|
|
1593
1606
|
machine: environmentMachineSelectionSchema,
|
|
1594
1607
|
inputs: jsonValueSchema.nullable()
|
|
1595
1608
|
});
|
|
@@ -1600,14 +1613,14 @@ var environmentStatusValues = [
|
|
|
1600
1613
|
"error",
|
|
1601
1614
|
"destroyed"
|
|
1602
1615
|
];
|
|
1603
|
-
var environmentStatusSchema =
|
|
1616
|
+
var environmentStatusSchema = z6.enum(environmentStatusValues);
|
|
1604
1617
|
var environmentHostLifecycleValues = [
|
|
1605
1618
|
"active",
|
|
1606
1619
|
"removing",
|
|
1607
1620
|
"cleanup-failed",
|
|
1608
1621
|
"removed"
|
|
1609
1622
|
];
|
|
1610
|
-
var environmentHostLifecycleSchema =
|
|
1623
|
+
var environmentHostLifecycleSchema = z6.enum(
|
|
1611
1624
|
environmentHostLifecycleValues
|
|
1612
1625
|
);
|
|
1613
1626
|
var WORKSPACE_PROVISION_TYPES = [
|
|
@@ -1615,62 +1628,58 @@ var WORKSPACE_PROVISION_TYPES = [
|
|
|
1615
1628
|
"managed-worktree",
|
|
1616
1629
|
"personal"
|
|
1617
1630
|
];
|
|
1618
|
-
var workspaceProvisionTypeSchema =
|
|
1631
|
+
var workspaceProvisionTypeSchema = z6.enum(WORKSPACE_PROVISION_TYPES);
|
|
1619
1632
|
var environmentWorkspaceDisplayKindValues = [
|
|
1620
1633
|
"managed-worktree",
|
|
1621
1634
|
"unmanaged-worktree",
|
|
1622
1635
|
"other"
|
|
1623
1636
|
];
|
|
1624
|
-
var environmentWorkspaceDisplayKindSchema =
|
|
1637
|
+
var environmentWorkspaceDisplayKindSchema = z6.enum(
|
|
1625
1638
|
environmentWorkspaceDisplayKindValues
|
|
1626
1639
|
);
|
|
1627
|
-
var discoveredWorkspacePropertiesSchema =
|
|
1628
|
-
path:
|
|
1629
|
-
isGitRepo:
|
|
1630
|
-
isWorktree:
|
|
1631
|
-
branchName:
|
|
1632
|
-
defaultBranch:
|
|
1640
|
+
var discoveredWorkspacePropertiesSchema = z6.object({
|
|
1641
|
+
path: z6.string().min(1),
|
|
1642
|
+
isGitRepo: z6.boolean(),
|
|
1643
|
+
isWorktree: z6.boolean(),
|
|
1644
|
+
branchName: z6.string().nullable(),
|
|
1645
|
+
defaultBranch: z6.string().nullable()
|
|
1633
1646
|
});
|
|
1634
|
-
var environmentLifecycleSchema =
|
|
1635
|
-
phase:
|
|
1636
|
-
retireAt:
|
|
1637
|
-
teardown:
|
|
1638
|
-
status:
|
|
1639
|
-
attempt:
|
|
1640
|
-
message:
|
|
1647
|
+
var environmentLifecycleSchema = z6.object({
|
|
1648
|
+
phase: z6.enum(["active", "retiring", "teardown", "destroyed"]),
|
|
1649
|
+
retireAt: z6.number().nullable(),
|
|
1650
|
+
teardown: z6.object({
|
|
1651
|
+
status: z6.enum(["running", "failed", "removed"]),
|
|
1652
|
+
attempt: z6.number().int().nonnegative(),
|
|
1653
|
+
message: z6.string().optional()
|
|
1641
1654
|
}).nullable()
|
|
1642
1655
|
});
|
|
1643
|
-
var environmentSchema =
|
|
1644
|
-
id:
|
|
1645
|
-
name:
|
|
1646
|
-
projectId:
|
|
1647
|
-
hostId:
|
|
1648
|
-
path:
|
|
1649
|
-
isGitRepo:
|
|
1650
|
-
isWorktree:
|
|
1651
|
-
branchName:
|
|
1652
|
-
baseBranch:
|
|
1653
|
-
defaultBranch:
|
|
1654
|
-
mergeBaseBranch:
|
|
1656
|
+
var environmentSchema = z6.object({
|
|
1657
|
+
id: z6.string(),
|
|
1658
|
+
name: z6.string().nullable(),
|
|
1659
|
+
projectId: z6.string(),
|
|
1660
|
+
hostId: z6.string(),
|
|
1661
|
+
path: z6.string().nullable(),
|
|
1662
|
+
isGitRepo: z6.boolean(),
|
|
1663
|
+
isWorktree: z6.boolean(),
|
|
1664
|
+
branchName: z6.string().nullable(),
|
|
1665
|
+
baseBranch: z6.string().nullable(),
|
|
1666
|
+
defaultBranch: z6.string().nullable(),
|
|
1667
|
+
mergeBaseBranch: z6.string().nullable(),
|
|
1655
1668
|
status: environmentStatusSchema,
|
|
1656
|
-
environmentProviderId:
|
|
1669
|
+
environmentProviderId: z6.string().nullable(),
|
|
1657
1670
|
lifecycle: environmentLifecycleSchema,
|
|
1658
1671
|
hostLifecycle: environmentHostLifecycleSchema,
|
|
1659
1672
|
environmentProviderSelection: environmentProviderSelectionSchema.nullable(),
|
|
1660
|
-
environmentProviderInstanceKey:
|
|
1661
|
-
managed:
|
|
1673
|
+
environmentProviderInstanceKey: z6.string().nullable(),
|
|
1674
|
+
managed: z6.boolean(),
|
|
1662
1675
|
workspaceProvisionType: workspaceProvisionTypeSchema.nullable(),
|
|
1663
|
-
createdAt:
|
|
1664
|
-
updatedAt:
|
|
1676
|
+
createdAt: z6.number(),
|
|
1677
|
+
updatedAt: z6.number()
|
|
1665
1678
|
});
|
|
1666
1679
|
|
|
1667
1680
|
// ../domain/src/queued-message.ts
|
|
1668
1681
|
import { z as z9 } from "zod";
|
|
1669
1682
|
|
|
1670
|
-
// ../domain/src/plugin-id.ts
|
|
1671
|
-
import { z as z6 } from "zod";
|
|
1672
|
-
var pluginIdSchema = z6.string().regex(/^[a-z0-9][a-z0-9-]*$/u);
|
|
1673
|
-
|
|
1674
1683
|
// ../domain/src/protocol-ids.ts
|
|
1675
1684
|
import { z as z7 } from "zod";
|
|
1676
1685
|
var clientTurnRequestIdSchema = z7.string().regex(/^creq_[23456789abcdefghijkmnpqrstuvwxyz]{10}$/u);
|
|
@@ -2486,9 +2495,18 @@ function createRpcQueryHooks(useHost) {
|
|
|
2486
2495
|
const refetch = useCallback2(async () => {
|
|
2487
2496
|
await current.observer.refetch();
|
|
2488
2497
|
}, [current]);
|
|
2498
|
+
const refetchKeys = useCallback2(
|
|
2499
|
+
async (requested) => {
|
|
2500
|
+
await current.refetchKeys(
|
|
2501
|
+
requested.filter((key) => keys.includes(key))
|
|
2502
|
+
);
|
|
2503
|
+
},
|
|
2504
|
+
[current, keys]
|
|
2505
|
+
);
|
|
2489
2506
|
return {
|
|
2490
2507
|
...query,
|
|
2491
|
-
refetch
|
|
2508
|
+
refetch,
|
|
2509
|
+
refetchKeys
|
|
2492
2510
|
};
|
|
2493
2511
|
}
|
|
2494
2512
|
function experimental_useRpcMutation(options) {
|
|
@@ -5399,6 +5417,8 @@ function captureClipboardWrites(result) {
|
|
|
5399
5417
|
return writes;
|
|
5400
5418
|
}
|
|
5401
5419
|
var testPluginSdkApp = {
|
|
5420
|
+
experimental_getApplicationLinkApprovals: async () => [],
|
|
5421
|
+
experimental_revokeApplicationLinkApproval: async (_scheme) => [],
|
|
5402
5422
|
definePluginApp,
|
|
5403
5423
|
...createRpcQueryHooks(() => useSlotEnv("rpc query").rpcQueryHost),
|
|
5404
5424
|
useRpc() {
|
|
@@ -5567,6 +5587,9 @@ var testPluginSdkApp = {
|
|
|
5567
5587
|
"experimental_useCanOpenFileExternally"
|
|
5568
5588
|
).canOpenFileExternally(target);
|
|
5569
5589
|
},
|
|
5590
|
+
experimental_useTabVisible() {
|
|
5591
|
+
return useSlotEnv("experimental_useTabVisible").tabVisible;
|
|
5592
|
+
},
|
|
5570
5593
|
experimental_copyToClipboard(content) {
|
|
5571
5594
|
return activeClipboard?.(content) ?? Promise.resolve(true);
|
|
5572
5595
|
},
|
|
@@ -6537,6 +6560,7 @@ ${block}
|
|
|
6537
6560
|
providers,
|
|
6538
6561
|
codeTheme,
|
|
6539
6562
|
canOpenFileExternally: options.canOpenFileExternally ?? (() => false),
|
|
6563
|
+
tabVisible: options.tabVisible ?? true,
|
|
6540
6564
|
branchesState: {
|
|
6541
6565
|
branches: options.branchesState?.branches ?? [],
|
|
6542
6566
|
remoteBranches: options.branchesState?.remoteBranches ?? [],
|