@codingame/monaco-vscode-chat-service-override 26.2.2 → 28.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 +35 -2
- package/package.json +5 -5
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +15 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +53 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +219 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +89 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +251 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +123 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +278 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +76 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +299 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +67 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +263 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +85 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +397 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +27 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +74 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +54 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +87 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +71 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +43 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +13 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +154 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -8
- 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 +53 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +18 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +49 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +537 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.js +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/media/agentPluginEditor.css +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +282 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +634 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +10 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +74 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +27 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +4 -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.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +90 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +20 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +43 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +84 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.d.ts → localAgentSessionsController.d.ts} +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.js → localAgentSessionsController.js} +24 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +179 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +987 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +246 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +878 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +165 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +692 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +936 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +702 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +30 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +36 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +622 -391
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +419 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +314 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +611 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +504 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +914 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +128 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +467 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +126 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +279 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +788 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +32 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +6 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +16 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +26 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +24 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +40 -413
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +38 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +56 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +15 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +138 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +166 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +37 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +394 -0
- 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 +118 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +245 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.js +234 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +88 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +624 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +88 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +28 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +175 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +489 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +364 -279
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +69 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +67 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +187 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +242 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +311 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +29 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +8 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +126 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +9 -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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +46 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +65 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +16 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +15 -6
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +28 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +190 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +208 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +19 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +261 -105
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +21 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +16 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +13 -4
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +144 -11
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +36 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +119 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +748 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +672 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +35 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +3 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +7 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +26 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +293 -94
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +86 -30
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +121 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +1422 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +48 -14
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +404 -132
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +40 -28
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +14 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +54 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +12 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +27 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +265 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +6 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +18 -81
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +10 -10
- 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 +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css +6 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +35 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +1 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +13 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/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 +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +302 -69
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +63 -21
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +46 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +0 -587
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -51
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +0 -71
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +0 -293
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.js +0 -31
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
|
+
/**
|
|
4
|
+
* The severity level of a chat debug log event.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ChatDebugLogLevel {
|
|
7
|
+
Trace = 0,
|
|
8
|
+
Info = 1,
|
|
9
|
+
Warning = 2,
|
|
10
|
+
Error = 3
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Common properties shared by all chat debug event types.
|
|
14
|
+
*/
|
|
15
|
+
export interface IChatDebugEventCommon {
|
|
16
|
+
readonly id?: string;
|
|
17
|
+
readonly sessionResource: URI;
|
|
18
|
+
readonly created: Date;
|
|
19
|
+
readonly parentEventId?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A tool call event in the chat debug log.
|
|
23
|
+
*/
|
|
24
|
+
export interface IChatDebugToolCallEvent extends IChatDebugEventCommon {
|
|
25
|
+
readonly kind: "toolCall";
|
|
26
|
+
readonly toolName: string;
|
|
27
|
+
readonly toolCallId?: string;
|
|
28
|
+
readonly input?: string;
|
|
29
|
+
readonly output?: string;
|
|
30
|
+
readonly result?: "success" | "error";
|
|
31
|
+
readonly durationInMillis?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A model turn event representing an LLM request/response.
|
|
35
|
+
*/
|
|
36
|
+
export interface IChatDebugModelTurnEvent extends IChatDebugEventCommon {
|
|
37
|
+
readonly kind: "modelTurn";
|
|
38
|
+
readonly model?: string;
|
|
39
|
+
readonly requestName?: string;
|
|
40
|
+
readonly inputTokens?: number;
|
|
41
|
+
readonly outputTokens?: number;
|
|
42
|
+
readonly totalTokens?: number;
|
|
43
|
+
readonly durationInMillis?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A generic log event for unstructured or miscellaneous messages.
|
|
47
|
+
*/
|
|
48
|
+
export interface IChatDebugGenericEvent extends IChatDebugEventCommon {
|
|
49
|
+
readonly kind: "generic";
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly details?: string;
|
|
52
|
+
readonly level: ChatDebugLogLevel;
|
|
53
|
+
readonly category?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A subagent invocation event, representing a spawned sub-agent within a session.
|
|
57
|
+
*/
|
|
58
|
+
export interface IChatDebugSubagentInvocationEvent extends IChatDebugEventCommon {
|
|
59
|
+
readonly kind: "subagentInvocation";
|
|
60
|
+
readonly agentName: string;
|
|
61
|
+
readonly description?: string;
|
|
62
|
+
readonly status?: "running" | "completed" | "failed";
|
|
63
|
+
readonly durationInMillis?: number;
|
|
64
|
+
readonly toolCallCount?: number;
|
|
65
|
+
readonly modelTurnCount?: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A named section within a user message or agent response.
|
|
69
|
+
*/
|
|
70
|
+
export interface IChatDebugMessageSection {
|
|
71
|
+
readonly name: string;
|
|
72
|
+
readonly content: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A user message event, representing the full prompt sent by the user.
|
|
76
|
+
*/
|
|
77
|
+
export interface IChatDebugUserMessageEvent extends IChatDebugEventCommon {
|
|
78
|
+
readonly kind: "userMessage";
|
|
79
|
+
readonly message: string;
|
|
80
|
+
readonly sections: readonly IChatDebugMessageSection[];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* An agent response event, representing the agent's response.
|
|
84
|
+
*/
|
|
85
|
+
export interface IChatDebugAgentResponseEvent extends IChatDebugEventCommon {
|
|
86
|
+
readonly kind: "agentResponse";
|
|
87
|
+
readonly message: string;
|
|
88
|
+
readonly sections: readonly IChatDebugMessageSection[];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Union of all internal chat debug event types.
|
|
92
|
+
*/
|
|
93
|
+
export type IChatDebugEvent = IChatDebugToolCallEvent | IChatDebugModelTurnEvent | IChatDebugGenericEvent | IChatDebugSubagentInvocationEvent | IChatDebugUserMessageEvent | IChatDebugAgentResponseEvent;
|
|
94
|
+
/**
|
|
95
|
+
* Plain text content for a resolved debug event.
|
|
96
|
+
*/
|
|
97
|
+
export interface IChatDebugEventTextContent {
|
|
98
|
+
readonly kind: "text";
|
|
99
|
+
readonly value: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The status of a file in a file list content.
|
|
103
|
+
*/
|
|
104
|
+
export type ChatDebugFileStatus = "loaded" | "skipped";
|
|
105
|
+
/**
|
|
106
|
+
* A single file entry in a file list content.
|
|
107
|
+
*/
|
|
108
|
+
export interface IChatDebugFileEntry {
|
|
109
|
+
readonly uri: URI;
|
|
110
|
+
readonly name?: string;
|
|
111
|
+
readonly status: ChatDebugFileStatus;
|
|
112
|
+
readonly storage?: string;
|
|
113
|
+
readonly extensionId?: string;
|
|
114
|
+
readonly skipReason?: string;
|
|
115
|
+
readonly errorMessage?: string;
|
|
116
|
+
readonly duplicateOf?: URI;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* A source folder entry in a file list content.
|
|
120
|
+
*/
|
|
121
|
+
export interface IChatDebugSourceFolderEntry {
|
|
122
|
+
readonly uri: URI;
|
|
123
|
+
readonly storage: string;
|
|
124
|
+
readonly exists: boolean;
|
|
125
|
+
readonly fileCount: number;
|
|
126
|
+
readonly errorMessage?: string;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Structured file list content for a resolved debug event.
|
|
130
|
+
* Contains resolved files and skipped/failed paths for rich rendering.
|
|
131
|
+
*/
|
|
132
|
+
export interface IChatDebugEventFileListContent {
|
|
133
|
+
readonly kind: "fileList";
|
|
134
|
+
readonly discoveryType: string;
|
|
135
|
+
readonly files: readonly IChatDebugFileEntry[];
|
|
136
|
+
readonly sourceFolders?: readonly IChatDebugSourceFolderEntry[];
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Structured message content for a resolved debug event,
|
|
140
|
+
* containing collapsible sections.
|
|
141
|
+
*/
|
|
142
|
+
export interface IChatDebugEventMessageContent {
|
|
143
|
+
readonly kind: "message";
|
|
144
|
+
readonly type: "user" | "agent";
|
|
145
|
+
readonly message: string;
|
|
146
|
+
readonly sections: readonly IChatDebugMessageSection[];
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Structured tool call content for a resolved debug event.
|
|
150
|
+
* Contains the tool name, status, arguments, and output for rich rendering.
|
|
151
|
+
*/
|
|
152
|
+
export interface IChatDebugEventToolCallContent {
|
|
153
|
+
readonly kind: "toolCall";
|
|
154
|
+
readonly toolName: string;
|
|
155
|
+
readonly result?: "success" | "error";
|
|
156
|
+
readonly durationInMillis?: number;
|
|
157
|
+
readonly input?: string;
|
|
158
|
+
readonly output?: string;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Structured model turn content for a resolved debug event.
|
|
162
|
+
* Contains request metadata, token usage, and timing for rich rendering.
|
|
163
|
+
*/
|
|
164
|
+
export interface IChatDebugEventModelTurnContent {
|
|
165
|
+
readonly kind: "modelTurn";
|
|
166
|
+
readonly requestName: string;
|
|
167
|
+
readonly model?: string;
|
|
168
|
+
readonly status?: string;
|
|
169
|
+
readonly durationInMillis?: number;
|
|
170
|
+
readonly timeToFirstTokenInMillis?: number;
|
|
171
|
+
readonly maxInputTokens?: number;
|
|
172
|
+
readonly maxOutputTokens?: number;
|
|
173
|
+
readonly inputTokens?: number;
|
|
174
|
+
readonly outputTokens?: number;
|
|
175
|
+
readonly cachedTokens?: number;
|
|
176
|
+
readonly totalTokens?: number;
|
|
177
|
+
readonly errorMessage?: string;
|
|
178
|
+
readonly sections?: readonly IChatDebugMessageSection[];
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Union of all resolved event content types.
|
|
182
|
+
*/
|
|
183
|
+
export type IChatDebugResolvedEventContent = IChatDebugEventTextContent | IChatDebugEventFileListContent | IChatDebugEventMessageContent | IChatDebugEventToolCallContent | IChatDebugEventModelTurnContent;
|
|
184
|
+
/**
|
|
185
|
+
* Provider interface for debug events.
|
|
186
|
+
*/
|
|
187
|
+
export interface IChatDebugLogProvider {
|
|
188
|
+
provideChatDebugLog(sessionResource: URI, token: CancellationToken): Promise<IChatDebugEvent[] | undefined>;
|
|
189
|
+
resolveChatDebugLogEvent?(eventId: string, token: CancellationToken): Promise<IChatDebugResolvedEventContent | undefined>;
|
|
190
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var ChatDebugLogLevel;
|
|
4
|
+
(function (ChatDebugLogLevel) {
|
|
5
|
+
ChatDebugLogLevel[ChatDebugLogLevel["Trace"] = 0] = "Trace";
|
|
6
|
+
ChatDebugLogLevel[ChatDebugLogLevel["Info"] = 1] = "Info";
|
|
7
|
+
ChatDebugLogLevel[ChatDebugLogLevel["Warning"] = 2] = "Warning";
|
|
8
|
+
ChatDebugLogLevel[ChatDebugLogLevel["Error"] = 3] = "Error";
|
|
9
|
+
})(ChatDebugLogLevel || (ChatDebugLogLevel = {}));
|
|
10
|
+
|
|
11
|
+
export { ChatDebugLogLevel };
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { ChatDebugLogLevel, IChatDebugEvent, IChatDebugLogProvider, IChatDebugResolvedEventContent } from "./chatDebugService.js";
|
|
5
|
+
import { IChatDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service";
|
|
6
|
+
export declare class ChatDebugServiceImpl extends Disposable implements IChatDebugService {
|
|
7
|
+
readonly _serviceBrand: undefined;
|
|
8
|
+
private static readonly MAX_EVENTS;
|
|
9
|
+
private readonly _buffer;
|
|
10
|
+
private _head;
|
|
11
|
+
private _size;
|
|
12
|
+
private readonly _onDidAddEvent;
|
|
13
|
+
readonly onDidAddEvent: Event<IChatDebugEvent>;
|
|
14
|
+
private readonly _onDidClearProviderEvents;
|
|
15
|
+
readonly onDidClearProviderEvents: Event<URI>;
|
|
16
|
+
private readonly _onDidAttachDebugData;
|
|
17
|
+
readonly onDidAttachDebugData: Event<URI>;
|
|
18
|
+
private readonly _debugDataAttachedSessions;
|
|
19
|
+
private readonly _providers;
|
|
20
|
+
private readonly _invocationCts;
|
|
21
|
+
/** Events that were returned by providers (not internally logged). */
|
|
22
|
+
private readonly _providerEvents;
|
|
23
|
+
activeSessionResource: URI | undefined;
|
|
24
|
+
log(sessionResource: URI, name: string, details?: string, level?: ChatDebugLogLevel, options?: {
|
|
25
|
+
id?: string;
|
|
26
|
+
category?: string;
|
|
27
|
+
parentEventId?: string;
|
|
28
|
+
}): void;
|
|
29
|
+
addEvent(event: IChatDebugEvent): void;
|
|
30
|
+
addProviderEvent(event: IChatDebugEvent): void;
|
|
31
|
+
getEvents(sessionResource?: URI): readonly IChatDebugEvent[];
|
|
32
|
+
getSessionResources(): readonly URI[];
|
|
33
|
+
clear(): void;
|
|
34
|
+
registerProvider(provider: IChatDebugLogProvider): IDisposable;
|
|
35
|
+
hasInvokedProviders(sessionResource: URI): boolean;
|
|
36
|
+
invokeProviders(sessionResource: URI): Promise<void>;
|
|
37
|
+
private _invokeProvider;
|
|
38
|
+
endSession(sessionResource: URI): void;
|
|
39
|
+
private _clearProviderEvents;
|
|
40
|
+
markDebugDataAttached(sessionResource: URI): void;
|
|
41
|
+
hasAttachedDebugData(sessionResource: URI): boolean;
|
|
42
|
+
resolveEvent(eventId: string): Promise<IChatDebugResolvedEventContent | undefined>;
|
|
43
|
+
dispose(): void;
|
|
44
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
|
|
2
|
+
import { CancellationTokenSource, CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
3
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
+
import { onUnexpectedError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
5
|
+
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
7
|
+
import { ChatDebugLogLevel } from './chatDebugService.js';
|
|
8
|
+
import { LocalChatSessionUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
9
|
+
|
|
10
|
+
class ChatDebugServiceImpl extends Disposable {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this._buffer = ( new Array(ChatDebugServiceImpl.MAX_EVENTS));
|
|
14
|
+
this._head = 0;
|
|
15
|
+
this._size = 0;
|
|
16
|
+
this._onDidAddEvent = this._register(( new Emitter()));
|
|
17
|
+
this.onDidAddEvent = this._onDidAddEvent.event;
|
|
18
|
+
this._onDidClearProviderEvents = this._register(( new Emitter()));
|
|
19
|
+
this.onDidClearProviderEvents = this._onDidClearProviderEvents.event;
|
|
20
|
+
this._onDidAttachDebugData = this._register(( new Emitter()));
|
|
21
|
+
this.onDidAttachDebugData = this._onDidAttachDebugData.event;
|
|
22
|
+
this._debugDataAttachedSessions = ( new ResourceMap());
|
|
23
|
+
this._providers = ( new Set());
|
|
24
|
+
this._invocationCts = ( new ResourceMap());
|
|
25
|
+
this._providerEvents = ( new WeakSet());
|
|
26
|
+
}
|
|
27
|
+
static {
|
|
28
|
+
this.MAX_EVENTS = 10_000;
|
|
29
|
+
}
|
|
30
|
+
log(sessionResource, name, details, level = ChatDebugLogLevel.Info, options) {
|
|
31
|
+
if (!LocalChatSessionUri.isLocalSession(sessionResource)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
this.addEvent({
|
|
35
|
+
kind: "generic",
|
|
36
|
+
id: options?.id,
|
|
37
|
+
sessionResource,
|
|
38
|
+
created: ( new Date()),
|
|
39
|
+
name,
|
|
40
|
+
details,
|
|
41
|
+
level,
|
|
42
|
+
category: options?.category,
|
|
43
|
+
parentEventId: options?.parentEventId
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
addEvent(event) {
|
|
47
|
+
const idx = (this._head + this._size) % ChatDebugServiceImpl.MAX_EVENTS;
|
|
48
|
+
this._buffer[idx] = event;
|
|
49
|
+
if (this._size < ChatDebugServiceImpl.MAX_EVENTS) {
|
|
50
|
+
this._size++;
|
|
51
|
+
} else {
|
|
52
|
+
this._head = (this._head + 1) % ChatDebugServiceImpl.MAX_EVENTS;
|
|
53
|
+
}
|
|
54
|
+
this._onDidAddEvent.fire(event);
|
|
55
|
+
}
|
|
56
|
+
addProviderEvent(event) {
|
|
57
|
+
this._providerEvents.add(event);
|
|
58
|
+
this.addEvent(event);
|
|
59
|
+
}
|
|
60
|
+
getEvents(sessionResource) {
|
|
61
|
+
const result = [];
|
|
62
|
+
const key = sessionResource?.toString();
|
|
63
|
+
for (let i = 0; i < this._size; i++) {
|
|
64
|
+
const event = this._buffer[(this._head + i) % ChatDebugServiceImpl.MAX_EVENTS];
|
|
65
|
+
if (!event) {
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (!key || ( event.sessionResource.toString()) === key) {
|
|
69
|
+
result.push(event);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
result.sort((a, b) => a.created.getTime() - b.created.getTime());
|
|
73
|
+
return result;
|
|
74
|
+
}
|
|
75
|
+
getSessionResources() {
|
|
76
|
+
const seen = ( new ResourceMap());
|
|
77
|
+
const result = [];
|
|
78
|
+
for (let i = 0; i < this._size; i++) {
|
|
79
|
+
const event = this._buffer[(this._head + i) % ChatDebugServiceImpl.MAX_EVENTS];
|
|
80
|
+
if (!event) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
if (!( seen.has(event.sessionResource))) {
|
|
84
|
+
seen.set(event.sessionResource, true);
|
|
85
|
+
result.push(event.sessionResource);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
clear() {
|
|
91
|
+
this._buffer.fill(undefined);
|
|
92
|
+
this._head = 0;
|
|
93
|
+
this._size = 0;
|
|
94
|
+
this._debugDataAttachedSessions.clear();
|
|
95
|
+
}
|
|
96
|
+
registerProvider(provider) {
|
|
97
|
+
this._providers.add(provider);
|
|
98
|
+
for (const [sessionResource, cts] of this._invocationCts) {
|
|
99
|
+
if (!cts.token.isCancellationRequested) {
|
|
100
|
+
this._invokeProvider(provider, sessionResource, cts.token).catch(onUnexpectedError);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return toDisposable(() => {
|
|
104
|
+
this._providers.delete(provider);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
hasInvokedProviders(sessionResource) {
|
|
108
|
+
return ( this._invocationCts.has(sessionResource));
|
|
109
|
+
}
|
|
110
|
+
async invokeProviders(sessionResource) {
|
|
111
|
+
if (!LocalChatSessionUri.isLocalSession(sessionResource)) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const existingCts = this._invocationCts.get(sessionResource);
|
|
115
|
+
if (existingCts) {
|
|
116
|
+
existingCts.cancel();
|
|
117
|
+
existingCts.dispose();
|
|
118
|
+
}
|
|
119
|
+
this._clearProviderEvents(sessionResource);
|
|
120
|
+
const cts = ( new CancellationTokenSource());
|
|
121
|
+
this._invocationCts.set(sessionResource, cts);
|
|
122
|
+
try {
|
|
123
|
+
const promises = ( [...this._providers].map(provider => this._invokeProvider(provider, sessionResource, cts.token)));
|
|
124
|
+
await Promise.allSettled(promises);
|
|
125
|
+
} catch (err) {
|
|
126
|
+
onUnexpectedError(err);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
async _invokeProvider(provider, sessionResource, token) {
|
|
130
|
+
try {
|
|
131
|
+
const events = await provider.provideChatDebugLog(sessionResource, token);
|
|
132
|
+
if (events) {
|
|
133
|
+
for (const event of events) {
|
|
134
|
+
this.addProviderEvent({
|
|
135
|
+
...event,
|
|
136
|
+
sessionResource: event.sessionResource ?? sessionResource
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
} catch (err) {
|
|
141
|
+
onUnexpectedError(err);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
endSession(sessionResource) {
|
|
145
|
+
const cts = this._invocationCts.get(sessionResource);
|
|
146
|
+
if (cts) {
|
|
147
|
+
cts.cancel();
|
|
148
|
+
cts.dispose();
|
|
149
|
+
this._invocationCts.delete(sessionResource);
|
|
150
|
+
}
|
|
151
|
+
this._debugDataAttachedSessions.delete(sessionResource);
|
|
152
|
+
}
|
|
153
|
+
_clearProviderEvents(sessionResource) {
|
|
154
|
+
const key = ( sessionResource.toString());
|
|
155
|
+
let write = 0;
|
|
156
|
+
for (let i = 0; i < this._size; i++) {
|
|
157
|
+
const idx = (this._head + i) % ChatDebugServiceImpl.MAX_EVENTS;
|
|
158
|
+
const event = this._buffer[idx];
|
|
159
|
+
if (event && ( this._providerEvents.has(event)) && ( event.sessionResource.toString()) === key) {
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if (write !== i) {
|
|
163
|
+
const writeIdx = (this._head + write) % ChatDebugServiceImpl.MAX_EVENTS;
|
|
164
|
+
this._buffer[writeIdx] = event;
|
|
165
|
+
}
|
|
166
|
+
write++;
|
|
167
|
+
}
|
|
168
|
+
for (let i = write; i < this._size; i++) {
|
|
169
|
+
this._buffer[(this._head + i) % ChatDebugServiceImpl.MAX_EVENTS] = undefined;
|
|
170
|
+
}
|
|
171
|
+
this._size = write;
|
|
172
|
+
this._onDidClearProviderEvents.fire(sessionResource);
|
|
173
|
+
}
|
|
174
|
+
markDebugDataAttached(sessionResource) {
|
|
175
|
+
if (!( this._debugDataAttachedSessions.has(sessionResource))) {
|
|
176
|
+
this._debugDataAttachedSessions.set(sessionResource, true);
|
|
177
|
+
this._onDidAttachDebugData.fire(sessionResource);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
hasAttachedDebugData(sessionResource) {
|
|
181
|
+
return ( this._debugDataAttachedSessions.has(sessionResource));
|
|
182
|
+
}
|
|
183
|
+
async resolveEvent(eventId) {
|
|
184
|
+
for (const provider of this._providers) {
|
|
185
|
+
if (provider.resolveChatDebugLogEvent) {
|
|
186
|
+
try {
|
|
187
|
+
const resolved = await provider.resolveChatDebugLogEvent(eventId, CancellationToken.None);
|
|
188
|
+
if (resolved !== undefined) {
|
|
189
|
+
return resolved;
|
|
190
|
+
}
|
|
191
|
+
} catch (err) {
|
|
192
|
+
onUnexpectedError(err);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return undefined;
|
|
197
|
+
}
|
|
198
|
+
dispose() {
|
|
199
|
+
for (const cts of ( this._invocationCts.values())) {
|
|
200
|
+
cts.cancel();
|
|
201
|
+
cts.dispose();
|
|
202
|
+
}
|
|
203
|
+
this._invocationCts.clear();
|
|
204
|
+
super.dispose();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export { ChatDebugServiceImpl };
|
|
@@ -7,8 +7,11 @@ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
7
7
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
8
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
9
9
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
10
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
10
11
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
11
12
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
13
|
+
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
14
|
+
import { IChatDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service";
|
|
12
15
|
import { IMcpService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes.service";
|
|
13
16
|
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
|
|
14
17
|
import { ChatModel, IChatModel, IChatRequestModel, IChatRequestVariableData, IExportableChatData, ISerializableChatData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
@@ -19,10 +22,12 @@ import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/wor
|
|
|
19
22
|
import { IChatSlashCommandService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service";
|
|
20
23
|
import { IChatTransferService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatTransferService.service";
|
|
21
24
|
import { ChatAgentLocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
|
|
25
|
+
import { ILanguageModelsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service";
|
|
22
26
|
import { IPromptsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service";
|
|
23
27
|
export declare class ChatService extends Disposable implements IChatService {
|
|
24
28
|
private readonly storageService;
|
|
25
29
|
private readonly logService;
|
|
30
|
+
private readonly telemetryService;
|
|
26
31
|
private readonly extensionService;
|
|
27
32
|
private readonly instantiationService;
|
|
28
33
|
private readonly workspaceContextService;
|
|
@@ -33,6 +38,9 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
33
38
|
private readonly chatSessionService;
|
|
34
39
|
private readonly mcpService;
|
|
35
40
|
private readonly promptsService;
|
|
41
|
+
private readonly chatEntitlementService;
|
|
42
|
+
private readonly languageModelsService;
|
|
43
|
+
private readonly chatDebugService;
|
|
36
44
|
_serviceBrand: undefined;
|
|
37
45
|
private readonly _sessionModels;
|
|
38
46
|
private readonly _pendingRequests;
|
|
@@ -43,6 +51,7 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
43
51
|
private readonly _onDidSubmitRequest;
|
|
44
52
|
readonly onDidSubmitRequest: Event<{
|
|
45
53
|
readonly chatSessionResource: URI;
|
|
54
|
+
readonly message?: IParsedChatRequest;
|
|
46
55
|
}>;
|
|
47
56
|
get onDidCreateModel(): Event<ChatModel>;
|
|
48
57
|
private readonly _onDidPerformUserAction;
|
|
@@ -71,9 +80,8 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
71
80
|
* For test use only
|
|
72
81
|
*/
|
|
73
82
|
waitForModelDisposals(): Promise<void>;
|
|
74
|
-
get edits2Enabled(): boolean;
|
|
75
83
|
private get isEmptyWindow();
|
|
76
|
-
constructor(storageService: IStorageService, logService: ILogService, extensionService: IExtensionService, instantiationService: IInstantiationService, workspaceContextService: IWorkspaceContextService, chatSlashCommandService: IChatSlashCommandService, chatAgentService: IChatAgentService, configurationService: IConfigurationService, chatTransferService: IChatTransferService, chatSessionService: IChatSessionsService, mcpService: IMcpService, promptsService: IPromptsService);
|
|
84
|
+
constructor(storageService: IStorageService, logService: ILogService, telemetryService: ITelemetryService, extensionService: IExtensionService, instantiationService: IInstantiationService, workspaceContextService: IWorkspaceContextService, chatSlashCommandService: IChatSlashCommandService, chatAgentService: IChatAgentService, configurationService: IConfigurationService, chatTransferService: IChatTransferService, chatSessionService: IChatSessionsService, mcpService: IMcpService, promptsService: IPromptsService, chatEntitlementService: IChatEntitlementService, languageModelsService: ILanguageModelsService, chatDebugService: IChatDebugService);
|
|
77
85
|
get editingSessions(): import("@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService").IChatEditingSession[];
|
|
78
86
|
isEnabled(location: ChatAgentLocation): boolean;
|
|
79
87
|
private migrateData;
|
|
@@ -113,16 +121,17 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
113
121
|
private shouldBeInHistory;
|
|
114
122
|
removeHistoryEntry(sessionResource: URI): Promise<void>;
|
|
115
123
|
clearAllHistoryEntries(): Promise<void>;
|
|
116
|
-
|
|
124
|
+
startNewLocalSession(location: ChatAgentLocation, options?: IChatSessionStartOptions): IChatModelReference;
|
|
117
125
|
private _startSession;
|
|
118
126
|
private initializeSession;
|
|
119
127
|
activateDefaultAgent(location: ChatAgentLocation): Promise<void>;
|
|
120
128
|
getSession(sessionResource: URI): IChatModel | undefined;
|
|
121
|
-
|
|
122
|
-
|
|
129
|
+
acquireExistingSession(sessionResource: URI): IChatModelReference | undefined;
|
|
130
|
+
private acquireOrRestoreLocalSession;
|
|
123
131
|
getSessionTitle(sessionResource: URI): string | undefined;
|
|
124
|
-
|
|
125
|
-
|
|
132
|
+
loadSessionFromData(data: IExportableChatData | ISerializableChatData): IChatModelReference;
|
|
133
|
+
acquireOrLoadSession(sessionResource: URI, location: ChatAgentLocation, token: CancellationToken): Promise<IChatModelReference | undefined>;
|
|
134
|
+
private loadRemoteSession;
|
|
126
135
|
getChatSessionFromInternalUri(sessionResource: URI): IChatSessionContext | undefined;
|
|
127
136
|
resendRequest(request: IChatRequestModel, options?: IChatSendRequestOptions): Promise<void>;
|
|
128
137
|
private queuePendingRequest;
|
|
@@ -134,6 +143,7 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
134
143
|
/**
|
|
135
144
|
* Process the next pending request from the model's queue, if any.
|
|
136
145
|
* Called after a request completes to continue processing queued requests.
|
|
146
|
+
* Multiple consecutive steering requests are combined into a single request.
|
|
137
147
|
*/
|
|
138
148
|
private processNextPendingRequest;
|
|
139
149
|
private generateInitialChatTitleIfNeeded;
|
|
@@ -142,7 +152,7 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
142
152
|
removeRequest(sessionResource: URI, requestId: string): Promise<void>;
|
|
143
153
|
adoptRequest(sessionResource: URI, request: IChatRequestModel): Promise<void>;
|
|
144
154
|
addCompleteRequest(sessionResource: URI, message: IParsedChatRequest | string, variableData: IChatRequestVariableData | undefined, attempt: number | undefined, response: IChatCompleteResponse): Promise<void>;
|
|
145
|
-
cancelCurrentRequestForSession(sessionResource: URI): void;
|
|
155
|
+
cancelCurrentRequestForSession(sessionResource: URI, source?: string): void;
|
|
146
156
|
setYieldRequested(sessionResource: URI): void;
|
|
147
157
|
removePendingRequest(sessionResource: URI, requestId: string): void;
|
|
148
158
|
setPendingRequests(sessionResource: URI, requests: readonly {
|
|
@@ -153,7 +163,7 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
153
163
|
transferChatSession(transferredSessionResource: URI, toWorkspace: URI): Promise<void>;
|
|
154
164
|
getChatStorageFolder(): URI;
|
|
155
165
|
logChatIndex(): void;
|
|
156
|
-
|
|
166
|
+
setSessionTitle(sessionResource: URI, title: string): void;
|
|
157
167
|
appendProgress(request: IChatRequestModel, progress: IChatProgress): void;
|
|
158
168
|
private toLocalSessionId;
|
|
159
169
|
}
|