@codingame/monaco-vscode-chat-service-override 28.4.1 → 29.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +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
|
@@ -7,7 +7,7 @@ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
7
7
|
import { ChatConfiguration, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
8
8
|
import { localChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
9
9
|
import { TipTrackingCommands } from './chatTipStorageKeys.js';
|
|
10
|
-
import { GENERATE_AGENT_INSTRUCTIONS_COMMAND_ID, GENERATE_PROMPT_COMMAND_ID, GENERATE_AGENT_COMMAND_ID, GENERATE_SKILL_COMMAND_ID, INSERT_FORK_CONVERSATION_COMMAND_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
10
|
+
import { GENERATE_AGENT_INSTRUCTIONS_COMMAND_ID, GENERATE_PROMPT_COMMAND_ID, GENERATE_AGENT_COMMAND_ID, GENERATE_SKILL_COMMAND_ID, INSERT_FORK_CONVERSATION_COMMAND_ID, INSERT_TROUBLESHOOT_COMMAND_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
11
11
|
|
|
12
12
|
var ChatTipTier;
|
|
13
13
|
(function(ChatTipTier) {
|
|
@@ -33,8 +33,8 @@ const TIP_CATALOG = [{
|
|
|
33
33
|
priority: 0,
|
|
34
34
|
buildMessage(_ctx) {
|
|
35
35
|
return (new MarkdownString(localize(
|
|
36
|
-
|
|
37
|
-
"Using GPT-4.1? Try switching to [Auto](command:workbench.action.chat.openModelPicker) in the model picker for better coding performance."
|
|
36
|
+
6344,
|
|
37
|
+
"Using GPT-4.1? Try switching to [Auto](command:workbench.action.chat.openModelPicker \"Open Model Picker\") in the model picker for better coding performance."
|
|
38
38
|
)));
|
|
39
39
|
},
|
|
40
40
|
onlyWhenModelIds: ["gpt-4.1"]
|
|
@@ -45,8 +45,8 @@ const TIP_CATALOG = [{
|
|
|
45
45
|
buildMessage(ctx) {
|
|
46
46
|
const kb = formatKeybinding(ctx, GENERATE_AGENT_INSTRUCTIONS_COMMAND_ID);
|
|
47
47
|
return (new MarkdownString(localize(
|
|
48
|
-
|
|
49
|
-
"Use [{0}](command:{1}){2} to generate or update a workspace instructions file for AI coding agents.",
|
|
48
|
+
6345,
|
|
49
|
+
"Use [{0}](command:{1} \"Run /init\"){2} to generate or update a workspace instructions file for AI coding agents.",
|
|
50
50
|
"/init",
|
|
51
51
|
GENERATE_AGENT_INSTRUCTIONS_COMMAND_ID,
|
|
52
52
|
kb
|
|
@@ -63,8 +63,8 @@ const TIP_CATALOG = [{
|
|
|
63
63
|
buildMessage(ctx) {
|
|
64
64
|
const kb = formatKeybinding(ctx, GENERATE_PROMPT_COMMAND_ID);
|
|
65
65
|
return (new MarkdownString(localize(
|
|
66
|
-
|
|
67
|
-
"Use [{0}](command:{1}){2} to generate a reusable prompt file with the agent.",
|
|
66
|
+
6346,
|
|
67
|
+
"Use [{0}](command:{1} \"Run /create-prompt\"){2} to generate a reusable prompt file with the agent.",
|
|
68
68
|
"/create-prompt",
|
|
69
69
|
GENERATE_PROMPT_COMMAND_ID,
|
|
70
70
|
kb
|
|
@@ -79,8 +79,8 @@ const TIP_CATALOG = [{
|
|
|
79
79
|
buildMessage(ctx) {
|
|
80
80
|
const kb = formatKeybinding(ctx, GENERATE_AGENT_COMMAND_ID);
|
|
81
81
|
return (new MarkdownString(localize(
|
|
82
|
-
|
|
83
|
-
"Use [{0}](command:{1}){2} to scaffold a custom agent for your workflow.",
|
|
82
|
+
6347,
|
|
83
|
+
"Use [{0}](command:{1} \"Run /create-agent\"){2} to scaffold a custom agent for your workflow.",
|
|
84
84
|
"/create-agent",
|
|
85
85
|
GENERATE_AGENT_COMMAND_ID,
|
|
86
86
|
kb
|
|
@@ -95,8 +95,8 @@ const TIP_CATALOG = [{
|
|
|
95
95
|
buildMessage(ctx) {
|
|
96
96
|
const kb = formatKeybinding(ctx, GENERATE_SKILL_COMMAND_ID);
|
|
97
97
|
return (new MarkdownString(localize(
|
|
98
|
-
|
|
99
|
-
"Use [{0}](command:{1}){2} to create a skill the agent can load when relevant.",
|
|
98
|
+
6348,
|
|
99
|
+
"Use [{0}](command:{1} \"Run /create-skill\"){2} to create a skill the agent can load when relevant.",
|
|
100
100
|
"/create-skill",
|
|
101
101
|
GENERATE_SKILL_COMMAND_ID,
|
|
102
102
|
kb
|
|
@@ -111,8 +111,8 @@ const TIP_CATALOG = [{
|
|
|
111
111
|
buildMessage(ctx) {
|
|
112
112
|
const kb = formatKeybinding(ctx, "workbench.action.chat.openPlan");
|
|
113
113
|
return (new MarkdownString(localize(
|
|
114
|
-
|
|
115
|
-
"Try the [{0}](command:workbench.action.chat.openPlan){1} to research and plan before implementing changes.",
|
|
114
|
+
6349,
|
|
115
|
+
"Try the [{0}](command:workbench.action.chat.openPlan \"Start Plan Mode\"){1} to research and plan before implementing changes.",
|
|
116
116
|
"Plan agent",
|
|
117
117
|
kb
|
|
118
118
|
)));
|
|
@@ -125,7 +125,7 @@ const TIP_CATALOG = [{
|
|
|
125
125
|
tier: ChatTipTier.Qol,
|
|
126
126
|
buildMessage() {
|
|
127
127
|
return (new MarkdownString(localize(
|
|
128
|
-
|
|
128
|
+
6350,
|
|
129
129
|
"Reference files or folders with # to give the agent more context about the task."
|
|
130
130
|
)));
|
|
131
131
|
},
|
|
@@ -141,7 +141,7 @@ const TIP_CATALOG = [{
|
|
|
141
141
|
tier: ChatTipTier.Qol,
|
|
142
142
|
buildMessage() {
|
|
143
143
|
return (new MarkdownString(localize(
|
|
144
|
-
|
|
144
|
+
6351,
|
|
145
145
|
"Select a code block in the editor and right-click to access more AI actions."
|
|
146
146
|
)));
|
|
147
147
|
},
|
|
@@ -151,7 +151,7 @@ const TIP_CATALOG = [{
|
|
|
151
151
|
tier: ChatTipTier.Qol,
|
|
152
152
|
buildMessage() {
|
|
153
153
|
return (new MarkdownString(localize(
|
|
154
|
-
|
|
154
|
+
6352,
|
|
155
155
|
"Hover a previous request and select \"Restore Checkpoint\" to undo changes after that point in the chat conversation."
|
|
156
156
|
)));
|
|
157
157
|
},
|
|
@@ -165,7 +165,7 @@ const TIP_CATALOG = [{
|
|
|
165
165
|
tier: ChatTipTier.Qol,
|
|
166
166
|
buildMessage() {
|
|
167
167
|
return (new MarkdownString(localize(
|
|
168
|
-
|
|
168
|
+
6353,
|
|
169
169
|
"Steer the agent mid-task by sending follow-up messages. They queue and apply in order."
|
|
170
170
|
)));
|
|
171
171
|
},
|
|
@@ -180,8 +180,8 @@ const TIP_CATALOG = [{
|
|
|
180
180
|
buildMessage(ctx) {
|
|
181
181
|
const kb = formatKeybinding(ctx, INSERT_FORK_CONVERSATION_COMMAND_ID);
|
|
182
182
|
return (new MarkdownString(localize(
|
|
183
|
-
|
|
184
|
-
"Use [{0}](command:{1}){2} to branch the conversation. Explore a different approach without losing the original context.",
|
|
183
|
+
6354,
|
|
184
|
+
"Use [{0}](command:{1} \"Run /fork\"){2} to branch the conversation. Explore a different approach without losing the original context.",
|
|
185
185
|
"/fork",
|
|
186
186
|
INSERT_FORK_CONVERSATION_COMMAND_ID,
|
|
187
187
|
kb
|
|
@@ -197,8 +197,8 @@ const TIP_CATALOG = [{
|
|
|
197
197
|
tier: ChatTipTier.Qol,
|
|
198
198
|
buildMessage() {
|
|
199
199
|
return (new MarkdownString(localize(
|
|
200
|
-
|
|
201
|
-
"Enable [{0}](command:workbench.action.openSettings?%5B%22workbench.browser.enableChatTools%22%5D) to let the agent open and interact with pages in the Integrated Browser.",
|
|
200
|
+
6355,
|
|
201
|
+
"Enable [{0}](command:workbench.action.openSettings?%5B%22workbench.browser.enableChatTools%22%5D \"Open Settings\") to let the agent open and interact with pages in the Integrated Browser.",
|
|
202
202
|
"agentic browser integration"
|
|
203
203
|
)));
|
|
204
204
|
},
|
|
@@ -210,7 +210,7 @@ const TIP_CATALOG = [{
|
|
|
210
210
|
tier: ChatTipTier.Qol,
|
|
211
211
|
buildMessage() {
|
|
212
212
|
return (new MarkdownString(localize(
|
|
213
|
-
|
|
213
|
+
6356,
|
|
214
214
|
"Ask the agent to draw an architectural diagram or flow chart. It can render Mermaid diagrams directly in chat."
|
|
215
215
|
)));
|
|
216
216
|
},
|
|
@@ -220,9 +220,10 @@ const TIP_CATALOG = [{
|
|
|
220
220
|
id: "tip.subagents",
|
|
221
221
|
tier: ChatTipTier.Qol,
|
|
222
222
|
buildMessage() {
|
|
223
|
-
return (new MarkdownString(
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
return (new MarkdownString(localize(
|
|
224
|
+
6357,
|
|
225
|
+
"Have another task to work on? Start a new session to run multiple agents at once."
|
|
226
|
+
)));
|
|
226
227
|
},
|
|
227
228
|
when: ( ChatContextKeys.chatModeKind.isEqualTo(ChatModeKind.Agent)),
|
|
228
229
|
excludeWhenToolsInvoked: ["runSubagent"]
|
|
@@ -231,8 +232,8 @@ const TIP_CATALOG = [{
|
|
|
231
232
|
tier: ChatTipTier.Qol,
|
|
232
233
|
buildMessage() {
|
|
233
234
|
return (new MarkdownString(localize(
|
|
234
|
-
|
|
235
|
-
"Customize the loading messages shown while the agent works with [{0}](command:workbench.action.openSettings?%5B%22{1}%22%5D).",
|
|
235
|
+
6358,
|
|
236
|
+
"Customize the loading messages shown while the agent works with [{0}](command:workbench.action.openSettings?%5B%22{1}%22%5D \"Open Settings\").",
|
|
236
237
|
"thinking phrases",
|
|
237
238
|
ChatConfiguration.ThinkingPhrases
|
|
238
239
|
)));
|
|
@@ -240,6 +241,34 @@ const TIP_CATALOG = [{
|
|
|
240
241
|
when: ( ChatContextKeys.chatModeKind.isEqualTo(ChatModeKind.Agent)),
|
|
241
242
|
excludeWhenSettingsChanged: [ChatConfiguration.ThinkingPhrases],
|
|
242
243
|
dismissWhenCommandsClicked: ["workbench.action.openSettings"]
|
|
244
|
+
}, {
|
|
245
|
+
id: "tip.autoAcceptDelay",
|
|
246
|
+
tier: ChatTipTier.Qol,
|
|
247
|
+
buildMessage() {
|
|
248
|
+
return (new MarkdownString(localize(
|
|
249
|
+
6359,
|
|
250
|
+
"Configure [{0}](command:workbench.action.openSettings?%5B%22chat.editing.autoAcceptDelay%22%5D \"Open Settings\") to automatically accept changes from the agent after a short countdown.",
|
|
251
|
+
"auto-accept delay"
|
|
252
|
+
)));
|
|
253
|
+
},
|
|
254
|
+
when: ( ContextKeyExpr.or(( ChatContextKeys.chatModeKind.isEqualTo(ChatModeKind.Agent)), ( ChatContextKeys.chatModeKind.isEqualTo(ChatModeKind.Edit)))),
|
|
255
|
+
excludeWhenSettingsChanged: ["chat.editing.autoAcceptDelay"],
|
|
256
|
+
dismissWhenCommandsClicked: ["workbench.action.openSettings"]
|
|
257
|
+
}, {
|
|
258
|
+
id: "tip.troubleshoot",
|
|
259
|
+
tier: ChatTipTier.Qol,
|
|
260
|
+
buildMessage(ctx) {
|
|
261
|
+
const kb = formatKeybinding(ctx, INSERT_TROUBLESHOOT_COMMAND_ID);
|
|
262
|
+
return (new MarkdownString(localize(
|
|
263
|
+
6360,
|
|
264
|
+
"Something not working? Type [{0}](command:{1} \"Run /troubleshoot\"){2} <question> to diagnose issues from debug logs.",
|
|
265
|
+
"/troubleshoot",
|
|
266
|
+
INSERT_TROUBLESHOOT_COMMAND_ID,
|
|
267
|
+
kb
|
|
268
|
+
)));
|
|
269
|
+
},
|
|
270
|
+
when: ( ChatContextKeys.chatSessionType.isEqualTo(localChatSessionType)),
|
|
271
|
+
excludeWhenToolsInvoked: ["listDebugEvents"]
|
|
243
272
|
}];
|
|
244
273
|
|
|
245
274
|
export { ChatTipTier, TIP_CATALOG, extractCommandIds };
|
|
@@ -606,7 +606,7 @@ let ChatTipService = class ChatTipService extends Disposable {
|
|
|
606
606
|
keybindingService: this._keybindingService
|
|
607
607
|
};
|
|
608
608
|
const rawMessage = tipDef.buildMessage(ctx);
|
|
609
|
-
const prefixedMessage = ( localize(
|
|
609
|
+
const prefixedMessage = ( localize(6361, "**Tip:** {0}", rawMessage.value));
|
|
610
610
|
const enabledCommands = extractCommandIds(prefixedMessage);
|
|
611
611
|
const markdown = ( new MarkdownString(prefixedMessage, {
|
|
612
612
|
isTrusted: enabledCommands.length > 0 ? {
|
|
@@ -77,12 +77,12 @@ let ChatWindowNotifier = class ChatWindowNotifier extends Disposable {
|
|
|
77
77
|
mode: FocusMode.Notify
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
const notificationTitle = info.title ? ( localize(
|
|
80
|
+
const notificationTitle = info.title ? ( localize(6362, "Session: {0}", info.title)) : ( localize(6363, "Untitled Session"));
|
|
81
81
|
const cts = ( new CancellationTokenSource());
|
|
82
82
|
this._activeNotifications.set(sessionResource, toDisposable(() => cts.dispose(true)));
|
|
83
83
|
const isQuestionCarousel = this._isQuestionCarouselPending(sessionResource);
|
|
84
84
|
try {
|
|
85
|
-
const actionLabel = isQuestionCarousel ? ( localize(
|
|
85
|
+
const actionLabel = isQuestionCarousel ? ( localize(6364, "Open Session")) : ( localize(6365, "Allow"));
|
|
86
86
|
const result = await this._hostService.showToast({
|
|
87
87
|
title: this._sanitizeOSToastText(notificationTitle),
|
|
88
88
|
body: this._getNotificationBody(sessionResource, info, isQuestionCarousel),
|
|
@@ -121,7 +121,7 @@ let ChatWindowNotifier = class ChatWindowNotifier extends Disposable {
|
|
|
121
121
|
}
|
|
122
122
|
_getNotificationBody(sessionResource, info, isQuestionCarousel) {
|
|
123
123
|
if (isQuestionCarousel) {
|
|
124
|
-
return localize(
|
|
124
|
+
return localize(6366, "Questions need your input.");
|
|
125
125
|
}
|
|
126
126
|
const terminalCommand = this._getPendingTerminalCommand(sessionResource);
|
|
127
127
|
if (terminalCommand) {
|
|
@@ -130,7 +130,7 @@ let ChatWindowNotifier = class ChatWindowNotifier extends Disposable {
|
|
|
130
130
|
if (info.detail) {
|
|
131
131
|
return this._sanitizeOSToastText(info.detail);
|
|
132
132
|
}
|
|
133
|
-
return localize(
|
|
133
|
+
return localize(6367, "Approval needed to continue.");
|
|
134
134
|
}
|
|
135
135
|
_getPendingTerminalCommand(sessionResource) {
|
|
136
136
|
const model = this._chatService.getSession(sessionResource);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
3
|
+
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
4
|
+
import { IExtensionsWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service";
|
|
5
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
6
|
+
import { IPluginMarketplaceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service";
|
|
7
|
+
export declare class AgentPluginRecommendations extends Disposable implements IWorkbenchContribution {
|
|
8
|
+
private readonly _chatService;
|
|
9
|
+
private readonly _pluginMarketplaceService;
|
|
10
|
+
private readonly _notificationService;
|
|
11
|
+
private readonly _extensionsWorkbenchService;
|
|
12
|
+
static readonly ID = "workbench.contrib.agentPluginRecommendations";
|
|
13
|
+
private _hasNotified;
|
|
14
|
+
constructor(_chatService: IChatService, _pluginMarketplaceService: IPluginMarketplaceService, _notificationService: INotificationService, _extensionsWorkbenchService: IExtensionsWorkbenchService);
|
|
15
|
+
private _checkForRecommendedPlugins;
|
|
16
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
|
+
import { NeverShowAgainScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
6
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
7
|
+
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
8
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
9
|
+
import { IPluginMarketplaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service';
|
|
10
|
+
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
11
|
+
|
|
12
|
+
let AgentPluginRecommendations = class AgentPluginRecommendations extends Disposable {
|
|
13
|
+
static {
|
|
14
|
+
this.ID = "workbench.contrib.agentPluginRecommendations";
|
|
15
|
+
}
|
|
16
|
+
constructor(
|
|
17
|
+
_chatService,
|
|
18
|
+
_pluginMarketplaceService,
|
|
19
|
+
_notificationService,
|
|
20
|
+
_extensionsWorkbenchService
|
|
21
|
+
) {
|
|
22
|
+
super();
|
|
23
|
+
this._chatService = _chatService;
|
|
24
|
+
this._pluginMarketplaceService = _pluginMarketplaceService;
|
|
25
|
+
this._notificationService = _notificationService;
|
|
26
|
+
this._extensionsWorkbenchService = _extensionsWorkbenchService;
|
|
27
|
+
this._hasNotified = false;
|
|
28
|
+
this._register(this._chatService.onDidSubmitRequest(() => {
|
|
29
|
+
if (!this._hasNotified) {
|
|
30
|
+
this._hasNotified = true;
|
|
31
|
+
this._checkForRecommendedPlugins();
|
|
32
|
+
}
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
_checkForRecommendedPlugins() {
|
|
36
|
+
const recommended = this._pluginMarketplaceService.recommendedPlugins.get();
|
|
37
|
+
if (recommended.size === 0) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const installedKeys = ( new Set());
|
|
41
|
+
for (const entry of this._pluginMarketplaceService.installedPlugins.get()) {
|
|
42
|
+
const key = `${entry.plugin.name}@${entry.plugin.marketplace}`;
|
|
43
|
+
installedKeys.add(key);
|
|
44
|
+
}
|
|
45
|
+
let uninstalledCount = 0;
|
|
46
|
+
for (const key of recommended) {
|
|
47
|
+
if (!( installedKeys.has(key))) {
|
|
48
|
+
uninstalledCount++;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (uninstalledCount === 0) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this._notificationService.prompt(Severity.Info, uninstalledCount === 1 ? ( localize(6368, "This workspace recommends 1 agent plugin.")) : ( localize(6369, "This workspace recommends {0} agent plugins.", uninstalledCount)), [{
|
|
55
|
+
label: ( localize(6370, "Show Plugins")),
|
|
56
|
+
run: () => {
|
|
57
|
+
this._extensionsWorkbenchService.openSearch("@agentPlugins @recommended");
|
|
58
|
+
}
|
|
59
|
+
}], {
|
|
60
|
+
neverShowAgain: {
|
|
61
|
+
id: "agentPluginRecommendations.dismissed",
|
|
62
|
+
scope: NeverShowAgainScope.WORKSPACE,
|
|
63
|
+
isSecondary: true
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
AgentPluginRecommendations = ( __decorate([( __param(0, IChatService)), ( __param(1, IPluginMarketplaceService)), ( __param(2, INotificationService)), ( __param(3, IExtensionsWorkbenchService))], AgentPluginRecommendations));
|
|
69
|
+
|
|
70
|
+
export { AgentPluginRecommendations };
|
|
@@ -13,8 +13,8 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
13
13
|
function createDefaultModelArrays() {
|
|
14
14
|
return {
|
|
15
15
|
modelIds: [""],
|
|
16
|
-
modelLabels: [( localize(
|
|
17
|
-
modelDescriptions: [( localize(
|
|
16
|
+
modelLabels: [( localize(6371, "Auto (Vendor Default)"))],
|
|
17
|
+
modelDescriptions: [( localize(6372, "Use the vendor's default model"))]
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
let DefaultModelContribution = class DefaultModelContribution extends Disposable {
|
|
@@ -46,8 +46,8 @@ let DefaultModelContribution = class DefaultModelContribution extends Disposable
|
|
|
46
46
|
modelLabels.length = 0;
|
|
47
47
|
modelDescriptions.length = 0;
|
|
48
48
|
modelIds.push("");
|
|
49
|
-
modelLabels.push(( localize(
|
|
50
|
-
modelDescriptions.push(( localize(
|
|
49
|
+
modelLabels.push(( localize(6371, "Auto (Vendor Default)")));
|
|
50
|
+
modelDescriptions.push(( localize(6372, "Use the vendor's default model")));
|
|
51
51
|
const models = [];
|
|
52
52
|
const allModelIds = this._languageModelsService.getLanguageModelIds();
|
|
53
53
|
for (const modelId of allModelIds) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Action, IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
2
|
+
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
3
|
+
import { ContributionEnablementState, IEnablementModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/enablement";
|
|
4
|
+
/**
|
|
5
|
+
* Creates the four standard enablement actions (Enable, Enable Workspace,
|
|
6
|
+
* Disable, Disable Workspace) for a contribution identified by a string key.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createEnablementActions(key: string, enablementModel: IEnablementModel, idPrefix: string): [
|
|
9
|
+
enable: Action,
|
|
10
|
+
enableWorkspace: Action,
|
|
11
|
+
disable: Action,
|
|
12
|
+
disableWorkspace: Action
|
|
13
|
+
];
|
|
14
|
+
/**
|
|
15
|
+
* Builds the standard enablement context-menu action group for a
|
|
16
|
+
* contribution. Returns either the enable or disable actions depending
|
|
17
|
+
* on the current state, with workspace variants included only when a
|
|
18
|
+
* workspace is open.
|
|
19
|
+
*/
|
|
20
|
+
export declare function buildEnablementContextMenuGroup(enablementState: ContributionEnablementState, key: string, enablementModel: IEnablementModel, workspaceContextService: IWorkspaceContextService, idPrefix: string): IAction[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
5
|
+
import { ContributionEnablementState, isContributionDisabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/enablement';
|
|
6
|
+
|
|
7
|
+
function createEnablementActions(key, enablementModel, idPrefix) {
|
|
8
|
+
return [( new Action(`${idPrefix}.enable`, ( localize(6373, "Enable")), undefined, true, () => {
|
|
9
|
+
enablementModel.setEnabled(key, ContributionEnablementState.EnabledProfile);
|
|
10
|
+
return Promise.resolve();
|
|
11
|
+
})), ( new Action(`${idPrefix}.enableForWorkspace`, ( localize(6374, "Enable (Workspace)")), undefined, true, () => {
|
|
12
|
+
enablementModel.setEnabled(key, ContributionEnablementState.EnabledWorkspace);
|
|
13
|
+
return Promise.resolve();
|
|
14
|
+
})), ( new Action(`${idPrefix}.disable`, ( localize(6375, "Disable")), undefined, true, () => {
|
|
15
|
+
enablementModel.setEnabled(key, ContributionEnablementState.DisabledProfile);
|
|
16
|
+
return Promise.resolve();
|
|
17
|
+
})), ( new Action(`${idPrefix}.disableForWorkspace`, ( localize(6376, "Disable (Workspace)")), undefined, true, () => {
|
|
18
|
+
enablementModel.setEnabled(key, ContributionEnablementState.DisabledWorkspace);
|
|
19
|
+
return Promise.resolve();
|
|
20
|
+
}))];
|
|
21
|
+
}
|
|
22
|
+
function buildEnablementContextMenuGroup(enablementState, key, enablementModel, workspaceContextService, idPrefix) {
|
|
23
|
+
const hasWorkspace = workspaceContextService.getWorkbenchState() !== WorkbenchState.EMPTY;
|
|
24
|
+
const [enable, enableWorkspace, disable, disableWorkspace] = createEnablementActions(key, enablementModel, idPrefix);
|
|
25
|
+
const actions = [];
|
|
26
|
+
if (isContributionDisabled(enablementState)) {
|
|
27
|
+
actions.push(enable);
|
|
28
|
+
if (hasWorkspace) {
|
|
29
|
+
actions.push(enableWorkspace);
|
|
30
|
+
}
|
|
31
|
+
} else {
|
|
32
|
+
actions.push(disable);
|
|
33
|
+
if (hasWorkspace) {
|
|
34
|
+
actions.push(disableWorkspace);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return actions;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { buildEnablementContextMenuGroup, createEnablementActions };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
3
|
+
import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service";
|
|
4
|
+
import { ContributionEnablementState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/enablement";
|
|
5
|
+
/**
|
|
6
|
+
* A small reusable widget that renders an enablement status message inside
|
|
7
|
+
* a `.status` container, matching the style used by the extension and MCP
|
|
8
|
+
* server editors. The message is shown only when the contribution is
|
|
9
|
+
* disabled and is rendered as markdown with a theme icon prefix.
|
|
10
|
+
*/
|
|
11
|
+
export declare class EnablementStatusWidget extends Disposable {
|
|
12
|
+
private readonly _container;
|
|
13
|
+
private readonly _labels;
|
|
14
|
+
private readonly _markdownRendererService;
|
|
15
|
+
private readonly _renderDisposables;
|
|
16
|
+
constructor(_container: HTMLElement, enablement: IObservable<ContributionEnablementState>, _labels: {
|
|
17
|
+
disabledProfile: string;
|
|
18
|
+
disabledWorkspace: string;
|
|
19
|
+
}, _markdownRendererService: IMarkdownRendererService);
|
|
20
|
+
private _render;
|
|
21
|
+
}
|
|
22
|
+
/** Default labels for plugin enablement status. */
|
|
23
|
+
export declare const pluginEnablementLabels: {
|
|
24
|
+
disabledProfile: string;
|
|
25
|
+
disabledWorkspace: string;
|
|
26
|
+
};
|
|
27
|
+
/** Default labels for MCP server enablement status. */
|
|
28
|
+
export declare const mcpServerEnablementLabels: {
|
|
29
|
+
disabledProfile: string;
|
|
30
|
+
disabledWorkspace: string;
|
|
31
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { reset } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
5
|
+
import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
6
|
+
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
8
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
9
|
+
import { IMarkdownRendererService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service';
|
|
10
|
+
import { ContributionEnablementState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/enablement';
|
|
11
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
12
|
+
|
|
13
|
+
let EnablementStatusWidget = class EnablementStatusWidget extends Disposable {
|
|
14
|
+
constructor(_container, enablement, _labels, _markdownRendererService) {
|
|
15
|
+
super();
|
|
16
|
+
this._container = _container;
|
|
17
|
+
this._labels = _labels;
|
|
18
|
+
this._markdownRendererService = _markdownRendererService;
|
|
19
|
+
this._renderDisposables = this._register(( new MutableDisposable()));
|
|
20
|
+
this._register(autorun(reader => {
|
|
21
|
+
this._render(enablement.read(reader));
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
_render(state) {
|
|
25
|
+
reset(this._container);
|
|
26
|
+
this._renderDisposables.value = undefined;
|
|
27
|
+
let message;
|
|
28
|
+
if (state === ContributionEnablementState.DisabledProfile) {
|
|
29
|
+
message = this._labels.disabledProfile;
|
|
30
|
+
} else if (state === ContributionEnablementState.DisabledWorkspace) {
|
|
31
|
+
message = this._labels.disabledWorkspace;
|
|
32
|
+
}
|
|
33
|
+
if (!message) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const markdown = ( new MarkdownString("", {
|
|
37
|
+
isTrusted: true,
|
|
38
|
+
supportThemeIcons: true
|
|
39
|
+
}));
|
|
40
|
+
markdown.appendMarkdown(`$(${Codicon.info.id}) `);
|
|
41
|
+
markdown.appendText(message);
|
|
42
|
+
const rendered = this._markdownRendererService.render(markdown);
|
|
43
|
+
this._renderDisposables.value = rendered;
|
|
44
|
+
this._container.appendChild(rendered.element);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
EnablementStatusWidget = ( __decorate([( __param(3, IMarkdownRendererService))], EnablementStatusWidget));
|
|
48
|
+
const pluginEnablementLabels = {
|
|
49
|
+
disabledProfile: ( localize(6377, "This plugin is disabled.")),
|
|
50
|
+
disabledWorkspace: ( localize(6378, "This plugin is disabled for this workspace."))
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { EnablementStatusWidget, pluginEnablementLabels };
|
|
@@ -3,6 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
4
4
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
5
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
7
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
7
8
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
8
9
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -300,6 +301,32 @@ let ChatLanguageModelsDataContribution = class ChatLanguageModelsDataContributio
|
|
|
300
301
|
}
|
|
301
302
|
updateSchema(registry) {
|
|
302
303
|
const vendors = this.languageModelsService.getVendors();
|
|
304
|
+
const modelSchemas = [];
|
|
305
|
+
const modelIds = this.languageModelsService.getLanguageModelIds();
|
|
306
|
+
for (const modelId of modelIds) {
|
|
307
|
+
const metadata = this.languageModelsService.lookupLanguageModel(modelId);
|
|
308
|
+
if (metadata?.configurationSchema) {
|
|
309
|
+
modelSchemas.push({
|
|
310
|
+
if: {
|
|
311
|
+
properties: {
|
|
312
|
+
vendor: {
|
|
313
|
+
const: metadata.vendor
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
then: {
|
|
318
|
+
properties: {
|
|
319
|
+
settings: {
|
|
320
|
+
type: "object",
|
|
321
|
+
properties: {
|
|
322
|
+
[metadata.id]: metadata.configurationSchema
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
}
|
|
303
330
|
const schema = {
|
|
304
331
|
type: "array",
|
|
305
332
|
items: {
|
|
@@ -310,9 +337,13 @@ let ChatLanguageModelsDataContribution = class ChatLanguageModelsDataContributio
|
|
|
310
337
|
},
|
|
311
338
|
name: {
|
|
312
339
|
type: "string"
|
|
340
|
+
},
|
|
341
|
+
settings: {
|
|
342
|
+
type: "object",
|
|
343
|
+
description: ( localize(6379, "Per-model settings"))
|
|
313
344
|
}
|
|
314
345
|
},
|
|
315
|
-
allOf: ( vendors.map(vendor => ({
|
|
346
|
+
allOf: [...( vendors.map(vendor => ({
|
|
316
347
|
if: {
|
|
317
348
|
properties: {
|
|
318
349
|
vendor: {
|
|
@@ -321,7 +352,7 @@ let ChatLanguageModelsDataContribution = class ChatLanguageModelsDataContributio
|
|
|
321
352
|
}
|
|
322
353
|
},
|
|
323
354
|
then: vendor.configuration
|
|
324
|
-
}))),
|
|
355
|
+
}))), ...modelSchemas],
|
|
325
356
|
required: ["vendor", "name"]
|
|
326
357
|
}
|
|
327
358
|
};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
1
2
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
4
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
2
5
|
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
3
6
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
4
7
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
5
8
|
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
9
|
+
import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
|
|
10
|
+
import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
6
11
|
import { IAgentPluginRepositoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service";
|
|
12
|
+
import { IUpdateAllPluginsOptions, IUpdateAllPluginsResult } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService";
|
|
7
13
|
import { IPluginInstallService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service";
|
|
8
14
|
import { IMarketplacePlugin } from "../common/plugins/pluginMarketplaceService.js";
|
|
9
15
|
import { IPluginMarketplaceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service";
|
|
@@ -14,10 +20,23 @@ export declare class PluginInstallService implements IPluginInstallService {
|
|
|
14
20
|
private readonly _notificationService;
|
|
15
21
|
private readonly _dialogService;
|
|
16
22
|
private readonly _logService;
|
|
23
|
+
private readonly _progressService;
|
|
24
|
+
private readonly _commandService;
|
|
25
|
+
private readonly _quickInputService;
|
|
26
|
+
private readonly _configurationService;
|
|
17
27
|
readonly _serviceBrand: undefined;
|
|
18
|
-
constructor(_pluginRepositoryService: IAgentPluginRepositoryService, _pluginMarketplaceService: IPluginMarketplaceService, _fileService: IFileService, _notificationService: INotificationService, _dialogService: IDialogService, _logService: ILogService);
|
|
28
|
+
constructor(_pluginRepositoryService: IAgentPluginRepositoryService, _pluginMarketplaceService: IPluginMarketplaceService, _fileService: IFileService, _notificationService: INotificationService, _dialogService: IDialogService, _logService: ILogService, _progressService: IProgressService, _commandService: ICommandService, _quickInputService: IQuickInputService, _configurationService: IConfigurationService);
|
|
19
29
|
installPlugin(plugin: IMarketplacePlugin): Promise<void>;
|
|
20
|
-
|
|
30
|
+
installPluginFromSource(source: string): Promise<void>;
|
|
31
|
+
validatePluginSource(source: string): string | undefined;
|
|
32
|
+
installPluginFromValidatedSource(source: string): Promise<{
|
|
33
|
+
success: boolean;
|
|
34
|
+
message?: string;
|
|
35
|
+
}>;
|
|
36
|
+
private _doInstallFromSource;
|
|
37
|
+
private _addMarketplaceToConfig;
|
|
38
|
+
updatePlugin(plugin: IMarketplacePlugin, silent?: boolean): Promise<boolean>;
|
|
39
|
+
updateAllPlugins(options: IUpdateAllPluginsOptions, token: CancellationToken): Promise<IUpdateAllPluginsResult>;
|
|
21
40
|
getPluginInstallUri(plugin: IMarketplacePlugin): URI;
|
|
22
41
|
private _ensureMarketplaceTrusted;
|
|
23
42
|
private _installRelativePathPlugin;
|