@codingame/monaco-vscode-chat-service-override 30.0.0 → 31.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 +21 -3
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +125 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +393 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +65 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +453 -0
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +28 -0
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +81 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +75 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +180 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +202 -51
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +182 -0
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +282 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +303 -32
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.js +9 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.d.ts +30 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.js +662 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +12 -5
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +9 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.d.ts +17 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.js +5 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +5 -5
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +42 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.js +7 -0
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +118 -0
- package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +551 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +22 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +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.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +113 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +81 -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 +47 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +15 -10
- 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 +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +13 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +15 -14
- 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 +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +58 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +24 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +29 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.js +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +65 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +28 -28
- 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/aiCustomization/aiCustomizationDebugPanel.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +80 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +20 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +30 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +131 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +363 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +31 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +374 -764
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +222 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +20 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +269 -123
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.js +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +249 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +5 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +14 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +113 -58
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +202 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +246 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +162 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +306 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +581 -257
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +245 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +25 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +3 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +103 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +80 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +20 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +128 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +28 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -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 +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.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +11 -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 +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +10 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +4 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +4 -310
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +3 -30
- 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 +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +61 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +0 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +46 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +17 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +96 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +21 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +15 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +315 -263
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +196 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +56 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +26 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +48 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +2 -2
- 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 +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +11 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +226 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/telemetry/chatModelCountTelemetry.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/telemetry/chatModelCountTelemetry.js +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +108 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +7 -7
- 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.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +9 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +21 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +26 -59
- 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 +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +46 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugEvents.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugEvents.js +60 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +32 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +152 -26
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +5 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +265 -261
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +28 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +75 -7
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +9 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +32 -4
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +10 -25
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +7 -52
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +58 -466
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +36 -18
- 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 +0 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +168 -182
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +49 -29
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +491 -462
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +18 -12
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +24 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +145 -68
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +19 -17
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +5 -17
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +77 -157
- 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 +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +29 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +12 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +49 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +9 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +13 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +319 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +8 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +2 -2
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.d.ts +21 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.js +35 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +0 -94
- package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +0 -16
- package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +0 -578
- package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +0 -206
- package/vscode/src/vs/platform/agentHost/common/state/protocol/notifications.d.ts +0 -114
- package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +0 -860
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +0 -27
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +0 -58
- package/vscode/src/vs/platform/browserElements/common/browserElements.js +0 -16
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +0 -18
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +0 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/media/simpleBrowserOverlay.css +0 -85
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +0 -443
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +0 -132
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatUsageWidget.css +0 -69
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +0 -66
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +0 -158
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +0 -142
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +0 -164
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +0 -163
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +0 -142
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +0 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +0 -137
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +0 -174
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +0 -39
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +0 -249
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +0 -92
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +0 -209
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +0 -106
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +0 -392
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +0 -243
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +0 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +0 -310
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +0 -168
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +0 -25
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +0 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +0 -21
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +0 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +0 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +0 -33
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +0 -28
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +0 -118
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +0 -1019
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +0 -49
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +0 -23
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +0 -150
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +0 -1619
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +0 -41
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +0 -118
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.js +0 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +0 -130
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +0 -122
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +0 -482
package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js
CHANGED
|
@@ -62,7 +62,7 @@ let ChatAgentHoverParticipant = class ChatAgentHoverParticipant {
|
|
|
62
62
|
return ( new RenderedHoverParts([renderedHoverPart]));
|
|
63
63
|
}
|
|
64
64
|
getAccessibleContent(hoverPart) {
|
|
65
|
-
return localize(
|
|
65
|
+
return localize(7211, "There is a chat agent hover part here.");
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
ChatAgentHoverParticipant = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IChatWidgetService)), ( __param(3, ICommandService))], ChatAgentHoverParticipant));
|
|
@@ -249,11 +249,11 @@ let QuickChat = class QuickChat extends Disposable {
|
|
|
249
249
|
const sentiment = this.chatEntitlementService.sentimentObs.read(reader);
|
|
250
250
|
const anonymous = this.chatEntitlementService.anonymousObs.read(reader);
|
|
251
251
|
const requestInProgress = this.chatService.requestInProgressObs.read(reader);
|
|
252
|
-
const showDisclaimer = !sentiment.
|
|
252
|
+
const showDisclaimer = !sentiment.completed && anonymous && !requestInProgress;
|
|
253
253
|
disclaimerElement.classList.toggle("hidden", !showDisclaimer);
|
|
254
254
|
if (showDisclaimer) {
|
|
255
255
|
const renderedMarkdown = disposables.add(this.markdownRendererService.render(( new MarkdownString(( localize(
|
|
256
|
-
|
|
256
|
+
7258,
|
|
257
257
|
"By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
|
|
258
258
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
259
259
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
@@ -363,7 +363,8 @@ let QuickChat = class QuickChat extends Disposable {
|
|
|
363
363
|
}
|
|
364
364
|
updateModel() {
|
|
365
365
|
this.modelRef ??= this.chatService.startNewLocalSession(ChatAgentLocation.Chat, {
|
|
366
|
-
disableBackgroundKeepAlive: true
|
|
366
|
+
disableBackgroundKeepAlive: true,
|
|
367
|
+
debugOwner: "ChatQuick#updateModel"
|
|
367
368
|
});
|
|
368
369
|
const model = this.modelRef?.object;
|
|
369
370
|
if (!model) {
|
|
@@ -119,6 +119,14 @@ let ChatEditor = class ChatEditor extends AbstractEditorWithViewState {
|
|
|
119
119
|
this._register(this.widget.onDidSubmitAgent(() => {
|
|
120
120
|
this.group.pinEditor(this.input);
|
|
121
121
|
}));
|
|
122
|
+
this._register(this.widget.onDidChangeViewModel(e => {
|
|
123
|
+
if (e.currentSessionResource && this.input instanceof ChatEditorInput) {
|
|
124
|
+
const newModel = this.chatService.getSession(e.currentSessionResource);
|
|
125
|
+
if (newModel) {
|
|
126
|
+
this.input.updateModel(newModel);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}));
|
|
122
130
|
this.widget.render(parent);
|
|
123
131
|
this.widget.setVisible(true);
|
|
124
132
|
}
|
|
@@ -174,7 +182,7 @@ let ChatEditor = class ChatEditor extends AbstractEditorWithViewState {
|
|
|
174
182
|
let isContributedChatSession = false;
|
|
175
183
|
const chatSessionType = input.getSessionType();
|
|
176
184
|
if (chatSessionType !== localChatSessionType) {
|
|
177
|
-
const loadingMessage = ( localize(
|
|
185
|
+
const loadingMessage = ( localize(7259, "Loading..."));
|
|
178
186
|
this.showLoadingInChatWidget(loadingMessage);
|
|
179
187
|
}
|
|
180
188
|
await super.setInput(input, options, context, token);
|
|
@@ -20,6 +20,7 @@ import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbe
|
|
|
20
20
|
import { IChatModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
21
21
|
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
22
22
|
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
23
|
+
import { AgentSessionsControl } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl";
|
|
23
24
|
import { ChatWidget } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatWidget";
|
|
24
25
|
import { IViewWelcomeDelegate } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController";
|
|
25
26
|
import { IChatViewsWelcomeDescriptor } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome";
|
|
@@ -58,7 +59,6 @@ export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelega
|
|
|
58
59
|
private restoringSession;
|
|
59
60
|
private readonly loadSessionCts;
|
|
60
61
|
private readonly modelRef;
|
|
61
|
-
private readonly _previousModelRef;
|
|
62
62
|
private readonly activityBadge;
|
|
63
63
|
constructor(options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, storageService: IStorageService, chatService: IChatService, chatAgentService: IChatAgentService, logService: ILogService, notificationService: INotificationService, layoutService: IWorkbenchLayoutService, chatSessionsService: IChatSessionsService, telemetryService: ITelemetryService, lifecycleService: ILifecycleService, progressService: IProgressService, agentSessionsService: IAgentSessionsService, chatEntitlementService: IChatEntitlementService, commandService: ICommandService, activityService: IActivityService, workbenchEnvironmentService: IWorkbenchEnvironmentService, hostService: IHostService);
|
|
64
64
|
private updateContextKeys;
|
|
@@ -81,6 +81,7 @@ export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelega
|
|
|
81
81
|
private sessionsNewButtonContainer;
|
|
82
82
|
private sessionsControlContainer;
|
|
83
83
|
private sessionsControl;
|
|
84
|
+
get agentSessionsControl(): AgentSessionsControl | undefined;
|
|
84
85
|
private sessionsViewerVisible;
|
|
85
86
|
private sessionsViewerOrientation;
|
|
86
87
|
private sessionsViewerOrientationConfiguration;
|
|
@@ -143,7 +143,6 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
143
143
|
this.lastDimensionsPerOrientation = ( new Map());
|
|
144
144
|
this.loadSessionCts = this._register(( new MutableDisposable()));
|
|
145
145
|
this.modelRef = this._register(( new MutableDisposable()));
|
|
146
|
-
this._previousModelRef = this._register(( new MutableDisposable()));
|
|
147
146
|
this.activityBadge = this._register(( new MutableDisposable()));
|
|
148
147
|
this.sessionsViewerOrientation = AgentSessionsViewerOrientation.Stacked;
|
|
149
148
|
this.sessionsViewerOrientationConfiguration = "sideBySide";
|
|
@@ -234,6 +233,21 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
234
233
|
}
|
|
235
234
|
registerListeners() {
|
|
236
235
|
this._register(this.chatAgentService.onDidChangeAgents(() => this.onDidChangeAgents()));
|
|
236
|
+
this._register(this.chatSessionsService.onDidCommitSession(async e => {
|
|
237
|
+
if (!this.modelRef.value) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
if (!isEqual(e.original, this.modelRef.value.object.sessionResource)) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
const modelRef = await this.chatService.acquireOrLoadSession(
|
|
244
|
+
e.committed,
|
|
245
|
+
ChatAgentLocation.Chat,
|
|
246
|
+
CancellationToken.None,
|
|
247
|
+
"ChatViewPane#onDidCommitSession"
|
|
248
|
+
);
|
|
249
|
+
await this.showModel(CancellationToken.None, modelRef);
|
|
250
|
+
}));
|
|
237
251
|
this._register(Event.any(Event.filter(
|
|
238
252
|
this.configurationService.onDidChangeConfiguration,
|
|
239
253
|
e => e.affectsConfiguration("workbench.sideBar.location")
|
|
@@ -252,7 +266,12 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
252
266
|
if (this.chatAgentService.getDefaultAgent(ChatAgentLocation.Chat)) {
|
|
253
267
|
if (!this._widget?.viewModel && !this.restoringSession) {
|
|
254
268
|
const sessionResource = this.getTransferredOrPersistedSessionInfo();
|
|
255
|
-
this.restoringSession = (sessionResource ? this.chatService.acquireOrLoadSession(
|
|
269
|
+
this.restoringSession = (sessionResource ? this.chatService.acquireOrLoadSession(
|
|
270
|
+
sessionResource,
|
|
271
|
+
ChatAgentLocation.Chat,
|
|
272
|
+
CancellationToken.None,
|
|
273
|
+
"ChatViewPane#onDidChangeAgents"
|
|
274
|
+
) : Promise.resolve(undefined)).then(async modelRef => {
|
|
256
275
|
if (!this._widget) {
|
|
257
276
|
return;
|
|
258
277
|
}
|
|
@@ -312,11 +331,14 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
312
331
|
static {
|
|
313
332
|
this.SESSIONS_SIDEBAR_VIEW_MIN_WIDTH = this.CHAT_WIDGET_DEFAULT_WIDTH + this.SESSIONS_SIDEBAR_DEFAULT_WIDTH;
|
|
314
333
|
}
|
|
334
|
+
get agentSessionsControl() {
|
|
335
|
+
return this.sessionsControl;
|
|
336
|
+
}
|
|
315
337
|
createSessionsControl(parent) {
|
|
316
338
|
const sessionsContainer = this.sessionsContainer = parent.appendChild($(".agent-sessions-container"));
|
|
317
339
|
const sessionsTitleContainer = this.sessionsTitleContainer = append(sessionsContainer, $(".agent-sessions-title-container"));
|
|
318
340
|
const sessionsTitle = this.sessionsTitle = append(sessionsTitleContainer, $("span.agent-sessions-title"));
|
|
319
|
-
sessionsTitle.textContent = ( localize(
|
|
341
|
+
sessionsTitle.textContent = ( localize(7278, "Sessions"));
|
|
320
342
|
this._register(addDisposableListener(sessionsTitle, EventType.CLICK, () => {
|
|
321
343
|
this.sessionsControl?.scrollToTop();
|
|
322
344
|
this.sessionsControl?.focus();
|
|
@@ -344,7 +366,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
344
366
|
...defaultButtonStyles,
|
|
345
367
|
secondary: true
|
|
346
368
|
})));
|
|
347
|
-
newSessionButton.label = ( localize(
|
|
369
|
+
newSessionButton.label = ( localize(7279, "New Session"));
|
|
348
370
|
this._register(
|
|
349
371
|
newSessionButton.onDidClick(() => this.commandService.executeCommand(ACTION_ID_NEW_CHAT))
|
|
350
372
|
);
|
|
@@ -434,7 +456,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
434
456
|
} else {
|
|
435
457
|
if (this.sessionsViewerOrientation === AgentSessionsViewerOrientation.Stacked) {
|
|
436
458
|
newSessionsContainerVisible =
|
|
437
|
-
!!this.chatEntitlementService.sentiment.
|
|
459
|
+
!!this.chatEntitlementService.sentiment.completed && (!this._widget || (this._widget.isEmpty() && !!this._widget.viewModel && !this._widget.viewModel.model.title)) && !this.welcomeController?.isShowingWelcome.get();
|
|
438
460
|
}
|
|
439
461
|
else {
|
|
440
462
|
newSessionsContainerVisible =
|
|
@@ -535,6 +557,8 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
535
557
|
}
|
|
536
558
|
}));
|
|
537
559
|
this._register(chatWidget.onDidChangeViewModel(() => {
|
|
560
|
+
const model = chatWidget.viewModel?.model;
|
|
561
|
+
this.titleControl?.update(model);
|
|
538
562
|
if (this.sessionsViewerOrientation === AgentSessionsViewerOrientation.Stacked) {
|
|
539
563
|
return;
|
|
540
564
|
}
|
|
@@ -584,7 +608,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
584
608
|
progressBadgeDisposables.value.add(autorun(reader => {
|
|
585
609
|
if (model.requestInProgress.read(reader)) {
|
|
586
610
|
this.activityBadge.value = this.activityService.showViewActivity(this.id, {
|
|
587
|
-
badge: ( new ProgressBadge(() => ( localize(
|
|
611
|
+
badge: ( new ProgressBadge(() => ( localize(7280, "Agent Session in Progress"))))
|
|
588
612
|
});
|
|
589
613
|
} else {
|
|
590
614
|
this.activityBadge.clear();
|
|
@@ -617,16 +641,27 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
617
641
|
}
|
|
618
642
|
async _applyModel() {
|
|
619
643
|
const sessionResource = this.getTransferredOrPersistedSessionInfo();
|
|
620
|
-
const modelRef = sessionResource ? await this.chatService.acquireOrLoadSession(
|
|
644
|
+
const modelRef = sessionResource ? await this.chatService.acquireOrLoadSession(
|
|
645
|
+
sessionResource,
|
|
646
|
+
ChatAgentLocation.Chat,
|
|
647
|
+
CancellationToken.None,
|
|
648
|
+
"ChatViewPane#applyModel"
|
|
649
|
+
) : undefined;
|
|
621
650
|
await this.showModel(CancellationToken.None, modelRef);
|
|
622
651
|
}
|
|
623
652
|
async showModel(token, modelRef, startNewSession = true) {
|
|
624
653
|
const oldModelResource = this.modelRef.value?.object.sessionResource;
|
|
625
|
-
this._previousModelRef.value = this.modelRef.value;
|
|
626
654
|
this.modelRef.value = undefined;
|
|
627
655
|
let ref;
|
|
628
656
|
if (startNewSession) {
|
|
629
|
-
ref = modelRef ?? (this.chatService.transferredSessionResource ? await this.chatService.acquireOrLoadSession(
|
|
657
|
+
ref = modelRef ?? (this.chatService.transferredSessionResource ? await this.chatService.acquireOrLoadSession(
|
|
658
|
+
this.chatService.transferredSessionResource,
|
|
659
|
+
ChatAgentLocation.Chat,
|
|
660
|
+
token,
|
|
661
|
+
"ChatViewPane#showModel"
|
|
662
|
+
) : this.chatService.startNewLocalSession(ChatAgentLocation.Chat, {
|
|
663
|
+
debugOwner: "ChatViewPane#showModel"
|
|
664
|
+
}));
|
|
630
665
|
if (!ref) {
|
|
631
666
|
throw ( new Error("Could not start chat session"));
|
|
632
667
|
}
|
|
@@ -637,9 +672,6 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
637
672
|
}
|
|
638
673
|
this.modelRef.value = ref;
|
|
639
674
|
const model = ref?.object;
|
|
640
|
-
if (model && this._previousModelRef.value?.object.sessionResource.toString() === ( model.sessionResource.toString())) {
|
|
641
|
-
this._previousModelRef.value = undefined;
|
|
642
|
-
}
|
|
643
675
|
if (model) {
|
|
644
676
|
await this.updateWidgetLockState(getChatSessionType(model.sessionResource));
|
|
645
677
|
if (token.isCancellationRequested) {
|
|
@@ -710,7 +742,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
710
742
|
}, 100);
|
|
711
743
|
const clearWidgetCancellationListener = token.onCancellationRequested(() => clearWidget.dispose());
|
|
712
744
|
try {
|
|
713
|
-
const newModelRef = await this.chatService.acquireOrLoadSession(sessionResource, ChatAgentLocation.Chat, token);
|
|
745
|
+
const newModelRef = await this.chatService.acquireOrLoadSession(sessionResource, ChatAgentLocation.Chat, token, "ChatViewPane#loadSession");
|
|
714
746
|
clearWidget.dispose();
|
|
715
747
|
await queue;
|
|
716
748
|
if (token.isCancellationRequested) {
|
|
@@ -725,7 +757,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
725
757
|
return undefined;
|
|
726
758
|
}
|
|
727
759
|
this.logService.error(`Failed to load chat session '${( sessionResource.toString())}'`, err);
|
|
728
|
-
this.notificationService.error(( localize(
|
|
760
|
+
this.notificationService.error(( localize(7281, "Failed to open chat session: {0}", toErrorMessage(err))));
|
|
729
761
|
return this.showModel(token, undefined);
|
|
730
762
|
} finally {
|
|
731
763
|
clearWidgetCancellationListener.dispose();
|
package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js
CHANGED
|
@@ -23,7 +23,7 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
|
|
|
23
23
|
ChatViewTitleControl_1 = this;
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.DEFAULT_TITLE = ( localize(
|
|
26
|
+
this.DEFAULT_TITLE = ( localize(7282, "Chat"));
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
this.PICK_AGENT_SESSION_ACTION_ID = "workbench.action.chat.pickAgentSession";
|
|
@@ -48,7 +48,7 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
|
|
|
48
48
|
constructor() {
|
|
49
49
|
super({
|
|
50
50
|
id: ChatViewTitleControl_1.PICK_AGENT_SESSION_ACTION_ID,
|
|
51
|
-
title: ( localize(
|
|
51
|
+
title: ( localize(7283, "Pick Agent Session")),
|
|
52
52
|
f1: false,
|
|
53
53
|
menu: [{
|
|
54
54
|
id: MenuId.ChatViewSessionTitleNavigationToolbar,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IChatDebugEvent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService";
|
|
2
|
+
/**
|
|
3
|
+
* Checks whether a debug event matches a single text search term.
|
|
4
|
+
* Used by both the debug panel filter and the listDebugEvents tool.
|
|
5
|
+
*/
|
|
6
|
+
export declare function debugEventMatchesText(event: IChatDebugEvent, term: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Parse a `before:YYYY[-MM[-DD[THH[:MM[:SS]]]]]` or `after:…` token from
|
|
9
|
+
* free-form filter text. Each component after the year is optional.
|
|
10
|
+
*
|
|
11
|
+
* For `before:`, the timestamp is rounded **up** to the end of the most
|
|
12
|
+
* specific unit given (e.g. `before:2026-03` → end-of-March).
|
|
13
|
+
* For `after:`, the timestamp is the **start** of the most specific unit.
|
|
14
|
+
*/
|
|
15
|
+
export declare function parseTimeToken(text: string, prefix: string): number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Strips `before:…` and `after:…` timestamp tokens from filter text,
|
|
18
|
+
* returning only the plain text search portion.
|
|
19
|
+
*/
|
|
20
|
+
export declare function stripTimestampTokens(text: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* Filters debug events by comma-separated text terms and optional
|
|
23
|
+
* `before:`/`after:` timestamp tokens.
|
|
24
|
+
*
|
|
25
|
+
* Terms prefixed with `!` are exclusions; all others are inclusions.
|
|
26
|
+
* At least one inclusion term must match (if any are present).
|
|
27
|
+
* Timestamp tokens are parsed and applied as date-range bounds, then
|
|
28
|
+
* stripped before text matching.
|
|
29
|
+
*/
|
|
30
|
+
export declare function filterDebugEventsByText(events: readonly IChatDebugEvent[], filterText: string): readonly IChatDebugEvent[];
|
|
31
|
+
export interface DebugEventFilterOptions {
|
|
32
|
+
readonly kind?: string;
|
|
33
|
+
readonly filter?: string;
|
|
34
|
+
readonly limit?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Applies kind, text, and limit filters to debug events.
|
|
38
|
+
* Used by the listDebugEvents tool to consolidate all filtering in one place.
|
|
39
|
+
*/
|
|
40
|
+
export declare function filterDebugEvents(events: readonly IChatDebugEvent[], options: DebugEventFilterOptions): readonly IChatDebugEvent[];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
function debugEventMatchesText(event, term) {
|
|
4
|
+
if (event.kind.toLowerCase().includes(term)) {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
switch (event.kind) {
|
|
8
|
+
case "toolCall":
|
|
9
|
+
return event.toolName.toLowerCase().includes(term) || (event.input?.toLowerCase().includes(term) ?? false) || (event.output?.toLowerCase().includes(term) ?? false);
|
|
10
|
+
case "modelTurn":
|
|
11
|
+
return (event.model?.toLowerCase().includes(term) ?? false) || (event.requestName?.toLowerCase().includes(term) ?? false);
|
|
12
|
+
case "generic":
|
|
13
|
+
return event.name.toLowerCase().includes(term) || (event.details?.toLowerCase().includes(term) ?? false) || (event.category?.toLowerCase().includes(term) ?? false);
|
|
14
|
+
case "subagentInvocation":
|
|
15
|
+
return event.agentName.toLowerCase().includes(term) || (event.description?.toLowerCase().includes(term) ?? false);
|
|
16
|
+
case "userMessage":
|
|
17
|
+
case "agentResponse":
|
|
18
|
+
return event.message.toLowerCase().includes(term) || ( event.sections.some(
|
|
19
|
+
s => s.name.toLowerCase().includes(term) || s.content.toLowerCase().includes(term)
|
|
20
|
+
));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const timestampTokenPattern = /\b(?:before|after):\d{4}(?:-\d{2}(?:-\d{2}(?:t\d{1,2}(?::\d{2}(?::\d{2})?)?)?)?)?(\b|$)/g;
|
|
24
|
+
function parseTimeToken(text, prefix) {
|
|
25
|
+
const regex = ( new RegExp(
|
|
26
|
+
`${prefix}:(\\d{4})(?:-(\\d{2})(?:-(\\d{2})(?:t(\\d{1,2})(?::(\\d{2})(?::(\\d{2}))?)?)?)?)?(?!\\w)`
|
|
27
|
+
));
|
|
28
|
+
const m = regex.exec(text);
|
|
29
|
+
if (!m) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
const year = parseInt(m[1], 10);
|
|
33
|
+
const month = m[2] !== undefined ? parseInt(m[2], 10) - 1 : undefined;
|
|
34
|
+
const day = m[3] !== undefined ? parseInt(m[3], 10) : undefined;
|
|
35
|
+
const hour = m[4] !== undefined ? parseInt(m[4], 10) : undefined;
|
|
36
|
+
const minute = m[5] !== undefined ? parseInt(m[5], 10) : undefined;
|
|
37
|
+
const second = m[6] !== undefined ? parseInt(m[6], 10) : undefined;
|
|
38
|
+
if (prefix === "before") {
|
|
39
|
+
if (second !== undefined) {
|
|
40
|
+
return ( new Date(year, month, day, hour, minute, second, 999)).getTime();
|
|
41
|
+
} else if (minute !== undefined) {
|
|
42
|
+
return ( new Date(year, month, day, hour, minute, 59, 999)).getTime();
|
|
43
|
+
} else if (hour !== undefined) {
|
|
44
|
+
return ( new Date(year, month, day, hour, 59, 59, 999)).getTime();
|
|
45
|
+
} else if (day !== undefined) {
|
|
46
|
+
return ( new Date(year, month, day, 23, 59, 59, 999)).getTime();
|
|
47
|
+
} else if (month !== undefined) {
|
|
48
|
+
return ( new Date(year, month + 1, 0, 23, 59, 59, 999)).getTime();
|
|
49
|
+
} else {
|
|
50
|
+
return ( new Date(year, 11, 31, 23, 59, 59, 999)).getTime();
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
return ( new Date(year, month ?? 0, day ?? 1, hour ?? 0, minute ?? 0, second ?? 0, 0)).getTime();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function stripTimestampTokens(text) {
|
|
57
|
+
return text.replace(timestampTokenPattern, "").trim();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { debugEventMatchesText, parseTimeToken, stripTimestampTokens };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
1
2
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
3
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
4
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
@@ -11,22 +12,33 @@ export declare class ChatDebugServiceImpl extends Disposable implements IChatDeb
|
|
|
11
12
|
private readonly _sessionBuffers;
|
|
12
13
|
/** Ordered list of session URIs for LRU eviction. */
|
|
13
14
|
private readonly _sessionOrder;
|
|
15
|
+
/** Per-session tracking of seen event IDs to deduplicate events
|
|
16
|
+
* that share the same ID (e.g. subagentInvocation + userMessage
|
|
17
|
+
* emitted from the same span). Stores id → event kind so we can
|
|
18
|
+
* keep the richer event kind on collision. */
|
|
19
|
+
private readonly _seenEventIds;
|
|
14
20
|
private readonly _onDidAddEvent;
|
|
15
21
|
readonly onDidAddEvent: Event<IChatDebugEvent>;
|
|
16
22
|
private readonly _onDidClearProviderEvents;
|
|
17
23
|
readonly onDidClearProviderEvents: Event<URI>;
|
|
18
|
-
private readonly
|
|
19
|
-
readonly
|
|
20
|
-
private readonly _debugDataAttachedSessions;
|
|
24
|
+
private readonly _onDidChangeAvailableSessionResources;
|
|
25
|
+
readonly onDidChangeAvailableSessionResources: Event<void>;
|
|
21
26
|
private readonly _providers;
|
|
22
27
|
private readonly _invocationCts;
|
|
23
28
|
/** Events that were returned by providers (not internally logged). */
|
|
24
29
|
private readonly _providerEvents;
|
|
25
30
|
/** Session URIs created via import. */
|
|
26
31
|
private readonly _importedSessions;
|
|
32
|
+
/** Session URIs reported by providers as available on disk (historical sessions). */
|
|
33
|
+
private readonly _availableSessionResources;
|
|
34
|
+
private readonly _availableSessionResourceSet;
|
|
35
|
+
/** Titles for historical sessions discovered from disk. */
|
|
36
|
+
private readonly _historicalSessionTitles;
|
|
27
37
|
/** Human-readable titles for imported sessions. */
|
|
28
38
|
private readonly _importedSessionTitles;
|
|
29
39
|
activeSessionResource: URI | undefined;
|
|
40
|
+
/** Priority for deduplicating events with the same ID: lower = richer. */
|
|
41
|
+
private static readonly _eventKindPriority;
|
|
30
42
|
/** Schemes eligible for debug logging and provider invocation. */
|
|
31
43
|
private static readonly _debugEligibleSchemes;
|
|
32
44
|
private _isDebugEligibleSession;
|
|
@@ -38,6 +50,8 @@ export declare class ChatDebugServiceImpl extends Disposable implements IChatDeb
|
|
|
38
50
|
addEvent(event: IChatDebugEvent): void;
|
|
39
51
|
addProviderEvent(event: IChatDebugEvent): void;
|
|
40
52
|
getEvents(sessionResource?: URI): readonly IChatDebugEvent[];
|
|
53
|
+
private _isSorted;
|
|
54
|
+
private _deduplicateEvents;
|
|
41
55
|
getSessionResources(): readonly URI[];
|
|
42
56
|
clear(): void;
|
|
43
57
|
/** Remove all ancillary state for an evicted session. */
|
|
@@ -48,12 +62,25 @@ export declare class ChatDebugServiceImpl extends Disposable implements IChatDeb
|
|
|
48
62
|
private _invokeProvider;
|
|
49
63
|
endSession(sessionResource: URI): void;
|
|
50
64
|
private _clearProviderEvents;
|
|
51
|
-
markDebugDataAttached(sessionResource: URI): void;
|
|
52
|
-
hasAttachedDebugData(sessionResource: URI): boolean;
|
|
53
65
|
resolveEvent(eventId: string): Promise<IChatDebugResolvedEventContent | undefined>;
|
|
54
66
|
isCoreEvent(event: IChatDebugEvent): boolean;
|
|
55
67
|
setImportedSessionTitle(sessionResource: URI, title: string): void;
|
|
56
68
|
getImportedSessionTitle(sessionResource: URI): string | undefined;
|
|
69
|
+
addAvailableSessionResources(resources: readonly {
|
|
70
|
+
uri: URI;
|
|
71
|
+
title?: string;
|
|
72
|
+
}[]): void;
|
|
73
|
+
/** Lazy fetcher for available sessions from the extension. */
|
|
74
|
+
private _availableSessionsFetcher;
|
|
75
|
+
private _availableSessionsFetchStarted;
|
|
76
|
+
private _availableSessionsRequested;
|
|
77
|
+
getAvailableSessionResources(): readonly URI[];
|
|
78
|
+
registerAvailableSessionsFetcher(fetcher: (token: CancellationToken) => Promise<{
|
|
79
|
+
uri: URI;
|
|
80
|
+
title?: string;
|
|
81
|
+
}[]>): void;
|
|
82
|
+
private _tryFetchAvailableSessions;
|
|
83
|
+
getHistoricalSessionTitle(sessionResource: URI): string | undefined;
|
|
57
84
|
exportLog(sessionResource: URI): Promise<Uint8Array | undefined>;
|
|
58
85
|
importLog(data: Uint8Array): Promise<URI | undefined>;
|
|
59
86
|
dispose(): void;
|