@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
|
@@ -6,7 +6,7 @@ import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/b
|
|
|
6
6
|
import { ProgressBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/progressbar/progressbar';
|
|
7
7
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
8
8
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
9
|
-
import { Disposable, MutableDisposable, combinedDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { Disposable, MutableDisposable, DisposableStore, combinedDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
10
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
11
11
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
12
12
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
@@ -18,15 +18,13 @@ import { WorkbenchList, WorkbenchObjectTree } from '@codingame/monaco-vscode-api
|
|
|
18
18
|
import { defaultBreadcrumbsWidgetStyles, defaultButtonStyles, defaultProgressBarStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
19
19
|
import { FilterWidget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewFilter';
|
|
20
20
|
import { IChatDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service';
|
|
21
|
-
import {
|
|
21
|
+
import { debugEventMatchesText } from '../../common/chatDebugEvents.js';
|
|
22
22
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
23
23
|
import { LocalChatSessionUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
24
24
|
import { ChatDebugEventDelegate, ChatDebugEventRenderer, ChatDebugEventTreeRenderer, getEventCreatedText, getEventNameText, getEventDetailsText } from './chatDebugEventList.js';
|
|
25
25
|
import { LogsViewMode, setupBreadcrumbKeyboardNavigation, TextBreadcrumbItem } from './chatDebugTypes.js';
|
|
26
26
|
import { bindFilterContextKeys } from './chatDebugFilters.js';
|
|
27
27
|
import { ChatDebugDetailPanel } from './chatDebugDetailPanel.js';
|
|
28
|
-
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
29
|
-
import { createDebugEventsAttachment } from '@codingame/monaco-vscode-xterm-addons-common/vscode/vs/workbench/contrib/chat/browser/chatDebug/chatDebugAttachment';
|
|
30
28
|
import { IClipboardService } from '@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
31
29
|
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
32
30
|
import { Action, Separator } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
@@ -34,6 +32,7 @@ import { StandardMouseEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/
|
|
|
34
32
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
35
33
|
|
|
36
34
|
const $ = $$1;
|
|
35
|
+
const PAGE_SIZE = 1000;
|
|
37
36
|
var LogsNavigation;
|
|
38
37
|
(function(LogsNavigation) {
|
|
39
38
|
LogsNavigation["Home"] = "home";
|
|
@@ -47,7 +46,6 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
47
46
|
chatDebugService,
|
|
48
47
|
instantiationService,
|
|
49
48
|
contextKeyService,
|
|
50
|
-
chatWidgetService,
|
|
51
49
|
clipboardService,
|
|
52
50
|
contextMenuService
|
|
53
51
|
) {
|
|
@@ -57,15 +55,21 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
57
55
|
this.chatDebugService = chatDebugService;
|
|
58
56
|
this.instantiationService = instantiationService;
|
|
59
57
|
this.contextKeyService = contextKeyService;
|
|
60
|
-
this.chatWidgetService = chatWidgetService;
|
|
61
58
|
this.clipboardService = clipboardService;
|
|
62
59
|
this.contextMenuService = contextMenuService;
|
|
63
60
|
this._onNavigate = this._register(( new Emitter()));
|
|
64
61
|
this.onNavigate = this._onNavigate.event;
|
|
65
62
|
this.logsViewMode = LogsViewMode.Tree;
|
|
66
63
|
this.events = [];
|
|
64
|
+
this.filteredEvents = [];
|
|
65
|
+
this.filterDirty = true;
|
|
66
|
+
this.cachedIncludeTerms = [];
|
|
67
|
+
this.cachedExcludeTerms = [];
|
|
67
68
|
this.eventListener = this._register(( new MutableDisposable()));
|
|
68
69
|
this.sessionStateDisposable = this._register(( new MutableDisposable()));
|
|
70
|
+
this.showMoreDisposables = this._register(( new DisposableStore()));
|
|
71
|
+
this.showMoreVisible = false;
|
|
72
|
+
this.visibleLimit = PAGE_SIZE;
|
|
69
73
|
this.refreshScheduler = this._register(( new RunOnceScheduler(() => this.refreshList(), 50)));
|
|
70
74
|
this.container = append(parent, $(".chat-debug-logs"));
|
|
71
75
|
hide(this.container);
|
|
@@ -98,13 +102,13 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
98
102
|
syncContextKeys();
|
|
99
103
|
const childInstantiationService = this._register(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, scopedContextKeyService]))));
|
|
100
104
|
this.filterWidget = this._register(childInstantiationService.createInstance(FilterWidget, {
|
|
101
|
-
placeholder: ( localize(
|
|
102
|
-
ariaLabel: ( localize(
|
|
105
|
+
placeholder: ( localize(5968, "Filter (e.g. text, !exclude, before:YYYY-MM-DDTHH:MM:SS)")),
|
|
106
|
+
ariaLabel: ( localize(5969, "Filter debug events"))
|
|
103
107
|
}));
|
|
104
108
|
this.viewModeToggle = this._register(( new Button(this.headerContainer, {
|
|
105
109
|
...defaultButtonStyles,
|
|
106
110
|
secondary: true,
|
|
107
|
-
title: ( localize(
|
|
111
|
+
title: ( localize(5970, "Toggle between list and tree view"))
|
|
108
112
|
})));
|
|
109
113
|
this.viewModeToggle.element.classList.add("chat-debug-view-mode-toggle", "monaco-text-button");
|
|
110
114
|
this.updateViewModeToggle();
|
|
@@ -113,33 +117,14 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
113
117
|
}));
|
|
114
118
|
const filterContainer = append(this.headerContainer, $(".viewpane-filter-container"));
|
|
115
119
|
filterContainer.appendChild(this.filterWidget.element);
|
|
116
|
-
const troubleshootButton = this._register(( new Button(this.headerContainer, {
|
|
117
|
-
...defaultButtonStyles,
|
|
118
|
-
secondary: true,
|
|
119
|
-
title: ( localize(5880, "Add snapshot to Chat"))
|
|
120
|
-
})));
|
|
121
|
-
troubleshootButton.element.classList.add("chat-debug-troubleshoot-button", "monaco-text-button");
|
|
122
|
-
append(
|
|
123
|
-
troubleshootButton.element,
|
|
124
|
-
$(`span${ThemeIcon.asCSSSelector(Codicon.chatSparkle)}`)
|
|
125
|
-
);
|
|
126
|
-
this._register(troubleshootButton.onDidClick(async () => {
|
|
127
|
-
if (!this.currentSessionResource) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
const widget = await this.chatWidgetService.openSession(this.currentSessionResource);
|
|
131
|
-
if (widget) {
|
|
132
|
-
const attachment = await createDebugEventsAttachment(this.currentSessionResource, this.chatDebugService);
|
|
133
|
-
widget.attachmentModel.addContext(attachment);
|
|
134
|
-
widget.focusInput();
|
|
135
|
-
}
|
|
136
|
-
}));
|
|
137
120
|
this._register(this.filterWidget.onDidChangeFilterText(text => {
|
|
138
121
|
this.filterState.setTextFilter(text);
|
|
139
122
|
}));
|
|
140
123
|
this._register(this.filterState.onDidChange(() => {
|
|
141
124
|
syncContextKeys();
|
|
142
125
|
this.updateMoreFiltersChecked();
|
|
126
|
+
this.visibleLimit = PAGE_SIZE;
|
|
127
|
+
this.filterDirty = true;
|
|
143
128
|
this.refreshList();
|
|
144
129
|
}));
|
|
145
130
|
const contentContainer = append(this.container, $(".chat-debug-logs-content"));
|
|
@@ -147,48 +132,50 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
147
132
|
this.tableHeader = append(mainColumn, $(".chat-debug-table-header"));
|
|
148
133
|
append(
|
|
149
134
|
this.tableHeader,
|
|
150
|
-
$("span.chat-debug-col-created", undefined, ( localize(
|
|
135
|
+
$("span.chat-debug-col-created", undefined, ( localize(5971, "Created")))
|
|
151
136
|
);
|
|
152
|
-
append(this.tableHeader, $("span.chat-debug-col-name", undefined, ( localize(
|
|
137
|
+
append(this.tableHeader, $("span.chat-debug-col-name", undefined, ( localize(5972, "Name"))));
|
|
153
138
|
append(
|
|
154
139
|
this.tableHeader,
|
|
155
|
-
$("span.chat-debug-col-details", undefined, ( localize(
|
|
140
|
+
$("span.chat-debug-col-details", undefined, ( localize(5973, "Details")))
|
|
156
141
|
);
|
|
157
142
|
this.progressBar = this._register(( new ProgressBar(mainColumn, {
|
|
158
143
|
...defaultProgressBarStyles,
|
|
159
|
-
ariaLabel: ( localize(
|
|
144
|
+
ariaLabel: ( localize(5974, "Chat debug logs loading progress"))
|
|
160
145
|
})));
|
|
161
146
|
this.bodyContainer = append(mainColumn, $(".chat-debug-logs-body"));
|
|
147
|
+
this.showMoreContainer = append(mainColumn, $(".chat-debug-logs-show-more"));
|
|
148
|
+
hide(this.showMoreContainer);
|
|
162
149
|
this.listContainer = append(this.bodyContainer, $(".chat-debug-list-container"));
|
|
163
150
|
hide(this.listContainer);
|
|
164
151
|
const accessibilityProvider = {
|
|
165
152
|
getAriaLabel: e => {
|
|
166
153
|
switch (e.kind) {
|
|
167
154
|
case "toolCall":
|
|
168
|
-
return localize(
|
|
155
|
+
return localize(5975, "Tool call: {0}{1}", e.toolName, e.result ? ` (${e.result})` : "");
|
|
169
156
|
case "modelTurn":
|
|
170
157
|
return localize(
|
|
171
|
-
|
|
158
|
+
5976,
|
|
172
159
|
"Model turn: {0}{1}",
|
|
173
|
-
e.model ?? ( localize(
|
|
174
|
-
e.totalTokens ? ( localize(
|
|
160
|
+
e.model ?? ( localize(5977, "model")),
|
|
161
|
+
e.totalTokens ? ( localize(5978, " {0} tokens", e.totalTokens)) : ""
|
|
175
162
|
);
|
|
176
163
|
case "generic":
|
|
177
164
|
return `${e.category ? e.category + ": " : ""}${e.name}: ${e.details ?? ""}`;
|
|
178
165
|
case "subagentInvocation":
|
|
179
166
|
return localize(
|
|
180
|
-
|
|
167
|
+
5979,
|
|
181
168
|
"Subagent: {0}{1}",
|
|
182
169
|
e.agentName,
|
|
183
170
|
e.description ? ` - ${e.description}` : ""
|
|
184
171
|
);
|
|
185
172
|
case "userMessage":
|
|
186
|
-
return localize(
|
|
173
|
+
return localize(5980, "User message: {0}", e.message);
|
|
187
174
|
case "agentResponse":
|
|
188
|
-
return localize(
|
|
175
|
+
return localize(5981, "Agent response: {0}", e.message);
|
|
189
176
|
}
|
|
190
177
|
},
|
|
191
|
-
getWidgetAriaLabel: () => ( localize(
|
|
178
|
+
getWidgetAriaLabel: () => ( localize(5982, "Chat Debug Events"))
|
|
192
179
|
};
|
|
193
180
|
let nextFallbackId = 0;
|
|
194
181
|
const fallbackIds = ( new WeakMap());
|
|
@@ -270,6 +257,9 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
270
257
|
}));
|
|
271
258
|
}
|
|
272
259
|
setSession(sessionResource) {
|
|
260
|
+
if (!this.currentSessionResource || ( this.currentSessionResource.toString()) !== ( sessionResource.toString())) {
|
|
261
|
+
this.visibleLimit = PAGE_SIZE;
|
|
262
|
+
}
|
|
273
263
|
this.currentSessionResource = sessionResource;
|
|
274
264
|
}
|
|
275
265
|
setFilterText(text) {
|
|
@@ -295,16 +285,17 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
295
285
|
return;
|
|
296
286
|
}
|
|
297
287
|
const sessionTitle = this.chatService.getSessionTitle(this.currentSessionResource) || LocalChatSessionUri.parseLocalSessionId(this.currentSessionResource) || ( this.currentSessionResource.toString());
|
|
298
|
-
this.breadcrumbWidget.setItems([( new TextBreadcrumbItem(( localize(
|
|
288
|
+
this.breadcrumbWidget.setItems([( new TextBreadcrumbItem(( localize(5983, "Agent Debug Logs")), true)), ( new TextBreadcrumbItem(sessionTitle, true)), ( new TextBreadcrumbItem(( localize(5984, "Logs"))))]);
|
|
299
289
|
}
|
|
300
290
|
layout(dimension) {
|
|
301
291
|
this.currentDimension = dimension;
|
|
302
292
|
const breadcrumbHeight = 22;
|
|
303
293
|
const headerHeight = this.headerContainer.offsetHeight;
|
|
304
294
|
const tableHeaderHeight = this.tableHeader.offsetHeight;
|
|
295
|
+
const showMoreHeight = this.showMoreContainer.offsetHeight;
|
|
305
296
|
const detailVisible = this.detailPanel.isVisible;
|
|
306
297
|
const detailWidth = detailVisible ? this.detailPanel.width : 0;
|
|
307
|
-
const listHeight = dimension.height - breadcrumbHeight - headerHeight - tableHeaderHeight;
|
|
298
|
+
const listHeight = dimension.height - breadcrumbHeight - headerHeight - tableHeaderHeight - showMoreHeight;
|
|
308
299
|
const listWidth = dimension.width - detailWidth;
|
|
309
300
|
if (this.logsViewMode === LogsViewMode.Tree) {
|
|
310
301
|
this.tree.layout(listHeight, listWidth);
|
|
@@ -317,39 +308,78 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
317
308
|
this.detailPanel.layoutSash();
|
|
318
309
|
}
|
|
319
310
|
refreshList() {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
return this.filterState.isKindVisible(e.kind, category);
|
|
324
|
-
});
|
|
325
|
-
const filterText = this.filterState.textFilter;
|
|
326
|
-
if (filterText) {
|
|
327
|
-
filtered = filterDebugEventsByText(filtered, filterText);
|
|
311
|
+
if (this.filterDirty) {
|
|
312
|
+
this.filteredEvents = this.events.filter(e => this.passesCurrentFilter(e));
|
|
313
|
+
this.filterDirty = false;
|
|
328
314
|
}
|
|
315
|
+
const totalFiltered = this.filteredEvents.length;
|
|
316
|
+
const display = totalFiltered > this.visibleLimit ? this.filteredEvents.slice(0, this.visibleLimit) : this.filteredEvents;
|
|
329
317
|
if (this.logsViewMode === LogsViewMode.List) {
|
|
330
|
-
this.list.splice(0, this.list.length,
|
|
318
|
+
this.list.splice(0, this.list.length, display);
|
|
331
319
|
} else {
|
|
332
|
-
this.refreshTree(
|
|
320
|
+
this.refreshTree(display);
|
|
321
|
+
}
|
|
322
|
+
this.updateShowMore(totalFiltered);
|
|
323
|
+
if (this.currentDimension) {
|
|
324
|
+
this.layout(this.currentDimension);
|
|
333
325
|
}
|
|
334
326
|
}
|
|
335
327
|
addEvent(event) {
|
|
328
|
+
this.binaryInsert(this.events, event);
|
|
329
|
+
if (!this.filterDirty && this.passesCurrentFilter(event)) {
|
|
330
|
+
this.binaryInsert(this.filteredEvents, event);
|
|
331
|
+
}
|
|
332
|
+
this.scheduleRefresh();
|
|
333
|
+
}
|
|
334
|
+
binaryInsert(arr, event) {
|
|
336
335
|
const time = event.created.getTime();
|
|
337
336
|
let lo = 0;
|
|
338
|
-
let hi =
|
|
337
|
+
let hi = arr.length;
|
|
339
338
|
while (lo < hi) {
|
|
340
339
|
const mid = (lo + hi) >>> 1;
|
|
341
|
-
if (
|
|
340
|
+
if (arr[mid].created.getTime() <= time) {
|
|
342
341
|
lo = mid + 1;
|
|
343
342
|
} else {
|
|
344
343
|
hi = mid;
|
|
345
344
|
}
|
|
346
345
|
}
|
|
347
|
-
if (lo ===
|
|
348
|
-
|
|
346
|
+
if (lo === arr.length) {
|
|
347
|
+
arr.push(event);
|
|
349
348
|
} else {
|
|
350
|
-
|
|
349
|
+
arr.splice(lo, 0, event);
|
|
351
350
|
}
|
|
352
|
-
|
|
351
|
+
}
|
|
352
|
+
passesCurrentFilter(event) {
|
|
353
|
+
const category = event.kind === "generic" ? event.category : undefined;
|
|
354
|
+
if (!this.filterState.isKindVisible(event.kind, category)) {
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
357
|
+
if (!this.filterState.isTimestampVisible(event.created)) {
|
|
358
|
+
return false;
|
|
359
|
+
}
|
|
360
|
+
this.ensureCachedTerms();
|
|
361
|
+
if (this.cachedExcludeTerms.length > 0 && ( this.cachedExcludeTerms.some(term => debugEventMatchesText(event, term)))) {
|
|
362
|
+
return false;
|
|
363
|
+
}
|
|
364
|
+
if (this.cachedIncludeTerms.length > 0 && !( this.cachedIncludeTerms.some(term => debugEventMatchesText(event, term)))) {
|
|
365
|
+
return false;
|
|
366
|
+
}
|
|
367
|
+
return true;
|
|
368
|
+
}
|
|
369
|
+
ensureCachedTerms() {
|
|
370
|
+
const textOnly = this.filterState.textFilterWithoutTimestamps;
|
|
371
|
+
if (textOnly === this.cachedTextFilter) {
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
this.cachedTextFilter = textOnly;
|
|
375
|
+
if (!textOnly) {
|
|
376
|
+
this.cachedIncludeTerms = [];
|
|
377
|
+
this.cachedExcludeTerms = [];
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
const terms = ( textOnly.split(",").map(t => t.trim())).filter(t => t.length > 0);
|
|
381
|
+
this.cachedIncludeTerms = terms.filter(t => !t.startsWith("!"));
|
|
382
|
+
this.cachedExcludeTerms = ( terms.filter(t => t.startsWith("!")).map(t => t.slice(1).trim())).filter(t => t.length > 0);
|
|
353
383
|
}
|
|
354
384
|
scheduleRefresh() {
|
|
355
385
|
if (!this.refreshScheduler.isScheduled()) {
|
|
@@ -360,6 +390,7 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
360
390
|
this.events = [
|
|
361
391
|
...this.chatDebugService.getEvents(this.currentSessionResource || undefined)
|
|
362
392
|
];
|
|
393
|
+
this.filterDirty = true;
|
|
363
394
|
const addEventDisposable = this.chatDebugService.onDidAddEvent(e => {
|
|
364
395
|
if (!this.currentSessionResource || ( e.sessionResource.toString()) === ( this.currentSessionResource.toString())) {
|
|
365
396
|
this.addEvent(e);
|
|
@@ -370,6 +401,7 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
370
401
|
this.events = [
|
|
371
402
|
...this.chatDebugService.getEvents(this.currentSessionResource || undefined)
|
|
372
403
|
];
|
|
404
|
+
this.filterDirty = true;
|
|
373
405
|
this.refreshList();
|
|
374
406
|
}
|
|
375
407
|
});
|
|
@@ -434,6 +466,37 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
434
466
|
};
|
|
435
467
|
return ( roots.map(toTreeElement));
|
|
436
468
|
}
|
|
469
|
+
updateShowMore(totalFiltered) {
|
|
470
|
+
if (totalFiltered <= this.visibleLimit) {
|
|
471
|
+
if (this.showMoreVisible) {
|
|
472
|
+
hide(this.showMoreContainer);
|
|
473
|
+
this.showMoreVisible = false;
|
|
474
|
+
}
|
|
475
|
+
return;
|
|
476
|
+
}
|
|
477
|
+
if (!this.showMoreStatusLabel) {
|
|
478
|
+
this.showMoreStatusLabel = append(this.showMoreContainer, $("span.chat-debug-logs-show-more-status"));
|
|
479
|
+
}
|
|
480
|
+
if (!this.showMoreBtn) {
|
|
481
|
+
this.showMoreBtn = this.showMoreDisposables.add(( new Button(this.showMoreContainer, {
|
|
482
|
+
...defaultButtonStyles,
|
|
483
|
+
secondary: true,
|
|
484
|
+
title: ( localize(5985, "Load more events"))
|
|
485
|
+
})));
|
|
486
|
+
this.showMoreDisposables.add(this.showMoreBtn.onDidClick(() => {
|
|
487
|
+
this.visibleLimit += PAGE_SIZE;
|
|
488
|
+
this.refreshList();
|
|
489
|
+
}));
|
|
490
|
+
}
|
|
491
|
+
const shown = Math.min(this.visibleLimit, totalFiltered);
|
|
492
|
+
const remaining = totalFiltered - shown;
|
|
493
|
+
this.showMoreStatusLabel.textContent = ( localize(5986, "Showing {0} of {1} events", shown, totalFiltered));
|
|
494
|
+
this.showMoreBtn.label = ( localize(5987, "Show More ({0})", remaining));
|
|
495
|
+
if (!this.showMoreVisible) {
|
|
496
|
+
show(this.showMoreContainer);
|
|
497
|
+
this.showMoreVisible = true;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
437
500
|
toggleViewMode() {
|
|
438
501
|
if (this.logsViewMode === LogsViewMode.List) {
|
|
439
502
|
this.logsViewMode = LogsViewMode.Tree;
|
|
@@ -459,15 +522,15 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
459
522
|
));
|
|
460
523
|
const labelContainer = append(el, $("span.chat-debug-view-mode-labels"));
|
|
461
524
|
const treeLabel = append(labelContainer, $("span.chat-debug-view-mode-label"));
|
|
462
|
-
treeLabel.textContent = ( localize(
|
|
525
|
+
treeLabel.textContent = ( localize(5988, "Tree View"));
|
|
463
526
|
const listLabel = append(labelContainer, $("span.chat-debug-view-mode-label"));
|
|
464
|
-
listLabel.textContent = ( localize(
|
|
527
|
+
listLabel.textContent = ( localize(5989, "List View"));
|
|
465
528
|
if (isTree) {
|
|
466
529
|
listLabel.classList.add("hidden");
|
|
467
530
|
} else {
|
|
468
531
|
treeLabel.classList.add("hidden");
|
|
469
532
|
}
|
|
470
|
-
const activeLabel = isTree ? ( localize(
|
|
533
|
+
const activeLabel = isTree ? ( localize(5990, "Switch to List View")) : ( localize(5991, "Switch to Tree View"));
|
|
471
534
|
el.setAttribute("aria-label", activeLabel);
|
|
472
535
|
this.viewModeToggle.setTitle(activeLabel);
|
|
473
536
|
}
|
|
@@ -486,13 +549,13 @@ let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
|
486
549
|
const name = getEventNameText(event);
|
|
487
550
|
this.contextMenuService.showContextMenu({
|
|
488
551
|
getAnchor: () => isMouseEvent(browserEvent) ? ( new StandardMouseEvent(getWindow(this.container), browserEvent)) : this.container,
|
|
489
|
-
getActions: () => [( new Action("chatDebug.copyTimestamp", ( localize(
|
|
552
|
+
getActions: () => [( new Action("chatDebug.copyTimestamp", ( localize(5992, "Copy Timestamp")), undefined, true, () => this.clipboardService.writeText(timestamp))), ( new Action("chatDebug.copyRow", ( localize(5993, "Copy Row")), undefined, true, () => this.clipboardService.writeText(row))), ( new Separator()), ( new Action("chatDebug.filterBefore", ( localize(5994, "Filter Before Timestamp")), undefined, true, () => this.applyFilterToken(`before:${timestamp}`))), ( new Action("chatDebug.filterAfter", ( localize(5995, "Filter After Timestamp")), undefined, true, () => this.applyFilterToken(`after:${timestamp}`))), ( new Action("chatDebug.filterName", ( localize(5996, "Filter Name")), undefined, !!name, () => this.applyFilterToken(name)))]
|
|
490
553
|
});
|
|
491
554
|
}
|
|
492
555
|
applyFilterToken(token) {
|
|
493
556
|
this.filterWidget.setFilterText(token);
|
|
494
557
|
}
|
|
495
558
|
};
|
|
496
|
-
ChatDebugLogsView = ( __decorate([( __param(2, IChatService)), ( __param(3, IChatDebugService)), ( __param(4, IInstantiationService)), ( __param(5, IContextKeyService)), ( __param(6,
|
|
559
|
+
ChatDebugLogsView = ( __decorate([( __param(2, IChatService)), ( __param(3, IChatDebugService)), ( __param(4, IInstantiationService)), ( __param(5, IContextKeyService)), ( __param(6, IClipboardService)), ( __param(7, IContextMenuService))], ChatDebugLogsView));
|
|
497
560
|
|
|
498
561
|
export { ChatDebugLogsView, LogsNavigation };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js
CHANGED
|
@@ -11,7 +11,7 @@ async function renderUserMessageContent(event, languageService, clipboardService
|
|
|
11
11
|
container.tabIndex = 0;
|
|
12
12
|
append(
|
|
13
13
|
container,
|
|
14
|
-
$("div.chat-debug-message-content-title", undefined, ( localize(
|
|
14
|
+
$("div.chat-debug-message-content-title", undefined, ( localize(5997, "User Message")))
|
|
15
15
|
);
|
|
16
16
|
append(
|
|
17
17
|
container,
|
|
@@ -21,7 +21,7 @@ async function renderUserMessageContent(event, languageService, clipboardService
|
|
|
21
21
|
const sectionsContainer = append(container, $("div.chat-debug-message-sections"));
|
|
22
22
|
append(
|
|
23
23
|
sectionsContainer,
|
|
24
|
-
$("div.chat-debug-message-sections-label", undefined, ( localize(
|
|
24
|
+
$("div.chat-debug-message-sections-label", undefined, ( localize(5998, "Prompt Sections ({0})", event.sections.length)))
|
|
25
25
|
);
|
|
26
26
|
for (const section of event.sections) {
|
|
27
27
|
const {
|
|
@@ -51,7 +51,7 @@ async function renderAgentResponseContent(event, languageService, clipboardServi
|
|
|
51
51
|
container.tabIndex = 0;
|
|
52
52
|
append(
|
|
53
53
|
container,
|
|
54
|
-
$("div.chat-debug-message-content-title", undefined, ( localize(
|
|
54
|
+
$("div.chat-debug-message-content-title", undefined, ( localize(5999, "Agent Response")))
|
|
55
55
|
);
|
|
56
56
|
append(
|
|
57
57
|
container,
|
|
@@ -61,7 +61,7 @@ async function renderAgentResponseContent(event, languageService, clipboardServi
|
|
|
61
61
|
const sectionsContainer = append(container, $("div.chat-debug-message-sections"));
|
|
62
62
|
append(
|
|
63
63
|
sectionsContainer,
|
|
64
|
-
$("div.chat-debug-message-sections-label", undefined, ( localize(
|
|
64
|
+
$("div.chat-debug-message-sections-label", undefined, ( localize(6000, "Response Sections ({0})", event.sections.length)))
|
|
65
65
|
);
|
|
66
66
|
for (const section of event.sections) {
|
|
67
67
|
const {
|
|
@@ -87,7 +87,7 @@ async function renderAgentResponseContent(event, languageService, clipboardServi
|
|
|
87
87
|
}
|
|
88
88
|
function messageEventToPlainText(event) {
|
|
89
89
|
const lines = [];
|
|
90
|
-
const label = event.kind === "userMessage" ? ( localize(
|
|
90
|
+
const label = event.kind === "userMessage" ? ( localize(5997, "User Message")) : ( localize(5999, "Agent Response"));
|
|
91
91
|
lines.push(`${label}: ${event.message}`);
|
|
92
92
|
lines.push("");
|
|
93
93
|
for (const section of event.sections) {
|
|
@@ -101,7 +101,7 @@ async function renderResolvedMessageContent(content, languageService, clipboardS
|
|
|
101
101
|
const disposables = ( new DisposableStore());
|
|
102
102
|
const container = $("div.chat-debug-message-content");
|
|
103
103
|
container.tabIndex = 0;
|
|
104
|
-
const title = content.type === "user" ? ( localize(
|
|
104
|
+
const title = content.type === "user" ? ( localize(5997, "User Message")) : ( localize(5999, "Agent Response"));
|
|
105
105
|
append(container, $("div.chat-debug-message-content-title", undefined, title));
|
|
106
106
|
append(
|
|
107
107
|
container,
|
|
@@ -109,7 +109,7 @@ async function renderResolvedMessageContent(content, languageService, clipboardS
|
|
|
109
109
|
);
|
|
110
110
|
if (content.sections.length > 0) {
|
|
111
111
|
const sectionsContainer = append(container, $("div.chat-debug-message-sections"));
|
|
112
|
-
const label = content.type === "user" ? ( localize(
|
|
112
|
+
const label = content.type === "user" ? ( localize(5998, "Prompt Sections ({0})", content.sections.length)) : ( localize(6000, "Response Sections ({0})", content.sections.length));
|
|
113
113
|
append(
|
|
114
114
|
sectionsContainer,
|
|
115
115
|
$("div.chat-debug-message-sections-label", undefined, label)
|
|
@@ -138,7 +138,7 @@ async function renderResolvedMessageContent(content, languageService, clipboardS
|
|
|
138
138
|
}
|
|
139
139
|
function resolvedMessageToPlainText(content) {
|
|
140
140
|
const lines = [];
|
|
141
|
-
const label = content.type === "user" ? ( localize(
|
|
141
|
+
const label = content.type === "user" ? ( localize(5997, "User Message")) : ( localize(5999, "Agent Response"));
|
|
142
142
|
lines.push(`${label}: ${content.message}`);
|
|
143
143
|
lines.push("");
|
|
144
144
|
for (const section of content.sections) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js
CHANGED
|
@@ -13,7 +13,7 @@ async function renderModelTurnContent(content, languageService, clipboardService
|
|
|
13
13
|
container.tabIndex = 0;
|
|
14
14
|
append(
|
|
15
15
|
container,
|
|
16
|
-
$("div.chat-debug-message-content-title", undefined, ( localize(
|
|
16
|
+
$("div.chat-debug-message-content-title", undefined, ( localize(6001, "Model Turn")))
|
|
17
17
|
);
|
|
18
18
|
const statusParts = [];
|
|
19
19
|
if (content.requestName) {
|
|
@@ -26,7 +26,7 @@ async function renderModelTurnContent(content, languageService, clipboardService
|
|
|
26
26
|
statusParts.push(content.status);
|
|
27
27
|
}
|
|
28
28
|
if (content.durationInMillis !== undefined) {
|
|
29
|
-
statusParts.push(( localize(
|
|
29
|
+
statusParts.push(( localize(6002, "{0}ms", numberFormatter.value.format(content.durationInMillis))));
|
|
30
30
|
}
|
|
31
31
|
if (statusParts.length > 0) {
|
|
32
32
|
append(container, $(
|
|
@@ -38,49 +38,49 @@ async function renderModelTurnContent(content, languageService, clipboardService
|
|
|
38
38
|
const detailsContainer = append(container, $("div.chat-debug-model-turn-details"));
|
|
39
39
|
if (content.inputTokens !== undefined) {
|
|
40
40
|
append(detailsContainer, $("div", undefined, ( localize(
|
|
41
|
-
|
|
41
|
+
6003,
|
|
42
42
|
"Input tokens: {0}",
|
|
43
43
|
numberFormatter.value.format(content.inputTokens)
|
|
44
44
|
))));
|
|
45
45
|
}
|
|
46
46
|
if (content.outputTokens !== undefined) {
|
|
47
47
|
append(detailsContainer, $("div", undefined, ( localize(
|
|
48
|
-
|
|
48
|
+
6004,
|
|
49
49
|
"Output tokens: {0}",
|
|
50
50
|
numberFormatter.value.format(content.outputTokens)
|
|
51
51
|
))));
|
|
52
52
|
}
|
|
53
53
|
if (content.cachedTokens !== undefined) {
|
|
54
54
|
append(detailsContainer, $("div", undefined, ( localize(
|
|
55
|
-
|
|
55
|
+
6005,
|
|
56
56
|
"Cached tokens: {0}",
|
|
57
57
|
numberFormatter.value.format(content.cachedTokens)
|
|
58
58
|
))));
|
|
59
59
|
}
|
|
60
60
|
if (content.totalTokens !== undefined) {
|
|
61
61
|
append(detailsContainer, $("div", undefined, ( localize(
|
|
62
|
-
|
|
62
|
+
6006,
|
|
63
63
|
"Total tokens: {0}",
|
|
64
64
|
numberFormatter.value.format(content.totalTokens)
|
|
65
65
|
))));
|
|
66
66
|
}
|
|
67
67
|
if (content.timeToFirstTokenInMillis !== undefined) {
|
|
68
68
|
append(detailsContainer, $("div", undefined, ( localize(
|
|
69
|
-
|
|
69
|
+
6007,
|
|
70
70
|
"Time to first token: {0}ms",
|
|
71
71
|
numberFormatter.value.format(content.timeToFirstTokenInMillis)
|
|
72
72
|
))));
|
|
73
73
|
}
|
|
74
74
|
if (content.maxInputTokens !== undefined) {
|
|
75
75
|
append(detailsContainer, $("div", undefined, ( localize(
|
|
76
|
-
|
|
76
|
+
6008,
|
|
77
77
|
"Max input tokens: {0}",
|
|
78
78
|
numberFormatter.value.format(content.maxInputTokens)
|
|
79
79
|
))));
|
|
80
80
|
}
|
|
81
81
|
if (content.maxOutputTokens !== undefined) {
|
|
82
82
|
append(detailsContainer, $("div", undefined, ( localize(
|
|
83
|
-
|
|
83
|
+
6009,
|
|
84
84
|
"Max output tokens: {0}",
|
|
85
85
|
numberFormatter.value.format(content.maxOutputTokens)
|
|
86
86
|
))));
|
|
@@ -88,14 +88,14 @@ async function renderModelTurnContent(content, languageService, clipboardService
|
|
|
88
88
|
if (content.errorMessage) {
|
|
89
89
|
append(
|
|
90
90
|
detailsContainer,
|
|
91
|
-
$("div.chat-debug-model-turn-error", undefined, ( localize(
|
|
91
|
+
$("div.chat-debug-model-turn-error", undefined, ( localize(6010, "Error: {0}", content.errorMessage)))
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
94
|
if (content.sections && content.sections.length > 0) {
|
|
95
95
|
const sectionsContainer = append(container, $("div.chat-debug-message-sections"));
|
|
96
96
|
append(
|
|
97
97
|
sectionsContainer,
|
|
98
|
-
$("div.chat-debug-message-sections-label", undefined, ( localize(
|
|
98
|
+
$("div.chat-debug-message-sections-label", undefined, ( localize(6011, "Sections ({0})", content.sections.length)))
|
|
99
99
|
);
|
|
100
100
|
for (const section of content.sections) {
|
|
101
101
|
const {
|
|
@@ -121,71 +121,71 @@ async function renderModelTurnContent(content, languageService, clipboardService
|
|
|
121
121
|
}
|
|
122
122
|
function modelTurnContentToPlainText(content) {
|
|
123
123
|
const lines = [];
|
|
124
|
-
lines.push(( localize(
|
|
124
|
+
lines.push(( localize(6012, "Request: {0}", content.requestName)));
|
|
125
125
|
if (content.model) {
|
|
126
|
-
lines.push(( localize(
|
|
126
|
+
lines.push(( localize(6013, "Model: {0}", content.model)));
|
|
127
127
|
}
|
|
128
128
|
if (content.status && content.status !== "unknown") {
|
|
129
|
-
lines.push(( localize(
|
|
129
|
+
lines.push(( localize(6014, "Status: {0}", content.status)));
|
|
130
130
|
}
|
|
131
131
|
if (content.durationInMillis !== undefined) {
|
|
132
132
|
lines.push(( localize(
|
|
133
|
-
|
|
133
|
+
6015,
|
|
134
134
|
"Duration: {0}ms",
|
|
135
135
|
numberFormatter.value.format(content.durationInMillis)
|
|
136
136
|
)));
|
|
137
137
|
}
|
|
138
138
|
if (content.timeToFirstTokenInMillis !== undefined) {
|
|
139
139
|
lines.push(( localize(
|
|
140
|
-
|
|
140
|
+
6016,
|
|
141
141
|
"Time to first token: {0}ms",
|
|
142
142
|
numberFormatter.value.format(content.timeToFirstTokenInMillis)
|
|
143
143
|
)));
|
|
144
144
|
}
|
|
145
145
|
if (content.inputTokens !== undefined) {
|
|
146
146
|
lines.push(( localize(
|
|
147
|
-
|
|
147
|
+
6017,
|
|
148
148
|
"Input tokens: {0}",
|
|
149
149
|
numberFormatter.value.format(content.inputTokens)
|
|
150
150
|
)));
|
|
151
151
|
}
|
|
152
152
|
if (content.outputTokens !== undefined) {
|
|
153
153
|
lines.push(( localize(
|
|
154
|
-
|
|
154
|
+
6018,
|
|
155
155
|
"Output tokens: {0}",
|
|
156
156
|
numberFormatter.value.format(content.outputTokens)
|
|
157
157
|
)));
|
|
158
158
|
}
|
|
159
159
|
if (content.cachedTokens !== undefined) {
|
|
160
160
|
lines.push(( localize(
|
|
161
|
-
|
|
161
|
+
6019,
|
|
162
162
|
"Cached tokens: {0}",
|
|
163
163
|
numberFormatter.value.format(content.cachedTokens)
|
|
164
164
|
)));
|
|
165
165
|
}
|
|
166
166
|
if (content.totalTokens !== undefined) {
|
|
167
167
|
lines.push(( localize(
|
|
168
|
-
|
|
168
|
+
6020,
|
|
169
169
|
"Total tokens: {0}",
|
|
170
170
|
numberFormatter.value.format(content.totalTokens)
|
|
171
171
|
)));
|
|
172
172
|
}
|
|
173
173
|
if (content.maxInputTokens !== undefined) {
|
|
174
174
|
lines.push(( localize(
|
|
175
|
-
|
|
175
|
+
6021,
|
|
176
176
|
"Max input tokens: {0}",
|
|
177
177
|
numberFormatter.value.format(content.maxInputTokens)
|
|
178
178
|
)));
|
|
179
179
|
}
|
|
180
180
|
if (content.maxOutputTokens !== undefined) {
|
|
181
181
|
lines.push(( localize(
|
|
182
|
-
|
|
182
|
+
6022,
|
|
183
183
|
"Max output tokens: {0}",
|
|
184
184
|
numberFormatter.value.format(content.maxOutputTokens)
|
|
185
185
|
)));
|
|
186
186
|
}
|
|
187
187
|
if (content.errorMessage) {
|
|
188
|
-
lines.push(( localize(
|
|
188
|
+
lines.push(( localize(6023, "Error: {0}", content.errorMessage)));
|
|
189
189
|
}
|
|
190
190
|
if (content.sections && content.sections.length > 0) {
|
|
191
191
|
lines.push("");
|