@codingame/monaco-vscode-chat-service-override 31.0.0 → 32.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.d.ts +1 -1
- package/index.js +21 -5
- package/package.json +5 -5
- package/vscode/src/vs/base/common/defaultAccount.d.ts +69 -0
- package/vscode/src/vs/base/common/defaultAccount.js +12 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +91 -22
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +301 -68
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +24 -5
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +89 -16
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +17 -5
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +73 -10
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +32 -6
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +32 -20
- package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.d.ts +37 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.js +15 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +242 -201
- package/vscode/src/vs/platform/agentHost/common/agentService.js +3 -1
- package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.d.ts +35 -0
- package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.js +106 -0
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +38 -30
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +2 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +114 -4
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.d.ts +10 -10
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.js +52 -19
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +42 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +7 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +42 -41
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +6 -6
- package/vscode/src/vs/platform/agentHost/common/transportConstants.d.ts +15 -0
- package/vscode/src/vs/platform/agentHost/common/transportConstants.js +6 -0
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +4 -3
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +4 -3
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +4 -2
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +15 -7
- package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.js +17 -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 +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +14 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +64 -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 +31 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +18 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +30 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +8 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +27 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +21 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +12 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.js +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +63 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +10 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +25 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +99 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +17 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +35 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +347 -326
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +1 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +113 -109
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +37 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +436 -134
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +52 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +13 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +73 -104
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +272 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +30 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +430 -185
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +44 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +480 -279
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.d.ts +138 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.js +221 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +1216 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +32 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +26 -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 +28 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +25 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +68 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +650 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +390 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +18 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +6 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +116 -182
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +12 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +61 -41
- 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 +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +16 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +106 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +25 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +629 -425
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +105 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +175 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +20 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +9 -2
- 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/githubRepoFetcher.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.js +339 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/media/planReviewFeedback.css +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +572 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.js +167 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +49 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +315 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +45 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +44 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileContributions.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +111 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +13 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +14 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +17 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +23 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +136 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.d.ts +72 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.js +14 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +41 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +30 -12
- 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 +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +25 -6
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +108 -45
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +65 -26
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +38 -11
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +165 -16
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +62 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -1
- 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.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +15 -21
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +18 -24
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +203 -180
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +35 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +27 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +14 -49
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +35 -177
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +4 -4
- 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 +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +29 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +129 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +14 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +1 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +12 -38
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.d.ts +12 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +77 -70
- 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/browser/tools/terminalOutputCompressor.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +232 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.d.ts +83 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.js +243 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +0 -749
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.js +0 -14
- package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.d.ts +0 -17
- package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.js +0 -5
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +0 -40
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +0 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +0 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +0 -638
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +0 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +0 -363
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +0 -306
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +0 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatStatusWidget.css +0 -57
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -29
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +0 -78
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +0 -77
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +0 -120
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +0 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -242
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1701
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -191
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -728
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +0 -69
|
@@ -128,7 +128,7 @@ let ChatSetup = class ChatSetup {
|
|
|
128
128
|
const dialogSkipped = this.skipDialogOnce;
|
|
129
129
|
this.skipDialogOnce = false;
|
|
130
130
|
const trusted = await this.workspaceTrustRequestService.requestWorkspaceTrust({
|
|
131
|
-
message: ( localize(
|
|
131
|
+
message: ( localize(6587, "AI features are currently only supported in trusted workspaces."))
|
|
132
132
|
});
|
|
133
133
|
if (!trusted) {
|
|
134
134
|
this.context.update({
|
|
@@ -158,6 +158,9 @@ let ChatSetup = class ChatSetup {
|
|
|
158
158
|
if (setupStrategy === ChatSetupStrategy.DefaultSetup && this.defaultAccountService.getDefaultAccountAuthenticationProvider().enterprise) {
|
|
159
159
|
setupStrategy = ChatSetupStrategy.SetupWithEnterpriseProvider;
|
|
160
160
|
}
|
|
161
|
+
if (setupStrategy !== ChatSetupStrategy.Canceled) {
|
|
162
|
+
options?.onSignInStarted?.();
|
|
163
|
+
}
|
|
161
164
|
if (setupStrategy !== ChatSetupStrategy.Canceled && !options?.disableChatViewReveal) {
|
|
162
165
|
this.widgetService.revealWidget();
|
|
163
166
|
}
|
|
@@ -242,7 +245,7 @@ let ChatSetup = class ChatSetup {
|
|
|
242
245
|
icon: options?.dialogIcon ?? Codicon.copilotLarge,
|
|
243
246
|
alignment: DialogContentsAlignment.Vertical,
|
|
244
247
|
cancelId: buttons.length,
|
|
245
|
-
disableCloseButton: false,
|
|
248
|
+
disableCloseButton: options?.disableCloseButton ?? false,
|
|
246
249
|
renderFooter: footer => footer.appendChild(this.createDialogFooter(disposables, options)),
|
|
247
250
|
buttonOptions: ( buttons.map(button => button[2]))
|
|
248
251
|
}, this.keybindingService, this.layoutService, this.hostService)
|
|
@@ -259,20 +262,20 @@ let ChatSetup = class ChatSetup {
|
|
|
259
262
|
});
|
|
260
263
|
let buttons;
|
|
261
264
|
if (!options?.forceAnonymous && (this.context.state.entitlement === ChatEntitlement.Unknown || options?.forceSignInDialog)) {
|
|
262
|
-
const defaultProviderButton = [( localize(
|
|
265
|
+
const defaultProviderButton = [( localize(6588, "Continue with {0}", defaultChat.provider.default.name)), ChatSetupStrategy.SetupWithoutEnterpriseProvider, styleButton("continue-button", "default")];
|
|
263
266
|
const defaultProviderLink = [
|
|
264
267
|
defaultProviderButton[0],
|
|
265
268
|
defaultProviderButton[1],
|
|
266
269
|
styleButton("link-button")
|
|
267
270
|
];
|
|
268
|
-
const enterpriseProviderButton = [( localize(
|
|
271
|
+
const enterpriseProviderButton = [( localize(6588, "Continue with {0}", defaultChat.provider.enterprise.name)), ChatSetupStrategy.SetupWithEnterpriseProvider, styleButton("continue-button", "default")];
|
|
269
272
|
const enterpriseProviderLink = [
|
|
270
273
|
enterpriseProviderButton[0],
|
|
271
274
|
enterpriseProviderButton[1],
|
|
272
275
|
styleButton("link-button")
|
|
273
276
|
];
|
|
274
|
-
const googleProviderButton = [( localize(
|
|
275
|
-
const appleProviderButton = [( localize(
|
|
277
|
+
const googleProviderButton = [( localize(6588, "Continue with {0}", defaultChat.provider.google.name)), ChatSetupStrategy.SetupWithGoogleProvider, styleButton("continue-button", "google")];
|
|
278
|
+
const appleProviderButton = [( localize(6588, "Continue with {0}", defaultChat.provider.apple.name)), ChatSetupStrategy.SetupWithAppleProvider, styleButton("continue-button", "apple")];
|
|
276
279
|
if (!this.defaultAccountService.getDefaultAccountAuthenticationProvider().enterprise) {
|
|
277
280
|
buttons = coalesce([
|
|
278
281
|
defaultProviderButton,
|
|
@@ -289,7 +292,7 @@ let ChatSetup = class ChatSetup {
|
|
|
289
292
|
]);
|
|
290
293
|
}
|
|
291
294
|
} else {
|
|
292
|
-
buttons = [[( localize(
|
|
295
|
+
buttons = [[( localize(6589, "Use AI Features")), ChatSetupStrategy.DefaultSetup, undefined]];
|
|
293
296
|
}
|
|
294
297
|
return buttons;
|
|
295
298
|
}
|
|
@@ -299,22 +302,22 @@ let ChatSetup = class ChatSetup {
|
|
|
299
302
|
}
|
|
300
303
|
if (this.chatEntitlementService.anonymous) {
|
|
301
304
|
if (options?.forceAnonymous) {
|
|
302
|
-
return localize(
|
|
305
|
+
return localize(6590, "Start using AI Features");
|
|
303
306
|
} else {
|
|
304
|
-
return localize(
|
|
307
|
+
return localize(6591, "Enable more AI features");
|
|
305
308
|
}
|
|
306
309
|
}
|
|
307
310
|
if (this.context.state.entitlement === ChatEntitlement.Unknown || options?.forceSignInDialog) {
|
|
308
|
-
return localize(
|
|
311
|
+
return localize(6592, "Sign in to use AI Features");
|
|
309
312
|
}
|
|
310
|
-
return localize(
|
|
313
|
+
return localize(6590, "Start using AI Features");
|
|
311
314
|
}
|
|
312
315
|
createDialogFooter(disposables, options) {
|
|
313
316
|
const element = $(".chat-setup-dialog-footer");
|
|
314
317
|
let footer;
|
|
315
318
|
if (options?.forceAnonymous || this.telemetryService.telemetryLevel === TelemetryLevel.NONE) {
|
|
316
319
|
footer = ( localize(
|
|
317
|
-
|
|
320
|
+
6593,
|
|
318
321
|
"By continuing, you agree to {0}'s [Terms]({1}) and [Privacy Statement]({2}).",
|
|
319
322
|
defaultChat.provider.default.name,
|
|
320
323
|
defaultChat.termsStatementUrl,
|
|
@@ -322,7 +325,7 @@ let ChatSetup = class ChatSetup {
|
|
|
322
325
|
));
|
|
323
326
|
} else {
|
|
324
327
|
footer = ( localize(
|
|
325
|
-
|
|
328
|
+
6594,
|
|
326
329
|
"By continuing, you agree to {0}'s [Terms]({1}) and [Privacy Statement]({2}). {3} Copilot may show [public code]({4}) suggestions and use your data to improve the product. You can change these [settings]({5}) anytime.",
|
|
327
330
|
defaultChat.provider.default.name,
|
|
328
331
|
defaultChat.termsStatementUrl,
|
|
@@ -2,9 +2,11 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
2
2
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
3
3
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
4
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
5
6
|
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
|
|
6
7
|
import { IChatSlashCommandService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service";
|
|
7
8
|
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
9
|
+
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
8
10
|
import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
|
|
9
11
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
10
12
|
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
@@ -13,3 +15,21 @@ export declare class ChatSlashCommandsContribution extends Disposable {
|
|
|
13
15
|
static readonly ID = "workbench.contrib.chatSlashCommands";
|
|
14
16
|
constructor(slashCommandService: IChatSlashCommandService, commandService: ICommandService, chatAgentService: IChatAgentService, instantiationService: IInstantiationService, agentSessionsService: IAgentSessionsService, chatService: IChatService, configurationService: IConfigurationService, chatWidgetService: IChatWidgetService, environmentService: IWorkbenchEnvironmentService);
|
|
15
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Registers slash commands declared by chat session providers via
|
|
20
|
+
* {@link IChatSessionProviderOptionItem.slashCommand}. Each slash command is
|
|
21
|
+
* scoped to its contributing session type via a `chatSessionType == X` `when`
|
|
22
|
+
* clause, executes immediately, and updates the session option corresponding
|
|
23
|
+
* to its declaring item — so e.g. `/yolo` switches the active permission mode
|
|
24
|
+
* without sending a chat request.
|
|
25
|
+
*/
|
|
26
|
+
export declare class ChatSessionOptionSlashCommandsContribution extends Disposable {
|
|
27
|
+
private readonly chatSessionsService;
|
|
28
|
+
private readonly slashCommandService;
|
|
29
|
+
private readonly logService;
|
|
30
|
+
static readonly ID = "workbench.contrib.chatSessionOptionSlashCommands";
|
|
31
|
+
private readonly _registrationsByType;
|
|
32
|
+
constructor(chatSessionsService: IChatSessionsService, slashCommandService: IChatSlashCommandService, logService: ILogService);
|
|
33
|
+
private refreshForSessionType;
|
|
34
|
+
private registerOne;
|
|
35
|
+
}
|
|
@@ -2,15 +2,18 @@
|
|
|
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
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';
|
|
5
|
+
import { Disposable, DisposableMap, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
7
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
8
8
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
9
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
10
11
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
|
|
11
12
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
12
13
|
import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service';
|
|
13
14
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
15
|
+
import { SessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
16
|
+
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
14
17
|
import { ChatAgentLocation, ChatConfiguration, ChatPermissionLevel, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
15
18
|
import { ACTION_ID_NEW_CHAT } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
16
19
|
import { OpenModelPickerAction, OpenModePickerAction, ChatSubmitAction } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
|
|
@@ -23,7 +26,6 @@ import { CONFIGURE_PROMPTS_ACTION_ID } from './promptSyntax/runPromptAction.js';
|
|
|
23
26
|
import { CONFIGURE_SKILLS_ACTION_ID } from './promptSyntax/skillActions.js';
|
|
24
27
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
25
28
|
import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer';
|
|
26
|
-
import { Target } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
27
29
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
28
30
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
29
31
|
|
|
@@ -46,7 +48,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
46
48
|
this.environmentService = environmentService;
|
|
47
49
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
48
50
|
command: "clear",
|
|
49
|
-
detail: ( localize(
|
|
51
|
+
detail: ( localize(6595, "Start a new chat and archive the current one")),
|
|
50
52
|
sortText: "z2_clear",
|
|
51
53
|
executeImmediately: true,
|
|
52
54
|
locations: [ChatAgentLocation.Chat]
|
|
@@ -56,18 +58,18 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
56
58
|
}));
|
|
57
59
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
58
60
|
command: "hooks",
|
|
59
|
-
detail: ( localize(
|
|
61
|
+
detail: ( localize(6596, "Configure hooks")),
|
|
60
62
|
sortText: "z3_hooks",
|
|
61
63
|
executeImmediately: true,
|
|
62
64
|
silent: true,
|
|
63
65
|
locations: [ChatAgentLocation.Chat],
|
|
64
|
-
|
|
66
|
+
sessionTypes: [SessionType.Local]
|
|
65
67
|
}, async () => {
|
|
66
68
|
await instantiationService.invokeFunction(showConfigureHooksQuickPick);
|
|
67
69
|
}));
|
|
68
70
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
69
71
|
command: "models",
|
|
70
|
-
detail: ( localize(
|
|
72
|
+
detail: ( localize(6597, "Open the model picker")),
|
|
71
73
|
sortText: "z3_models",
|
|
72
74
|
executeImmediately: true,
|
|
73
75
|
silent: true,
|
|
@@ -77,30 +79,30 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
77
79
|
}));
|
|
78
80
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
79
81
|
command: "tools",
|
|
80
|
-
detail: ( localize(
|
|
82
|
+
detail: ( localize(6598, "Configure tools")),
|
|
81
83
|
sortText: "z3_tools",
|
|
82
84
|
executeImmediately: true,
|
|
83
85
|
silent: true,
|
|
84
86
|
locations: [ChatAgentLocation.Chat],
|
|
85
|
-
|
|
87
|
+
sessionTypes: [SessionType.Local]
|
|
86
88
|
}, async () => {
|
|
87
89
|
await commandService.executeCommand(ConfigureToolsAction.ID);
|
|
88
90
|
}));
|
|
89
91
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
90
92
|
command: "plugins",
|
|
91
|
-
detail: ( localize(
|
|
93
|
+
detail: ( localize(6599, "Manage plugins")),
|
|
92
94
|
sortText: "z3_plugins",
|
|
93
95
|
executeImmediately: true,
|
|
94
96
|
silent: true,
|
|
95
97
|
locations: [ChatAgentLocation.Chat],
|
|
96
|
-
|
|
98
|
+
sessionTypes: [SessionType.Local]
|
|
97
99
|
}, async () => {
|
|
98
100
|
await commandService.executeCommand(ManagePluginsAction.ID);
|
|
99
101
|
}));
|
|
100
102
|
if (!this.environmentService.isSessionsWindow) {
|
|
101
103
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
102
104
|
command: "debug",
|
|
103
|
-
detail: ( localize(
|
|
105
|
+
detail: ( localize(6600, "Show Chat Debug View")),
|
|
104
106
|
sortText: "z3_debug",
|
|
105
107
|
executeImmediately: true,
|
|
106
108
|
silent: true,
|
|
@@ -111,51 +113,51 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
111
113
|
}
|
|
112
114
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
113
115
|
command: "agents",
|
|
114
|
-
detail: ( localize(
|
|
116
|
+
detail: ( localize(6601, "Configure custom agents")),
|
|
115
117
|
sortText: "z3_agents",
|
|
116
118
|
executeImmediately: true,
|
|
117
119
|
silent: true,
|
|
118
120
|
locations: [ChatAgentLocation.Chat],
|
|
119
|
-
|
|
121
|
+
sessionTypes: [SessionType.Local]
|
|
120
122
|
}, async () => {
|
|
121
123
|
await commandService.executeCommand(OpenModePickerAction.ID);
|
|
122
124
|
}));
|
|
123
125
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
124
126
|
command: "skills",
|
|
125
|
-
detail: ( localize(
|
|
127
|
+
detail: ( localize(6602, "Configure skills")),
|
|
126
128
|
sortText: "z3_skills",
|
|
127
129
|
executeImmediately: true,
|
|
128
130
|
silent: true,
|
|
129
131
|
locations: [ChatAgentLocation.Chat],
|
|
130
|
-
|
|
132
|
+
sessionTypes: [SessionType.Local]
|
|
131
133
|
}, async () => {
|
|
132
134
|
await commandService.executeCommand(CONFIGURE_SKILLS_ACTION_ID);
|
|
133
135
|
}));
|
|
134
136
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
135
137
|
command: "instructions",
|
|
136
|
-
detail: ( localize(
|
|
138
|
+
detail: ( localize(6603, "Configure instructions")),
|
|
137
139
|
sortText: "z3_instructions",
|
|
138
140
|
executeImmediately: true,
|
|
139
141
|
silent: true,
|
|
140
142
|
locations: [ChatAgentLocation.Chat],
|
|
141
|
-
|
|
143
|
+
sessionTypes: [SessionType.Local]
|
|
142
144
|
}, async () => {
|
|
143
145
|
await commandService.executeCommand(CONFIGURE_INSTRUCTIONS_ACTION_ID);
|
|
144
146
|
}));
|
|
145
147
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
146
148
|
command: "prompts",
|
|
147
|
-
detail: ( localize(
|
|
149
|
+
detail: ( localize(6604, "Configure prompt files")),
|
|
148
150
|
sortText: "z3_prompts",
|
|
149
151
|
executeImmediately: true,
|
|
150
152
|
silent: true,
|
|
151
153
|
locations: [ChatAgentLocation.Chat],
|
|
152
|
-
|
|
154
|
+
sessionTypes: [SessionType.Local]
|
|
153
155
|
}, async () => {
|
|
154
156
|
await commandService.executeCommand(CONFIGURE_PROMPTS_ACTION_ID);
|
|
155
157
|
}));
|
|
156
158
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
157
159
|
command: "fork",
|
|
158
|
-
detail: ( localize(
|
|
160
|
+
detail: ( localize(6605, "Fork conversation into a new chat session")),
|
|
159
161
|
sortText: "z2_fork",
|
|
160
162
|
executeImmediately: true,
|
|
161
163
|
silent: true,
|
|
@@ -166,12 +168,12 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
166
168
|
}));
|
|
167
169
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
168
170
|
command: "rename",
|
|
169
|
-
detail: ( localize(
|
|
171
|
+
detail: ( localize(6606, "Rename this chat")),
|
|
170
172
|
sortText: "z2_rename",
|
|
171
173
|
executeImmediately: false,
|
|
172
174
|
silent: true,
|
|
173
175
|
locations: [ChatAgentLocation.Chat],
|
|
174
|
-
|
|
176
|
+
sessionTypes: [SessionType.Local]
|
|
175
177
|
}, async (prompt, _progress, _history, _location, sessionResource) => {
|
|
176
178
|
const title = prompt.trim();
|
|
177
179
|
if (title) {
|
|
@@ -188,68 +190,68 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
188
190
|
if (autoApprovePolicyValue !== false) {
|
|
189
191
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
190
192
|
command: "autoApprove",
|
|
191
|
-
detail: ( localize(
|
|
193
|
+
detail: ( localize(6607, "Set permissions to bypass approvals")),
|
|
192
194
|
sortText: "z1_autoApprove",
|
|
193
195
|
executeImmediately: true,
|
|
194
196
|
silent: true,
|
|
195
197
|
locations: [ChatAgentLocation.Chat],
|
|
196
|
-
|
|
198
|
+
sessionTypes: [SessionType.Local, SessionType.CopilotCLI]
|
|
197
199
|
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
198
200
|
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.AutoApprove);
|
|
199
201
|
}));
|
|
200
202
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
201
203
|
command: "disableAutoApprove",
|
|
202
|
-
detail: ( localize(
|
|
204
|
+
detail: ( localize(6608, "Set permissions back to default")),
|
|
203
205
|
sortText: "z1_disableAutoApprove",
|
|
204
206
|
executeImmediately: true,
|
|
205
207
|
silent: true,
|
|
206
208
|
locations: [ChatAgentLocation.Chat],
|
|
207
|
-
|
|
209
|
+
sessionTypes: [SessionType.Local, SessionType.CopilotCLI]
|
|
208
210
|
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
209
211
|
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.Default);
|
|
210
212
|
}));
|
|
211
213
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
212
214
|
command: "yolo",
|
|
213
|
-
detail: ( localize(
|
|
215
|
+
detail: ( localize(6609, "Set permissions to bypass approvals")),
|
|
214
216
|
sortText: "z1_yolo",
|
|
215
217
|
executeImmediately: true,
|
|
216
218
|
silent: true,
|
|
217
219
|
locations: [ChatAgentLocation.Chat],
|
|
218
|
-
|
|
220
|
+
sessionTypes: [SessionType.Local, SessionType.CopilotCLI]
|
|
219
221
|
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
220
222
|
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.AutoApprove);
|
|
221
223
|
}));
|
|
222
224
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
223
225
|
command: "disableYolo",
|
|
224
|
-
detail: ( localize(
|
|
226
|
+
detail: ( localize(6610, "Set permissions back to default")),
|
|
225
227
|
sortText: "z1_disableYolo",
|
|
226
228
|
executeImmediately: true,
|
|
227
229
|
silent: true,
|
|
228
230
|
locations: [ChatAgentLocation.Chat],
|
|
229
|
-
|
|
231
|
+
sessionTypes: [SessionType.Local, SessionType.CopilotCLI]
|
|
230
232
|
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
231
233
|
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.Default);
|
|
232
234
|
}));
|
|
233
235
|
if (configurationService.getValue(ChatConfiguration.AutopilotEnabled) !== false) {
|
|
234
236
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
235
237
|
command: "autopilot",
|
|
236
|
-
detail: ( localize(
|
|
238
|
+
detail: ( localize(6611, "Set permissions to autopilot mode")),
|
|
237
239
|
sortText: "z1_autopilot",
|
|
238
240
|
executeImmediately: true,
|
|
239
241
|
silent: true,
|
|
240
242
|
locations: [ChatAgentLocation.Chat],
|
|
241
|
-
|
|
243
|
+
sessionTypes: [SessionType.Local, SessionType.CopilotCLI]
|
|
242
244
|
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
243
245
|
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.Autopilot);
|
|
244
246
|
}));
|
|
245
247
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
246
248
|
command: "exitAutopilot",
|
|
247
|
-
detail: ( localize(
|
|
249
|
+
detail: ( localize(6612, "Set permissions back to default")),
|
|
248
250
|
sortText: "z1_exitAutopilot",
|
|
249
251
|
executeImmediately: true,
|
|
250
252
|
silent: true,
|
|
251
253
|
locations: [ChatAgentLocation.Chat],
|
|
252
|
-
|
|
254
|
+
sessionTypes: [SessionType.Local, SessionType.CopilotCLI]
|
|
253
255
|
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
254
256
|
setPermissionLevelForSession(sessionResource, ChatPermissionLevel.Default);
|
|
255
257
|
}));
|
|
@@ -262,7 +264,7 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
262
264
|
executeImmediately: true,
|
|
263
265
|
locations: [ChatAgentLocation.Chat],
|
|
264
266
|
modes: [ChatModeKind.Ask],
|
|
265
|
-
|
|
267
|
+
sessionTypes: [SessionType.Local]
|
|
266
268
|
}, async (prompt, progress, _history, _location, sessionResource) => {
|
|
267
269
|
const defaultAgent = chatAgentService.getDefaultAgent(ChatAgentLocation.Chat);
|
|
268
270
|
const agents = chatAgentService.getAgents();
|
|
@@ -323,5 +325,73 @@ let ChatSlashCommandsContribution = class ChatSlashCommandsContribution extends
|
|
|
323
325
|
}
|
|
324
326
|
};
|
|
325
327
|
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));
|
|
328
|
+
let ChatSessionOptionSlashCommandsContribution = class ChatSessionOptionSlashCommandsContribution extends Disposable {
|
|
329
|
+
static {
|
|
330
|
+
this.ID = "workbench.contrib.chatSessionOptionSlashCommands";
|
|
331
|
+
}
|
|
332
|
+
constructor(chatSessionsService, slashCommandService, logService) {
|
|
333
|
+
super();
|
|
334
|
+
this.chatSessionsService = chatSessionsService;
|
|
335
|
+
this.slashCommandService = slashCommandService;
|
|
336
|
+
this.logService = logService;
|
|
337
|
+
this._registrationsByType = this._register(( new DisposableMap()));
|
|
338
|
+
this._register(this.chatSessionsService.onDidChangeOptionGroups(chatSessionType => {
|
|
339
|
+
this.refreshForSessionType(chatSessionType);
|
|
340
|
+
}));
|
|
341
|
+
}
|
|
342
|
+
refreshForSessionType(chatSessionType) {
|
|
343
|
+
this._registrationsByType.deleteAndDispose(chatSessionType);
|
|
344
|
+
const groups = this.chatSessionsService.getOptionGroupsForSessionType(chatSessionType);
|
|
345
|
+
if (!groups || groups.length === 0) {
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
const store = ( new DisposableStore());
|
|
349
|
+
const seen = ( new Set());
|
|
350
|
+
for (const group of groups) {
|
|
351
|
+
for (const item of group.items) {
|
|
352
|
+
const name = item.slashCommand?.trim();
|
|
353
|
+
if (!name) {
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
if (( seen.has(name))) {
|
|
357
|
+
this.logService.warn(
|
|
358
|
+
`[ChatSessionOptionSlashCommands] Skipping duplicate slash command '${name}' contributed by session type '${chatSessionType}'.`
|
|
359
|
+
);
|
|
360
|
+
continue;
|
|
361
|
+
}
|
|
362
|
+
if (this.slashCommandService.hasCommand(name, chatSessionType)) {
|
|
363
|
+
this.logService.warn(
|
|
364
|
+
`[ChatSessionOptionSlashCommands] Slash command '${name}' contributed by session type '${chatSessionType}' is already registered; skipping.`
|
|
365
|
+
);
|
|
366
|
+
continue;
|
|
367
|
+
}
|
|
368
|
+
seen.add(name);
|
|
369
|
+
store.add(this.registerOne(chatSessionType, group, item, name));
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
if (store.isDisposed || seen.size === 0) {
|
|
373
|
+
store.dispose();
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
this._registrationsByType.set(chatSessionType, store);
|
|
377
|
+
}
|
|
378
|
+
registerOne(chatSessionType, group, item, name) {
|
|
379
|
+
return this.slashCommandService.registerSlashCommand({
|
|
380
|
+
command: name,
|
|
381
|
+
detail: item.description ?? ( localize(6613, "Switch to '{0}'", item.name)),
|
|
382
|
+
sortText: `z1_${name}`,
|
|
383
|
+
executeImmediately: true,
|
|
384
|
+
silent: true,
|
|
385
|
+
locations: [ChatAgentLocation.Chat],
|
|
386
|
+
sessionTypes: [chatSessionType]
|
|
387
|
+
}, async (_prompt, _progress, _history, _location, sessionResource) => {
|
|
388
|
+
if (!sessionResource) {
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
this.chatSessionsService.setSessionOption(sessionResource, group.id, item);
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
ChatSessionOptionSlashCommandsContribution = ( __decorate([( __param(0, IChatSessionsService)), ( __param(1, IChatSlashCommandService)), ( __param(2, ILogService))], ChatSessionOptionSlashCommandsContribution));
|
|
326
396
|
|
|
327
|
-
export { ChatSlashCommandsContribution };
|
|
397
|
+
export { ChatSessionOptionSlashCommandsContribution, ChatSlashCommandsContribution };
|
|
@@ -2,7 +2,7 @@ import { IInlineCompletionsService } from "@codingame/monaco-vscode-api/vscode/v
|
|
|
2
2
|
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
3
3
|
import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service";
|
|
4
4
|
import { ILanguageFeaturesService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures.service";
|
|
5
|
-
import {
|
|
5
|
+
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
6
6
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
7
7
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
8
8
|
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
@@ -12,6 +12,7 @@ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
12
12
|
import { DomWidget } from "../../../../../platform/domWidget/browser/domWidget.js";
|
|
13
13
|
import { ChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService";
|
|
14
14
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
15
|
+
import { IContextViewService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
15
16
|
import { IChatStatusItemService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.service";
|
|
16
17
|
export interface IChatStatusDashboardOptions {
|
|
17
18
|
/** When true, disables the Inline Suggestions settings section (toggles for all files, language, next edit). */
|
|
@@ -22,6 +23,17 @@ export interface IChatStatusDashboardOptions {
|
|
|
22
23
|
disableProviderOptions?: boolean;
|
|
23
24
|
/** When true, disables the completions snooze button. */
|
|
24
25
|
disableCompletionsSnooze?: boolean;
|
|
26
|
+
/** When true, the Quick Settings region is rendered always-expanded without a collapsible header. */
|
|
27
|
+
disableQuickSettingsCollapsible?: boolean;
|
|
28
|
+
/** When true, contributed sections are rendered always-expanded without a collapsible header button. */
|
|
29
|
+
disableContributedSectionsCollapsible?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* When provided, the title header (plan name + manage / CTA actions) is
|
|
32
|
+
* rendered into this caller-owned container instead of inline at the top
|
|
33
|
+
* of the dashboard. Use this to embed the title header in a host layout
|
|
34
|
+
* without reaching into the dashboard's private DOM.
|
|
35
|
+
*/
|
|
36
|
+
titleHeaderContainer?: HTMLElement;
|
|
25
37
|
}
|
|
26
38
|
export declare class ChatStatusDashboard extends DomWidget {
|
|
27
39
|
private readonly options;
|
|
@@ -38,28 +50,34 @@ export declare class ChatStatusDashboard extends DomWidget {
|
|
|
38
50
|
private readonly inlineCompletionsService;
|
|
39
51
|
private readonly markdownRendererService;
|
|
40
52
|
private readonly languageFeaturesService;
|
|
41
|
-
private readonly
|
|
53
|
+
private readonly contextViewService;
|
|
54
|
+
private readonly storageService;
|
|
55
|
+
private static readonly QUICK_SETTINGS_COLLAPSED_KEY;
|
|
56
|
+
private static readonly CONTRIBUTED_COLLAPSED_KEY_PREFIX;
|
|
42
57
|
readonly element: HTMLElement;
|
|
43
58
|
private readonly dateFormatter;
|
|
44
59
|
private readonly timeFormatter;
|
|
45
60
|
private readonly quotaPercentageFormatter;
|
|
46
|
-
private readonly
|
|
47
|
-
constructor(options: IChatStatusDashboardOptions | undefined, chatEntitlementService: ChatEntitlementService, chatStatusItemService: IChatStatusItemService, commandService: ICommandService, configurationService: IConfigurationService, editorService: IEditorService, hoverService: IHoverService, languageService: ILanguageService, openerService: IOpenerService, telemetryService: ITelemetryService, textResourceConfigurationService: ITextResourceConfigurationService, inlineCompletionsService: IInlineCompletionsService, markdownRendererService: IMarkdownRendererService, languageFeaturesService: ILanguageFeaturesService,
|
|
61
|
+
private readonly quotaCreditsFormatter;
|
|
62
|
+
constructor(options: IChatStatusDashboardOptions | undefined, chatEntitlementService: ChatEntitlementService, chatStatusItemService: IChatStatusItemService, commandService: ICommandService, configurationService: IConfigurationService, editorService: IEditorService, hoverService: IHoverService, languageService: ILanguageService, openerService: IOpenerService, telemetryService: ITelemetryService, textResourceConfigurationService: ITextResourceConfigurationService, inlineCompletionsService: IInlineCompletionsService, markdownRendererService: IMarkdownRendererService, languageFeaturesService: ILanguageFeaturesService, contextViewService: IContextViewService, storageService: IStorageService);
|
|
48
63
|
private render;
|
|
49
64
|
private renderUsageContent;
|
|
65
|
+
private renderInlineSuggestionsSection;
|
|
66
|
+
private renderContributedSections;
|
|
67
|
+
private renderSetupSection;
|
|
50
68
|
private renderInlineSuggestionsContent;
|
|
51
69
|
private canUseChat;
|
|
52
70
|
private renderHeader;
|
|
53
|
-
private renderContributedChatStatusItem;
|
|
54
71
|
private renderTextPlus;
|
|
55
72
|
private runCommandAndClose;
|
|
73
|
+
private formatResetAtLabel;
|
|
56
74
|
private createQuotaIndicator;
|
|
75
|
+
private createGlobalQuotaCallout;
|
|
57
76
|
private createSettings;
|
|
58
77
|
private createSetting;
|
|
59
78
|
private createInlineSuggestionsSetting;
|
|
79
|
+
private createTriStateLanguageSetting;
|
|
60
80
|
private getCompletionsSettingAccessor;
|
|
61
81
|
private createNextEditSuggestionsSetting;
|
|
62
82
|
private createCompletionsSnooze;
|
|
63
|
-
private showModelPicker;
|
|
64
|
-
private showProviderOptionPicker;
|
|
65
83
|
}
|