@codingame/monaco-vscode-chat-service-override 28.4.0 → 29.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +18 -12
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +300 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.js +31 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +84 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +16 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +488 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +424 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +50 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +202 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/notifications.d.ts +114 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +723 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +33 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +40 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +22 -0
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +29 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +59 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +76 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +162 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +167 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +52 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +195 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +97 -88
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +78 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +174 -170
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +118 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +23 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +341 -196
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +79 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +22 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +85 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +668 -214
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +306 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +84 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +651 -81
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +31 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +9 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -142
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +25 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +297 -123
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +153 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +111 -171
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +5 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +277 -186
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +31 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +4 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +18 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +112 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +16 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +41 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +35 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +1 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +8 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +13 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +29 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +14 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +79 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +113 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +18 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +54 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +103 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +48 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +28 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +62 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +21 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +17 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +43 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +194 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +81 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +23 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +19 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +105 -172
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +80 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +56 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +70 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +33 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +21 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +362 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +90 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +146 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +33 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +200 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +90 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +21 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +22 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +28 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +20 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +68 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +57 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +21 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +171 -57
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +206 -35
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +44 -22
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +450 -301
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +165 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +34 -20
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +209 -144
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +205 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.js +47 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalSkill.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +191 -159
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +210 -233
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +19 -26
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +183 -193
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +75 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +97 -35
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +67 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +62 -23
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +23 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +50 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +21 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +124 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +20 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +10 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +46 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +74 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +24 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +5 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +66 -64
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +5 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +32 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +390 -114
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +21 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +70 -51
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +61 -51
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +94 -76
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +112 -21
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +0 -53
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +0 -219
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +0 -89
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +0 -251
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -123
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +0 -278
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +0 -76
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +0 -299
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +0 -67
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +0 -263
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +0 -85
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +0 -397
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +0 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +0 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +0 -30
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +0 -28
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -190
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -20
|
@@ -1,76 +0,0 @@
|
|
|
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 { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
-
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
5
|
-
import { IActiveSessionItem } from "../../sessions/browser/sessionsManagementService.js";
|
|
6
|
-
import { ISessionsManagementService } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/sessions/browser/sessionsManagementService.service";
|
|
7
|
-
import { IJSONEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/jsonEditing.service";
|
|
8
|
-
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
9
|
-
import { IPreferencesService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service";
|
|
10
|
-
import { ITerminalService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
11
|
-
import { CommandString } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/taskConfiguration";
|
|
12
|
-
import { ISessionsConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service";
|
|
13
|
-
export type TaskStorageTarget = "user" | "workspace";
|
|
14
|
-
/**
|
|
15
|
-
* Shape of a single task entry inside tasks.json.
|
|
16
|
-
*/
|
|
17
|
-
export interface ITaskEntry {
|
|
18
|
-
readonly label: string;
|
|
19
|
-
readonly task?: CommandString;
|
|
20
|
-
readonly script?: string;
|
|
21
|
-
readonly type?: string;
|
|
22
|
-
readonly command?: string;
|
|
23
|
-
readonly args?: CommandString[];
|
|
24
|
-
readonly inSessions?: boolean;
|
|
25
|
-
readonly windows?: {
|
|
26
|
-
command?: string;
|
|
27
|
-
args?: CommandString[];
|
|
28
|
-
};
|
|
29
|
-
readonly osx?: {
|
|
30
|
-
command?: string;
|
|
31
|
-
args?: CommandString[];
|
|
32
|
-
};
|
|
33
|
-
readonly linux?: {
|
|
34
|
-
command?: string;
|
|
35
|
-
args?: CommandString[];
|
|
36
|
-
};
|
|
37
|
-
readonly [key: string]: unknown;
|
|
38
|
-
}
|
|
39
|
-
export declare class SessionsConfigurationService extends Disposable implements ISessionsConfigurationService {
|
|
40
|
-
private readonly _fileService;
|
|
41
|
-
private readonly _jsonEditingService;
|
|
42
|
-
private readonly _preferencesService;
|
|
43
|
-
private readonly _terminalService;
|
|
44
|
-
private readonly _sessionsManagementService;
|
|
45
|
-
private readonly _storageService;
|
|
46
|
-
readonly _serviceBrand: undefined;
|
|
47
|
-
private static readonly _LAST_RUN_TASK_LABELS_KEY;
|
|
48
|
-
private static readonly _SUPPORTED_TASK_TYPES;
|
|
49
|
-
private readonly _sessionTasks;
|
|
50
|
-
private readonly _fileWatcher;
|
|
51
|
-
/** Maps `cwd.toString() + command` to the terminal `instanceId`. */
|
|
52
|
-
private readonly _taskTerminals;
|
|
53
|
-
private readonly _lastRunTaskLabels;
|
|
54
|
-
private readonly _lastRunTaskObservables;
|
|
55
|
-
private _watchedResource;
|
|
56
|
-
private _lastRefreshedFolder;
|
|
57
|
-
constructor(_fileService: IFileService, _jsonEditingService: IJSONEditingService, _preferencesService: IPreferencesService, _terminalService: ITerminalService, _sessionsManagementService: ISessionsManagementService, _storageService: IStorageService);
|
|
58
|
-
getSessionTasks(session: IActiveSessionItem): IObservable<readonly ITaskEntry[]>;
|
|
59
|
-
getNonSessionTasks(session: IActiveSessionItem): Promise<readonly ITaskEntry[]>;
|
|
60
|
-
addTaskToSessions(task: ITaskEntry, session: IActiveSessionItem, target: TaskStorageTarget): Promise<void>;
|
|
61
|
-
createAndAddTask(command: string, session: IActiveSessionItem, target: TaskStorageTarget): Promise<ITaskEntry | undefined>;
|
|
62
|
-
runTask(task: ITaskEntry, session: IActiveSessionItem): Promise<void>;
|
|
63
|
-
getLastRunTaskLabel(repository: URI | undefined): IObservable<string | undefined>;
|
|
64
|
-
private _getExistingTerminalInstance;
|
|
65
|
-
private _getTasksJsonUri;
|
|
66
|
-
private _readTasksJson;
|
|
67
|
-
private _readAllTasks;
|
|
68
|
-
private _isSupportedTask;
|
|
69
|
-
private _resolveCommand;
|
|
70
|
-
private _appendArgs;
|
|
71
|
-
private _ensureFileWatch;
|
|
72
|
-
private _refreshSessionTasks;
|
|
73
|
-
private _commitTasksFile;
|
|
74
|
-
private _loadLastRunTaskLabels;
|
|
75
|
-
private _saveLastRunTaskLabels;
|
|
76
|
-
}
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { Disposable, MutableDisposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
5
|
-
import { isEqual, joinPath, dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
6
|
-
import { parse } from '@codingame/monaco-vscode-api/vscode/vs/base/common/jsonc';
|
|
7
|
-
import { isWindows, isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
8
|
-
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
9
|
-
import { TerminalLocation } from '@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal';
|
|
10
|
-
import { ISessionsManagementService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/sessions/browser/sessionsManagementService.service';
|
|
11
|
-
import { IJSONEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/jsonEditing.service';
|
|
12
|
-
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
13
|
-
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
14
|
-
import { IPreferencesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service';
|
|
15
|
-
import { ITerminalService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
16
|
-
import { CommandString } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/taskConfiguration';
|
|
17
|
-
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
18
|
-
import { transaction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/transaction';
|
|
19
|
-
|
|
20
|
-
var SessionsConfigurationService_1;
|
|
21
|
-
let SessionsConfigurationService = class SessionsConfigurationService extends Disposable {
|
|
22
|
-
static {
|
|
23
|
-
SessionsConfigurationService_1 = this;
|
|
24
|
-
}
|
|
25
|
-
static {
|
|
26
|
-
this._LAST_RUN_TASK_LABELS_KEY = "agentSessions.lastRunTaskLabels";
|
|
27
|
-
}
|
|
28
|
-
static {
|
|
29
|
-
this._SUPPORTED_TASK_TYPES = ( new Set(["shell", "npm"]));
|
|
30
|
-
}
|
|
31
|
-
constructor(
|
|
32
|
-
_fileService,
|
|
33
|
-
_jsonEditingService,
|
|
34
|
-
_preferencesService,
|
|
35
|
-
_terminalService,
|
|
36
|
-
_sessionsManagementService,
|
|
37
|
-
_storageService
|
|
38
|
-
) {
|
|
39
|
-
super();
|
|
40
|
-
this._fileService = _fileService;
|
|
41
|
-
this._jsonEditingService = _jsonEditingService;
|
|
42
|
-
this._preferencesService = _preferencesService;
|
|
43
|
-
this._terminalService = _terminalService;
|
|
44
|
-
this._sessionsManagementService = _sessionsManagementService;
|
|
45
|
-
this._storageService = _storageService;
|
|
46
|
-
this._sessionTasks = observableValue(this, []);
|
|
47
|
-
this._fileWatcher = this._register(( new MutableDisposable()));
|
|
48
|
-
this._taskTerminals = ( new Map());
|
|
49
|
-
this._lastRunTaskObservables = ( new Map());
|
|
50
|
-
this._lastRunTaskLabels = this._loadLastRunTaskLabels();
|
|
51
|
-
}
|
|
52
|
-
getSessionTasks(session) {
|
|
53
|
-
const folder = session.worktree ?? session.repository;
|
|
54
|
-
if (folder) {
|
|
55
|
-
this._ensureFileWatch(folder);
|
|
56
|
-
}
|
|
57
|
-
if (!isEqual(this._lastRefreshedFolder, folder)) {
|
|
58
|
-
this._lastRefreshedFolder = folder;
|
|
59
|
-
this._refreshSessionTasks(folder);
|
|
60
|
-
}
|
|
61
|
-
return this._sessionTasks;
|
|
62
|
-
}
|
|
63
|
-
async getNonSessionTasks(session) {
|
|
64
|
-
const allTasks = await this._readAllTasks(session);
|
|
65
|
-
return allTasks.filter(t => !t.inSessions);
|
|
66
|
-
}
|
|
67
|
-
async addTaskToSessions(task, session, target) {
|
|
68
|
-
const tasksJsonUri = this._getTasksJsonUri(session, target);
|
|
69
|
-
if (!tasksJsonUri) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const tasksJson = await this._readTasksJson(tasksJsonUri);
|
|
73
|
-
const tasks = tasksJson.tasks ?? [];
|
|
74
|
-
const index = tasks.findIndex(t => t.label === task.label);
|
|
75
|
-
if (index === -1) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
await this._jsonEditingService.write(tasksJsonUri, [{
|
|
79
|
-
path: ["tasks", index, "inSessions"],
|
|
80
|
-
value: true
|
|
81
|
-
}], true);
|
|
82
|
-
if (target === "workspace") {
|
|
83
|
-
await this._commitTasksFile(session);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
async createAndAddTask(command, session, target) {
|
|
87
|
-
const tasksJsonUri = this._getTasksJsonUri(session, target);
|
|
88
|
-
if (!tasksJsonUri) {
|
|
89
|
-
return undefined;
|
|
90
|
-
}
|
|
91
|
-
const tasksJson = await this._readTasksJson(tasksJsonUri);
|
|
92
|
-
const tasks = tasksJson.tasks ?? [];
|
|
93
|
-
const newTask = {
|
|
94
|
-
label: command,
|
|
95
|
-
type: "shell",
|
|
96
|
-
command,
|
|
97
|
-
inSessions: true
|
|
98
|
-
};
|
|
99
|
-
await this._jsonEditingService.write(tasksJsonUri, [{
|
|
100
|
-
path: ["version"],
|
|
101
|
-
value: tasksJson.version ?? "2.0.0"
|
|
102
|
-
}, {
|
|
103
|
-
path: ["tasks"],
|
|
104
|
-
value: [...tasks, newTask]
|
|
105
|
-
}], true);
|
|
106
|
-
if (target === "workspace") {
|
|
107
|
-
await this._commitTasksFile(session);
|
|
108
|
-
}
|
|
109
|
-
return newTask;
|
|
110
|
-
}
|
|
111
|
-
async runTask(task, session) {
|
|
112
|
-
const command = this._resolveCommand(task);
|
|
113
|
-
if (!command) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
const cwd = session.worktree ?? session.repository;
|
|
117
|
-
if (!cwd) {
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
const terminalKey = `${( cwd.toString())}${command}`;
|
|
121
|
-
let terminal = this._getExistingTerminalInstance(terminalKey);
|
|
122
|
-
if (!terminal) {
|
|
123
|
-
terminal = await this._terminalService.createTerminal({
|
|
124
|
-
location: TerminalLocation.Panel,
|
|
125
|
-
config: {
|
|
126
|
-
name: task.label
|
|
127
|
-
},
|
|
128
|
-
cwd
|
|
129
|
-
});
|
|
130
|
-
this._taskTerminals.set(terminalKey, terminal.instanceId);
|
|
131
|
-
}
|
|
132
|
-
await terminal.sendText(command, true);
|
|
133
|
-
this._terminalService.setActiveInstance(terminal);
|
|
134
|
-
await this._terminalService.revealActiveTerminal();
|
|
135
|
-
if (session.repository) {
|
|
136
|
-
const key = ( session.repository.toString());
|
|
137
|
-
this._lastRunTaskLabels.set(key, task.label);
|
|
138
|
-
this._saveLastRunTaskLabels();
|
|
139
|
-
const obs = this._lastRunTaskObservables.get(key);
|
|
140
|
-
if (obs) {
|
|
141
|
-
transaction(tx => obs.set(task.label, tx));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
getLastRunTaskLabel(repository) {
|
|
146
|
-
if (!repository) {
|
|
147
|
-
return observableValue("lastRunTaskLabel", undefined);
|
|
148
|
-
}
|
|
149
|
-
const key = ( repository.toString());
|
|
150
|
-
let obs = this._lastRunTaskObservables.get(key);
|
|
151
|
-
if (!obs) {
|
|
152
|
-
obs = observableValue("lastRunTaskLabel", this._lastRunTaskLabels.get(key));
|
|
153
|
-
this._lastRunTaskObservables.set(key, obs);
|
|
154
|
-
}
|
|
155
|
-
return obs;
|
|
156
|
-
}
|
|
157
|
-
_getExistingTerminalInstance(terminalKey) {
|
|
158
|
-
const instanceId = this._taskTerminals.get(terminalKey);
|
|
159
|
-
if (instanceId === undefined) {
|
|
160
|
-
return undefined;
|
|
161
|
-
}
|
|
162
|
-
const instance = this._terminalService.instances.find(i => i.instanceId === instanceId);
|
|
163
|
-
if (!instance || instance.hasChildProcesses) {
|
|
164
|
-
this._taskTerminals.delete(terminalKey);
|
|
165
|
-
return undefined;
|
|
166
|
-
}
|
|
167
|
-
return instance;
|
|
168
|
-
}
|
|
169
|
-
_getTasksJsonUri(session, target) {
|
|
170
|
-
if (target === "workspace") {
|
|
171
|
-
const folder = session.worktree ?? session.repository;
|
|
172
|
-
return folder ? joinPath(folder, ".vscode", "tasks.json") : undefined;
|
|
173
|
-
}
|
|
174
|
-
return joinPath(dirname(this._preferencesService.userSettingsResource), "tasks.json");
|
|
175
|
-
}
|
|
176
|
-
async _readTasksJson(uri) {
|
|
177
|
-
try {
|
|
178
|
-
const content = await this._fileService.readFile(uri);
|
|
179
|
-
return parse(( content.value.toString()));
|
|
180
|
-
} catch {
|
|
181
|
-
return {};
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
async _readAllTasks(session) {
|
|
185
|
-
const result = [];
|
|
186
|
-
const workspaceUri = this._getTasksJsonUri(session, "workspace");
|
|
187
|
-
if (workspaceUri) {
|
|
188
|
-
const workspaceJson = await this._readTasksJson(workspaceUri);
|
|
189
|
-
if (workspaceJson.tasks) {
|
|
190
|
-
result.push(...workspaceJson.tasks.filter(t => this._isSupportedTask(t)));
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
const userUri = this._getTasksJsonUri(session, "user");
|
|
194
|
-
if (userUri) {
|
|
195
|
-
const userJson = await this._readTasksJson(userUri);
|
|
196
|
-
if (userJson.tasks) {
|
|
197
|
-
result.push(...userJson.tasks.filter(t => this._isSupportedTask(t)));
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return result;
|
|
201
|
-
}
|
|
202
|
-
_isSupportedTask(task) {
|
|
203
|
-
return !!task.type && ( SessionsConfigurationService_1._SUPPORTED_TASK_TYPES.has(task.type));
|
|
204
|
-
}
|
|
205
|
-
_resolveCommand(task) {
|
|
206
|
-
if (task.type === "npm") {
|
|
207
|
-
if (!task.script) {
|
|
208
|
-
return undefined;
|
|
209
|
-
}
|
|
210
|
-
const base = task.path ? `npm --prefix ${task.path} run ${task.script}` : `npm run ${task.script}`;
|
|
211
|
-
return this._appendArgs(base, task.args);
|
|
212
|
-
}
|
|
213
|
-
let command;
|
|
214
|
-
let platformArgs;
|
|
215
|
-
if (isWindows && task.windows?.command) {
|
|
216
|
-
command = task.windows.command;
|
|
217
|
-
platformArgs = task.windows.args;
|
|
218
|
-
} else if (isMacintosh && task.osx?.command) {
|
|
219
|
-
command = task.osx.command;
|
|
220
|
-
platformArgs = task.osx.args;
|
|
221
|
-
} else if (!isWindows && !isMacintosh && task.linux?.command) {
|
|
222
|
-
command = task.linux.command;
|
|
223
|
-
platformArgs = task.linux.args;
|
|
224
|
-
} else {
|
|
225
|
-
command = task.command;
|
|
226
|
-
}
|
|
227
|
-
const args = platformArgs ?? task.args;
|
|
228
|
-
return this._appendArgs(command, args);
|
|
229
|
-
}
|
|
230
|
-
_appendArgs(command, args) {
|
|
231
|
-
if (!command) {
|
|
232
|
-
return undefined;
|
|
233
|
-
}
|
|
234
|
-
if (!args || args.length === 0) {
|
|
235
|
-
return command;
|
|
236
|
-
}
|
|
237
|
-
const resolvedArgs = ( args.map(a => CommandString.value(a))).join(" ");
|
|
238
|
-
return `${command} ${resolvedArgs}`;
|
|
239
|
-
}
|
|
240
|
-
_ensureFileWatch(folder) {
|
|
241
|
-
const tasksUri = joinPath(folder, ".vscode", "tasks.json");
|
|
242
|
-
if (this._watchedResource && ( this._watchedResource.toString()) === ( tasksUri.toString())) {
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
this._watchedResource = tasksUri;
|
|
246
|
-
const disposables = ( new DisposableStore());
|
|
247
|
-
disposables.add(this._fileService.watch(tasksUri));
|
|
248
|
-
disposables.add(this._fileService.onDidFilesChange(e => {
|
|
249
|
-
if (e.affects(tasksUri)) {
|
|
250
|
-
this._refreshSessionTasks(folder);
|
|
251
|
-
}
|
|
252
|
-
}));
|
|
253
|
-
this._fileWatcher.value = disposables;
|
|
254
|
-
}
|
|
255
|
-
async _refreshSessionTasks(folder) {
|
|
256
|
-
if (!folder) {
|
|
257
|
-
transaction(tx => this._sessionTasks.set([], tx));
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
const tasksUri = joinPath(folder, ".vscode", "tasks.json");
|
|
261
|
-
const tasksJson = await this._readTasksJson(tasksUri);
|
|
262
|
-
const sessionTasks = (tasksJson.tasks ?? []).filter(t => t.inSessions && this._isSupportedTask(t));
|
|
263
|
-
const userUri = joinPath(dirname(this._preferencesService.userSettingsResource), "tasks.json");
|
|
264
|
-
const userJson = await this._readTasksJson(userUri);
|
|
265
|
-
const userSessionTasks = (userJson.tasks ?? []).filter(t => t.inSessions && this._isSupportedTask(t));
|
|
266
|
-
transaction(tx => this._sessionTasks.set([...sessionTasks, ...userSessionTasks], tx));
|
|
267
|
-
}
|
|
268
|
-
async _commitTasksFile(session) {
|
|
269
|
-
const worktree = session.worktree;
|
|
270
|
-
if (!worktree) {
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
const tasksUri = joinPath(worktree, ".vscode", "tasks.json");
|
|
274
|
-
await this._sessionsManagementService.commitWorktreeFiles(session, [tasksUri]);
|
|
275
|
-
}
|
|
276
|
-
_loadLastRunTaskLabels() {
|
|
277
|
-
const raw = this._storageService.get(
|
|
278
|
-
SessionsConfigurationService_1._LAST_RUN_TASK_LABELS_KEY,
|
|
279
|
-
StorageScope.APPLICATION
|
|
280
|
-
);
|
|
281
|
-
if (raw) {
|
|
282
|
-
try {
|
|
283
|
-
return ( new Map(Object.entries(JSON.parse(raw))));
|
|
284
|
-
} catch {}
|
|
285
|
-
}
|
|
286
|
-
return ( new Map());
|
|
287
|
-
}
|
|
288
|
-
_saveLastRunTaskLabels() {
|
|
289
|
-
this._storageService.store(
|
|
290
|
-
SessionsConfigurationService_1._LAST_RUN_TASK_LABELS_KEY,
|
|
291
|
-
JSON.stringify(Object.fromEntries(this._lastRunTaskLabels)),
|
|
292
|
-
StorageScope.APPLICATION,
|
|
293
|
-
StorageTarget.USER
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
SessionsConfigurationService = SessionsConfigurationService_1 = ( __decorate([( __param(0, IFileService)), ( __param(1, IJSONEditingService)), ( __param(2, IPreferencesService)), ( __param(3, ITerminalService)), ( __param(4, ISessionsManagementService)), ( __param(5, IStorageService))], SessionsConfigurationService));
|
|
298
|
-
|
|
299
|
-
export { SessionsConfigurationService };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
-
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
-
import { FileSystemProviderCapabilities, FileType, IFileDeleteOptions, IFileOverwriteOptions, IFileSystemProviderWithFileReadWriteCapability, IFileWriteOptions, IStat, IFileChange } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
5
|
-
import { IRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request.service";
|
|
6
|
-
import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
|
|
7
|
-
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
8
|
-
export declare const GITHUB_REMOTE_FILE_SCHEME = "github-remote-file";
|
|
9
|
-
/**
|
|
10
|
-
* Derives a display name from a github-remote-file URI.
|
|
11
|
-
* Returns "repo (branch)" or just "repo" when on HEAD.
|
|
12
|
-
*/
|
|
13
|
-
export declare function getGitHubRemoteFileDisplayName(uri: URI): string | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* A readonly virtual filesystem provider backed by the GitHub REST API.
|
|
16
|
-
*
|
|
17
|
-
* URI format: github-remote-file://github/{owner}/{repo}/{ref}/{path...}
|
|
18
|
-
*
|
|
19
|
-
* For example: github-remote-file://github/microsoft/vscode/main/src/vs/base/common/uri.ts
|
|
20
|
-
*
|
|
21
|
-
* This provider fetches the full recursive tree from the GitHub Trees API on first
|
|
22
|
-
* access and caches it. Individual file contents are fetched on demand via the
|
|
23
|
-
* Blobs API.
|
|
24
|
-
*/
|
|
25
|
-
export declare class GitHubFileSystemProvider extends Disposable implements IFileSystemProviderWithFileReadWriteCapability {
|
|
26
|
-
private readonly requestService;
|
|
27
|
-
private readonly authenticationService;
|
|
28
|
-
private readonly logService;
|
|
29
|
-
private readonly _onDidChangeCapabilities;
|
|
30
|
-
readonly onDidChangeCapabilities: Event<void>;
|
|
31
|
-
readonly capabilities: FileSystemProviderCapabilities;
|
|
32
|
-
private readonly _onDidChangeFile;
|
|
33
|
-
readonly onDidChangeFile: Event<readonly IFileChange[]>;
|
|
34
|
-
/** Cache keyed by "owner/repo/ref" */
|
|
35
|
-
private readonly treeCache;
|
|
36
|
-
/** Negative cache for refs that returned 404, keyed by "owner/repo/ref" */
|
|
37
|
-
private readonly notFoundCache;
|
|
38
|
-
/** In-flight fetch promises keyed by "owner/repo/ref" to deduplicate concurrent requests */
|
|
39
|
-
private readonly pendingFetches;
|
|
40
|
-
/** Cache TTL - 5 minutes */
|
|
41
|
-
private static readonly CACHE_TTL_MS;
|
|
42
|
-
/** Negative cache TTL - 1 minute */
|
|
43
|
-
private static readonly NOT_FOUND_CACHE_TTL_MS;
|
|
44
|
-
constructor(requestService: IRequestService, authenticationService: IAuthenticationService, logService: ILogService);
|
|
45
|
-
/**
|
|
46
|
-
* Parse a github-remote-file URI into its components.
|
|
47
|
-
* Format: github-remote-file://github/{owner}/{repo}/{ref}/{path...}
|
|
48
|
-
*/
|
|
49
|
-
private parseUri;
|
|
50
|
-
private getCacheKey;
|
|
51
|
-
private getAuthToken;
|
|
52
|
-
private fetchTree;
|
|
53
|
-
private doFetchTree;
|
|
54
|
-
stat(resource: URI): Promise<IStat>;
|
|
55
|
-
readdir(resource: URI): Promise<[
|
|
56
|
-
string,
|
|
57
|
-
FileType
|
|
58
|
-
][]>;
|
|
59
|
-
readFile(resource: URI): Promise<Uint8Array>;
|
|
60
|
-
watch(): IDisposable;
|
|
61
|
-
writeFile(_resource: URI, _content: Uint8Array, _opts: IFileWriteOptions): Promise<void>;
|
|
62
|
-
mkdir(_resource: URI): Promise<void>;
|
|
63
|
-
delete(_resource: URI, _opts: IFileDeleteOptions): Promise<void>;
|
|
64
|
-
rename(_from: URI, _to: URI, _opts: IFileOverwriteOptions): Promise<void>;
|
|
65
|
-
invalidateCache(owner: string, repo: string, ref: string): void;
|
|
66
|
-
dispose(): void;
|
|
67
|
-
}
|