@codingame/monaco-vscode-chat-service-override 32.0.2 → 33.0.4
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/index.d.ts +1 -1
- package/index.js +15 -5
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +170 -24
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +372 -66
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +18 -1
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +160 -31
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemService.d.ts +8 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemService.js +19 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.d.ts +134 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.js +257 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +84 -3
- package/vscode/src/vs/platform/agentHost/common/agentService.js +9 -1
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +61 -1
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +61 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.js +3 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +4 -4
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +1 -1
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +2 -7
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +8 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +60 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +10 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +180 -174
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +330 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.js +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +267 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +53 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +30 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +150 -119
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +45 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +58 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +2 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +88 -70
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +82 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +10 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +2 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +89 -71
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +2 -2843
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +2934 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +99 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +33 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +53 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +131 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +23 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +91 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +23 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +203 -163
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +31 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +88 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +17 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +91 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.js +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.d.ts +21 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +55 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/hasByokModelsContribution.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/hasByokModelsContribution.js +106 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.js +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileContributions.js +4 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +38 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +5 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.js +106 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +6 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/{toolInvocationParts/chatToolOutputStateCache.d.ts → chatOutputPartStateCache.d.ts} +5 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/{toolInvocationParts/chatToolOutputStateCache.js → chatOutputPartStateCache.js} +19 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +58 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +18 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +13 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +19 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +14 -15
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +155 -156
- package/vscode/src/vs/workbench/contrib/chat/common/tools/copilotToolIds.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/copilotToolIds.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.d.ts +88 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.js +25 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +237 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +600 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +47 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselTypes.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselTypes.js +7 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/media/imageCarousel.css +298 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +12 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +78 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +15 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandParser.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandParser.js +286 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCache.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCache.js +285 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.d.ts +19 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +415 -47
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.d.ts +2 -7
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.js +1 -1
- package/vscode/src/vs/base/common/defaultAccount.d.ts +0 -69
- package/vscode/src/vs/base/common/defaultAccount.js +0 -12
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +0 -85
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
3
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
|
-
import { ITerminalSandboxService } from "@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/terminalSandboxService.service";
|
|
5
4
|
import { IAgentNetworkFilterService } from "@codingame/monaco-vscode-api/vscode/vs/platform/networkFilter/common/networkFilterService.service";
|
|
6
|
-
export declare const AgentNetworkFilterFetchWebToolName = "fetchWebTool";
|
|
7
5
|
export declare class AgentNetworkFilterService extends Disposable implements IAgentNetworkFilterService {
|
|
8
6
|
private readonly configurationService;
|
|
9
|
-
private readonly terminalSandboxService;
|
|
10
7
|
readonly _serviceBrand: undefined;
|
|
11
8
|
private networkFilterEnabled;
|
|
12
|
-
private terminalSandboxEnabled;
|
|
13
9
|
private allowedPatterns;
|
|
14
10
|
private deniedPatterns;
|
|
15
11
|
private readonly domainCache;
|
|
16
12
|
private readonly onDidChangeEmitter;
|
|
17
13
|
readonly onDidChange: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
18
|
-
constructor(configurationService: IConfigurationService
|
|
14
|
+
constructor(configurationService: IConfigurationService);
|
|
19
15
|
private readConfiguration;
|
|
20
|
-
|
|
21
|
-
isUriAllowed(uri: URI, toolName?: string): boolean;
|
|
16
|
+
isUriAllowed(uri: URI): boolean;
|
|
22
17
|
private shouldFilter;
|
|
23
18
|
formatError(uri: URI): string;
|
|
24
19
|
}
|
|
@@ -5,32 +5,24 @@ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
5
5
|
import { LRUCache } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
6
6
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
7
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
|
-
import { AgentSandboxSettingId } from '@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/settings';
|
|
9
|
-
import { ITerminalSandboxService } from '@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/terminalSandboxService.service';
|
|
10
8
|
import { extractDomainFromUri, isDomainAllowed } from '@codingame/monaco-vscode-katex-common/vscode/vs/platform/networkFilter/common/domainMatcher';
|
|
11
9
|
import { AgentNetworkDomainSettingId } from '@codingame/monaco-vscode-katex-common/vscode/vs/platform/networkFilter/common/settings';
|
|
12
10
|
|
|
13
|
-
const AgentNetworkFilterFetchWebToolName = "fetchWebTool";
|
|
14
11
|
let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposable {
|
|
15
|
-
constructor(configurationService
|
|
12
|
+
constructor(configurationService) {
|
|
16
13
|
super();
|
|
17
14
|
this.configurationService = configurationService;
|
|
18
|
-
this.terminalSandboxService = terminalSandboxService;
|
|
19
15
|
this.networkFilterEnabled = false;
|
|
20
|
-
this.terminalSandboxEnabled = false;
|
|
21
16
|
this.allowedPatterns = [];
|
|
22
17
|
this.deniedPatterns = [];
|
|
23
18
|
this.domainCache = ( new LRUCache(100));
|
|
24
19
|
this.onDidChangeEmitter = this._register(( new Emitter()));
|
|
25
20
|
this.onDidChange = this.onDidChangeEmitter.event;
|
|
26
21
|
this.readConfiguration();
|
|
27
|
-
void this.updateTerminalSandboxEnabled();
|
|
28
22
|
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
29
23
|
if (e.affectsConfiguration(AgentNetworkDomainSettingId.NetworkFilter) || e.affectsConfiguration(AgentNetworkDomainSettingId.AllowedNetworkDomains) || e.affectsConfiguration(AgentNetworkDomainSettingId.DeniedNetworkDomains)) {
|
|
30
24
|
this.readConfiguration();
|
|
31
25
|
this.onDidChangeEmitter.fire();
|
|
32
|
-
} else if (e.affectsConfiguration(AgentSandboxSettingId.AgentSandboxEnabled) || e.affectsConfiguration(AgentSandboxSettingId.DeprecatedAgentSandboxEnabled)) {
|
|
33
|
-
void this.updateTerminalSandboxEnabled();
|
|
34
26
|
}
|
|
35
27
|
}));
|
|
36
28
|
}
|
|
@@ -41,21 +33,8 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
|
|
|
41
33
|
this.deniedPatterns = this.configurationService.getValue(AgentNetworkDomainSettingId.DeniedNetworkDomains) ?? [];
|
|
42
34
|
this.domainCache.clear();
|
|
43
35
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
this.terminalSandboxService.isEnabled(),
|
|
47
|
-
this.terminalSandboxService.isSandboxAllowNetworkEnabled()
|
|
48
|
-
]);
|
|
49
|
-
const enabled = isSandboxEnabled && !isSandboxAllowNetworkEnabled;
|
|
50
|
-
if (this.terminalSandboxEnabled === enabled) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
this.terminalSandboxEnabled = enabled;
|
|
54
|
-
this.readConfiguration();
|
|
55
|
-
this.onDidChangeEmitter.fire();
|
|
56
|
-
}
|
|
57
|
-
isUriAllowed(uri, toolName) {
|
|
58
|
-
if (!this.shouldFilter(toolName)) {
|
|
36
|
+
isUriAllowed(uri) {
|
|
37
|
+
if (!this.shouldFilter()) {
|
|
59
38
|
return true;
|
|
60
39
|
}
|
|
61
40
|
if (uri.scheme === "file" || !uri.authority) {
|
|
@@ -72,13 +51,13 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
|
|
|
72
51
|
}
|
|
73
52
|
return result;
|
|
74
53
|
}
|
|
75
|
-
shouldFilter(
|
|
76
|
-
return this.networkFilterEnabled
|
|
54
|
+
shouldFilter() {
|
|
55
|
+
return this.networkFilterEnabled;
|
|
77
56
|
}
|
|
78
57
|
formatError(uri) {
|
|
79
58
|
const domain = extractDomainFromUri(uri);
|
|
80
59
|
return localize(
|
|
81
|
-
|
|
60
|
+
2085,
|
|
82
61
|
"Access to {0} is blocked by network domain policy (see `{1}` and `{2}` settings).",
|
|
83
62
|
domain ?? uri.authority,
|
|
84
63
|
AgentNetworkDomainSettingId.AllowedNetworkDomains,
|
|
@@ -86,6 +65,6 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
|
|
|
86
65
|
);
|
|
87
66
|
}
|
|
88
67
|
};
|
|
89
|
-
AgentNetworkFilterService = ( __decorate([( __param(0, IConfigurationService))
|
|
68
|
+
AgentNetworkFilterService = ( __decorate([( __param(0, IConfigurationService))], AgentNetworkFilterService));
|
|
90
69
|
|
|
91
|
-
export {
|
|
70
|
+
export { AgentNetworkFilterService };
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js
CHANGED
|
@@ -117,7 +117,7 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
this.toasts.clearAndDisposeAll();
|
|
120
|
-
const title = widget?.viewModel?.model.title ? ( localize(
|
|
120
|
+
const title = widget?.viewModel?.model.title ? ( localize(4784, "Chat: {0}", widget.viewModel.model.title)) : ( localize(4785, "Untitled Chat"));
|
|
121
121
|
const cts = ( new CancellationTokenSource());
|
|
122
122
|
const disposable = toDisposable(() => cts.dispose(true));
|
|
123
123
|
this.toasts.add(disposable);
|
|
@@ -125,7 +125,7 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
|
|
|
125
125
|
clicked
|
|
126
126
|
} = await this._hostService.showToast({
|
|
127
127
|
title,
|
|
128
|
-
body: ( localize(
|
|
128
|
+
body: ( localize(4786, "New chat response."))
|
|
129
129
|
}, cts.token);
|
|
130
130
|
this.toasts.deleteAndDispose(disposable);
|
|
131
131
|
if (clicked) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js
CHANGED
|
@@ -78,29 +78,29 @@ function getToolSpecificDataDescription(toolSpecificData) {
|
|
|
78
78
|
{
|
|
79
79
|
const parts = [];
|
|
80
80
|
if (toolSpecificData.agentName) {
|
|
81
|
-
parts.push(( localize(
|
|
81
|
+
parts.push(( localize(4787, "Agent: {0}", toolSpecificData.agentName)));
|
|
82
82
|
}
|
|
83
83
|
if (toolSpecificData.description) {
|
|
84
84
|
parts.push(toolSpecificData.description);
|
|
85
85
|
}
|
|
86
86
|
if (toolSpecificData.prompt) {
|
|
87
|
-
parts.push(( localize(
|
|
87
|
+
parts.push(( localize(4788, "Task: {0}", toolSpecificData.prompt)));
|
|
88
88
|
}
|
|
89
89
|
return parts.join(". ") || "";
|
|
90
90
|
}
|
|
91
91
|
case "extensions":
|
|
92
|
-
return toolSpecificData.extensions.length > 0 ? ( localize(
|
|
92
|
+
return toolSpecificData.extensions.length > 0 ? ( localize(4789, "Extensions: {0}", toolSpecificData.extensions.join(", "))) : "";
|
|
93
93
|
case "todoList":
|
|
94
94
|
{
|
|
95
95
|
const todos = toolSpecificData.todoList;
|
|
96
96
|
if (todos.length === 0) {
|
|
97
97
|
return "";
|
|
98
98
|
}
|
|
99
|
-
const todoDescriptions = ( todos.map(t => ( localize(
|
|
100
|
-
return localize(
|
|
99
|
+
const todoDescriptions = ( todos.map(t => ( localize(4790, "{0} ({1})", t.title, t.status))));
|
|
100
|
+
return localize(4791, "{0} items: {1}", todos.length, todoDescriptions.join("; "));
|
|
101
101
|
}
|
|
102
102
|
case "pullRequest":
|
|
103
|
-
return localize(
|
|
103
|
+
return localize(4792, "PR: {0} by {1}", toolSpecificData.title, toolSpecificData.author);
|
|
104
104
|
case "input":
|
|
105
105
|
return typeof toolSpecificData.rawInput === "string" ? toolSpecificData.rawInput : JSON.stringify(toolSpecificData.rawInput);
|
|
106
106
|
case "resources":
|
|
@@ -116,13 +116,13 @@ function getToolSpecificDataDescription(toolSpecificData) {
|
|
|
116
116
|
return v.fsPath || v.path;
|
|
117
117
|
}
|
|
118
118
|
})).join(", ");
|
|
119
|
-
return localize(
|
|
119
|
+
return localize(4793, "Resources: {0}", paths);
|
|
120
120
|
}
|
|
121
121
|
case "simpleToolInvocation":
|
|
122
122
|
{
|
|
123
123
|
const inputText = toolSpecificData.input;
|
|
124
124
|
const outputText = toolSpecificData.output;
|
|
125
|
-
return localize(
|
|
125
|
+
return localize(4794, "Input: {0}, Output: {1}", inputText, outputText);
|
|
126
126
|
}
|
|
127
127
|
case "modifiedFilesConfirmation":
|
|
128
128
|
{
|
|
@@ -130,7 +130,7 @@ function getToolSpecificDataDescription(toolSpecificData) {
|
|
|
130
130
|
return "";
|
|
131
131
|
}
|
|
132
132
|
return localize(
|
|
133
|
-
|
|
133
|
+
4795,
|
|
134
134
|
"Modified files: {0}",
|
|
135
135
|
( toolSpecificData.modifiedFiles.map(file => {
|
|
136
136
|
const revivedUri = URI.revive(file.uri);
|
|
@@ -165,12 +165,12 @@ function getResultDetailsDescription(resultDetails) {
|
|
|
165
165
|
}
|
|
166
166
|
if (isOutputDetailsSerialized(resultDetails)) {
|
|
167
167
|
return {
|
|
168
|
-
input: ( localize(
|
|
168
|
+
input: ( localize(4796, "{0} data", resultDetails.output.mimeType))
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
if (isToolResultOutputDetails(resultDetails)) {
|
|
172
172
|
return {
|
|
173
|
-
input: ( localize(
|
|
173
|
+
input: ( localize(4796, "{0} data", resultDetails.output.mimeType))
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
return {};
|
|
@@ -194,13 +194,13 @@ function getToolInvocationA11yDescription(
|
|
|
194
194
|
if (isComplete && resultDetails) {
|
|
195
195
|
const details = getResultDetailsDescription(resultDetails);
|
|
196
196
|
if (details.isError) {
|
|
197
|
-
parts.unshift(( localize(
|
|
197
|
+
parts.unshift(( localize(4797, "Errored")));
|
|
198
198
|
}
|
|
199
199
|
if (details.input && !toolDataDesc) {
|
|
200
|
-
parts.push(( localize(
|
|
200
|
+
parts.push(( localize(4798, "Input: {0}", details.input)));
|
|
201
201
|
}
|
|
202
202
|
if (details.files && details.files.length > 0) {
|
|
203
|
-
parts.push(( localize(
|
|
203
|
+
parts.push(( localize(4799, "Files: {0}", details.files.join(", "))));
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
return parts.join(". ");
|
|
@@ -262,7 +262,7 @@ class ChatResponseAccessibleProvider extends Disposable {
|
|
|
262
262
|
const thinkingValue = Array.isArray(part.value) ? part.value.join("") : (part.value || "");
|
|
263
263
|
const trimmed = thinkingValue.trim();
|
|
264
264
|
if (trimmed) {
|
|
265
|
-
contentParts.push(( localize(
|
|
265
|
+
contentParts.push(( localize(4800, "Thinking: {0}", trimmed)));
|
|
266
266
|
}
|
|
267
267
|
break;
|
|
268
268
|
}
|
|
@@ -338,7 +338,7 @@ class ChatResponseAccessibleProvider extends Disposable {
|
|
|
338
338
|
contentParts.push(toolContent);
|
|
339
339
|
} else if (state.type === IChatToolInvocation.StateKind.WaitingForPostApproval) {
|
|
340
340
|
const postApprovalDetails = isToolResultInputOutputDetails(state.resultDetails) ? state.resultDetails.input : isToolResultOutputDetails(state.resultDetails) ? undefined : toolContentToA11yString(state.contentForModel);
|
|
341
|
-
contentParts.push(( localize(
|
|
341
|
+
contentParts.push(( localize(4801, "Approve results of {0}? Result: ", part.toolId)) + (postApprovalDetails ?? ""));
|
|
342
342
|
} else {
|
|
343
343
|
const resultDetails = IChatToolInvocation.resultDetails(part);
|
|
344
344
|
const isComplete = IChatToolInvocation.isComplete(part);
|
|
@@ -22,11 +22,11 @@ class AnnounceChatConfirmationAction extends Action2 {
|
|
|
22
22
|
super({
|
|
23
23
|
id: ACTION_ID_FOCUS_CHAT_CONFIRMATION,
|
|
24
24
|
title: {
|
|
25
|
-
value: ( localize(
|
|
25
|
+
value: ( localize(4802, "Focus Chat Confirmation")),
|
|
26
26
|
original: "Focus Chat Confirmation"
|
|
27
27
|
},
|
|
28
28
|
category: {
|
|
29
|
-
value: ( localize(
|
|
29
|
+
value: ( localize(4803, "Chat")),
|
|
30
30
|
original: "Chat"
|
|
31
31
|
},
|
|
32
32
|
precondition: ChatContextKeys.enabled,
|
|
@@ -42,12 +42,12 @@ class AnnounceChatConfirmationAction extends Action2 {
|
|
|
42
42
|
const chatWidgetService = accessor.get(IChatWidgetService);
|
|
43
43
|
const pendingWidget = chatWidgetService.getAllWidgets().find(widget => widget.viewModel?.model.requestNeedsInput.get());
|
|
44
44
|
if (!pendingWidget) {
|
|
45
|
-
alert(( localize(
|
|
45
|
+
alert(( localize(4804, "No active chat session found.")));
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
const viewModel = pendingWidget.viewModel;
|
|
49
49
|
if (!viewModel) {
|
|
50
|
-
alert(( localize(
|
|
50
|
+
alert(( localize(4805, "Chat interface not ready.")));
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
let firstConfirmationElement;
|
|
@@ -69,7 +69,7 @@ class AnnounceChatConfirmationAction extends Action2 {
|
|
|
69
69
|
firstConfirmationElement.focus();
|
|
70
70
|
}
|
|
71
71
|
} else {
|
|
72
|
-
alert(( localize(
|
|
72
|
+
alert(( localize(4806, "No chat confirmation required")));
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -78,11 +78,11 @@ class ToggleThinkingContentAccessibleViewAction extends Action2 {
|
|
|
78
78
|
super({
|
|
79
79
|
id: ACTION_ID_TOGGLE_THINKING_CONTENT_ACCESSIBLE_VIEW,
|
|
80
80
|
title: {
|
|
81
|
-
value: ( localize(
|
|
81
|
+
value: ( localize(4807, "Toggle Thinking Content in Accessible View")),
|
|
82
82
|
original: "Toggle Thinking Content in Accessible View"
|
|
83
83
|
},
|
|
84
84
|
category: {
|
|
85
|
-
value: ( localize(
|
|
85
|
+
value: ( localize(4803, "Chat")),
|
|
86
86
|
original: "Chat"
|
|
87
87
|
},
|
|
88
88
|
precondition: ChatContextKeys.enabled,
|
|
@@ -104,7 +104,7 @@ class ToggleThinkingContentAccessibleViewAction extends Action2 {
|
|
|
104
104
|
StorageScope.PROFILE,
|
|
105
105
|
StorageTarget.USER
|
|
106
106
|
);
|
|
107
|
-
alert(updatedValue ? ( localize(
|
|
107
|
+
alert(updatedValue ? ( localize(4808, "Thinking content will be included in the accessible view.")) : ( localize(4809, "Thinking content will be hidden from the accessible view.")));
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
function registerChatAccessibilityActions() {
|
|
@@ -70,131 +70,131 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
70
70
|
if (type === "panelChat" || type === "quickChat" || type === "agentView") {
|
|
71
71
|
if (type === "quickChat") {
|
|
72
72
|
content.push(( localize(
|
|
73
|
-
|
|
73
|
+
4810,
|
|
74
74
|
"The quick chat view is comprised of an input box and a request/response list. The input box is used to make requests and the list is used to display responses."
|
|
75
75
|
)));
|
|
76
76
|
content.push(( localize(
|
|
77
|
-
|
|
77
|
+
4811,
|
|
78
78
|
"The quick chat view is a transient interface for making and viewing requests, while the panel chat view is a persistent interface that also supports navigating suggested follow-up questions."
|
|
79
79
|
)));
|
|
80
80
|
} else {
|
|
81
81
|
content.push(( localize(
|
|
82
|
-
|
|
82
|
+
4812,
|
|
83
83
|
"The chat view is a persistent interface that also supports navigating suggested follow-up questions, while the quick chat view is a transient interface for making and viewing requests."
|
|
84
84
|
)));
|
|
85
85
|
content.push(( localize(
|
|
86
|
-
|
|
86
|
+
4813,
|
|
87
87
|
"To create a new chat session, invoke the New Chat command{0}.",
|
|
88
88
|
"<keybinding:workbench.action.chat.newChat>"
|
|
89
89
|
)));
|
|
90
90
|
content.push(( localize(
|
|
91
|
-
|
|
91
|
+
4814,
|
|
92
92
|
"To view all chat sessions, invoke the Show Chats command{0}.",
|
|
93
93
|
"<keybinding:workbench.action.chat.history>"
|
|
94
94
|
)));
|
|
95
95
|
content.push(( localize(
|
|
96
|
-
|
|
96
|
+
4815,
|
|
97
97
|
"You can focus the agent sessions list by invoking the Focus Agent Sessions command{0}.",
|
|
98
98
|
`<keybinding:${FocusAgentSessionsAction.id}>`
|
|
99
99
|
)));
|
|
100
100
|
content.push(( localize(
|
|
101
|
-
|
|
101
|
+
4816,
|
|
102
102
|
"To open the Agents Window, invoke the Open Agents Window command{0}. In screen reader mode, this keybinding includes Alt to avoid conflicts with screen reader shortcuts.",
|
|
103
103
|
"<keybinding:workbench.action.openAgentsWindow>"
|
|
104
104
|
)));
|
|
105
105
|
}
|
|
106
106
|
content.push(( localize(
|
|
107
|
-
|
|
107
|
+
4817,
|
|
108
108
|
"In the input box, use up and down arrows to navigate your request history. Edit input and use enter or the submit button to run a new request."
|
|
109
109
|
)));
|
|
110
110
|
content.push(( localize(
|
|
111
|
-
|
|
111
|
+
4818,
|
|
112
112
|
"To remove attached contexts, focus an attachment and press Delete or Backspace."
|
|
113
113
|
)));
|
|
114
114
|
content.push(( localize(
|
|
115
|
-
|
|
115
|
+
4819,
|
|
116
116
|
"In the input box, inspect the last response in the accessible view{0}. Thinking content is included in order by default.",
|
|
117
117
|
"<keybinding:editor.action.accessibleView>"
|
|
118
118
|
)));
|
|
119
119
|
content.push(( localize(
|
|
120
|
-
|
|
120
|
+
4820,
|
|
121
121
|
"To include or exclude thinking content in the accessible view, run the Toggle Thinking Content in Accessible View command from the Command Palette."
|
|
122
122
|
)));
|
|
123
123
|
content.push(( localize(
|
|
124
|
-
|
|
124
|
+
4821,
|
|
125
125
|
"To focus the chat request and response list, invoke the Focus Chat command{0}. This will move focus to the most recent response, which you can then navigate using the up and down arrow keys.",
|
|
126
126
|
getChatFocusKeybindingLabel(keybindingService, type, "last")
|
|
127
127
|
)));
|
|
128
128
|
content.push(( localize(
|
|
129
|
-
|
|
129
|
+
4822,
|
|
130
130
|
"To return to the last chat response you focused, invoke the Focus Last Focused Chat Response command{0}.",
|
|
131
131
|
getChatFocusKeybindingLabel(keybindingService, type, "lastFocused")
|
|
132
132
|
)));
|
|
133
133
|
content.push(( localize(
|
|
134
|
-
|
|
134
|
+
4823,
|
|
135
135
|
"To focus the input box for chat requests, invoke the Focus Chat Input command{0}.",
|
|
136
136
|
getChatFocusKeybindingLabel(keybindingService, type, "input")
|
|
137
137
|
)));
|
|
138
138
|
content.push(( localize(
|
|
139
|
-
|
|
139
|
+
4824,
|
|
140
140
|
"As the chat request is being processed, you will hear verbose progress updates if the request takes more than 4 seconds. This includes information like searched text for <search term> with X results, created file <file_name>, or read file <file path>. This can be disabled with accessibility.verboseChatProgressUpdates."
|
|
141
141
|
)));
|
|
142
142
|
content.push(( localize(
|
|
143
|
-
|
|
143
|
+
4825,
|
|
144
144
|
"Chat responses will be announced as they come in. A response will indicate the number of code blocks, if any, and then the rest of the response."
|
|
145
145
|
)));
|
|
146
146
|
content.push(( localize(
|
|
147
|
-
|
|
147
|
+
4826,
|
|
148
148
|
"To focus the next code block within a response, invoke the Chat: Next Code Block command{0}.",
|
|
149
149
|
"<keybinding:workbench.action.chat.nextCodeBlock>"
|
|
150
150
|
)));
|
|
151
151
|
content.push(( localize(
|
|
152
|
-
|
|
152
|
+
4827,
|
|
153
153
|
"To navigate to the next user prompt in the conversation, invoke the Next User Prompt command{0}.",
|
|
154
154
|
"<keybinding:workbench.action.chat.nextUserPrompt>"
|
|
155
155
|
)));
|
|
156
156
|
content.push(( localize(
|
|
157
|
-
|
|
157
|
+
4828,
|
|
158
158
|
"To navigate to the previous user prompt in the conversation, invoke the Previous User Prompt command{0}.",
|
|
159
159
|
"<keybinding:workbench.action.chat.previousUserPrompt>"
|
|
160
160
|
)));
|
|
161
161
|
content.push(( localize(
|
|
162
|
-
|
|
162
|
+
4829,
|
|
163
163
|
"To focus pending chat confirmation dialogs, invoke the Focus Chat Confirmation Status command{0}.",
|
|
164
164
|
"<keybinding:workbench.action.chat.focusConfirmation>"
|
|
165
165
|
)));
|
|
166
166
|
content.push(( localize(
|
|
167
|
-
|
|
167
|
+
4830,
|
|
168
168
|
"If there are any hidden chat terminals, you can view them by invoking the View Hidden Chat Terminals command{0}.",
|
|
169
169
|
"<keybinding:workbench.action.terminal.chat.viewHiddenChatTerminals>"
|
|
170
170
|
)));
|
|
171
171
|
content.push(( localize(
|
|
172
|
-
|
|
172
|
+
4831,
|
|
173
173
|
"To focus the last chat terminal that ran a tool, invoke the Focus Most Recent Chat Terminal command{0}.",
|
|
174
174
|
`<keybinding:${TerminalContribCommandId.FocusMostRecentChatTerminal}>`
|
|
175
175
|
)));
|
|
176
176
|
content.push(( localize(
|
|
177
|
-
|
|
177
|
+
4832,
|
|
178
178
|
"To focus the output from the last chat terminal tool, invoke the Focus Most Recent Chat Terminal Output command{0}.",
|
|
179
179
|
`<keybinding:${TerminalContribCommandId.FocusMostRecentChatTerminalOutput}>`
|
|
180
180
|
)));
|
|
181
181
|
content.push(( localize(
|
|
182
|
-
|
|
182
|
+
4833,
|
|
183
183
|
"When a chat question appears, toggle focus between the question and the chat input{0}.",
|
|
184
184
|
"<keybinding:workbench.action.chat.focusQuestionCarousel>"
|
|
185
185
|
)));
|
|
186
186
|
content.push(( localize(
|
|
187
|
-
|
|
187
|
+
4834,
|
|
188
188
|
"When a chat question is focused, move to the previous question{0}.",
|
|
189
189
|
"<keybinding:workbench.action.chat.previousQuestion>"
|
|
190
190
|
)));
|
|
191
191
|
content.push(( localize(
|
|
192
|
-
|
|
192
|
+
4835,
|
|
193
193
|
"When a chat question is focused, move to the next question{0}.",
|
|
194
194
|
"<keybinding:workbench.action.chat.nextQuestion>"
|
|
195
195
|
)));
|
|
196
196
|
content.push(( localize(
|
|
197
|
-
|
|
197
|
+
4836,
|
|
198
198
|
"When a tip appears, toggle focus between the tip and the chat input{0}.",
|
|
199
199
|
"<keybinding:workbench.action.chat.focusTip>"
|
|
200
200
|
)));
|
|
@@ -202,99 +202,99 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
202
202
|
if (type === "editsView" || type === "agentView") {
|
|
203
203
|
if (type === "agentView") {
|
|
204
204
|
content.push(( localize(
|
|
205
|
-
|
|
205
|
+
4837,
|
|
206
206
|
"The chat agent view is used to apply edits across files in your workspace, enable running commands in the terminal, and more."
|
|
207
207
|
)));
|
|
208
208
|
} else {
|
|
209
|
-
content.push(( localize(
|
|
209
|
+
content.push(( localize(4838, "The chat editing view is used to apply edits across files.")));
|
|
210
210
|
}
|
|
211
211
|
content.push(( localize(
|
|
212
|
-
|
|
212
|
+
4839,
|
|
213
213
|
"It is comprised of an input box and a file working set (Shift+Tab)."
|
|
214
214
|
)));
|
|
215
215
|
content.push(( localize(
|
|
216
|
-
|
|
216
|
+
4840,
|
|
217
217
|
"When a request is made, a progress indicator will play while the edits are being applied."
|
|
218
218
|
)));
|
|
219
219
|
content.push(( localize(
|
|
220
|
-
|
|
220
|
+
4841,
|
|
221
221
|
"Once the edits are applied, a sound will play to indicate the document has been opened and is ready for review. The sound can be disabled with accessibility.signals.chatEditModifiedFile."
|
|
222
222
|
)));
|
|
223
223
|
content.push(( localize(
|
|
224
|
-
|
|
224
|
+
4842,
|
|
225
225
|
"Navigate between edits in the editor with navigate previous{0} and next{1}",
|
|
226
226
|
"<keybinding:chatEditor.action.navigatePrevious>",
|
|
227
227
|
"<keybinding:chatEditor.action.navigateNext>"
|
|
228
228
|
)));
|
|
229
229
|
content.push(( localize(
|
|
230
|
-
|
|
230
|
+
4843,
|
|
231
231
|
"In the editor, Keep{0}, Undo{1}, or Toggle the Diff{2} for the current Change.",
|
|
232
232
|
"<keybinding:chatEditor.action.acceptHunk>",
|
|
233
233
|
"<keybinding:chatEditor.action.undoHunk>",
|
|
234
234
|
"<keybinding:chatEditor.action.toggleDiff>"
|
|
235
235
|
)));
|
|
236
236
|
content.push(( localize(
|
|
237
|
-
|
|
237
|
+
4844,
|
|
238
238
|
"Sounds will play when a change is accepted or undone. The sounds can be disabled with accessibility.signals.editsKept and accessibility.signals.editsUndone."
|
|
239
239
|
)));
|
|
240
240
|
if (type === "agentView") {
|
|
241
241
|
content.push(( localize(
|
|
242
|
-
|
|
242
|
+
4845,
|
|
243
243
|
"An alert will indicate when user action is required. For example, if the agent wants to run something in the terminal, you will hear Action Required: Run Command in Terminal."
|
|
244
244
|
)));
|
|
245
245
|
content.push(( localize(
|
|
246
|
-
|
|
246
|
+
4846,
|
|
247
247
|
"To take the action, use the accept tool command{0}.",
|
|
248
248
|
"<keybinding:workbench.action.chat.acceptTool>"
|
|
249
249
|
)));
|
|
250
250
|
content.push(( localize(
|
|
251
|
-
|
|
251
|
+
4847,
|
|
252
252
|
"To automatically approve tool actions without manual confirmation, set {0} to {1} in your settings.",
|
|
253
253
|
ChatConfiguration.GlobalAutoApprove,
|
|
254
254
|
"true"
|
|
255
255
|
)));
|
|
256
256
|
content.push(( localize(
|
|
257
|
-
|
|
257
|
+
4848,
|
|
258
258
|
"To accept a tool action, use the Accept Tool Confirmation command{0}.",
|
|
259
259
|
"<keybinding:workbench.action.chat.acceptTool>"
|
|
260
260
|
)));
|
|
261
261
|
content.push(( localize(
|
|
262
|
-
|
|
262
|
+
4849,
|
|
263
263
|
"By default, when edits are made to files, they will be opened. To change this behavior, set accessibility.openChatEditedFiles to false in your settings."
|
|
264
264
|
)));
|
|
265
265
|
content.push(( localize(
|
|
266
|
-
|
|
266
|
+
4850,
|
|
267
267
|
"To toggle focus between the Agent TODOs view and the chat input, use Agent TODOs: Toggle Focus{0}.",
|
|
268
268
|
"<keybinding:workbench.action.chat.focusTodosView>"
|
|
269
269
|
)));
|
|
270
270
|
}
|
|
271
|
-
content.push(( localize(
|
|
272
|
-
content.push(( localize(
|
|
271
|
+
content.push(( localize(4851, "Some helpful commands include:")));
|
|
272
|
+
content.push(( localize(4852, "- Undo Edits{0}.", "<keybinding:workbench.action.chat.undoEdits>")));
|
|
273
273
|
content.push(( localize(
|
|
274
|
-
|
|
274
|
+
4853,
|
|
275
275
|
"- Restore to Last Checkpoint{0}.",
|
|
276
276
|
"<keybinding:workbench.action.chat.restoreLastCheckpoint>"
|
|
277
277
|
)));
|
|
278
278
|
content.push(( localize(
|
|
279
|
-
|
|
279
|
+
4854,
|
|
280
280
|
"- Attach Files{0}.",
|
|
281
281
|
"<keybinding:workbench.action.chat.editing.attachFiles>"
|
|
282
282
|
)));
|
|
283
283
|
content.push(( localize(
|
|
284
|
-
|
|
284
|
+
4855,
|
|
285
285
|
"- Remove File from Working Set{0}.",
|
|
286
286
|
"<keybinding:chatEditing.removeFileFromWorkingSet>"
|
|
287
287
|
)));
|
|
288
288
|
content.push(( localize(
|
|
289
|
-
|
|
289
|
+
4856,
|
|
290
290
|
"- Keep{0} and Undo File{1}.",
|
|
291
291
|
"<keybinding:chatEditing.acceptFile>",
|
|
292
292
|
"<keybinding:chatEditing.discardFile>"
|
|
293
293
|
)));
|
|
294
|
-
content.push(( localize(
|
|
295
|
-
content.push(( localize(
|
|
296
|
-
content.push(( localize(
|
|
297
|
-
content.push(( localize(
|
|
294
|
+
content.push(( localize(4857, "- Save All Files{0}.", "<keybinding:chatEditing.saveAllFiles>")));
|
|
295
|
+
content.push(( localize(4858, "- Keep All Edits{0}.", "<keybinding:chatEditing.acceptAllFiles>")));
|
|
296
|
+
content.push(( localize(4859, "- Undo All Edits{0}.", "<keybinding:chatEditing.discardAllFiles>")));
|
|
297
|
+
content.push(( localize(4860, "- Open File in Diff{0}.", "<keybinding:chatEditing.openFileInDiff>")));
|
|
298
298
|
content.push(
|
|
299
299
|
`- ${ChatEditingShowChangesAction.LABEL}<keybinding:chatEditing.viewChanges>`
|
|
300
300
|
);
|
|
@@ -303,45 +303,45 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
303
303
|
);
|
|
304
304
|
} else {
|
|
305
305
|
content.push(( localize(
|
|
306
|
-
|
|
306
|
+
4861,
|
|
307
307
|
"Inline chat occurs within a code editor and takes into account the current selection. It is useful for making changes to the current editor. For example, fixing diagnostics, documenting or refactoring code. Keep in mind that AI generated code may be incorrect."
|
|
308
308
|
)));
|
|
309
309
|
content.push(( localize(
|
|
310
|
-
|
|
310
|
+
4862,
|
|
311
311
|
"It can be activated via code actions or directly using the command: Inline Chat: Start Inline Chat{0}.",
|
|
312
312
|
"<keybinding:inlineChat.start>"
|
|
313
313
|
)));
|
|
314
314
|
content.push(( localize(
|
|
315
|
-
|
|
315
|
+
4863,
|
|
316
316
|
"In the input box, use Show Previous{0} and Show Next{1} to navigate your request history. Edit input and use enter or the submit button to run a new request.",
|
|
317
317
|
"<keybinding:history.showPrevious>",
|
|
318
318
|
"<keybinding:history.showNext>"
|
|
319
319
|
)));
|
|
320
320
|
content.push(( localize(
|
|
321
|
-
|
|
321
|
+
4864,
|
|
322
322
|
"In the input box, inspect the response in the accessible view{0}.",
|
|
323
323
|
"<keybinding:editor.action.accessibleView>"
|
|
324
324
|
)));
|
|
325
325
|
content.push(( localize(
|
|
326
|
-
|
|
326
|
+
4865,
|
|
327
327
|
"Context menu actions may run a request prefixed with a /. Type / to discover such ready-made commands."
|
|
328
328
|
)));
|
|
329
329
|
content.push(( localize(
|
|
330
|
-
|
|
330
|
+
4866,
|
|
331
331
|
"If a fix action is invoked, a response will indicate the problem with the current code. A diff editor will be rendered and can be reached by tabbing."
|
|
332
332
|
)));
|
|
333
333
|
content.push(( localize(
|
|
334
|
-
|
|
334
|
+
4867,
|
|
335
335
|
"Once in the diff editor, enter review mode with{0}. Use up and down arrows to navigate lines with the proposed changes.",
|
|
336
336
|
AccessibleDiffViewerNext.id
|
|
337
337
|
)));
|
|
338
338
|
content.push(( localize(
|
|
339
|
-
|
|
339
|
+
4868,
|
|
340
340
|
"Use tab to reach conditional parts like commands, status, message responses and more."
|
|
341
341
|
)));
|
|
342
342
|
}
|
|
343
343
|
content.push(( localize(
|
|
344
|
-
|
|
344
|
+
4869,
|
|
345
345
|
"Accessibility Signals can be changed via settings with a prefix of signals.chat. By default, if a request takes more than 4 seconds, you will hear a sound indicating that progress is still occurring."
|
|
346
346
|
)));
|
|
347
347
|
return content.join("\n");
|
package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js
CHANGED
|
@@ -58,7 +58,7 @@ let ChatAgentRecommendation = class ChatAgentRecommendation extends Disposable {
|
|
|
58
58
|
const availabilityContextId = `${INSTALL_CONTEXT_PREFIX}.${extensionKey}`;
|
|
59
59
|
const availabilityContext = ( new RawContextKey(availabilityContextId, false)).bindTo(this.contextKeyService);
|
|
60
60
|
this.availabilityContextKeys.set(extensionKey, availabilityContext);
|
|
61
|
-
const title = ( localize2(
|
|
61
|
+
const title = ( localize2(4932, "New {0}", recommendation.displayName));
|
|
62
62
|
this._register(registerAction2(class extends Action2 {
|
|
63
63
|
constructor() {
|
|
64
64
|
super({
|