@codingame/monaco-vscode-chat-service-override 28.4.1 → 29.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 +18 -12
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +300 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.js +31 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +84 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +16 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +488 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +424 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +50 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +202 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/notifications.d.ts +114 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +723 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +33 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +40 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +22 -0
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +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.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +29 -15
- 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 +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -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 +76 -10
- 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 +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +162 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +167 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +52 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +195 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +97 -88
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +78 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +174 -170
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +118 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +13 -2
- 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.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -10
- 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 +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +23 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +341 -196
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +79 -7
- 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 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +22 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +85 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +668 -214
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +306 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +84 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +651 -81
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +31 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +9 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -142
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +25 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +297 -123
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +153 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +111 -171
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +5 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +277 -186
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +31 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +4 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +18 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +112 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +16 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +41 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +35 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +1 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +8 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +13 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +29 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +14 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +79 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +113 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +18 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +54 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +103 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +48 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +28 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +62 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +21 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +1 -1
- 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 +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +17 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +43 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +194 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +81 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- 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.js +22 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +19 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +105 -172
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +80 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +56 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +70 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +33 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +21 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +362 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +90 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +146 -0
- 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/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +10 -9
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +33 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +200 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +90 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +21 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +22 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +28 -13
- 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/chatInputCompletions.js +20 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +68 -5
- 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 +57 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +21 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +171 -57
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +206 -35
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +44 -22
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +450 -301
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +165 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +34 -20
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +209 -144
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +205 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.js +47 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalSkill.d.ts +30 -0
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +191 -159
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +210 -233
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +19 -26
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +183 -193
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +75 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +97 -35
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +67 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +62 -23
- 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 +8 -8
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +23 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +50 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +21 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +124 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +20 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +10 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +46 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +74 -37
- 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/commandLineAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +24 -14
- 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/commandLineAnalyzer/commandLineSandboxAnalyzer.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +5 -1
- 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.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +66 -64
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +5 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +32 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +390 -114
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +21 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +70 -51
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +61 -51
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +94 -76
- 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 +19 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +112 -21
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +0 -53
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +0 -219
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +0 -89
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +0 -251
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -123
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +0 -278
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +0 -76
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +0 -299
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +0 -67
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +0 -263
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +0 -85
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +0 -397
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +0 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +0 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +0 -30
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +0 -28
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -190
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -20
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { timeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { isMarkdownString, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
5
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
6
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
8
7
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
9
8
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
|
-
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
11
9
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
13
|
-
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
14
|
-
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
15
|
-
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
16
10
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
|
|
11
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
17
12
|
import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service';
|
|
18
13
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
19
|
-
import { ChatAgentLocation, ChatConfiguration, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
14
|
+
import { ChatAgentLocation, ChatConfiguration, ChatPermissionLevel, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
20
15
|
import { ACTION_ID_NEW_CHAT } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
21
16
|
import { OpenModelPickerAction, OpenModePickerAction, ChatSubmitAction } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
|
|
22
17
|
import { ManagePluginsAction } from './actions/chatPluginActions.js';
|
|
@@ -26,11 +21,11 @@ import { CONFIGURE_INSTRUCTIONS_ACTION_ID } from '@codingame/monaco-vscode-xterm
|
|
|
26
21
|
import { showConfigureHooksQuickPick } from './promptSyntax/hookActions.js';
|
|
27
22
|
import { CONFIGURE_PROMPTS_ACTION_ID } from './promptSyntax/runPromptAction.js';
|
|
28
23
|
import { CONFIGURE_SKILLS_ACTION_ID } from './promptSyntax/skillActions.js';
|
|
29
|
-
import {
|
|
24
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
30
25
|
import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer';
|
|
31
26
|
import { Target } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
32
27
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
33
|
-
import
|
|
28
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
34
29
|
|
|
35
30
|
let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends Disposable {
|
|
36
31
|
static {
|
|
@@ -44,16 +39,14 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
44
39
|
agentSessionsService,
|
|
45
40
|
chatService,
|
|
46
41
|
configurationService,
|
|
47
|
-
|
|
48
|
-
notificationService,
|
|
49
|
-
storageService,
|
|
42
|
+
chatWidgetService,
|
|
50
43
|
environmentService
|
|
51
44
|
) {
|
|
52
45
|
super();
|
|
53
46
|
this.environmentService = environmentService;
|
|
54
47
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
55
48
|
command: "clear",
|
|
56
|
-
detail: ( localize(
|
|
49
|
+
detail: ( localize(6251, "Start a new chat and archive the current one")),
|
|
57
50
|
sortText: "z2_clear",
|
|
58
51
|
executeImmediately: true,
|
|
59
52
|
locations: [ChatAgentLocation.Chat]
|
|
@@ -63,52 +56,51 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
63
56
|
}));
|
|
64
57
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
65
58
|
command: "hooks",
|
|
66
|
-
detail: ( localize(
|
|
59
|
+
detail: ( localize(6252, "Configure hooks")),
|
|
67
60
|
sortText: "z3_hooks",
|
|
68
61
|
executeImmediately: true,
|
|
69
62
|
silent: true,
|
|
70
63
|
locations: [ChatAgentLocation.Chat],
|
|
71
|
-
|
|
64
|
+
targets: [Target.VSCode]
|
|
72
65
|
}, async () => {
|
|
73
66
|
await instantiationService.invokeFunction(showConfigureHooksQuickPick);
|
|
74
67
|
}));
|
|
75
68
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
76
69
|
command: "models",
|
|
77
|
-
detail: ( localize(
|
|
70
|
+
detail: ( localize(6253, "Open the model picker")),
|
|
78
71
|
sortText: "z3_models",
|
|
79
72
|
executeImmediately: true,
|
|
80
73
|
silent: true,
|
|
81
|
-
locations: [ChatAgentLocation.Chat]
|
|
82
|
-
target: Target.VSCode
|
|
74
|
+
locations: [ChatAgentLocation.Chat]
|
|
83
75
|
}, async () => {
|
|
84
76
|
await commandService.executeCommand(OpenModelPickerAction.ID);
|
|
85
77
|
}));
|
|
86
78
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
87
79
|
command: "tools",
|
|
88
|
-
detail: ( localize(
|
|
80
|
+
detail: ( localize(6254, "Configure tools")),
|
|
89
81
|
sortText: "z3_tools",
|
|
90
82
|
executeImmediately: true,
|
|
91
83
|
silent: true,
|
|
92
84
|
locations: [ChatAgentLocation.Chat],
|
|
93
|
-
|
|
85
|
+
targets: [Target.VSCode]
|
|
94
86
|
}, async () => {
|
|
95
87
|
await commandService.executeCommand(ConfigureToolsAction.ID);
|
|
96
88
|
}));
|
|
97
89
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
98
90
|
command: "plugins",
|
|
99
|
-
detail: ( localize(
|
|
91
|
+
detail: ( localize(6255, "Manage plugins")),
|
|
100
92
|
sortText: "z3_plugins",
|
|
101
93
|
executeImmediately: true,
|
|
102
94
|
silent: true,
|
|
103
95
|
locations: [ChatAgentLocation.Chat],
|
|
104
|
-
|
|
96
|
+
targets: [Target.VSCode]
|
|
105
97
|
}, async () => {
|
|
106
98
|
await commandService.executeCommand(ManagePluginsAction.ID);
|
|
107
99
|
}));
|
|
108
100
|
if (!this.environmentService.isSessionsWindow) {
|
|
109
101
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
110
102
|
command: "debug",
|
|
111
|
-
detail: ( localize(
|
|
103
|
+
detail: ( localize(6256, "Show Chat Debug View")),
|
|
112
104
|
sortText: "z3_debug",
|
|
113
105
|
executeImmediately: true,
|
|
114
106
|
silent: true,
|
|
@@ -119,209 +111,150 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
119
111
|
}
|
|
120
112
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
121
113
|
command: "agents",
|
|
122
|
-
detail: ( localize(
|
|
114
|
+
detail: ( localize(6257, "Configure custom agents")),
|
|
123
115
|
sortText: "z3_agents",
|
|
124
116
|
executeImmediately: true,
|
|
125
117
|
silent: true,
|
|
126
118
|
locations: [ChatAgentLocation.Chat],
|
|
127
|
-
|
|
119
|
+
targets: [Target.VSCode]
|
|
128
120
|
}, async () => {
|
|
129
121
|
await commandService.executeCommand(OpenModePickerAction.ID);
|
|
130
122
|
}));
|
|
131
123
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
132
124
|
command: "skills",
|
|
133
|
-
detail: ( localize(
|
|
125
|
+
detail: ( localize(6258, "Configure skills")),
|
|
134
126
|
sortText: "z3_skills",
|
|
135
127
|
executeImmediately: true,
|
|
136
128
|
silent: true,
|
|
137
129
|
locations: [ChatAgentLocation.Chat],
|
|
138
|
-
|
|
130
|
+
targets: [Target.VSCode]
|
|
139
131
|
}, async () => {
|
|
140
132
|
await commandService.executeCommand(CONFIGURE_SKILLS_ACTION_ID);
|
|
141
133
|
}));
|
|
142
134
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
143
135
|
command: "instructions",
|
|
144
|
-
detail: ( localize(
|
|
136
|
+
detail: ( localize(6259, "Configure instructions")),
|
|
145
137
|
sortText: "z3_instructions",
|
|
146
138
|
executeImmediately: true,
|
|
147
139
|
silent: true,
|
|
148
140
|
locations: [ChatAgentLocation.Chat],
|
|
149
|
-
|
|
141
|
+
targets: [Target.VSCode]
|
|
150
142
|
}, async () => {
|
|
151
143
|
await commandService.executeCommand(CONFIGURE_INSTRUCTIONS_ACTION_ID);
|
|
152
144
|
}));
|
|
153
145
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
154
146
|
command: "prompts",
|
|
155
|
-
detail: ( localize(
|
|
147
|
+
detail: ( localize(6260, "Configure prompt files")),
|
|
156
148
|
sortText: "z3_prompts",
|
|
157
149
|
executeImmediately: true,
|
|
158
150
|
silent: true,
|
|
159
151
|
locations: [ChatAgentLocation.Chat],
|
|
160
|
-
|
|
152
|
+
targets: [Target.VSCode]
|
|
161
153
|
}, async () => {
|
|
162
154
|
await commandService.executeCommand(CONFIGURE_PROMPTS_ACTION_ID);
|
|
163
155
|
}));
|
|
164
156
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
165
157
|
command: "fork",
|
|
166
|
-
detail: ( localize(
|
|
158
|
+
detail: ( localize(6261, "Fork conversation into a new chat session")),
|
|
167
159
|
sortText: "z2_fork",
|
|
168
160
|
executeImmediately: true,
|
|
169
161
|
silent: true,
|
|
170
162
|
locations: [ChatAgentLocation.Chat],
|
|
171
|
-
|
|
163
|
+
when: ( ContextKeyExpr.or(( ChatContextKeys.lockedToCodingAgent.negate()), ChatContextKeys.chatSessionSupportsFork))
|
|
172
164
|
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
173
165
|
await commandService.executeCommand("workbench.action.chat.forkConversation", sessionResource);
|
|
174
166
|
}));
|
|
175
167
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
176
168
|
command: "rename",
|
|
177
|
-
detail: ( localize(
|
|
169
|
+
detail: ( localize(6262, "Rename this chat")),
|
|
178
170
|
sortText: "z2_rename",
|
|
179
171
|
executeImmediately: false,
|
|
180
172
|
silent: true,
|
|
181
173
|
locations: [ChatAgentLocation.Chat],
|
|
182
|
-
|
|
174
|
+
targets: [Target.VSCode]
|
|
183
175
|
}, async (prompt, _progress, _history, _location, sessionResource) => {
|
|
184
176
|
const title = prompt.trim();
|
|
185
177
|
if (title) {
|
|
186
178
|
chatService.setChatSessionTitle(sessionResource, title);
|
|
187
179
|
}
|
|
188
180
|
}));
|
|
189
|
-
const
|
|
190
|
-
const
|
|
191
|
-
if (
|
|
192
|
-
|
|
193
|
-
notificationService.info(( localize(6133, "Global auto-approve is already enabled.")));
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
notificationService.warn(( localize(
|
|
197
|
-
6134,
|
|
198
|
-
"Global auto-approve is managed by your organization policy. Contact your administrator to change this setting."
|
|
199
|
-
)));
|
|
200
|
-
return;
|
|
181
|
+
const setPermissionLevelForSession = (sessionResource, level) => {
|
|
182
|
+
const widget = chatWidgetService.getWidgetBySessionResource(sessionResource) ?? chatWidgetService.lastFocusedWidget;
|
|
183
|
+
if (widget) {
|
|
184
|
+
widget.input.setPermissionLevel(level);
|
|
201
185
|
}
|
|
202
|
-
if (configurationService.getValue(ChatConfiguration.GlobalAutoApprove)) {
|
|
203
|
-
notificationService.info(( localize(6133, "Global auto-approve is already enabled.")));
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
const alreadyOptedIn = storageService.getBoolean(
|
|
207
|
-
AutoApproveStorageKeys.GlobalAutoApproveOptIn,
|
|
208
|
-
StorageScope.APPLICATION,
|
|
209
|
-
false
|
|
210
|
-
);
|
|
211
|
-
if (!alreadyOptedIn) {
|
|
212
|
-
const store = ( new DisposableStore());
|
|
213
|
-
try {
|
|
214
|
-
const cts = ( new CancellationTokenSource());
|
|
215
|
-
store.add(cts);
|
|
216
|
-
store.add(storageService.onDidChangeValue(
|
|
217
|
-
StorageScope.APPLICATION,
|
|
218
|
-
AutoApproveStorageKeys.GlobalAutoApproveOptIn,
|
|
219
|
-
store
|
|
220
|
-
)(() => {
|
|
221
|
-
if (storageService.getBoolean(
|
|
222
|
-
AutoApproveStorageKeys.GlobalAutoApproveOptIn,
|
|
223
|
-
StorageScope.APPLICATION,
|
|
224
|
-
false
|
|
225
|
-
)) {
|
|
226
|
-
cts.cancel();
|
|
227
|
-
}
|
|
228
|
-
}));
|
|
229
|
-
const result = await dialogService.prompt({
|
|
230
|
-
type: Severity.Warning,
|
|
231
|
-
message: ( localize(6135, "Enable global auto approve?")),
|
|
232
|
-
buttons: [{
|
|
233
|
-
label: ( localize(6136, "Enable")),
|
|
234
|
-
run: () => true
|
|
235
|
-
}, {
|
|
236
|
-
label: ( localize(6137, "Cancel")),
|
|
237
|
-
run: () => false
|
|
238
|
-
}],
|
|
239
|
-
custom: {
|
|
240
|
-
markdownDetails: [{
|
|
241
|
-
markdown: ( new MarkdownString(globalAutoApproveDescription.value, {
|
|
242
|
-
isTrusted: {
|
|
243
|
-
enabledCommands: ["workbench.action.openSettings"]
|
|
244
|
-
}
|
|
245
|
-
}))
|
|
246
|
-
}]
|
|
247
|
-
},
|
|
248
|
-
token: cts.token
|
|
249
|
-
});
|
|
250
|
-
if (!cts.token.isCancellationRequested && result.result !== true) {
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
storageService.store(
|
|
254
|
-
AutoApproveStorageKeys.GlobalAutoApproveOptIn,
|
|
255
|
-
true,
|
|
256
|
-
StorageScope.APPLICATION,
|
|
257
|
-
StorageTarget.USER
|
|
258
|
-
);
|
|
259
|
-
} finally {
|
|
260
|
-
store.dispose();
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
await configurationService.updateValue(ChatConfiguration.GlobalAutoApprove, true);
|
|
264
|
-
notificationService.info(( localize(
|
|
265
|
-
6138,
|
|
266
|
-
"Global auto-approve enabled — all tool calls will be approved automatically"
|
|
267
|
-
)));
|
|
268
186
|
};
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
187
|
+
const autoApprovePolicyValue = configurationService.inspect(ChatConfiguration.GlobalAutoApprove).policyValue;
|
|
188
|
+
if (autoApprovePolicyValue !== false) {
|
|
189
|
+
this._store.add(slashCommandService.registerSlashCommand({
|
|
190
|
+
command: "autoApprove",
|
|
191
|
+
detail: ( localize(6263, "Set permissions to bypass approvals")),
|
|
192
|
+
sortText: "z1_autoApprove",
|
|
193
|
+
executeImmediately: true,
|
|
194
|
+
silent: true,
|
|
195
|
+
locations: [ChatAgentLocation.Chat],
|
|
196
|
+
targets: [Target.VSCode, Target.GitHubCopilot]
|
|
197
|
+
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
198
|
+
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.AutoApprove);
|
|
199
|
+
}));
|
|
200
|
+
this._store.add(slashCommandService.registerSlashCommand({
|
|
201
|
+
command: "disableAutoApprove",
|
|
202
|
+
detail: ( localize(6264, "Set permissions back to default")),
|
|
203
|
+
sortText: "z1_disableAutoApprove",
|
|
204
|
+
executeImmediately: true,
|
|
205
|
+
silent: true,
|
|
206
|
+
locations: [ChatAgentLocation.Chat],
|
|
207
|
+
targets: [Target.VSCode, Target.GitHubCopilot]
|
|
208
|
+
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
209
|
+
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.Default);
|
|
210
|
+
}));
|
|
211
|
+
this._store.add(slashCommandService.registerSlashCommand({
|
|
212
|
+
command: "yolo",
|
|
213
|
+
detail: ( localize(6265, "Set permissions to bypass approvals")),
|
|
214
|
+
sortText: "z1_yolo",
|
|
215
|
+
executeImmediately: true,
|
|
216
|
+
silent: true,
|
|
217
|
+
locations: [ChatAgentLocation.Chat],
|
|
218
|
+
targets: [Target.VSCode, Target.GitHubCopilot]
|
|
219
|
+
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
220
|
+
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.AutoApprove);
|
|
221
|
+
}));
|
|
222
|
+
this._store.add(slashCommandService.registerSlashCommand({
|
|
223
|
+
command: "disableYolo",
|
|
224
|
+
detail: ( localize(6266, "Set permissions back to default")),
|
|
225
|
+
sortText: "z1_disableYolo",
|
|
226
|
+
executeImmediately: true,
|
|
227
|
+
silent: true,
|
|
228
|
+
locations: [ChatAgentLocation.Chat],
|
|
229
|
+
targets: [Target.VSCode, Target.GitHubCopilot]
|
|
230
|
+
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
231
|
+
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.Default);
|
|
232
|
+
}));
|
|
233
|
+
if (configurationService.getValue(ChatConfiguration.AutopilotEnabled) !== false) {
|
|
234
|
+
this._store.add(slashCommandService.registerSlashCommand({
|
|
235
|
+
command: "autopilot",
|
|
236
|
+
detail: ( localize(6267, "Set permissions to autopilot mode")),
|
|
237
|
+
sortText: "z1_autopilot",
|
|
238
|
+
executeImmediately: true,
|
|
239
|
+
silent: true,
|
|
240
|
+
locations: [ChatAgentLocation.Chat],
|
|
241
|
+
targets: [Target.VSCode, Target.GitHubCopilot]
|
|
242
|
+
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
243
|
+
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.Autopilot);
|
|
244
|
+
}));
|
|
245
|
+
this._store.add(slashCommandService.registerSlashCommand({
|
|
246
|
+
command: "exitAutopilot",
|
|
247
|
+
detail: ( localize(6268, "Set permissions back to default")),
|
|
248
|
+
sortText: "z1_exitAutopilot",
|
|
249
|
+
executeImmediately: true,
|
|
250
|
+
silent: true,
|
|
251
|
+
locations: [ChatAgentLocation.Chat],
|
|
252
|
+
targets: [Target.VSCode, Target.GitHubCopilot]
|
|
253
|
+
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
254
|
+
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.Default);
|
|
255
|
+
}));
|
|
285
256
|
}
|
|
286
|
-
|
|
287
|
-
notificationService.info(( localize(6140, "Global auto-approve disabled — tools will require approval")));
|
|
288
|
-
};
|
|
289
|
-
this._store.add(slashCommandService.registerSlashCommand({
|
|
290
|
-
command: "autoApprove",
|
|
291
|
-
detail: ( localize(6141, "Enable global auto-approval of all tool calls")),
|
|
292
|
-
sortText: "z1_autoApprove",
|
|
293
|
-
executeImmediately: true,
|
|
294
|
-
silent: true,
|
|
295
|
-
locations: [ChatAgentLocation.Chat],
|
|
296
|
-
target: Target.VSCode
|
|
297
|
-
}, handleEnableAutoApprove));
|
|
298
|
-
this._store.add(slashCommandService.registerSlashCommand({
|
|
299
|
-
command: "disableAutoApprove",
|
|
300
|
-
detail: ( localize(6142, "Disable global auto-approval of all tool calls")),
|
|
301
|
-
sortText: "z1_disableAutoApprove",
|
|
302
|
-
executeImmediately: true,
|
|
303
|
-
silent: true,
|
|
304
|
-
locations: [ChatAgentLocation.Chat],
|
|
305
|
-
target: Target.VSCode
|
|
306
|
-
}, handleDisableAutoApprove));
|
|
307
|
-
this._store.add(slashCommandService.registerSlashCommand({
|
|
308
|
-
command: "yolo",
|
|
309
|
-
detail: ( localize(6143, "Enable global auto-approval of all tool calls")),
|
|
310
|
-
sortText: "z1_yolo",
|
|
311
|
-
executeImmediately: true,
|
|
312
|
-
silent: true,
|
|
313
|
-
locations: [ChatAgentLocation.Chat],
|
|
314
|
-
target: Target.VSCode
|
|
315
|
-
}, handleEnableAutoApprove));
|
|
316
|
-
this._store.add(slashCommandService.registerSlashCommand({
|
|
317
|
-
command: "disableYolo",
|
|
318
|
-
detail: ( localize(6144, "Disable global auto-approval of all tool calls")),
|
|
319
|
-
sortText: "z1_disableYolo",
|
|
320
|
-
executeImmediately: true,
|
|
321
|
-
silent: true,
|
|
322
|
-
locations: [ChatAgentLocation.Chat],
|
|
323
|
-
target: Target.VSCode
|
|
324
|
-
}, handleDisableAutoApprove));
|
|
257
|
+
}
|
|
325
258
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
326
259
|
command: "help",
|
|
327
260
|
detail: "",
|
|
@@ -329,7 +262,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
329
262
|
executeImmediately: true,
|
|
330
263
|
locations: [ChatAgentLocation.Chat],
|
|
331
264
|
modes: [ChatModeKind.Ask],
|
|
332
|
-
|
|
265
|
+
targets: [Target.VSCode]
|
|
333
266
|
}, async (prompt, progress, _history, _location, sessionResource) => {
|
|
334
267
|
const defaultAgent = chatAgentService.getDefaultAgent(ChatAgentLocation.Chat);
|
|
335
268
|
const agents = chatAgentService.getAgents();
|
|
@@ -389,6 +322,6 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
389
322
|
}));
|
|
390
323
|
}
|
|
391
324
|
};
|
|
392
|
-
ChatSlashCommandsContribution = ( __decorate([( __param(0, IChatSlashCommandService)), ( __param(1, ICommandService)), ( __param(2, IChatAgentService)), ( __param(3, IInstantiationService)), ( __param(4, IAgentSessionsService)), ( __param(5, IChatService)), ( __param(6, IConfigurationService)), ( __param(7,
|
|
325
|
+
ChatSlashCommandsContribution = ( __decorate([( __param(0, IChatSlashCommandService)), ( __param(1, ICommandService)), ( __param(2, IChatAgentService)), ( __param(3, IInstantiationService)), ( __param(4, IAgentSessionsService)), ( __param(5, IChatService)), ( __param(6, IConfigurationService)), ( __param(7, IChatWidgetService)), ( __param(8, IWorkbenchEnvironmentService))], ChatSlashCommandsContribution));
|
|
393
326
|
|
|
394
327
|
export { ChatSlashCommandsContribution };
|
|
@@ -39,6 +39,7 @@ export declare class ChatStatusDashboard extends DomWidget {
|
|
|
39
39
|
private readonly quotaOverageFormatter;
|
|
40
40
|
constructor(chatEntitlementService: ChatEntitlementService, chatStatusItemService: IChatStatusItemService, commandService: ICommandService, configurationService: IConfigurationService, editorService: IEditorService, hoverService: IHoverService, languageService: ILanguageService, openerService: IOpenerService, telemetryService: ITelemetryService, textResourceConfigurationService: ITextResourceConfigurationService, inlineCompletionsService: IInlineCompletionsService, chatSessionsService: IChatSessionsService, markdownRendererService: IMarkdownRendererService, languageFeaturesService: ILanguageFeaturesService, quickInputService: IQuickInputService, viewService: IViewsService);
|
|
41
41
|
private render;
|
|
42
|
+
private getDisplayNameForChatSessionType;
|
|
42
43
|
private canUseChat;
|
|
43
44
|
private getUsageTitle;
|
|
44
45
|
private renderHeader;
|