@codingame/monaco-vscode-chat-service-override 29.1.0 → 30.0.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 +5 -2
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +37 -39
- package/vscode/src/vs/platform/agentHost/common/agentService.js +3 -1
- package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +11 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +4 -4
- package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +132 -42
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +54 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +15 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +5 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +188 -51
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +7 -6
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +7 -2
- package/vscode/src/vs/platform/sandbox/browser/sandboxHelperService.d.ts +6 -0
- package/vscode/src/vs/platform/sandbox/browser/sandboxHelperService.js +14 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +18 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +37 -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 +59 -59
- 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 +10 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +37 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +6 -6
- 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 +20 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +18 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +482 -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.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +43 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +74 -76
- 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.js +27 -35
- 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.d.ts +5 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +86 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +38 -4
- 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 +38 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +427 -167
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +37 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +108 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +28 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +3 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +65 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +64 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +288 -195
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +21 -21
- 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 +19 -19
- 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 +21 -21
- 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 +21 -21
- 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 +28 -28
- 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/chatEditingDeletedFileEntry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +19 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +54 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- 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/chatSetup.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +86 -17
- 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 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +65 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +24 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
- 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/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +3 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +54 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +24 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +72 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +26 -26
- 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 +181 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +3 -3
- 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 +8 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +37 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +28 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +1 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +148 -88
- 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.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +16 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +158 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +8 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +155 -76
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +31 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +228 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +190 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +25 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +130 -107
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +19 -18
- 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 +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.d.ts +2 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +169 -266
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +12 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +149 -206
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +27 -22
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +20 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +183 -43
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +11 -11
- 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 +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +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/terminalChatService.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +4 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +26 -23
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.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/commandLineRewriter/commandLineSandboxRewriter.js +4 -9
- 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 +16 -6
- 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 +9 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +150 -50
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +2 -2
- 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.d.ts +66 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +239 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +0 -208
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +0 -637
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +0 -384
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.js +0 -47
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalSkill.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +0 -55
- /package/vscode/src/vs/workbench/contrib/chat/{common → browser}/promptSyntax/promptFileContributions.d.ts +0 -0
|
@@ -29,14 +29,14 @@ import { ChatEntitlementContextKeys } from '@codingame/monaco-vscode-api/vscode/
|
|
|
29
29
|
|
|
30
30
|
CommandsRegistry.registerCommandAlias("interactiveEditor.start", "inlineChat.start");
|
|
31
31
|
CommandsRegistry.registerCommandAlias("interactive.acceptChanges", ACTION_ACCEPT_CHANGES);
|
|
32
|
-
const START_INLINE_CHAT = registerIcon("start-inline-chat", Codicon.sparkle, ( localize(
|
|
32
|
+
const START_INLINE_CHAT = registerIcon("start-inline-chat", Codicon.sparkle, ( localize(9929, "Icon which spawns the inline chat from the editor toolbar.")));
|
|
33
33
|
const inlineChatContextKey = ( ContextKeyExpr.and(( ContextKeyExpr.or(CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_V2_ENABLED)), CTX_INLINE_CHAT_POSSIBLE, EditorContextKeys.writable, ( EditorContextKeys.editorSimpleInput.negate())));
|
|
34
34
|
class StartSessionAction extends Action2 {
|
|
35
35
|
constructor() {
|
|
36
36
|
super({
|
|
37
37
|
id: ACTION_START,
|
|
38
|
-
title: ( localize2(
|
|
39
|
-
shortTitle: ( localize2(
|
|
38
|
+
title: ( localize2(9930, "Open Inline Chat")),
|
|
39
|
+
shortTitle: ( localize2(9931, "Inline Chat")),
|
|
40
40
|
category: AbstractInlineChatAction.category,
|
|
41
41
|
f1: true,
|
|
42
42
|
precondition: ( ContextKeyExpr.and(inlineChatContextKey, ( ContextKeyExpr.or(( CTX_INLINE_CHAT_FILE_BELONGS_TO_CHAT.negate()), ( CTX_ASK_IN_CHAT_ENABLED.negate()))))),
|
|
@@ -92,7 +92,7 @@ class StartSessionAction extends Action2 {
|
|
|
92
92
|
}
|
|
93
93
|
if (!options?.message && configServce.getValue(InlineChatConfigKeys.RenderMode) === "hover") {
|
|
94
94
|
const selection = editor.getSelection();
|
|
95
|
-
const placeholder = selection && !selection.isEmpty() ? ( localize(
|
|
95
|
+
const placeholder = selection && !selection.isEmpty() ? ( localize(9932, "Describe how to change this")) : ( localize(9933, "Describe what to generate"));
|
|
96
96
|
await ctrl.inputOverlayWidget.showMenuAtSelection(placeholder);
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
@@ -112,8 +112,8 @@ MenuRegistry.appendMenuItem(MenuId.InlineChatEditorAffordance, {
|
|
|
112
112
|
)),
|
|
113
113
|
command: {
|
|
114
114
|
id: ACTION_START,
|
|
115
|
-
title: ( localize(
|
|
116
|
-
shortTitle: ( localize(
|
|
115
|
+
title: ( localize(9934, "Ask for Edits")),
|
|
116
|
+
shortTitle: ( localize(9935, "Ask for Edits")),
|
|
117
117
|
icon: Codicon.sparkle
|
|
118
118
|
}
|
|
119
119
|
});
|
|
@@ -121,7 +121,7 @@ class FocusInlineChat extends EditorAction2 {
|
|
|
121
121
|
constructor() {
|
|
122
122
|
super({
|
|
123
123
|
id: "inlineChat.focus",
|
|
124
|
-
title: ( localize2(
|
|
124
|
+
title: ( localize2(9936, "Focus Input")),
|
|
125
125
|
f1: true,
|
|
126
126
|
category: AbstractInlineChatAction.category,
|
|
127
127
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.editorTextFocus, CTX_INLINE_CHAT_VISIBLE, ( CTX_INLINE_CHAT_FOCUSED.negate()), ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()))),
|
|
@@ -142,7 +142,7 @@ class FocusInlineChat extends EditorAction2 {
|
|
|
142
142
|
}
|
|
143
143
|
class AbstractInlineChatAction extends EditorAction2 {
|
|
144
144
|
static {
|
|
145
|
-
this.category = ( localize2(
|
|
145
|
+
this.category = ( localize2(9937, "Inline Chat"));
|
|
146
146
|
}
|
|
147
147
|
constructor(desc) {
|
|
148
148
|
const massageMenu = menu => {
|
|
@@ -208,7 +208,7 @@ class FixDiagnosticsAction extends AbstractInlineChatAction {
|
|
|
208
208
|
constructor() {
|
|
209
209
|
super({
|
|
210
210
|
id: "inlineChat.fixDiagnostics",
|
|
211
|
-
title: ( localize2(
|
|
211
|
+
title: ( localize2(9938, "Fix")),
|
|
212
212
|
icon: Codicon.editSparkle,
|
|
213
213
|
precondition: ( ContextKeyExpr.and(
|
|
214
214
|
CTX_FIX_DIAGNOSTICS_ENABLED,
|
|
@@ -270,7 +270,7 @@ class KeepSessionAction2 extends KeepOrUndoSessionAction {
|
|
|
270
270
|
constructor() {
|
|
271
271
|
super(true, {
|
|
272
272
|
id: "inlineChat2.keep",
|
|
273
|
-
title: ( localize2(
|
|
273
|
+
title: ( localize2(9939, "Keep")),
|
|
274
274
|
f1: true,
|
|
275
275
|
icon: Codicon.check,
|
|
276
276
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, ( ctxHasRequestInProgress.negate()), ctxHasEditorModification)),
|
|
@@ -295,7 +295,7 @@ class UndoSessionAction2 extends KeepOrUndoSessionAction {
|
|
|
295
295
|
constructor() {
|
|
296
296
|
super(false, {
|
|
297
297
|
id: "inlineChat2.undo",
|
|
298
|
-
title: ( localize2(
|
|
298
|
+
title: ( localize2(9940, "Undo")),
|
|
299
299
|
f1: true,
|
|
300
300
|
icon: Codicon.discard,
|
|
301
301
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, CTX_HOVER_MODE)),
|
|
@@ -317,7 +317,7 @@ class UndoAndCloseSessionAction2 extends KeepOrUndoSessionAction {
|
|
|
317
317
|
constructor() {
|
|
318
318
|
super(false, {
|
|
319
319
|
id: "inlineChat2.close",
|
|
320
|
-
title: ( localize2(
|
|
320
|
+
title: ( localize2(9941, "Close")),
|
|
321
321
|
f1: true,
|
|
322
322
|
icon: Codicon.close,
|
|
323
323
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE)),
|
|
@@ -339,7 +339,7 @@ class CancelSessionAction extends KeepOrUndoSessionAction {
|
|
|
339
339
|
constructor() {
|
|
340
340
|
super(false, {
|
|
341
341
|
id: "inlineChat2.cancel",
|
|
342
|
-
title: ( localize2(
|
|
342
|
+
title: ( localize2(9942, "Cancel")),
|
|
343
343
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, ctxHasRequestInProgress)),
|
|
344
344
|
keybinding: [{
|
|
345
345
|
when: ( ContextKeyExpr.or(EditorContextKeys.focus, ChatContextKeys.inputHasFocus)),
|
|
@@ -359,7 +359,7 @@ class ContinueInlineChatInChatViewAction extends AbstractInlineChatAction {
|
|
|
359
359
|
constructor() {
|
|
360
360
|
super({
|
|
361
361
|
id: "inlineChat2.continueInChat",
|
|
362
|
-
title: ( localize2(
|
|
362
|
+
title: ( localize2(9943, "Ask in Chat")),
|
|
363
363
|
icon: Codicon.chatSparkle,
|
|
364
364
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, CTX_HOVER_MODE, CTX_INLINE_CHAT_TERMINATED)),
|
|
365
365
|
menu: [{
|
|
@@ -378,7 +378,7 @@ class RephraseInlineChatSessionAction extends AbstractInlineChatAction {
|
|
|
378
378
|
constructor() {
|
|
379
379
|
super({
|
|
380
380
|
id: "inlineChat2.rephrase",
|
|
381
|
-
title: ( localize2(
|
|
381
|
+
title: ( localize2(9944, "Rephrase")),
|
|
382
382
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, CTX_HOVER_MODE, CTX_INLINE_CHAT_TERMINATED)),
|
|
383
383
|
menu: [{
|
|
384
384
|
id: MenuId.ChatEditorInlineExecute,
|
|
@@ -396,7 +396,7 @@ class SubmitInlineChatInputAction extends AbstractInlineChatAction {
|
|
|
396
396
|
constructor() {
|
|
397
397
|
super({
|
|
398
398
|
id: "inlineChat.submitInput",
|
|
399
|
-
title: ( localize2(
|
|
399
|
+
title: ( localize2(9945, "Send")),
|
|
400
400
|
icon: Codicon.send,
|
|
401
401
|
precondition: ( ContextKeyExpr.and(
|
|
402
402
|
CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED,
|
|
@@ -432,7 +432,7 @@ class HideInlineChatInputAction extends AbstractInlineChatAction {
|
|
|
432
432
|
constructor() {
|
|
433
433
|
super({
|
|
434
434
|
id: "inlineChat.hideInput",
|
|
435
|
-
title: ( localize2(
|
|
435
|
+
title: ( localize2(9946, "Hide Input")),
|
|
436
436
|
precondition: CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED,
|
|
437
437
|
keybinding: {
|
|
438
438
|
when: CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED,
|
|
@@ -449,7 +449,7 @@ class AskInChatAction extends EditorAction2 {
|
|
|
449
449
|
constructor() {
|
|
450
450
|
super({
|
|
451
451
|
id: ACTION_ASK_IN_CHAT,
|
|
452
|
-
title: ( localize2(
|
|
452
|
+
title: ( localize2(9947, "Ask in Chat")),
|
|
453
453
|
category: AbstractInlineChatAction.category,
|
|
454
454
|
f1: true,
|
|
455
455
|
precondition: ( ContextKeyExpr.and(
|
|
@@ -492,7 +492,7 @@ class AskInChatAction extends EditorAction2 {
|
|
|
492
492
|
}
|
|
493
493
|
const entry = chatEditingService.editingSessionsObs.get().find(value => value.getEntry(editor.getModel().uri));
|
|
494
494
|
if (entry) {
|
|
495
|
-
ctrl.inputOverlayWidget.showMenuAtSelection(( localize(
|
|
495
|
+
ctrl.inputOverlayWidget.showMenuAtSelection(( localize(9948, "Describe how to proceed in Chat")));
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
}
|
|
@@ -500,7 +500,7 @@ class DismissEditorAffordanceAction extends EditorAction2 {
|
|
|
500
500
|
constructor() {
|
|
501
501
|
super({
|
|
502
502
|
id: "inlineChat.dismissEditorAffordance",
|
|
503
|
-
title: ( localize2(
|
|
503
|
+
title: ( localize2(9949, "Dismiss Editor Affordance")),
|
|
504
504
|
precondition: ( ContextKeyExpr.and(CTX_INLINE_CHAT_AFFORDANCE_VISIBLE, ( ContextKeyExpr.equals("config.inlineChat.affordance", "editor")))),
|
|
505
505
|
keybinding: {
|
|
506
506
|
when: EditorContextKeys.editorTextFocus,
|
|
@@ -517,7 +517,7 @@ class QueueInChatAction extends AbstractInlineChatAction {
|
|
|
517
517
|
constructor() {
|
|
518
518
|
super({
|
|
519
519
|
id: "inlineChat.queueInChat",
|
|
520
|
-
title: ( localize2(
|
|
520
|
+
title: ( localize2(9950, "Queue in Chat")),
|
|
521
521
|
icon: Codicon.arrowUp,
|
|
522
522
|
precondition: ( ContextKeyExpr.and(
|
|
523
523
|
CTX_INLINE_CHAT_INPUT_WIDGET_FOCUSED,
|
|
@@ -41,14 +41,14 @@ registerWorkbenchContribution2(
|
|
|
41
41
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
42
42
|
...{
|
|
43
43
|
id: "inlineChat",
|
|
44
|
-
title: ( localize(
|
|
44
|
+
title: ( localize(9958, "Inline Chat")),
|
|
45
45
|
order: 30,
|
|
46
46
|
type: "object"
|
|
47
47
|
},
|
|
48
48
|
properties: {
|
|
49
49
|
[InlineChatConfigKeys.DefaultModel]: {
|
|
50
50
|
description: ( localize(
|
|
51
|
-
|
|
51
|
+
9959,
|
|
52
52
|
"Select the default language model to use for inline chat from the available providers. Model names may include the provider in parentheses, for example 'Claude Haiku 4.5 (copilot)'."
|
|
53
53
|
)),
|
|
54
54
|
type: "string",
|
|
@@ -219,7 +219,7 @@ let InlineChatEscapeToolContribution = class InlineChatEscapeToolContribution ex
|
|
|
219
219
|
source: ToolDataSource.Internal,
|
|
220
220
|
canBeReferencedInPrompt: false,
|
|
221
221
|
alwaysDisplayInputOutput: false,
|
|
222
|
-
displayName: ( localize(
|
|
222
|
+
displayName: ( localize(9966, "Inline Chat to Panel Chat")),
|
|
223
223
|
modelDescription: "Show a short textual response when not being able to make code changes and when not having been asked for code changes. Can also be used to move the request to the richer panel chat which supports edits across files, creating and deleting files, multi-turn conversations between the user and the assistant, and access to more IDE tools, like retrieve problems, interact with source control, run terminal commands etc.",
|
|
224
224
|
inputSchema: {
|
|
225
225
|
type: "object",
|
|
@@ -228,7 +228,7 @@ let InlineChatEscapeToolContribution = class InlineChatEscapeToolContribution ex
|
|
|
228
228
|
response: {
|
|
229
229
|
type: "string",
|
|
230
230
|
description: ( localize(
|
|
231
|
-
|
|
231
|
+
9967,
|
|
232
232
|
"Optional brief response for inline chat. Keep it at 10 words or fewer."
|
|
233
233
|
)),
|
|
234
234
|
maxLength: 200
|
|
@@ -285,12 +285,12 @@ let InlineChatEscapeToolContribution = class InlineChatEscapeToolContribution ex
|
|
|
285
285
|
kind: "text",
|
|
286
286
|
value: "Cancel"
|
|
287
287
|
}],
|
|
288
|
-
toolResultMessage: ( localize(
|
|
288
|
+
toolResultMessage: ( localize(9968, "Cancel"))
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
if (configurationService.getValue(InlineChatConfigKeys.RenderMode) === "hover") {
|
|
292
292
|
const response = typeof invocation.parameters?.response === "string" && invocation.parameters.response.trim().length > 0 ? invocation.parameters.response.trim() : ( localize(
|
|
293
|
-
|
|
293
|
+
9969,
|
|
294
294
|
"Inline chat is designed for making single-file code changes. Continue your request in the Chat view or rephrase it for inline chat."
|
|
295
295
|
));
|
|
296
296
|
session.setTerminationState(response);
|
|
@@ -314,16 +314,16 @@ let InlineChatEscapeToolContribution = class InlineChatEscapeToolContribution ex
|
|
|
314
314
|
} else {
|
|
315
315
|
result = await dialogService.confirm({
|
|
316
316
|
type: "question",
|
|
317
|
-
title: ( localize(
|
|
318
|
-
message: ( localize(
|
|
317
|
+
title: ( localize(9970, "Do you want to continue in Chat view?")),
|
|
318
|
+
message: ( localize(9971, "Do you want to continue in Chat view?")),
|
|
319
319
|
detail: ( localize(
|
|
320
|
-
|
|
320
|
+
9972,
|
|
321
321
|
"Inline chat is designed for making single-file code changes. Continue your request in the Chat view or rephrase it for inline chat."
|
|
322
322
|
)),
|
|
323
|
-
primaryButton: ( localize(
|
|
324
|
-
cancelButton: ( localize(
|
|
323
|
+
primaryButton: ( localize(9973, "Continue in Chat view")),
|
|
324
|
+
cancelButton: ( localize(9974, "Cancel")),
|
|
325
325
|
checkbox: {
|
|
326
|
-
label: ( localize(
|
|
326
|
+
label: ( localize(9975, "Don't ask again")),
|
|
327
327
|
checked: false
|
|
328
328
|
}
|
|
329
329
|
});
|
|
@@ -361,7 +361,7 @@ registerAction2(class ResetMoveToPanelChatChoice extends Action2 {
|
|
|
361
361
|
super({
|
|
362
362
|
id: "inlineChat.resetMoveToPanelChatChoice",
|
|
363
363
|
precondition: ( ChatContextKeys.Setup.hidden.negate()),
|
|
364
|
-
title: ( localize2(
|
|
364
|
+
title: ( localize2(9976, "Reset Choice for 'Move Inline Chat to Panel Chat'")),
|
|
365
365
|
f1: true
|
|
366
366
|
});
|
|
367
367
|
}
|
|
@@ -82,8 +82,8 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
82
82
|
const arg = prompt.arguments[i];
|
|
83
83
|
const restore = backSnapshots.at(i);
|
|
84
84
|
quickPick.step = i + 1;
|
|
85
|
-
quickPick.placeholder = arg.required ? arg.description : `${arg.description || ""} (${( localize(
|
|
86
|
-
quickPick.title = ( localize(
|
|
85
|
+
quickPick.placeholder = arg.required ? arg.description : `${arg.description || ""} (${( localize(10569, "Optional"))})`;
|
|
86
|
+
quickPick.title = ( localize(10570, "Value for: {0}", arg.title || arg.name));
|
|
87
87
|
quickPick.value = restore?.value ?? ((args.hasOwnProperty(arg.name) && args[arg.name]) || "");
|
|
88
88
|
quickPick.items = restore?.items ?? [];
|
|
89
89
|
quickPick.activeItems = restore?.activeItems ?? [];
|
|
@@ -105,7 +105,7 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
quickPick.value = "";
|
|
108
|
-
quickPick.placeholder = ( localize(
|
|
108
|
+
quickPick.placeholder = ( localize(10571, "Loading..."));
|
|
109
109
|
quickPick.busy = true;
|
|
110
110
|
return args;
|
|
111
111
|
}
|
|
@@ -116,13 +116,13 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
116
116
|
const store = ( new DisposableStore());
|
|
117
117
|
const input$ = observableValue(this, quickPick.value);
|
|
118
118
|
const asyncPicks = [{
|
|
119
|
-
name: ( localize(
|
|
119
|
+
name: ( localize(10572, "Suggestions")),
|
|
120
120
|
observer: this._promptCompletions(arg, input$, argsSoFar)
|
|
121
121
|
}, {
|
|
122
|
-
name: ( localize(
|
|
122
|
+
name: ( localize(10573, "Active File")),
|
|
123
123
|
observer: this._activeFileCompletions()
|
|
124
124
|
}, {
|
|
125
|
-
name: ( localize(
|
|
125
|
+
name: ( localize(10574, "Files")),
|
|
126
126
|
observer: this._fileCompletions(input$)
|
|
127
127
|
}];
|
|
128
128
|
store.add(autorun(reader => {
|
|
@@ -133,15 +133,15 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
133
133
|
let items = [];
|
|
134
134
|
items.push({
|
|
135
135
|
id: "insert-text",
|
|
136
|
-
label: ( localize(
|
|
136
|
+
label: ( localize(10575, "Insert as text")),
|
|
137
137
|
iconClass: ThemeIcon.asClassName(Codicon.textSize),
|
|
138
138
|
action: "text",
|
|
139
139
|
alwaysShow: true
|
|
140
140
|
});
|
|
141
141
|
items.push({
|
|
142
142
|
id: "run-command",
|
|
143
|
-
label: ( localize(
|
|
144
|
-
description: ( localize(
|
|
143
|
+
label: ( localize(10576, "Run as Command")),
|
|
144
|
+
description: ( localize(10577, "Inserts the command output as the prompt argument")),
|
|
145
145
|
iconClass: ThemeIcon.asClassName(Codicon.terminal),
|
|
146
146
|
action: "command",
|
|
147
147
|
alwaysShow: true
|
|
@@ -187,7 +187,7 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
187
187
|
store.add(quickPick.onDidAccept(() => {
|
|
188
188
|
const item = quickPick.selectedItems[0];
|
|
189
189
|
if (!quickPick.value && arg.required && (!item || item.action === "text" || item.action === "command")) {
|
|
190
|
-
quickPick.validationMessage = ( localize(
|
|
190
|
+
quickPick.validationMessage = ( localize(10578, "This argument is required"));
|
|
191
191
|
} else if (!item) {
|
|
192
192
|
resolve({
|
|
193
193
|
id: "insert-text",
|
|
@@ -322,7 +322,7 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
322
322
|
const items = [];
|
|
323
323
|
items.push({
|
|
324
324
|
id: "active-file",
|
|
325
|
-
label: ( localize(
|
|
325
|
+
label: ( localize(10579, "Active File")),
|
|
326
326
|
description: this._labelService.getUriLabel(resource),
|
|
327
327
|
iconClasses: getIconClasses(this._modelService, this._languageService, resource),
|
|
328
328
|
uri: resource,
|
|
@@ -332,10 +332,10 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
332
332
|
if (selection && selection.model && selection.range && !selection.range.isEmpty()) {
|
|
333
333
|
const selectedText = selection.model.getValueInRange(selection.range);
|
|
334
334
|
const lineCount = selection.range.endLineNumber - selection.range.startLineNumber + 1;
|
|
335
|
-
const description = lineCount === 1 ? ( localize(
|
|
335
|
+
const description = lineCount === 1 ? ( localize(10580, "line {0}", selection.range.startLineNumber)) : ( localize(10581, "{0} lines", lineCount));
|
|
336
336
|
items.push({
|
|
337
337
|
id: "selected-text",
|
|
338
|
-
label: ( localize(
|
|
338
|
+
label: ( localize(10582, "Selected Text")),
|
|
339
339
|
description,
|
|
340
340
|
selectedText,
|
|
341
341
|
iconClass: ThemeIcon.asClassName(Codicon.selection),
|
|
@@ -369,7 +369,7 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
369
369
|
async _getTerminalOutput(command, token) {
|
|
370
370
|
const terminal = (this._terminal ??= this._register(await this._terminalService.createTerminal({
|
|
371
371
|
config: {
|
|
372
|
-
name: ( localize(
|
|
372
|
+
name: ( localize(10583, "MCP Terminal")),
|
|
373
373
|
isTransient: true,
|
|
374
374
|
forceShellIntegration: true,
|
|
375
375
|
isFeatureTerminal: true
|
|
@@ -11,7 +11,7 @@ import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
11
11
|
import { MENU_INLINE_CHAT_WIDGET_STATUS, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_TYPE, InlineChatResponseType, CTX_INLINE_CHAT_VISIBLE } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
12
12
|
import { CTX_NOTEBOOK_CHAT_HAS_AGENT } from './notebookChatContext.js';
|
|
13
13
|
import { NotebookAction, getEditorFromArgsOrActivePane, getContextFromActiveEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
14
|
-
import { insertNewCell } from '@codingame/monaco-vscode-
|
|
14
|
+
import { insertNewCell } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/controller/insertCellActions';
|
|
15
15
|
import { NotebookSetting, CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
16
16
|
import { NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_EDITOR_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
17
17
|
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
@@ -42,12 +42,12 @@ registerAction2(class extends NotebookAction {
|
|
|
42
42
|
super({
|
|
43
43
|
id: "notebook.cell.chat.start",
|
|
44
44
|
title: {
|
|
45
|
-
value: "$(sparkle) " + ( localize(
|
|
45
|
+
value: "$(sparkle) " + ( localize(11092, "Generate")),
|
|
46
46
|
original: "$(sparkle) Generate"
|
|
47
47
|
},
|
|
48
|
-
tooltip: ( localize(
|
|
48
|
+
tooltip: ( localize(11093, "Start Chat to Generate Code")),
|
|
49
49
|
metadata: {
|
|
50
|
-
description: ( localize(
|
|
50
|
+
description: ( localize(11093, "Start Chat to Generate Code")),
|
|
51
51
|
args: [{
|
|
52
52
|
name: "args",
|
|
53
53
|
schema: {
|
|
@@ -128,10 +128,10 @@ registerAction2(class extends NotebookAction {
|
|
|
128
128
|
super({
|
|
129
129
|
id: "notebook.cell.chat.startAtTop",
|
|
130
130
|
title: {
|
|
131
|
-
value: "$(sparkle) " + ( localize(
|
|
131
|
+
value: "$(sparkle) " + ( localize(11092, "Generate")),
|
|
132
132
|
original: "$(sparkle) Generate"
|
|
133
133
|
},
|
|
134
|
-
tooltip: ( localize(
|
|
134
|
+
tooltip: ( localize(11093, "Start Chat to Generate Code")),
|
|
135
135
|
f1: false,
|
|
136
136
|
menu: [{
|
|
137
137
|
id: MenuId.NotebookCellListTop,
|
|
@@ -149,8 +149,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
149
149
|
command: {
|
|
150
150
|
id: "notebook.cell.chat.start",
|
|
151
151
|
icon: Codicon.sparkle,
|
|
152
|
-
title: ( localize(
|
|
153
|
-
tooltip: ( localize(
|
|
152
|
+
title: ( localize(11094, "Generate")),
|
|
153
|
+
tooltip: ( localize(11095, "Start Chat to Generate Code"))
|
|
154
154
|
},
|
|
155
155
|
order: -10,
|
|
156
156
|
group: "navigation/add",
|
|
@@ -160,9 +160,9 @@ class AcceptChangesAndRun extends EditorAction2 {
|
|
|
160
160
|
constructor() {
|
|
161
161
|
super({
|
|
162
162
|
id: "notebook.inlineChat.acceptChangesAndRun",
|
|
163
|
-
title: ( localize2(
|
|
164
|
-
shortTitle: ( localize(
|
|
165
|
-
tooltip: ( localize(
|
|
163
|
+
title: ( localize2(11096, "Accept and Run")),
|
|
164
|
+
shortTitle: ( localize(11097, "Accept & Run")),
|
|
165
|
+
tooltip: ( localize(11098, "Accept the changes and run the cell")),
|
|
166
166
|
icon: Codicon.check,
|
|
167
167
|
f1: true,
|
|
168
168
|
precondition: ( ContextKeyExpr.and(( NOTEBOOK_EDITOR_EDITABLE.isEqualTo(true)), CTX_INLINE_CHAT_VISIBLE)),
|
|
@@ -18,7 +18,7 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
18
18
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
19
19
|
import { IChatContextPickService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatContextPickService.service';
|
|
20
20
|
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables';
|
|
21
|
-
import { computeCompletionRanges } from '../../../../chat/browser/widget/input/editor/
|
|
21
|
+
import { computeCompletionRanges } from '../../../../chat/browser/widget/input/editor/chatInputCompletionUtils.js';
|
|
22
22
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
|
|
23
23
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
24
24
|
import { chatVariableLeader } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatParserTypes';
|
|
@@ -91,7 +91,7 @@ let NotebookChatContribution = class NotebookChatContribution extends Disposable
|
|
|
91
91
|
result.suggestions.push({
|
|
92
92
|
label: `${chatVariableLeader}${NotebookKernelVariableKey}`,
|
|
93
93
|
insertText: `${chatVariableLeader}${NotebookKernelVariableKey}:`,
|
|
94
|
-
detail: ( localize(
|
|
94
|
+
detail: ( localize(11099, "Pick a variable from the kernel")),
|
|
95
95
|
range,
|
|
96
96
|
kind: CompletionItemKind.Text,
|
|
97
97
|
command: {
|
|
@@ -198,7 +198,7 @@ class SelectAndInsertKernelVariableAction extends Action2 {
|
|
|
198
198
|
detail: variable.type
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
const placeHolder = quickPickItems.length > 0 ? ( localize(
|
|
201
|
+
const placeHolder = quickPickItems.length > 0 ? ( localize(11100, "Select a kernel variable")) : ( localize(11101, "No kernel variables found"));
|
|
202
202
|
const pickedVariable = await quickInputService.pick(quickPickItems, {
|
|
203
203
|
placeHolder
|
|
204
204
|
});
|
|
@@ -248,7 +248,7 @@ let KernelVariableContextPicker = class KernelVariableContextPicker {
|
|
|
248
248
|
this.editorService = editorService;
|
|
249
249
|
this.notebookKernelService = notebookKernelService;
|
|
250
250
|
this.type = "pickerPick";
|
|
251
|
-
this.label = ( localize(
|
|
251
|
+
this.label = ( localize(11102, "Kernel Variable..."));
|
|
252
252
|
this.icon = Codicon.serverEnvironment;
|
|
253
253
|
}
|
|
254
254
|
isEnabled(widget) {
|
|
@@ -287,7 +287,7 @@ let KernelVariableContextPicker = class KernelVariableContextPicker {
|
|
|
287
287
|
return result;
|
|
288
288
|
})();
|
|
289
289
|
return {
|
|
290
|
-
placeholder: ( localize(
|
|
290
|
+
placeholder: ( localize(11103, "Select a kernel variable")),
|
|
291
291
|
picks
|
|
292
292
|
};
|
|
293
293
|
}
|
|
@@ -297,7 +297,7 @@ registerAction2(class AddCellOutputToChatAction extends Action2 {
|
|
|
297
297
|
constructor() {
|
|
298
298
|
super({
|
|
299
299
|
id: "notebook.cellOutput.addToChat",
|
|
300
|
-
title: ( localize(
|
|
300
|
+
title: ( localize(11104, "Add Cell Output to Chat")),
|
|
301
301
|
menu: {
|
|
302
302
|
id: MenuId.NotebookOutputToolbar,
|
|
303
303
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_HAS_OUTPUTS, ContextKeyExpr.in(
|
package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
3
|
import { RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
4
|
|
|
5
|
-
const CTX_NOTEBOOK_CHAT_HAS_AGENT = ( new RawContextKey("notebookChatAgentRegistered", false, ( localize(
|
|
5
|
+
const CTX_NOTEBOOK_CHAT_HAS_AGENT = ( new RawContextKey("notebookChatAgentRegistered", false, ( localize(11105, "Whether a chat agent for notebook is registered"))));
|
|
6
6
|
|
|
7
7
|
export { CTX_NOTEBOOK_CHAT_HAS_AGENT };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { CellDiffInfo } from "@codingame/monaco-vscode-
|
|
2
|
+
import { CellDiffInfo } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel";
|
|
3
3
|
import { INotebookEditor } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
4
|
export declare class NotebookModifiedCellDecorator extends Disposable {
|
|
5
5
|
private readonly notebookEditor;
|
|
@@ -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(12182, "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(12183, "A unique identifier for this item.")),
|
|
23
23
|
type: "string"
|
|
24
24
|
},
|
|
25
25
|
command: {
|
|
26
26
|
description: ( localize(
|
|
27
|
-
|
|
27
|
+
12184,
|
|
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
|
+
12185,
|
|
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(12186, "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
|
+
12187,
|
|
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(12188, "Condition which must be true to show this item.")),
|
|
52
52
|
type: "string"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -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
|
+
13819,
|
|
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
|
+
13820,
|
|
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
|
+
13821,
|
|
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
|
+
13822,
|
|
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
|
+
13823,
|
|
58
58
|
"The response can be inspected in the accessible view ({0}).",
|
|
59
59
|
openAccessibleViewKeybinding
|
|
60
60
|
)) : ( localize(
|
|
61
|
-
|
|
61
|
+
13824,
|
|
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
|
+
13825,
|
|
66
66
|
"Reach the response from the input box ({0}).",
|
|
67
67
|
focusResponseKeybinding
|
|
68
68
|
)) : ( localize(
|
|
69
|
-
|
|
69
|
+
13826,
|
|
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
|
+
13827,
|
|
74
74
|
"Reach the input box from the response ({0}).",
|
|
75
75
|
focusInputKeybinding
|
|
76
76
|
)) : ( localize(
|
|
77
|
-
|
|
77
|
+
13828,
|
|
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
|
+
13829,
|
|
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
|
+
13830,
|
|
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
|
+
13831,
|
|
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
|
+
13832,
|
|
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
|
+
13833,
|
|
98
98
|
"Use tab to reach conditional parts like commands, status, message responses and more."
|
|
99
99
|
)));
|
|
100
100
|
content.push(( localize(
|
|
101
|
-
|
|
101
|
+
13834,
|
|
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");
|