@codingame/monaco-vscode-chat-service-override 37.0.0 → 37.1.0
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.js +11 -0
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/agentHostProtocolClient.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.d.ts +74 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.js +90 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSlashCommand.d.ts +8 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSlashCommand.js +16 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +53 -53
- package/vscode/src/vs/platform/agentHost/common/agentHostWorkingDirectories.d.ts +16 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostWorkingDirectories.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/agentMerge.js +7 -7
- package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.d.ts +24 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.js +13 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.d.ts +22 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.js +21 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelPricing.d.ts +114 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelPricing.js +56 -0
- package/vscode/src/vs/platform/agentHost/common/changesetUri.js +15 -1
- package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.d.ts +73 -0
- package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.js +141 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCompletionAttachmentMeta.js +42 -1
- package/vscode/src/vs/platform/agentHost/common/meta/agentCustomizationMeta.d.ts +27 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCustomizationMeta.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentEphemeralSessionMeta.d.ts +14 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentEphemeralSessionMeta.js +11 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +13 -13
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +4 -1
- package/vscode/src/vs/platform/agentHost/common/toolSearchConstants.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/toolSearchConstants.js +6 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +1 -1
- package/vscode/src/vs/workbench/browser/chatChangesPill.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +28 -28
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +18 -18
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +3 -3
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +3 -3
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +6 -6
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +11 -11
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +11 -11
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +9 -9
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +5 -5
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +28 -28
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +93 -93
- 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 +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.js +7 -7
- 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 +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +15 -15
- 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 +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.js +7 -7
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationContentExpander.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationContentExpander.js +229 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.js +460 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.js +92 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.d.ts +142 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.js +746 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +474 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostConfigEditor.d.ts +169 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostConfigEditor.js +261 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.js +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostDownloadProgress.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostDownloadProgress.js +73 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostExistingSessionHarnessPickerEnablement.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostExistingSessionHarnessPickerEnablement.js +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +192 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.js +137 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.js +301 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.d.ts +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.js +96 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.d.ts +884 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.js +5868 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.js +129 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.js +221 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.js +345 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.js +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.js +163 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.js +219 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.js +50 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.js +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.d.ts +79 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.js +161 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.js +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.js +205 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +3 -3
- 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.js +22 -22
- 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/externalSessionsFilterMenu.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHover.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessionsConfiguration.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +126 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +44 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +137 -137
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +37 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationCategories.js +145 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationDashboard.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +40 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +75 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +115 -115
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +344 -344
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +37 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +124 -124
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +72 -72
- 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/chatDebugEnablement.js +3 -3
- 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 +12 -12
- 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 +35 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.js +40 -40
- 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 +3 -3
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPills.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.js +35 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +19 -19
- 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 +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +62 -62
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +27 -27
- 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 +2 -2
- 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/promptToolSetsCodeLensProvider.js +2 -2
- 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/promptTimeline/promptTimeline.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionChatPillOptions.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionPullRequestPill.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +10 -10
- 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 +3 -3
- 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 +11 -11
- 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 +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +154 -154
- package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +1 -1
- 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/inlineChatEditReviewSession.js +1 -1
- 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/terminalChat.js +10 -10
- 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/runInTerminalHelpers.js +6 -6
- 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/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- 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.js +3 -3
- 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/monitoring/outputMonitor.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +73 -73
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +10 -10
- 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 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +4 -4
- package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.js +3 -3
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.d.ts +0 -30
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.js +0 -87
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +0 -205
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +0 -1580
|
@@ -13,42 +13,42 @@ import { IRemoteCodingAgentsService } from '@codingame/monaco-vscode-api/vscode/
|
|
|
13
13
|
const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
14
14
|
extensionPoint: "remoteCodingAgents",
|
|
15
15
|
jsonSchema: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(15595, "Contributes remote coding agent integrations to the chat widget.")),
|
|
17
17
|
type: "array",
|
|
18
18
|
items: {
|
|
19
19
|
type: "object",
|
|
20
20
|
properties: {
|
|
21
21
|
id: {
|
|
22
|
-
description: ( localize(
|
|
22
|
+
description: ( localize(15596, "A unique identifier for this item.")),
|
|
23
23
|
type: "string"
|
|
24
24
|
},
|
|
25
25
|
command: {
|
|
26
26
|
description: ( localize(
|
|
27
|
-
|
|
27
|
+
15597,
|
|
28
28
|
"Identifier of the command to execute. The command must be declared in the \"commands\" section."
|
|
29
29
|
)),
|
|
30
30
|
type: "string"
|
|
31
31
|
},
|
|
32
32
|
displayName: {
|
|
33
33
|
description: ( localize(
|
|
34
|
-
|
|
34
|
+
15598,
|
|
35
35
|
"A user-friendly name for this item which is used for display in menus."
|
|
36
36
|
)),
|
|
37
37
|
type: "string"
|
|
38
38
|
},
|
|
39
39
|
description: {
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(15599, "Description of the remote agent for use in menus and tooltips.")),
|
|
41
41
|
type: "string"
|
|
42
42
|
},
|
|
43
43
|
followUpRegex: {
|
|
44
44
|
description: ( localize(
|
|
45
|
-
|
|
45
|
+
15600,
|
|
46
46
|
"The last occurrence of pattern in an existing chat conversation is sent to the contributing extension to facilitate follow-up responses."
|
|
47
47
|
)),
|
|
48
48
|
type: "string"
|
|
49
49
|
},
|
|
50
50
|
when: {
|
|
51
|
-
description: ( localize(
|
|
51
|
+
description: ( localize(15601, "Condition which must be true to show this item.")),
|
|
52
52
|
type: "string"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -52,27 +52,27 @@ var TerminalChatContextKeyStrings;
|
|
|
52
52
|
})(TerminalChatContextKeyStrings || (TerminalChatContextKeyStrings = {}));
|
|
53
53
|
var TerminalChatContextKeys;
|
|
54
54
|
(function(TerminalChatContextKeys) {
|
|
55
|
-
TerminalChatContextKeys.focused = ( new RawContextKey(TerminalChatContextKeyStrings.ChatFocus, false, ( localize(
|
|
56
|
-
TerminalChatContextKeys.visible = ( new RawContextKey(TerminalChatContextKeyStrings.ChatVisible, false, ( localize(
|
|
57
|
-
TerminalChatContextKeys.requestActive = ( new RawContextKey(TerminalChatContextKeyStrings.ChatActiveRequest, false, ( localize(
|
|
58
|
-
TerminalChatContextKeys.inputHasText = ( new RawContextKey(TerminalChatContextKeyStrings.ChatInputHasText, false, ( localize(
|
|
55
|
+
TerminalChatContextKeys.focused = ( new RawContextKey(TerminalChatContextKeyStrings.ChatFocus, false, ( localize(17297, "Whether the chat view is focused."))));
|
|
56
|
+
TerminalChatContextKeys.visible = ( new RawContextKey(TerminalChatContextKeyStrings.ChatVisible, false, ( localize(17298, "Whether the chat view is visible."))));
|
|
57
|
+
TerminalChatContextKeys.requestActive = ( new RawContextKey(TerminalChatContextKeyStrings.ChatActiveRequest, false, ( localize(17299, "Whether there is an active chat request."))));
|
|
58
|
+
TerminalChatContextKeys.inputHasText = ( new RawContextKey(TerminalChatContextKeyStrings.ChatInputHasText, false, ( localize(17300, "Whether the chat input has text."))));
|
|
59
59
|
TerminalChatContextKeys.responseContainsCodeBlock = ( new RawContextKey(
|
|
60
60
|
TerminalChatContextKeyStrings.ChatResponseContainsCodeBlock,
|
|
61
61
|
false,
|
|
62
|
-
( localize(
|
|
62
|
+
( localize(17301, "Whether the chat response contains a code block."))
|
|
63
63
|
));
|
|
64
64
|
TerminalChatContextKeys.responseContainsMultipleCodeBlocks = ( new RawContextKey(
|
|
65
65
|
TerminalChatContextKeyStrings.ChatResponseContainsMultipleCodeBlocks,
|
|
66
66
|
false,
|
|
67
|
-
( localize(
|
|
67
|
+
( localize(17302, "Whether the chat response contains multiple code blocks."))
|
|
68
68
|
));
|
|
69
|
-
TerminalChatContextKeys.hasChatAgent = ( new RawContextKey(TerminalChatContextKeyStrings.ChatAgentRegistered, false, ( localize(
|
|
70
|
-
TerminalChatContextKeys.usesAgentHost = ( new RawContextKey(TerminalChatContextKeyStrings.ChatUsesAgentHost, false, ( localize(
|
|
71
|
-
TerminalChatContextKeys.hasChatTerminals = ( new RawContextKey(TerminalChatContextKeyStrings.ChatHasTerminals, false, ( localize(
|
|
69
|
+
TerminalChatContextKeys.hasChatAgent = ( new RawContextKey(TerminalChatContextKeyStrings.ChatAgentRegistered, false, ( localize(17303, "Whether a chat agent is registered for the terminal location."))));
|
|
70
|
+
TerminalChatContextKeys.usesAgentHost = ( new RawContextKey(TerminalChatContextKeyStrings.ChatUsesAgentHost, false, ( localize(17304, "Whether the terminal chat session is backed by the Agent Host."))));
|
|
71
|
+
TerminalChatContextKeys.hasChatTerminals = ( new RawContextKey(TerminalChatContextKeyStrings.ChatHasTerminals, false, ( localize(17305, "Whether there are any chat terminals."))));
|
|
72
72
|
TerminalChatContextKeys.hasHiddenChatTerminals = ( new RawContextKey(
|
|
73
73
|
TerminalChatContextKeyStrings.ChatHasHiddenTerminals,
|
|
74
74
|
false,
|
|
75
|
-
( localize(
|
|
75
|
+
( localize(17306, "Whether there are any hidden chat terminals."))
|
|
76
76
|
));
|
|
77
77
|
TerminalChatContextKeys.chatToolHasInstance = ( new RawContextKey(TerminalChatContextKeyStrings.ChatToolHasInstance, false));
|
|
78
78
|
TerminalChatContextKeys.chatToolCanContinueInBackground = ( new RawContextKey(TerminalChatContextKeyStrings.ChatToolCanContinueInBackground, false));
|
|
@@ -37,68 +37,68 @@ function getAccessibilityHelpText(accessor) {
|
|
|
37
37
|
const focusResponseKeybinding = keybindingService.lookupKeybinding("chat.action.focus")?.getAriaLabel();
|
|
38
38
|
const focusInputKeybinding = keybindingService.lookupKeybinding("workbench.action.chat.focusInput")?.getAriaLabel();
|
|
39
39
|
content.push(( localize(
|
|
40
|
-
|
|
40
|
+
17307,
|
|
41
41
|
"Inline chat occurs within a terminal. It is useful for suggesting terminal commands. Keep in mind that AI generated code may be incorrect."
|
|
42
42
|
)));
|
|
43
43
|
content.push(( localize(
|
|
44
|
-
|
|
44
|
+
17308,
|
|
45
45
|
"It can be activated using the command: Terminal: Start Chat ({0}), which will focus the input box.",
|
|
46
46
|
startChatKeybinding
|
|
47
47
|
)));
|
|
48
48
|
content.push(makeRequestKeybinding ? ( localize(
|
|
49
|
-
|
|
49
|
+
17309,
|
|
50
50
|
"The input box is where the user can type a request and can make the request ({0}). The widget will be closed and all content will be discarded when the Escape key is pressed and the terminal will regain focus.",
|
|
51
51
|
makeRequestKeybinding
|
|
52
52
|
)) : ( localize(
|
|
53
|
-
|
|
53
|
+
17310,
|
|
54
54
|
"The input box is where the user can type a request and can make the request by tabbing to the Make Request button, which is not currently triggerable via keybindings. The widget will be closed and all content will be discarded when the Escape key is pressed and the terminal will regain focus."
|
|
55
55
|
)));
|
|
56
56
|
content.push(openAccessibleViewKeybinding ? ( localize(
|
|
57
|
-
|
|
57
|
+
17311,
|
|
58
58
|
"The response can be inspected in the accessible view ({0}).",
|
|
59
59
|
openAccessibleViewKeybinding
|
|
60
60
|
)) : ( localize(
|
|
61
|
-
|
|
61
|
+
17312,
|
|
62
62
|
"With the input box focused, inspect the response in the accessible view via the Open Accessible View command, which is currently not triggerable by a keybinding."
|
|
63
63
|
)));
|
|
64
64
|
content.push(focusResponseKeybinding ? ( localize(
|
|
65
|
-
|
|
65
|
+
17313,
|
|
66
66
|
"Reach the response from the input box ({0}).",
|
|
67
67
|
focusResponseKeybinding
|
|
68
68
|
)) : ( localize(
|
|
69
|
-
|
|
69
|
+
17314,
|
|
70
70
|
"Reach the response from the input box by tabbing or assigning a keybinding for the command: Focus Terminal Response."
|
|
71
71
|
)));
|
|
72
72
|
content.push(focusInputKeybinding ? ( localize(
|
|
73
|
-
|
|
73
|
+
17315,
|
|
74
74
|
"Reach the input box from the response ({0}).",
|
|
75
75
|
focusInputKeybinding
|
|
76
76
|
)) : ( localize(
|
|
77
|
-
|
|
77
|
+
17316,
|
|
78
78
|
"Reach the response from the input box by shift+tabbing or assigning a keybinding for the command: Focus Terminal Input."
|
|
79
79
|
)));
|
|
80
80
|
content.push(runCommandKeybinding ? ( localize(
|
|
81
|
-
|
|
81
|
+
17317,
|
|
82
82
|
"With focus in the input box or command editor, the Terminal: Run Chat Command ({0}) action.",
|
|
83
83
|
runCommandKeybinding
|
|
84
84
|
)) : ( localize(
|
|
85
|
-
|
|
85
|
+
17318,
|
|
86
86
|
"Run a command by tabbing to the button as the action is currently not triggerable by a keybinding."
|
|
87
87
|
)));
|
|
88
88
|
content.push(insertCommandKeybinding ? ( localize(
|
|
89
|
-
|
|
89
|
+
17319,
|
|
90
90
|
"With focus in the input box command editor, the Terminal: Insert Chat Command ({0}) action.",
|
|
91
91
|
insertCommandKeybinding
|
|
92
92
|
)) : ( localize(
|
|
93
|
-
|
|
93
|
+
17320,
|
|
94
94
|
"Insert a command by tabbing to the button as the action is currently not triggerable by a keybinding."
|
|
95
95
|
)));
|
|
96
96
|
content.push(( localize(
|
|
97
|
-
|
|
97
|
+
17321,
|
|
98
98
|
"Use tab to reach conditional parts like commands, status, message responses and more."
|
|
99
99
|
)));
|
|
100
100
|
content.push(( localize(
|
|
101
|
-
|
|
101
|
+
17322,
|
|
102
102
|
"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."
|
|
103
103
|
)));
|
|
104
104
|
return content.join("\n");
|
|
@@ -33,8 +33,8 @@ import { activeChatController } from './terminalChatControllerHolder.js';
|
|
|
33
33
|
|
|
34
34
|
registerActiveXtermAction({
|
|
35
35
|
id: TerminalChatCommandId.Start,
|
|
36
|
-
title: ( localize2(
|
|
37
|
-
category: ( localize2(
|
|
36
|
+
title: ( localize2(17323, "Open Inline Chat")),
|
|
37
|
+
category: ( localize2(17324, "Terminal")),
|
|
38
38
|
keybinding: {
|
|
39
39
|
primary: KeyMod.CtrlCmd | KeyCode.KeyI,
|
|
40
40
|
when: ( ContextKeyExpr.and(TerminalContextKeys.focusInAny)),
|
|
@@ -78,7 +78,7 @@ registerActiveXtermAction({
|
|
|
78
78
|
});
|
|
79
79
|
registerActiveXtermAction({
|
|
80
80
|
id: TerminalChatCommandId.Close,
|
|
81
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(17325, "Close")),
|
|
82
82
|
category: AbstractInlineChatAction.category,
|
|
83
83
|
keybinding: {
|
|
84
84
|
primary: KeyCode.Escape,
|
|
@@ -103,8 +103,8 @@ registerActiveXtermAction({
|
|
|
103
103
|
});
|
|
104
104
|
registerActiveXtermAction({
|
|
105
105
|
id: TerminalChatCommandId.RunCommand,
|
|
106
|
-
title: ( localize2(
|
|
107
|
-
shortTitle: ( localize2(
|
|
106
|
+
title: ( localize2(17326, "Run Chat Command")),
|
|
107
|
+
shortTitle: ( localize2(17327, "Run")),
|
|
108
108
|
category: AbstractInlineChatAction.category,
|
|
109
109
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(
|
|
110
110
|
TerminalContextKeys.processSupported,
|
|
@@ -132,8 +132,8 @@ registerActiveXtermAction({
|
|
|
132
132
|
});
|
|
133
133
|
registerActiveXtermAction({
|
|
134
134
|
id: TerminalChatCommandId.RunFirstCommand,
|
|
135
|
-
title: ( localize2(
|
|
136
|
-
shortTitle: ( localize2(
|
|
135
|
+
title: ( localize2(17328, "Run First Chat Command")),
|
|
136
|
+
shortTitle: ( localize2(17329, "Run First")),
|
|
137
137
|
category: AbstractInlineChatAction.category,
|
|
138
138
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(
|
|
139
139
|
TerminalContextKeys.processSupported,
|
|
@@ -161,8 +161,8 @@ registerActiveXtermAction({
|
|
|
161
161
|
});
|
|
162
162
|
registerActiveXtermAction({
|
|
163
163
|
id: TerminalChatCommandId.InsertCommand,
|
|
164
|
-
title: ( localize2(
|
|
165
|
-
shortTitle: ( localize2(
|
|
164
|
+
title: ( localize2(17330, "Insert Chat Command")),
|
|
165
|
+
shortTitle: ( localize2(17331, "Insert")),
|
|
166
166
|
category: AbstractInlineChatAction.category,
|
|
167
167
|
icon: Codicon.insert,
|
|
168
168
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(
|
|
@@ -191,8 +191,8 @@ registerActiveXtermAction({
|
|
|
191
191
|
});
|
|
192
192
|
registerActiveXtermAction({
|
|
193
193
|
id: TerminalChatCommandId.InsertFirstCommand,
|
|
194
|
-
title: ( localize2(
|
|
195
|
-
shortTitle: ( localize2(
|
|
194
|
+
title: ( localize2(17332, "Insert First Chat Command")),
|
|
195
|
+
shortTitle: ( localize2(17333, "Insert First")),
|
|
196
196
|
category: AbstractInlineChatAction.category,
|
|
197
197
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(
|
|
198
198
|
TerminalContextKeys.processSupported,
|
|
@@ -220,7 +220,7 @@ registerActiveXtermAction({
|
|
|
220
220
|
});
|
|
221
221
|
registerActiveXtermAction({
|
|
222
222
|
id: TerminalChatCommandId.RerunRequest,
|
|
223
|
-
title: ( localize2(
|
|
223
|
+
title: ( localize2(17334, "Rerun Request")),
|
|
224
224
|
f1: false,
|
|
225
225
|
icon: Codicon.refresh,
|
|
226
226
|
category: AbstractInlineChatAction.category,
|
|
@@ -261,7 +261,7 @@ registerActiveXtermAction({
|
|
|
261
261
|
});
|
|
262
262
|
registerActiveXtermAction({
|
|
263
263
|
id: TerminalChatCommandId.ViewInChat,
|
|
264
|
-
title: ( localize2(
|
|
264
|
+
title: ( localize2(17335, "View in Chat")),
|
|
265
265
|
category: AbstractInlineChatAction.category,
|
|
266
266
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(
|
|
267
267
|
TerminalContextKeys.processSupported,
|
|
@@ -287,8 +287,8 @@ registerAction2(class ShowChatTerminalsAction extends Action2 {
|
|
|
287
287
|
constructor() {
|
|
288
288
|
super({
|
|
289
289
|
id: TerminalChatCommandId.ViewHiddenChatTerminals,
|
|
290
|
-
title: ( localize2(
|
|
291
|
-
category: ( localize2(
|
|
290
|
+
title: ( localize2(17336, "View Hidden Chat Terminals")),
|
|
291
|
+
category: ( localize2(17337, "Terminal")),
|
|
292
292
|
f1: true,
|
|
293
293
|
precondition: ( ContextKeyExpr.and(TerminalChatContextKeys.hasHiddenChatTerminals, ChatContextKeys.enabled)),
|
|
294
294
|
menu: [{
|
|
@@ -335,7 +335,7 @@ registerAction2(class ShowChatTerminalsAction extends Action2 {
|
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
const items = [];
|
|
338
|
-
const lastCommandLocalized = command => ( localize2(
|
|
338
|
+
const lastCommandLocalized = command => ( localize2(17338, "Last: {0}", command)).value;
|
|
339
339
|
const MAX_DETAIL_LENGTH = 80;
|
|
340
340
|
const metas = [];
|
|
341
341
|
for (const instance of ( all.values())) {
|
|
@@ -387,10 +387,10 @@ registerAction2(class ShowChatTerminalsAction extends Action2 {
|
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
const qp = quickInputService.createQuickPick();
|
|
390
|
-
qp.placeholder = ( localize2(
|
|
390
|
+
qp.placeholder = ( localize2(17339, "Select a chat terminal to show and focus")).value;
|
|
391
391
|
qp.items = items;
|
|
392
392
|
qp.canSelectMany = false;
|
|
393
|
-
qp.title = ( localize2(
|
|
393
|
+
qp.title = ( localize2(17340, "Chat Terminals")).value;
|
|
394
394
|
qp.matchOnDescription = true;
|
|
395
395
|
qp.matchOnDetail = true;
|
|
396
396
|
const qpDisposables = ( new DisposableStore());
|
|
@@ -454,14 +454,14 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
454
454
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
455
455
|
command: {
|
|
456
456
|
id: TerminalChatCommandId.FocusMostRecentChatTerminal,
|
|
457
|
-
title: ( localize(
|
|
457
|
+
title: ( localize(17341, "Chat: Focus Most Recent Terminal"))
|
|
458
458
|
},
|
|
459
459
|
when: ChatContextKeys.inChatSession
|
|
460
460
|
});
|
|
461
461
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
462
462
|
command: {
|
|
463
463
|
id: TerminalChatCommandId.FocusMostRecentChatTerminalOutput,
|
|
464
|
-
title: ( localize(
|
|
464
|
+
title: ( localize(17342, "Chat: Focus Most Recent Terminal Output"))
|
|
465
465
|
},
|
|
466
466
|
when: ChatContextKeys.inChatSession
|
|
467
467
|
});
|
|
@@ -211,7 +211,7 @@ let TerminalChatWidget = class TerminalChatWidget extends Disposable {
|
|
|
211
211
|
}
|
|
212
212
|
_resetPlaceholder() {
|
|
213
213
|
const defaultAgent = this._chatAgentService.getDefaultAgent(ChatAgentLocation.Terminal);
|
|
214
|
-
this.inlineChatWidget.placeholder = defaultAgent?.description ?? ( localize(
|
|
214
|
+
this.inlineChatWidget.placeholder = defaultAgent?.description ?? ( localize(17343, "Ask about commands"));
|
|
215
215
|
}
|
|
216
216
|
async reveal() {
|
|
217
217
|
this._createSession();
|
|
@@ -156,7 +156,7 @@ function generateAutoApproveActions(commandLine, subCommands, autoApproveResult,
|
|
|
156
156
|
if (firstSubcommandFirstWord !== commandLine && !( commandsWithSubcommands.has(commandLine)) && !( commandsWithSubSubCommands.has(commandLine))) {
|
|
157
157
|
if (!options?.skipSessionScoped) {
|
|
158
158
|
actions.push({
|
|
159
|
-
label: ( localize(
|
|
159
|
+
label: ( localize(17344, "Allow Exact Command Line in this Session")),
|
|
160
160
|
data: {
|
|
161
161
|
type: "newRule",
|
|
162
162
|
rule: {
|
|
@@ -171,7 +171,7 @@ function generateAutoApproveActions(commandLine, subCommands, autoApproveResult,
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
actions.push({
|
|
174
|
-
label: ( localize(
|
|
174
|
+
label: ( localize(17345, "Allow Exact Command Line in this Workspace")),
|
|
175
175
|
data: {
|
|
176
176
|
type: "newRule",
|
|
177
177
|
rule: {
|
|
@@ -185,7 +185,7 @@ function generateAutoApproveActions(commandLine, subCommands, autoApproveResult,
|
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
actions.push({
|
|
188
|
-
label: ( localize(
|
|
188
|
+
label: ( localize(17346, "Always Allow Exact Command Line")),
|
|
189
189
|
data: {
|
|
190
190
|
type: "newRule",
|
|
191
191
|
rule: {
|
|
@@ -205,8 +205,8 @@ function generateAutoApproveActions(commandLine, subCommands, autoApproveResult,
|
|
|
205
205
|
}
|
|
206
206
|
if (!options?.skipSessionScoped) {
|
|
207
207
|
actions.push({
|
|
208
|
-
label: ( localize(
|
|
209
|
-
tooltip: ( localize(
|
|
208
|
+
label: ( localize(17347, "Allow All Commands in this Session")),
|
|
209
|
+
tooltip: ( localize(17348, "Allow this tool to run in this session without confirmation.")),
|
|
210
210
|
data: {
|
|
211
211
|
type: "sessionApproval"
|
|
212
212
|
}
|
|
@@ -214,7 +214,7 @@ function generateAutoApproveActions(commandLine, subCommands, autoApproveResult,
|
|
|
214
214
|
actions.push(( new Separator()));
|
|
215
215
|
}
|
|
216
216
|
actions.push({
|
|
217
|
-
label: ( localize(
|
|
217
|
+
label: ( localize(17349, "Configure Auto Approve...")),
|
|
218
218
|
data: {
|
|
219
219
|
type: "configure"
|
|
220
220
|
}
|
|
@@ -177,7 +177,7 @@ registerWorkbenchContribution2(
|
|
|
177
177
|
);
|
|
178
178
|
registerActiveInstanceAction({
|
|
179
179
|
id: TerminalChatAgentToolsCommandId.ChatAddTerminalSelection,
|
|
180
|
-
title: ( localize(
|
|
180
|
+
title: ( localize(17350, "Add Terminal Selection to Chat")),
|
|
181
181
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, sharedWhenClause.terminalAvailable)),
|
|
182
182
|
menu: [{
|
|
183
183
|
id: MenuId.TerminalInstanceContext,
|
|
@@ -198,8 +198,8 @@ registerActiveInstanceAction({
|
|
|
198
198
|
chatView.attachmentModel.addContext({
|
|
199
199
|
id: `terminal-selection-${Date.now()}`,
|
|
200
200
|
kind: "generic",
|
|
201
|
-
name: ( localize(
|
|
202
|
-
fullName: ( localize(
|
|
201
|
+
name: ( localize(17351, "Terminal Selection")),
|
|
202
|
+
fullName: ( localize(17351, "Terminal Selection")),
|
|
203
203
|
value: selection,
|
|
204
204
|
icon: Codicon.terminal
|
|
205
205
|
});
|
|
@@ -154,7 +154,7 @@ let NpmScriptAutoApprover = class NpmScriptAutoApprover extends Disposable {
|
|
|
154
154
|
isAutoApproved: true,
|
|
155
155
|
scriptName,
|
|
156
156
|
autoApproveInfo: ( new MarkdownString(( localize(
|
|
157
|
-
|
|
157
|
+
17352,
|
|
158
158
|
"Auto approved as {0} is defined in package.json",
|
|
159
159
|
`\`${scriptName}\``
|
|
160
160
|
))))
|
|
@@ -56,7 +56,7 @@ let CommandLineAutoApproveAnalyzer = class CommandLineAutoApproveAnalyzer extend
|
|
|
56
56
|
isAutoApproved: true,
|
|
57
57
|
isAutoApproveAllowed: true,
|
|
58
58
|
disclaimers: [],
|
|
59
|
-
autoApproveInfo: ( new MarkdownString(`${( localize(
|
|
59
|
+
autoApproveInfo: ( new MarkdownString(`${( localize(17353, "Auto approved for this session"))} ([${( localize(17354, "Disable"))}](${( disableUri.toString())}))`, mdTrustSettings))
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
const trimmedCommandLine = options.commandLine.trimStart();
|
|
@@ -167,7 +167,7 @@ let CommandLineAutoApproveAnalyzer = class CommandLineAutoApproveAnalyzer extend
|
|
|
167
167
|
const subCommandsLowerFirstWordOnly = ( subCommands.map(command => command.split(" ")[0].toLowerCase()));
|
|
168
168
|
if (!isAutoApproved && (( subCommandsLowerFirstWordOnly.some(command => promptInjectionWarningCommandsLower.includes(command))) || (isPowerShell(options.shell, options.os) && ( subCommandsLowerFirstWordOnly.some(command => promptInjectionWarningCommandsLowerPwshOnly.includes(command)))))) {
|
|
169
169
|
disclaimers.push(( localize(
|
|
170
|
-
|
|
170
|
+
17355,
|
|
171
171
|
"Web content may contain malicious code or attempt prompt injection attacks."
|
|
172
172
|
)));
|
|
173
173
|
}
|
|
@@ -208,10 +208,10 @@ let CommandLineAutoApproveAnalyzer = class CommandLineAutoApproveAnalyzer extend
|
|
|
208
208
|
return ( asArray(result).filter(e => isAutoApproveRule(e.rule)).map(e => {
|
|
209
209
|
const escapedSourceText = e.rule.sourceText.replaceAll("$", "\\$");
|
|
210
210
|
if (e.rule.sourceTarget === "session") {
|
|
211
|
-
return localize(
|
|
211
|
+
return localize(17356, "{0} (session)", `\`${escapedSourceText}\``);
|
|
212
212
|
}
|
|
213
213
|
const settingsUri = createCommandUri(TerminalChatCommandId.OpenTerminalSettingsLink, e.rule.sourceTarget);
|
|
214
|
-
const tooltip = ( localize(
|
|
214
|
+
const tooltip = ( localize(17357, "View rule in settings"));
|
|
215
215
|
let label = escapedSourceText;
|
|
216
216
|
switch (e.rule?.sourceTarget) {
|
|
217
217
|
case ConfigurationTarget.DEFAULT:
|
|
@@ -242,9 +242,9 @@ let CommandLineAutoApproveAnalyzer = class CommandLineAutoApproveAnalyzer extend
|
|
|
242
242
|
if (isGlobalAutoApproved) {
|
|
243
243
|
const settingsUri = createCommandUri(TerminalChatCommandId.OpenTerminalSettingsLink, "global");
|
|
244
244
|
return (new MarkdownString(`${( localize(
|
|
245
|
-
|
|
245
|
+
17358,
|
|
246
246
|
"Auto approved by setting {0}",
|
|
247
|
-
`[\`${ChatConfiguration.GlobalAutoApprove}\`](${( settingsUri.toString())} "${( localize(
|
|
247
|
+
`[\`${ChatConfiguration.GlobalAutoApprove}\`](${( settingsUri.toString())} "${( localize(17359, "View settings"))}")`
|
|
248
248
|
))}`, mdTrustSettings));
|
|
249
249
|
}
|
|
250
250
|
if (isAutoApproved) {
|
|
@@ -253,7 +253,7 @@ let CommandLineAutoApproveAnalyzer = class CommandLineAutoApproveAnalyzer extend
|
|
|
253
253
|
{
|
|
254
254
|
if (isAutoApproveRule(commandLineResult.rule)) {
|
|
255
255
|
return (new MarkdownString(
|
|
256
|
-
localize(
|
|
256
|
+
localize(17360, "Auto approved by rule {0}", formatRuleLinks(commandLineResult)),
|
|
257
257
|
mdTrustSettings
|
|
258
258
|
));
|
|
259
259
|
}
|
|
@@ -268,12 +268,12 @@ let CommandLineAutoApproveAnalyzer = class CommandLineAutoApproveAnalyzer extend
|
|
|
268
268
|
const uniqueRules = dedupeRules(subCommandResults);
|
|
269
269
|
if (uniqueRules.length === 1) {
|
|
270
270
|
return (new MarkdownString(
|
|
271
|
-
localize(
|
|
271
|
+
localize(17360, "Auto approved by rule {0}", formatRuleLinks(uniqueRules)),
|
|
272
272
|
mdTrustSettings
|
|
273
273
|
));
|
|
274
274
|
} else if (uniqueRules.length > 1) {
|
|
275
275
|
return (new MarkdownString(
|
|
276
|
-
localize(
|
|
276
|
+
localize(17361, "Auto approved by rules {0}", formatRuleLinks(uniqueRules)),
|
|
277
277
|
mdTrustSettings
|
|
278
278
|
));
|
|
279
279
|
}
|
|
@@ -286,7 +286,7 @@ let CommandLineAutoApproveAnalyzer = class CommandLineAutoApproveAnalyzer extend
|
|
|
286
286
|
{
|
|
287
287
|
if (commandLineResult.rule) {
|
|
288
288
|
return (new MarkdownString(localize(
|
|
289
|
-
|
|
289
|
+
17362,
|
|
290
290
|
"Auto approval denied by rule {0}",
|
|
291
291
|
formatRuleLinks(commandLineResult)
|
|
292
292
|
), mdTrustSettings));
|
|
@@ -298,12 +298,12 @@ let CommandLineAutoApproveAnalyzer = class CommandLineAutoApproveAnalyzer extend
|
|
|
298
298
|
const uniqueRules = dedupeRules(subCommandResults.filter(e => e.result === "denied"));
|
|
299
299
|
if (uniqueRules.length === 1) {
|
|
300
300
|
return (new MarkdownString(
|
|
301
|
-
localize(
|
|
301
|
+
localize(17362, "Auto approval denied by rule {0}", formatRuleLinks(uniqueRules)),
|
|
302
302
|
mdTrustSettings
|
|
303
303
|
));
|
|
304
304
|
} else if (uniqueRules.length > 1) {
|
|
305
305
|
return (new MarkdownString(
|
|
306
|
-
localize(
|
|
306
|
+
localize(17363, "Auto approval denied by rules {0}", formatRuleLinks(uniqueRules)),
|
|
307
307
|
mdTrustSettings
|
|
308
308
|
));
|
|
309
309
|
}
|
|
@@ -155,12 +155,12 @@ let CommandLineFileWriteAnalyzer = class CommandLineFileWriteAnalyzer extends Di
|
|
|
155
155
|
)).join(", ");
|
|
156
156
|
if (!isAutoApproveAllowed) {
|
|
157
157
|
disclaimers.push(( localize(
|
|
158
|
-
|
|
158
|
+
17364,
|
|
159
159
|
"File write operations detected that cannot be auto approved: {0}",
|
|
160
160
|
fileWritesList
|
|
161
161
|
)));
|
|
162
162
|
} else {
|
|
163
|
-
disclaimers.push(( localize(
|
|
163
|
+
disclaimers.push(( localize(17365, "File write operations detected: {0}", fileWritesList)));
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
return {
|
|
@@ -12,7 +12,7 @@ const GetTerminalLastCommandToolData = {
|
|
|
12
12
|
id: TerminalToolId.TerminalLastCommand,
|
|
13
13
|
toolReferenceName: "terminalLastCommand",
|
|
14
14
|
legacyToolReferenceFullNames: ["runCommands/terminalLastCommand"],
|
|
15
|
-
displayName: ( localize(
|
|
15
|
+
displayName: ( localize(17366, "Get Terminal Last Command")),
|
|
16
16
|
modelDescription: "Get the last command run in the active terminal.",
|
|
17
17
|
source: ToolDataSource.Internal,
|
|
18
18
|
icon: Codicon.terminal
|
|
@@ -24,8 +24,8 @@ let GetTerminalLastCommandTool = class GetTerminalLastCommandTool extends Dispos
|
|
|
24
24
|
}
|
|
25
25
|
async prepareToolInvocation(context, token) {
|
|
26
26
|
return {
|
|
27
|
-
invocationMessage: ( localize(
|
|
28
|
-
pastTenseMessage: ( localize(
|
|
27
|
+
invocationMessage: ( localize(17367, "Getting last terminal command")),
|
|
28
|
+
pastTenseMessage: ( localize(17368, "Got last terminal command"))
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
async invoke(invocation, _countTokens, _progress, token) {
|
|
@@ -16,7 +16,7 @@ const GetTerminalOutputToolData = {
|
|
|
16
16
|
id: TerminalToolId.GetTerminalOutput,
|
|
17
17
|
toolReferenceName: "getTerminalOutput",
|
|
18
18
|
legacyToolReferenceFullNames: ["runCommands/getTerminalOutput"],
|
|
19
|
-
displayName: ( localize(
|
|
19
|
+
displayName: ( localize(17369, "Get Terminal Output")),
|
|
20
20
|
modelDescription: `Get output from a terminal execution that was moved to background (identified by the \`id\` returned from ${TerminalToolId.RunInTerminal}). Use this ONLY when the ${TerminalToolId.RunInTerminal} result explicitly says the command was moved to background, timed out, or needs input. Do NOT call this after a sync command that completed normally — sync commands return full output inline. If a background command has not yet completed, you will be automatically notified when it finishes — do NOT poll; end your turn and wait.`,
|
|
21
21
|
icon: Codicon.terminal,
|
|
22
22
|
source: ToolDataSource.Internal,
|
|
@@ -52,8 +52,8 @@ let GetTerminalOutputTool = class GetTerminalOutputTool extends Disposable {
|
|
|
52
52
|
}
|
|
53
53
|
async prepareToolInvocation(context, token) {
|
|
54
54
|
return {
|
|
55
|
-
invocationMessage: ( localize(
|
|
56
|
-
pastTenseMessage: ( localize(
|
|
55
|
+
invocationMessage: ( localize(17370, "Checking terminal output")),
|
|
56
|
+
pastTenseMessage: ( localize(17371, "Checked terminal output"))
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
async invoke(invocation, _countTokens, _progress, token) {
|
|
@@ -11,7 +11,7 @@ const GetTerminalSelectionToolData = {
|
|
|
11
11
|
id: TerminalToolId.TerminalSelection,
|
|
12
12
|
toolReferenceName: "terminalSelection",
|
|
13
13
|
legacyToolReferenceFullNames: ["runCommands/terminalSelection"],
|
|
14
|
-
displayName: ( localize(
|
|
14
|
+
displayName: ( localize(17372, "Get Terminal Selection")),
|
|
15
15
|
modelDescription: "Get the current selection in the active terminal.",
|
|
16
16
|
source: ToolDataSource.Internal,
|
|
17
17
|
icon: Codicon.terminal
|
|
@@ -23,8 +23,8 @@ let GetTerminalSelectionTool = class GetTerminalSelectionTool extends Disposable
|
|
|
23
23
|
}
|
|
24
24
|
async prepareToolInvocation(context, token) {
|
|
25
25
|
return {
|
|
26
|
-
invocationMessage: ( localize(
|
|
27
|
-
pastTenseMessage: ( localize(
|
|
26
|
+
invocationMessage: ( localize(17373, "Reading terminal selection")),
|
|
27
|
+
pastTenseMessage: ( localize(17374, "Read terminal selection"))
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
async invoke(invocation, _countTokens, _progress, token) {
|
|
@@ -9,7 +9,7 @@ import { TerminalToolId } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
9
9
|
const KillTerminalToolData = {
|
|
10
10
|
id: TerminalToolId.KillTerminal,
|
|
11
11
|
toolReferenceName: "killTerminal",
|
|
12
|
-
displayName: ( localize(
|
|
12
|
+
displayName: ( localize(17375, "Kill Terminal")),
|
|
13
13
|
modelDescription: `Kill a terminal by its ID. Use this to clean up terminals that are no longer needed (e.g., after stopping a server or when a long-running task completes). The terminal ID is returned by ${TerminalToolId.RunInTerminal} in async mode (legacy: isBackground=true).`,
|
|
14
14
|
icon: Codicon.terminal,
|
|
15
15
|
source: ToolDataSource.Internal,
|
|
@@ -28,8 +28,8 @@ const KillTerminalToolData = {
|
|
|
28
28
|
class KillTerminalTool extends Disposable {
|
|
29
29
|
async prepareToolInvocation(_context, _token) {
|
|
30
30
|
return {
|
|
31
|
-
invocationMessage: ( localize(
|
|
32
|
-
pastTenseMessage: ( localize(
|
|
31
|
+
invocationMessage: ( localize(17376, "Killing terminal")),
|
|
32
|
+
pastTenseMessage: ( localize(17377, "Killed terminal"))
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
async invoke(invocation, _countTokens, _progress, _token) {
|
|
@@ -500,9 +500,9 @@ function detectsNonInteractiveHelpPattern(cursorLine) {
|
|
|
500
500
|
].some(e => e.test(cursorLine)));
|
|
501
501
|
}
|
|
502
502
|
const taskFinishMessages = [(
|
|
503
|
-
localize(
|
|
504
|
-
localize(
|
|
505
|
-
localize(
|
|
503
|
+
localize(17378, "Terminal will be reused by tasks, press any key to close it.")), ( localize(17379, "Terminal will be reused by tasks, press any key to close it.")), (
|
|
504
|
+
localize(17380, "Press any key to close the terminal.")), ( localize(17381, "Press any key to close the terminal.")), (
|
|
505
|
+
localize(17382, "The terminal will be reused by tasks. Press any key to close."))];
|
|
506
506
|
const normalizedTaskFinishMessages = ( taskFinishMessages.map(msg => msg.replace(/[\s.,:;!?"'`()[\]{}<>\-_/\\]+/g, "").toLowerCase()));
|
|
507
507
|
function detectsVSCodeTaskFinishMessage(cursorLine) {
|
|
508
508
|
const compact = cursorLine.replace(/[\s.,:;!?"'`()[\]{}<>\-_/\\]+/g, "").toLowerCase();
|
|
@@ -8,7 +8,7 @@ import { TerminalToolId } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
8
8
|
|
|
9
9
|
const ConfirmTerminalCommandToolData = {
|
|
10
10
|
id: TerminalToolId.ConfirmTerminalCommand,
|
|
11
|
-
displayName: ( localize(
|
|
11
|
+
displayName: ( localize(17383, "Confirm Terminal Command")),
|
|
12
12
|
modelDescription: [
|
|
13
13
|
"This tool allows you to get explicit user confirmation for a terminal command without executing it.",
|
|
14
14
|
"",
|
|
@@ -26,7 +26,7 @@ const ConfirmTerminalCommandToolData = {
|
|
|
26
26
|
"",
|
|
27
27
|
"After confirmation, use a tool to actually execute the command."
|
|
28
28
|
].join("\n"),
|
|
29
|
-
userDescription: ( localize(
|
|
29
|
+
userDescription: ( localize(17384, "Tool for confirming terminal commands")),
|
|
30
30
|
source: ToolDataSource.Internal,
|
|
31
31
|
icon: Codicon.shield,
|
|
32
32
|
inputSchema: {
|
|
@@ -71,9 +71,9 @@ class ConfirmTerminalCommandTool extends RunInTerminalTool {
|
|
|
71
71
|
preparedInvocation.presentation = ToolInvocationPresentation.HiddenAfterComplete;
|
|
72
72
|
const params = context.parameters;
|
|
73
73
|
if (params.sandboxBypass === true) {
|
|
74
|
-
const title = ( localize(
|
|
74
|
+
const title = ( localize(17385, "Run in terminal outside the sandbox?"));
|
|
75
75
|
const reason = typeof params.sandboxBypassReason === "string" ? escapeMarkdownSyntaxTokens(params.sandboxBypassReason.trim()) : "";
|
|
76
|
-
const message = ( new MarkdownString(reason ? ( localize(
|
|
76
|
+
const message = ( new MarkdownString(reason ? ( localize(17386, "This command will run outside the sandbox.\n\nReason: {0}", reason)) : ( localize(17387, "This command will run outside the sandbox."))));
|
|
77
77
|
if (preparedInvocation.confirmationMessages) {
|
|
78
78
|
preparedInvocation.confirmationMessages.title = title;
|
|
79
79
|
preparedInvocation.confirmationMessages.message = message;
|