@codingame/monaco-vscode-chat-service-override 26.2.2 → 28.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +35 -2
- package/package.json +5 -5
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +15 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +53 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +219 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +89 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +251 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +123 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +278 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +76 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +299 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +67 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +263 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +85 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +397 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +27 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +74 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +54 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +87 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +71 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +43 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +13 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +154 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +53 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +18 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +49 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +537 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.js +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/media/agentPluginEditor.css +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +282 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +634 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +10 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +74 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +27 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +90 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +20 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +43 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +84 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.d.ts → localAgentSessionsController.d.ts} +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.js → localAgentSessionsController.js} +24 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +179 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +987 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +246 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +878 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +165 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +692 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +936 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +702 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +30 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +36 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +622 -391
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +419 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +314 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +611 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +504 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +914 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +128 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +467 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +126 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +279 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +788 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +32 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +6 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +16 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +26 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +24 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +40 -413
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +38 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +56 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +15 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +138 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +166 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +37 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +394 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +118 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +245 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.js +234 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +88 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +624 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +88 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +28 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +175 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +489 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +364 -279
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +69 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +67 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +187 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +242 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +311 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +29 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +8 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +126 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +9 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +46 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +65 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +16 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +15 -6
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +28 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +190 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +208 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +19 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +261 -105
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +21 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +16 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +13 -4
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +144 -11
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +36 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +119 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +748 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +672 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +35 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +3 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +7 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +26 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +293 -94
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +86 -30
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +121 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +1422 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +48 -14
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +404 -132
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +40 -28
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +14 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +54 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +12 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +27 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +265 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +6 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +18 -81
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +10 -10
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css +6 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +35 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +1 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +13 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +302 -69
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +63 -21
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +46 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +0 -587
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -51
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +0 -71
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +0 -293
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.js +0 -31
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { $ as $$1, append, hide, show, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { BreadcrumbsWidget } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget';
|
|
5
|
+
import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
6
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
7
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
8
|
+
import { Disposable, MutableDisposable, combinedDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
10
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
11
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
12
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
13
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
|
+
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
15
|
+
import { WorkbenchList, WorkbenchObjectTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
16
|
+
import { defaultBreadcrumbsWidgetStyles, defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
17
|
+
import { FilterWidget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewFilter';
|
|
18
|
+
import { IChatDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service';
|
|
19
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
20
|
+
import { LocalChatSessionUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
21
|
+
import { ChatDebugEventDelegate, ChatDebugEventRenderer, ChatDebugEventTreeRenderer } from './chatDebugEventList.js';
|
|
22
|
+
import { LogsViewMode, setupBreadcrumbKeyboardNavigation, TextBreadcrumbItem } from './chatDebugTypes.js';
|
|
23
|
+
import { bindFilterContextKeys } from './chatDebugFilters.js';
|
|
24
|
+
import { ChatDebugDetailPanel } from './chatDebugDetailPanel.js';
|
|
25
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
26
|
+
import { createDebugEventsAttachment } from '@codingame/monaco-vscode-xterm-addons-common/vscode/vs/workbench/contrib/chat/browser/chatDebug/chatDebugAttachment';
|
|
27
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
28
|
+
|
|
29
|
+
const $ = $$1;
|
|
30
|
+
var LogsNavigation;
|
|
31
|
+
(function(LogsNavigation) {
|
|
32
|
+
LogsNavigation["Home"] = "home";
|
|
33
|
+
LogsNavigation["Overview"] = "overview";
|
|
34
|
+
})(LogsNavigation || (LogsNavigation = {}));
|
|
35
|
+
let ChatDebugLogsView = class ChatDebugLogsView extends Disposable {
|
|
36
|
+
constructor(
|
|
37
|
+
parent,
|
|
38
|
+
filterState,
|
|
39
|
+
chatService,
|
|
40
|
+
chatDebugService,
|
|
41
|
+
instantiationService,
|
|
42
|
+
contextKeyService,
|
|
43
|
+
chatWidgetService
|
|
44
|
+
) {
|
|
45
|
+
super();
|
|
46
|
+
this.filterState = filterState;
|
|
47
|
+
this.chatService = chatService;
|
|
48
|
+
this.chatDebugService = chatDebugService;
|
|
49
|
+
this.instantiationService = instantiationService;
|
|
50
|
+
this.contextKeyService = contextKeyService;
|
|
51
|
+
this.chatWidgetService = chatWidgetService;
|
|
52
|
+
this._onNavigate = this._register(( new Emitter()));
|
|
53
|
+
this.onNavigate = this._onNavigate.event;
|
|
54
|
+
this.logsViewMode = LogsViewMode.List;
|
|
55
|
+
this.events = [];
|
|
56
|
+
this.eventListener = this._register(( new MutableDisposable()));
|
|
57
|
+
this.sessionStateDisposable = this._register(( new MutableDisposable()));
|
|
58
|
+
this.container = append(parent, $(".chat-debug-logs"));
|
|
59
|
+
hide(this.container);
|
|
60
|
+
const breadcrumbContainer = append(this.container, $(".chat-debug-breadcrumb"));
|
|
61
|
+
this.breadcrumbWidget = this._register(( new BreadcrumbsWidget(
|
|
62
|
+
breadcrumbContainer,
|
|
63
|
+
3,
|
|
64
|
+
undefined,
|
|
65
|
+
Codicon.chevronRight,
|
|
66
|
+
defaultBreadcrumbsWidgetStyles
|
|
67
|
+
)));
|
|
68
|
+
this._register(
|
|
69
|
+
setupBreadcrumbKeyboardNavigation(breadcrumbContainer, this.breadcrumbWidget)
|
|
70
|
+
);
|
|
71
|
+
this._register(this.breadcrumbWidget.onDidSelectItem(e => {
|
|
72
|
+
if (e.type === "select" && e.item instanceof TextBreadcrumbItem) {
|
|
73
|
+
this.breadcrumbWidget.setSelection(undefined);
|
|
74
|
+
const items = this.breadcrumbWidget.getItems();
|
|
75
|
+
const idx = items.indexOf(e.item);
|
|
76
|
+
if (idx === 0) {
|
|
77
|
+
this._onNavigate.fire(LogsNavigation.Home);
|
|
78
|
+
} else if (idx === 1) {
|
|
79
|
+
this._onNavigate.fire(LogsNavigation.Overview);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}));
|
|
83
|
+
this.headerContainer = append(this.container, $(".chat-debug-editor-header"));
|
|
84
|
+
const scopedContextKeyService = this._register(this.contextKeyService.createScoped(this.headerContainer));
|
|
85
|
+
const syncContextKeys = bindFilterContextKeys(this.filterState, scopedContextKeyService);
|
|
86
|
+
syncContextKeys();
|
|
87
|
+
const childInstantiationService = this._register(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, scopedContextKeyService]))));
|
|
88
|
+
this.filterWidget = this._register(childInstantiationService.createInstance(FilterWidget, {
|
|
89
|
+
placeholder: ( localize(5706, "Filter (e.g. text, !exclude, before:YYYY-MM-DDTHH:MM:SS)")),
|
|
90
|
+
ariaLabel: ( localize(5707, "Filter debug events"))
|
|
91
|
+
}));
|
|
92
|
+
this.viewModeToggle = this._register(( new Button(this.headerContainer, {
|
|
93
|
+
...defaultButtonStyles,
|
|
94
|
+
secondary: true,
|
|
95
|
+
title: ( localize(5708, "Toggle between list and tree view"))
|
|
96
|
+
})));
|
|
97
|
+
this.viewModeToggle.element.classList.add("chat-debug-view-mode-toggle", "monaco-text-button");
|
|
98
|
+
this.updateViewModeToggle();
|
|
99
|
+
this._register(this.viewModeToggle.onDidClick(() => {
|
|
100
|
+
this.toggleViewMode();
|
|
101
|
+
}));
|
|
102
|
+
const filterContainer = append(this.headerContainer, $(".viewpane-filter-container"));
|
|
103
|
+
filterContainer.appendChild(this.filterWidget.element);
|
|
104
|
+
const troubleshootButton = this._register(( new Button(this.headerContainer, {
|
|
105
|
+
...defaultButtonStyles,
|
|
106
|
+
secondary: true,
|
|
107
|
+
title: ( localize(5709, "Add snapshot to Chat"))
|
|
108
|
+
})));
|
|
109
|
+
troubleshootButton.element.classList.add("chat-debug-troubleshoot-button", "monaco-text-button");
|
|
110
|
+
append(
|
|
111
|
+
troubleshootButton.element,
|
|
112
|
+
$(`span${ThemeIcon.asCSSSelector(Codicon.chatSparkle)}`)
|
|
113
|
+
);
|
|
114
|
+
this._register(troubleshootButton.onDidClick(async () => {
|
|
115
|
+
if (!this.currentSessionResource) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const widget = await this.chatWidgetService.openSession(this.currentSessionResource);
|
|
119
|
+
if (widget) {
|
|
120
|
+
const attachment = await createDebugEventsAttachment(this.currentSessionResource, this.chatDebugService);
|
|
121
|
+
widget.attachmentModel.addContext(attachment);
|
|
122
|
+
widget.focusInput();
|
|
123
|
+
}
|
|
124
|
+
}));
|
|
125
|
+
this._register(this.filterWidget.onDidChangeFilterText(text => {
|
|
126
|
+
this.filterState.setTextFilter(text);
|
|
127
|
+
}));
|
|
128
|
+
this._register(this.filterState.onDidChange(() => {
|
|
129
|
+
syncContextKeys();
|
|
130
|
+
this.updateMoreFiltersChecked();
|
|
131
|
+
this.refreshList();
|
|
132
|
+
}));
|
|
133
|
+
const contentContainer = append(this.container, $(".chat-debug-logs-content"));
|
|
134
|
+
const mainColumn = append(contentContainer, $(".chat-debug-logs-main"));
|
|
135
|
+
this.tableHeader = append(mainColumn, $(".chat-debug-table-header"));
|
|
136
|
+
append(
|
|
137
|
+
this.tableHeader,
|
|
138
|
+
$("span.chat-debug-col-created", undefined, ( localize(5710, "Created")))
|
|
139
|
+
);
|
|
140
|
+
append(this.tableHeader, $("span.chat-debug-col-name", undefined, ( localize(5711, "Name"))));
|
|
141
|
+
append(
|
|
142
|
+
this.tableHeader,
|
|
143
|
+
$("span.chat-debug-col-details", undefined, ( localize(5712, "Details")))
|
|
144
|
+
);
|
|
145
|
+
this.bodyContainer = append(mainColumn, $(".chat-debug-logs-body"));
|
|
146
|
+
this.listContainer = append(this.bodyContainer, $(".chat-debug-list-container"));
|
|
147
|
+
const accessibilityProvider = {
|
|
148
|
+
getAriaLabel: e => {
|
|
149
|
+
switch (e.kind) {
|
|
150
|
+
case "toolCall":
|
|
151
|
+
return localize(5713, "Tool call: {0}{1}", e.toolName, e.result ? ` (${e.result})` : "");
|
|
152
|
+
case "modelTurn":
|
|
153
|
+
return localize(
|
|
154
|
+
5714,
|
|
155
|
+
"Model turn: {0}{1}",
|
|
156
|
+
e.model ?? ( localize(5715, "model")),
|
|
157
|
+
e.totalTokens ? ( localize(5716, " {0} tokens", e.totalTokens)) : ""
|
|
158
|
+
);
|
|
159
|
+
case "generic":
|
|
160
|
+
return `${e.category ? e.category + ": " : ""}${e.name}: ${e.details ?? ""}`;
|
|
161
|
+
case "subagentInvocation":
|
|
162
|
+
return localize(
|
|
163
|
+
5717,
|
|
164
|
+
"Subagent: {0}{1}",
|
|
165
|
+
e.agentName,
|
|
166
|
+
e.description ? ` - ${e.description}` : ""
|
|
167
|
+
);
|
|
168
|
+
case "userMessage":
|
|
169
|
+
return localize(5718, "User message: {0}", e.message);
|
|
170
|
+
case "agentResponse":
|
|
171
|
+
return localize(5719, "Agent response: {0}", e.message);
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
getWidgetAriaLabel: () => ( localize(5720, "Chat Debug Events"))
|
|
175
|
+
};
|
|
176
|
+
let nextFallbackId = 0;
|
|
177
|
+
const fallbackIds = ( new WeakMap());
|
|
178
|
+
const identityProvider = {
|
|
179
|
+
getId: e => {
|
|
180
|
+
if (e.id) {
|
|
181
|
+
return e.id;
|
|
182
|
+
}
|
|
183
|
+
let fallback = fallbackIds.get(e);
|
|
184
|
+
if (!fallback) {
|
|
185
|
+
fallback = `_fallback_${nextFallbackId++}`;
|
|
186
|
+
fallbackIds.set(e, fallback);
|
|
187
|
+
}
|
|
188
|
+
return fallback;
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
this.list = this._register(
|
|
192
|
+
this.instantiationService.createInstance(WorkbenchList, "ChatDebugEvents", this.listContainer, ( new ChatDebugEventDelegate()), [( new ChatDebugEventRenderer())], {
|
|
193
|
+
identityProvider,
|
|
194
|
+
accessibilityProvider
|
|
195
|
+
})
|
|
196
|
+
);
|
|
197
|
+
this.treeContainer = append(this.bodyContainer, $(".chat-debug-list-container"));
|
|
198
|
+
hide(this.treeContainer);
|
|
199
|
+
this.tree = this._register(this.instantiationService.createInstance(
|
|
200
|
+
WorkbenchObjectTree,
|
|
201
|
+
"ChatDebugEventsTree",
|
|
202
|
+
this.treeContainer,
|
|
203
|
+
( new ChatDebugEventDelegate()),
|
|
204
|
+
[( new ChatDebugEventTreeRenderer())],
|
|
205
|
+
{
|
|
206
|
+
identityProvider,
|
|
207
|
+
accessibilityProvider
|
|
208
|
+
}
|
|
209
|
+
));
|
|
210
|
+
this.shimmerRow = append(this.bodyContainer, $(".chat-debug-logs-shimmer-row"));
|
|
211
|
+
this.shimmerRow.setAttribute("aria-label", ( localize(5721, "Loading more events…")));
|
|
212
|
+
this.shimmerRow.setAttribute("aria-busy", "true");
|
|
213
|
+
append(this.shimmerRow, $("span.chat-debug-logs-shimmer-bar"));
|
|
214
|
+
hide(this.shimmerRow);
|
|
215
|
+
this.detailPanel = this._register(
|
|
216
|
+
this.instantiationService.createInstance(ChatDebugDetailPanel, contentContainer)
|
|
217
|
+
);
|
|
218
|
+
this._register(this.detailPanel.onDidHide(() => {
|
|
219
|
+
if (this.list.getSelection().length > 0) {
|
|
220
|
+
this.list.setSelection([]);
|
|
221
|
+
}
|
|
222
|
+
if (this.tree.getSelection().length > 0) {
|
|
223
|
+
this.tree.setSelection([]);
|
|
224
|
+
}
|
|
225
|
+
}));
|
|
226
|
+
this._register(this.list.onDidChangeSelection(e => {
|
|
227
|
+
const selected = e.elements[0];
|
|
228
|
+
if (selected) {
|
|
229
|
+
this.detailPanel.show(selected);
|
|
230
|
+
} else {
|
|
231
|
+
this.detailPanel.hide();
|
|
232
|
+
}
|
|
233
|
+
}));
|
|
234
|
+
this._register(this.tree.onDidChangeSelection(e => {
|
|
235
|
+
const selected = e.elements[0];
|
|
236
|
+
if (selected) {
|
|
237
|
+
this.detailPanel.show(selected);
|
|
238
|
+
} else {
|
|
239
|
+
this.detailPanel.hide();
|
|
240
|
+
}
|
|
241
|
+
}));
|
|
242
|
+
}
|
|
243
|
+
setSession(sessionResource) {
|
|
244
|
+
this.currentSessionResource = sessionResource;
|
|
245
|
+
}
|
|
246
|
+
setFilterText(text) {
|
|
247
|
+
this.filterWidget.setFilterText(text);
|
|
248
|
+
}
|
|
249
|
+
show() {
|
|
250
|
+
show(this.container);
|
|
251
|
+
this.loadEvents();
|
|
252
|
+
this.refreshList();
|
|
253
|
+
}
|
|
254
|
+
hide() {
|
|
255
|
+
hide(this.container);
|
|
256
|
+
}
|
|
257
|
+
focus() {
|
|
258
|
+
if (this.logsViewMode === LogsViewMode.Tree) {
|
|
259
|
+
this.tree.domFocus();
|
|
260
|
+
} else {
|
|
261
|
+
this.list.domFocus();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
updateBreadcrumb() {
|
|
265
|
+
if (!this.currentSessionResource) {
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
const sessionTitle = this.chatService.getSessionTitle(this.currentSessionResource) || LocalChatSessionUri.parseLocalSessionId(this.currentSessionResource) || ( this.currentSessionResource.toString());
|
|
269
|
+
this.breadcrumbWidget.setItems([( new TextBreadcrumbItem(( localize(5722, "Agent Debug Panel")), true)), ( new TextBreadcrumbItem(sessionTitle, true)), ( new TextBreadcrumbItem(( localize(5723, "Logs"))))]);
|
|
270
|
+
}
|
|
271
|
+
layout(dimension) {
|
|
272
|
+
this.currentDimension = dimension;
|
|
273
|
+
const breadcrumbHeight = 22;
|
|
274
|
+
const headerHeight = this.headerContainer.offsetHeight;
|
|
275
|
+
const tableHeaderHeight = this.tableHeader.offsetHeight;
|
|
276
|
+
const detailVisible = this.detailPanel.element.style.display !== "none";
|
|
277
|
+
const detailWidth = detailVisible ? this.detailPanel.element.offsetWidth : 0;
|
|
278
|
+
const listHeight = dimension.height - breadcrumbHeight - headerHeight - tableHeaderHeight;
|
|
279
|
+
const listWidth = dimension.width - detailWidth;
|
|
280
|
+
if (this.logsViewMode === LogsViewMode.Tree) {
|
|
281
|
+
this.tree.layout(listHeight, listWidth);
|
|
282
|
+
} else {
|
|
283
|
+
this.list.layout(listHeight, listWidth);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
refreshList() {
|
|
287
|
+
let filtered = this.events;
|
|
288
|
+
filtered = filtered.filter(e => {
|
|
289
|
+
const category = e.kind === "generic" ? e.category : undefined;
|
|
290
|
+
return this.filterState.isKindVisible(e.kind, category);
|
|
291
|
+
});
|
|
292
|
+
filtered = filtered.filter(e => this.filterState.isTimestampVisible(e.created));
|
|
293
|
+
const filterText = this.filterState.textFilterWithoutTimestamps;
|
|
294
|
+
if (filterText) {
|
|
295
|
+
const terms = filterText.split(/\s*,\s*/).filter(t => t.length > 0);
|
|
296
|
+
const includeTerms = ( terms.filter(t => !t.startsWith("!")).map(t => t.trim()));
|
|
297
|
+
const excludeTerms = ( terms.filter(t => t.startsWith("!")).map(t => t.slice(1).trim())).filter(t => t.length > 0);
|
|
298
|
+
filtered = filtered.filter(e => {
|
|
299
|
+
const matchesText = term => {
|
|
300
|
+
if (e.kind.toLowerCase().includes(term)) {
|
|
301
|
+
return true;
|
|
302
|
+
}
|
|
303
|
+
switch (e.kind) {
|
|
304
|
+
case "toolCall":
|
|
305
|
+
return e.toolName.toLowerCase().includes(term) || (e.input?.toLowerCase().includes(term) ?? false) || (e.output?.toLowerCase().includes(term) ?? false);
|
|
306
|
+
case "modelTurn":
|
|
307
|
+
return (e.model?.toLowerCase().includes(term) ?? false);
|
|
308
|
+
case "generic":
|
|
309
|
+
return e.name.toLowerCase().includes(term) || (e.details?.toLowerCase().includes(term) ?? false) || (e.category?.toLowerCase().includes(term) ?? false);
|
|
310
|
+
case "subagentInvocation":
|
|
311
|
+
return e.agentName.toLowerCase().includes(term) || (e.description?.toLowerCase().includes(term) ?? false);
|
|
312
|
+
case "userMessage":
|
|
313
|
+
return e.message.toLowerCase().includes(term) || ( e.sections.some(
|
|
314
|
+
s => s.name.toLowerCase().includes(term) || s.content.toLowerCase().includes(term)
|
|
315
|
+
));
|
|
316
|
+
case "agentResponse":
|
|
317
|
+
return e.message.toLowerCase().includes(term) || ( e.sections.some(
|
|
318
|
+
s => s.name.toLowerCase().includes(term) || s.content.toLowerCase().includes(term)
|
|
319
|
+
));
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
if (( excludeTerms.some(term => matchesText(term)))) {
|
|
323
|
+
return false;
|
|
324
|
+
}
|
|
325
|
+
if (includeTerms.length > 0) {
|
|
326
|
+
return ( includeTerms.some(term => matchesText(term)));
|
|
327
|
+
}
|
|
328
|
+
return true;
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
if (this.logsViewMode === LogsViewMode.List) {
|
|
332
|
+
this.list.splice(0, this.list.length, filtered);
|
|
333
|
+
} else {
|
|
334
|
+
this.refreshTree(filtered);
|
|
335
|
+
}
|
|
336
|
+
this.updateShimmerPosition(filtered.length);
|
|
337
|
+
}
|
|
338
|
+
updateShimmerPosition(itemCount) {
|
|
339
|
+
this.shimmerRow.style.top = `${itemCount * 28}px`;
|
|
340
|
+
}
|
|
341
|
+
addEvent(event) {
|
|
342
|
+
this.events.push(event);
|
|
343
|
+
this.refreshList();
|
|
344
|
+
}
|
|
345
|
+
loadEvents() {
|
|
346
|
+
this.events = [
|
|
347
|
+
...this.chatDebugService.getEvents(this.currentSessionResource || undefined)
|
|
348
|
+
];
|
|
349
|
+
const addEventDisposable = this.chatDebugService.onDidAddEvent(e => {
|
|
350
|
+
if (!this.currentSessionResource || ( e.sessionResource.toString()) === ( this.currentSessionResource.toString())) {
|
|
351
|
+
this.events.push(e);
|
|
352
|
+
this.refreshList();
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
const clearEventsDisposable = this.chatDebugService.onDidClearProviderEvents(sessionResource => {
|
|
356
|
+
if (!this.currentSessionResource || ( sessionResource.toString()) === ( this.currentSessionResource.toString())) {
|
|
357
|
+
this.events = [
|
|
358
|
+
...this.chatDebugService.getEvents(this.currentSessionResource || undefined)
|
|
359
|
+
];
|
|
360
|
+
this.refreshList();
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
this.eventListener.value = combinedDisposable(addEventDisposable, clearEventsDisposable);
|
|
364
|
+
this.updateBreadcrumb();
|
|
365
|
+
this.trackSessionState();
|
|
366
|
+
}
|
|
367
|
+
trackSessionState() {
|
|
368
|
+
if (!this.currentSessionResource) {
|
|
369
|
+
hide(this.shimmerRow);
|
|
370
|
+
this.sessionStateDisposable.clear();
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
const model = this.chatService.getSession(this.currentSessionResource);
|
|
374
|
+
if (!model) {
|
|
375
|
+
hide(this.shimmerRow);
|
|
376
|
+
this.sessionStateDisposable.clear();
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
this.sessionStateDisposable.value = autorun(reader => {
|
|
380
|
+
const inProgress = model.requestInProgress.read(reader);
|
|
381
|
+
if (inProgress) {
|
|
382
|
+
show(this.shimmerRow);
|
|
383
|
+
} else {
|
|
384
|
+
hide(this.shimmerRow);
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
refreshTree(filtered) {
|
|
389
|
+
const treeElements = this.buildTreeHierarchy(filtered);
|
|
390
|
+
this.tree.setChildren(null, treeElements);
|
|
391
|
+
}
|
|
392
|
+
buildTreeHierarchy(events) {
|
|
393
|
+
const idToEvent = ( new Map());
|
|
394
|
+
const idToChildren = ( new Map());
|
|
395
|
+
const roots = [];
|
|
396
|
+
for (const event of events) {
|
|
397
|
+
if (event.id) {
|
|
398
|
+
idToEvent.set(event.id, event);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
for (const event of events) {
|
|
402
|
+
if (event.parentEventId && ( idToEvent.has(event.parentEventId))) {
|
|
403
|
+
let children = idToChildren.get(event.parentEventId);
|
|
404
|
+
if (!children) {
|
|
405
|
+
children = [];
|
|
406
|
+
idToChildren.set(event.parentEventId, children);
|
|
407
|
+
}
|
|
408
|
+
children.push(event);
|
|
409
|
+
} else {
|
|
410
|
+
roots.push(event);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
const toTreeElement = event => {
|
|
414
|
+
const children = event.id ? idToChildren.get(event.id) : undefined;
|
|
415
|
+
return {
|
|
416
|
+
element: event,
|
|
417
|
+
children: children?.map(toTreeElement),
|
|
418
|
+
collapsible: (children?.length ?? 0) > 0,
|
|
419
|
+
collapsed: false
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
return ( roots.map(toTreeElement));
|
|
423
|
+
}
|
|
424
|
+
toggleViewMode() {
|
|
425
|
+
if (this.logsViewMode === LogsViewMode.List) {
|
|
426
|
+
this.logsViewMode = LogsViewMode.Tree;
|
|
427
|
+
hide(this.listContainer);
|
|
428
|
+
show(this.treeContainer);
|
|
429
|
+
} else {
|
|
430
|
+
this.logsViewMode = LogsViewMode.List;
|
|
431
|
+
show(this.listContainer);
|
|
432
|
+
hide(this.treeContainer);
|
|
433
|
+
}
|
|
434
|
+
this.updateViewModeToggle();
|
|
435
|
+
this.refreshList();
|
|
436
|
+
if (this.currentDimension) {
|
|
437
|
+
this.layout(this.currentDimension);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
updateViewModeToggle() {
|
|
441
|
+
const el = this.viewModeToggle.element;
|
|
442
|
+
clearNode(el);
|
|
443
|
+
const isTree = this.logsViewMode === LogsViewMode.Tree;
|
|
444
|
+
append(el, $(
|
|
445
|
+
`span${ThemeIcon.asCSSSelector(isTree ? Codicon.listTree : Codicon.listFlat)}`
|
|
446
|
+
));
|
|
447
|
+
const labelContainer = append(el, $("span.chat-debug-view-mode-labels"));
|
|
448
|
+
const treeLabel = append(labelContainer, $("span.chat-debug-view-mode-label"));
|
|
449
|
+
treeLabel.textContent = ( localize(5724, "Tree View"));
|
|
450
|
+
const listLabel = append(labelContainer, $("span.chat-debug-view-mode-label"));
|
|
451
|
+
listLabel.textContent = ( localize(5725, "List View"));
|
|
452
|
+
if (isTree) {
|
|
453
|
+
listLabel.classList.add("hidden");
|
|
454
|
+
} else {
|
|
455
|
+
treeLabel.classList.add("hidden");
|
|
456
|
+
}
|
|
457
|
+
const activeLabel = isTree ? ( localize(5726, "Switch to List View")) : ( localize(5727, "Switch to Tree View"));
|
|
458
|
+
el.setAttribute("aria-label", activeLabel);
|
|
459
|
+
this.viewModeToggle.setTitle(activeLabel);
|
|
460
|
+
}
|
|
461
|
+
updateMoreFiltersChecked() {
|
|
462
|
+
this.filterWidget.checkMoreFilters(!this.filterState.isAllFiltersDefault());
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
ChatDebugLogsView = ( __decorate([( __param(2, IChatService)), ( __param(3, IChatDebugService)), ( __param(4, IInstantiationService)), ( __param(5, IContextKeyService)), ( __param(6, IChatWidgetService))], ChatDebugLogsView));
|
|
466
|
+
|
|
467
|
+
export { ChatDebugLogsView, LogsNavigation };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IChatDebugUserMessageEvent, IChatDebugAgentResponseEvent, IChatDebugEventMessageContent } from "../../common/chatDebugService.js";
|
|
3
|
+
/**
|
|
4
|
+
* Render a user message event with collapsible prompt sections.
|
|
5
|
+
*/
|
|
6
|
+
export declare function renderUserMessageContent(event: IChatDebugUserMessageEvent): {
|
|
7
|
+
element: HTMLElement;
|
|
8
|
+
disposables: DisposableStore;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Render an agent response event with collapsible response sections.
|
|
12
|
+
*/
|
|
13
|
+
export declare function renderAgentResponseContent(event: IChatDebugAgentResponseEvent): {
|
|
14
|
+
element: HTMLElement;
|
|
15
|
+
disposables: DisposableStore;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Convert a user message or agent response event to plain text for clipboard / editor output.
|
|
19
|
+
*/
|
|
20
|
+
export declare function messageEventToPlainText(event: IChatDebugUserMessageEvent | IChatDebugAgentResponseEvent): string;
|
|
21
|
+
/**
|
|
22
|
+
* Render a resolved message content (from resolveChatDebugLogEvent) with collapsible sections.
|
|
23
|
+
*/
|
|
24
|
+
export declare function renderResolvedMessageContent(content: IChatDebugEventMessageContent): {
|
|
25
|
+
element: HTMLElement;
|
|
26
|
+
disposables: DisposableStore;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Convert a resolved message content to plain text.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolvedMessageToPlainText(content: IChatDebugEventMessageContent): string;
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
|
|
2
|
+
import { $ as $$1, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
|
+
import { renderCollapsibleSection } from './chatDebugCollapsible.js';
|
|
6
|
+
|
|
7
|
+
const $ = $$1;
|
|
8
|
+
function renderUserMessageContent(event) {
|
|
9
|
+
const disposables = ( new DisposableStore());
|
|
10
|
+
const container = $("div.chat-debug-message-content");
|
|
11
|
+
container.tabIndex = 0;
|
|
12
|
+
append(
|
|
13
|
+
container,
|
|
14
|
+
$("div.chat-debug-message-content-title", undefined, ( localize(5728, "User Message")))
|
|
15
|
+
);
|
|
16
|
+
append(
|
|
17
|
+
container,
|
|
18
|
+
$("div.chat-debug-message-content-summary", undefined, event.message)
|
|
19
|
+
);
|
|
20
|
+
if (event.sections.length > 0) {
|
|
21
|
+
const sectionsContainer = append(container, $("div.chat-debug-message-sections"));
|
|
22
|
+
append(
|
|
23
|
+
sectionsContainer,
|
|
24
|
+
$("div.chat-debug-message-sections-label", undefined, ( localize(5729, "Prompt Sections ({0})", event.sections.length)))
|
|
25
|
+
);
|
|
26
|
+
for (const section of event.sections) {
|
|
27
|
+
renderCollapsibleSection(sectionsContainer, section, disposables);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
element: container,
|
|
32
|
+
disposables
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function renderAgentResponseContent(event) {
|
|
36
|
+
const disposables = ( new DisposableStore());
|
|
37
|
+
const container = $("div.chat-debug-message-content");
|
|
38
|
+
container.tabIndex = 0;
|
|
39
|
+
append(
|
|
40
|
+
container,
|
|
41
|
+
$("div.chat-debug-message-content-title", undefined, ( localize(5730, "Agent Response")))
|
|
42
|
+
);
|
|
43
|
+
append(
|
|
44
|
+
container,
|
|
45
|
+
$("div.chat-debug-message-content-summary", undefined, event.message)
|
|
46
|
+
);
|
|
47
|
+
if (event.sections.length > 0) {
|
|
48
|
+
const sectionsContainer = append(container, $("div.chat-debug-message-sections"));
|
|
49
|
+
append(
|
|
50
|
+
sectionsContainer,
|
|
51
|
+
$("div.chat-debug-message-sections-label", undefined, ( localize(5731, "Response Sections ({0})", event.sections.length)))
|
|
52
|
+
);
|
|
53
|
+
for (const section of event.sections) {
|
|
54
|
+
renderCollapsibleSection(sectionsContainer, section, disposables);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
element: container,
|
|
59
|
+
disposables
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function messageEventToPlainText(event) {
|
|
63
|
+
const lines = [];
|
|
64
|
+
const label = event.kind === "userMessage" ? ( localize(5728, "User Message")) : ( localize(5730, "Agent Response"));
|
|
65
|
+
lines.push(`${label}: ${event.message}`);
|
|
66
|
+
lines.push("");
|
|
67
|
+
for (const section of event.sections) {
|
|
68
|
+
lines.push(`--- ${section.name} ---`);
|
|
69
|
+
lines.push(section.content);
|
|
70
|
+
lines.push("");
|
|
71
|
+
}
|
|
72
|
+
return lines.join("\n");
|
|
73
|
+
}
|
|
74
|
+
function renderResolvedMessageContent(content) {
|
|
75
|
+
const disposables = ( new DisposableStore());
|
|
76
|
+
const container = $("div.chat-debug-message-content");
|
|
77
|
+
container.tabIndex = 0;
|
|
78
|
+
const title = content.type === "user" ? ( localize(5728, "User Message")) : ( localize(5730, "Agent Response"));
|
|
79
|
+
append(container, $("div.chat-debug-message-content-title", undefined, title));
|
|
80
|
+
append(
|
|
81
|
+
container,
|
|
82
|
+
$("div.chat-debug-message-content-summary", undefined, content.message)
|
|
83
|
+
);
|
|
84
|
+
if (content.sections.length > 0) {
|
|
85
|
+
const sectionsContainer = append(container, $("div.chat-debug-message-sections"));
|
|
86
|
+
const label = content.type === "user" ? ( localize(5729, "Prompt Sections ({0})", content.sections.length)) : ( localize(5731, "Response Sections ({0})", content.sections.length));
|
|
87
|
+
append(
|
|
88
|
+
sectionsContainer,
|
|
89
|
+
$("div.chat-debug-message-sections-label", undefined, label)
|
|
90
|
+
);
|
|
91
|
+
for (const section of content.sections) {
|
|
92
|
+
renderCollapsibleSection(sectionsContainer, section, disposables);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
element: container,
|
|
97
|
+
disposables
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function resolvedMessageToPlainText(content) {
|
|
101
|
+
const lines = [];
|
|
102
|
+
const label = content.type === "user" ? ( localize(5728, "User Message")) : ( localize(5730, "Agent Response"));
|
|
103
|
+
lines.push(`${label}: ${content.message}`);
|
|
104
|
+
lines.push("");
|
|
105
|
+
for (const section of content.sections) {
|
|
106
|
+
lines.push(`--- ${section.name} ---`);
|
|
107
|
+
lines.push(section.content);
|
|
108
|
+
lines.push("");
|
|
109
|
+
}
|
|
110
|
+
return lines.join("\n");
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { messageEventToPlainText, renderAgentResponseContent, renderResolvedMessageContent, renderUserMessageContent, resolvedMessageToPlainText };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IChatDebugEventModelTurnContent } from "../../common/chatDebugService.js";
|
|
3
|
+
/**
|
|
4
|
+
* Render a resolved model turn content with structured display of
|
|
5
|
+
* request metadata, token usage, and timing.
|
|
6
|
+
*/
|
|
7
|
+
export declare function renderModelTurnContent(content: IChatDebugEventModelTurnContent): {
|
|
8
|
+
element: HTMLElement;
|
|
9
|
+
disposables: DisposableStore;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Convert a resolved model turn content to plain text for clipboard / editor output.
|
|
13
|
+
*/
|
|
14
|
+
export declare function modelTurnContentToPlainText(content: IChatDebugEventModelTurnContent): string;
|