@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
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
4
4
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
5
|
-
import { fromNow } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
|
|
6
5
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
6
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
8
7
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
@@ -12,30 +11,29 @@ import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
12
11
|
import { openSession } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener';
|
|
13
12
|
import { isLocalAgentSessionItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
14
13
|
import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
|
|
15
|
-
import { AgentSessionsSorter, groupAgentSessionsByDate } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer';
|
|
16
|
-
import { AGENT_SESSION_RENAME_ACTION_ID, AGENT_SESSION_DELETE_ACTION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
14
|
+
import { sessionDateFromNow, AgentSessionsSorter, groupAgentSessionsByDate } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer';
|
|
15
|
+
import { getAgentSessionTime, AGENT_SESSION_RENAME_ACTION_ID, AGENT_SESSION_DELETE_ACTION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
16
|
+
import { AgentSessionsFilter } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter';
|
|
17
17
|
|
|
18
18
|
const archiveButton = {
|
|
19
19
|
iconClass: ThemeIcon.asClassName(Codicon.archive),
|
|
20
|
-
tooltip: ( localize(
|
|
20
|
+
tooltip: ( localize(5120, "Archive"))
|
|
21
21
|
};
|
|
22
22
|
const unarchiveButton = {
|
|
23
23
|
iconClass: ThemeIcon.asClassName(Codicon.inbox),
|
|
24
|
-
tooltip: ( localize(
|
|
24
|
+
tooltip: ( localize(5121, "Unarchive"))
|
|
25
25
|
};
|
|
26
26
|
const renameButton = {
|
|
27
27
|
iconClass: ThemeIcon.asClassName(Codicon.edit),
|
|
28
|
-
tooltip: ( localize(
|
|
28
|
+
tooltip: ( localize(5122, "Rename"))
|
|
29
29
|
};
|
|
30
30
|
const deleteButton = {
|
|
31
31
|
iconClass: ThemeIcon.asClassName(Codicon.trash),
|
|
32
|
-
tooltip: ( localize(
|
|
32
|
+
tooltip: ( localize(5123, "Delete"))
|
|
33
33
|
};
|
|
34
34
|
function getSessionDescription(session) {
|
|
35
35
|
const descriptionText = typeof session.description === "string" ? session.description : session.description ? renderAsPlaintext(session.description) : undefined;
|
|
36
|
-
const timeAgo =
|
|
37
|
-
session.timing.lastRequestEnded ?? session.timing.lastRequestStarted ?? session.timing.created
|
|
38
|
-
);
|
|
36
|
+
const timeAgo = sessionDateFromNow(getAgentSessionTime(session.timing));
|
|
39
37
|
const descriptionParts = [descriptionText, session.providerLabel, timeAgo].filter(part => !!part);
|
|
40
38
|
return descriptionParts.join(" • ");
|
|
41
39
|
}
|
|
@@ -50,11 +48,15 @@ function getSessionButtons(session) {
|
|
|
50
48
|
}
|
|
51
49
|
let AgentSessionsPicker = class AgentSessionsPicker {
|
|
52
50
|
constructor(
|
|
51
|
+
anchor,
|
|
52
|
+
options,
|
|
53
53
|
agentSessionsService,
|
|
54
54
|
quickInputService,
|
|
55
55
|
instantiationService,
|
|
56
56
|
commandService
|
|
57
57
|
) {
|
|
58
|
+
this.anchor = anchor;
|
|
59
|
+
this.options = options;
|
|
58
60
|
this.agentSessionsService = agentSessionsService;
|
|
59
61
|
this.quickInputService = quickInputService;
|
|
60
62
|
this.instantiationService = instantiationService;
|
|
@@ -66,19 +68,26 @@ let AgentSessionsPicker = class AgentSessionsPicker {
|
|
|
66
68
|
const picker = disposables.add(this.quickInputService.createQuickPick({
|
|
67
69
|
useSeparators: true
|
|
68
70
|
}));
|
|
69
|
-
|
|
71
|
+
const filter = disposables.add(this.instantiationService.createInstance(AgentSessionsFilter, {}));
|
|
72
|
+
picker.anchor = this.anchor;
|
|
73
|
+
picker.items = this.createPickerItems(filter);
|
|
70
74
|
picker.canAcceptInBackground = true;
|
|
71
|
-
picker.placeholder = ( localize(
|
|
75
|
+
picker.placeholder = ( localize(5124, "Search agent sessions by name"));
|
|
72
76
|
disposables.add(picker.onDidAccept(e => {
|
|
73
77
|
const pick = picker.selectedItems[0];
|
|
74
78
|
if (pick) {
|
|
75
|
-
|
|
79
|
+
const openOptions = {
|
|
76
80
|
sideBySide: e.inBackground,
|
|
77
81
|
editorOptions: {
|
|
78
82
|
preserveFocus: e.inBackground,
|
|
79
83
|
pinned: e.inBackground
|
|
80
84
|
}
|
|
81
|
-
}
|
|
85
|
+
};
|
|
86
|
+
if (this.options?.overrideSessionOpen) {
|
|
87
|
+
this.options.overrideSessionOpen(pick.session, openOptions);
|
|
88
|
+
} else {
|
|
89
|
+
this.instantiationService.invokeFunction(openSession, pick.session, openOptions);
|
|
90
|
+
}
|
|
82
91
|
}
|
|
83
92
|
if (!e.inBackground) {
|
|
84
93
|
picker.hide();
|
|
@@ -101,14 +110,14 @@ let AgentSessionsPicker = class AgentSessionsPicker {
|
|
|
101
110
|
await this.agentSessionsService.model.resolve(session.providerType);
|
|
102
111
|
this.pickAgentSession();
|
|
103
112
|
} else {
|
|
104
|
-
picker.items = this.createPickerItems();
|
|
113
|
+
picker.items = this.createPickerItems(filter);
|
|
105
114
|
}
|
|
106
115
|
}));
|
|
107
116
|
disposables.add(picker.onDidHide(() => disposables.dispose()));
|
|
108
117
|
picker.show();
|
|
109
118
|
}
|
|
110
|
-
createPickerItems() {
|
|
111
|
-
const sessions = this.agentSessionsService.model.sessions.sort(this.sorter.compare.bind(this.sorter));
|
|
119
|
+
createPickerItems(filter) {
|
|
120
|
+
const sessions = this.agentSessionsService.model.sessions.filter(session => !filter.exclude(session)).sort(this.sorter.compare.bind(this.sorter));
|
|
112
121
|
const items = [];
|
|
113
122
|
const groupedSessions = groupAgentSessionsByDate(sessions);
|
|
114
123
|
for (const group of ( groupedSessions.values())) {
|
|
@@ -136,6 +145,6 @@ let AgentSessionsPicker = class AgentSessionsPicker {
|
|
|
136
145
|
};
|
|
137
146
|
}
|
|
138
147
|
};
|
|
139
|
-
AgentSessionsPicker = ( __decorate([( __param(
|
|
148
|
+
AgentSessionsPicker = ( __decorate([( __param(2, IAgentSessionsService)), ( __param(3, IQuickInputService)), ( __param(4, IInstantiationService)), ( __param(5, ICommandService))], AgentSessionsPicker));
|
|
140
149
|
|
|
141
150
|
export { AgentSessionsPicker, archiveButton, deleteButton, getSessionButtons, getSessionDescription, renameButton, unarchiveButton };
|
package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare class AgentSessionsQuickAccessProvider extends PickerQuickAccessP
|
|
|
9
9
|
private readonly instantiationService;
|
|
10
10
|
private readonly commandService;
|
|
11
11
|
private readonly sorter;
|
|
12
|
+
private readonly filter;
|
|
12
13
|
constructor(agentSessionsService: IAgentSessionsService, instantiationService: IInstantiationService, commandService: ICommandService);
|
|
13
14
|
protected _getPicks(filter: string): Promise<(IQuickPickSeparator | IPickerQuickAccessItem)[]>;
|
|
14
15
|
private toPickItem;
|
package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js
CHANGED
|
@@ -11,6 +11,7 @@ import { openSession } from '@codingame/monaco-vscode-katex-common/vscode/vs/wor
|
|
|
11
11
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
12
12
|
import { AGENT_SESSION_DELETE_ACTION_ID, AGENT_SESSION_RENAME_ACTION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
13
13
|
import { getSessionDescription, getSessionButtons, unarchiveButton, archiveButton, deleteButton, renameButton } from './agentSessionsPicker.js';
|
|
14
|
+
import { AgentSessionsFilter } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter';
|
|
14
15
|
|
|
15
16
|
const AGENT_SESSIONS_QUICK_ACCESS_PREFIX = "agent ";
|
|
16
17
|
let AgentSessionsQuickAccessProvider = class AgentSessionsQuickAccessProvider extends PickerQuickAccessProvider {
|
|
@@ -18,17 +19,18 @@ let AgentSessionsQuickAccessProvider = class AgentSessionsQuickAccessProvider ex
|
|
|
18
19
|
super(AGENT_SESSIONS_QUICK_ACCESS_PREFIX, {
|
|
19
20
|
canAcceptInBackground: true,
|
|
20
21
|
noResultsPick: {
|
|
21
|
-
label: ( localize(
|
|
22
|
+
label: ( localize(5125, "No matching agent sessions"))
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
25
|
this.agentSessionsService = agentSessionsService;
|
|
25
26
|
this.instantiationService = instantiationService;
|
|
26
27
|
this.commandService = commandService;
|
|
27
28
|
this.sorter = ( new AgentSessionsSorter());
|
|
29
|
+
this.filter = this._register(this.instantiationService.createInstance(AgentSessionsFilter, {}));
|
|
28
30
|
}
|
|
29
31
|
async _getPicks(filter) {
|
|
30
32
|
const picks = [];
|
|
31
|
-
const sessions = this.agentSessionsService.model.sessions.sort(this.sorter.compare.bind(this.sorter));
|
|
33
|
+
const sessions = this.agentSessionsService.model.sessions.filter(session => !this.filter.exclude(session)).sort(this.sorter.compare.bind(this.sorter));
|
|
32
34
|
const groupedSessions = groupAgentSessionsByDate(sessions);
|
|
33
35
|
for (const group of ( groupedSessions.values())) {
|
|
34
36
|
if (group.sessions.length > 0) {
|
|
@@ -5,7 +5,7 @@ import { RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/c
|
|
|
5
5
|
const inAgentSessionProjection = ( new RawContextKey("chatInAgentSessionProjection", false, {
|
|
6
6
|
type: "boolean",
|
|
7
7
|
description: ( localize(
|
|
8
|
-
|
|
8
|
+
5151,
|
|
9
9
|
"True when the workbench is in agent session projection mode for reviewing an agent session."
|
|
10
10
|
))
|
|
11
11
|
}));
|
|
@@ -21,7 +21,7 @@ class EnterAgentSessionProjectionAction extends Action2 {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: EnterAgentSessionProjectionAction.ID,
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(5152, "Enter Agent Session Projection")),
|
|
25
25
|
category: CHAT_CATEGORY,
|
|
26
26
|
f1: false,
|
|
27
27
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.has(`config.${ChatConfiguration.AgentSessionProjectionEnabled}`)), ( inAgentSessionProjection.negate())))
|
|
@@ -50,7 +50,7 @@ class ExitAgentSessionProjectionAction extends Action2 {
|
|
|
50
50
|
constructor() {
|
|
51
51
|
super({
|
|
52
52
|
id: ExitAgentSessionProjectionAction.ID,
|
|
53
|
-
title: ( localize2(
|
|
53
|
+
title: ( localize2(5153, "Exit Agent Session Projection")),
|
|
54
54
|
category: CHAT_CATEGORY,
|
|
55
55
|
f1: true,
|
|
56
56
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, inAgentSessionProjection)),
|
|
@@ -68,13 +68,13 @@ class ExitAgentSessionProjectionAction extends Action2 {
|
|
|
68
68
|
}
|
|
69
69
|
class ToggleAgentStatusAction extends ToggleTitleBarConfigAction {
|
|
70
70
|
constructor() {
|
|
71
|
-
super(ChatConfiguration.AgentStatusEnabled, ( localize(
|
|
71
|
+
super(ChatConfiguration.AgentStatusEnabled, ( localize(5154, "Agent Status")), ( localize(5155, "Toggle visibility of the Agent Status in title bar")), 6, ( ContextKeyExpr.and(ChatContextKeys.enabled, ( IsCompactTitleBarContext.negate()), ChatContextKeys.supported, ( ContextKeyExpr.has("config.window.commandCenter")))));
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
class ToggleUnifiedAgentsBarAction extends ToggleTitleBarConfigAction {
|
|
75
75
|
constructor() {
|
|
76
|
-
super(ChatConfiguration.UnifiedAgentsBar, ( localize(
|
|
77
|
-
|
|
76
|
+
super(ChatConfiguration.UnifiedAgentsBar, ( localize(5156, "Agent Quick Input")), ( localize(
|
|
77
|
+
5157,
|
|
78
78
|
"Toggle Agent Quick Input, replacing the classic command center search box."
|
|
79
79
|
)), 7, ( ContextKeyExpr.and(ChatContextKeys.enabled, ( IsCompactTitleBarContext.negate()), ChatContextKeys.supported, ( ContextKeyExpr.has("config.window.commandCenter")))));
|
|
80
80
|
}
|
|
@@ -35,6 +35,8 @@ export declare class AgentSessionProjectionService extends Disposable implements
|
|
|
35
35
|
get isActive(): boolean;
|
|
36
36
|
/** Prevents re-entrant exits and enter-on-exit races */
|
|
37
37
|
private _isExiting;
|
|
38
|
+
/** Prevents checkForEmptyEditors from exiting during session swaps */
|
|
39
|
+
private _isSwappingSessions;
|
|
38
40
|
private _activeSession;
|
|
39
41
|
get activeSession(): IAgentSession | undefined;
|
|
40
42
|
private readonly _onDidChangeProjectionMode;
|
|
@@ -9,10 +9,10 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
9
9
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
10
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
11
11
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
12
|
+
import { MODAL_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
12
13
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
13
14
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
14
15
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
15
|
-
import { ChatViewPaneTarget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
16
16
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
17
17
|
import { AgentSessionProviders } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
18
18
|
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
@@ -64,6 +64,7 @@ let AgentSessionProjectionService = class AgentSessionProjectionService extends
|
|
|
64
64
|
this.agentSessionsService = agentSessionsService;
|
|
65
65
|
this._isActive = false;
|
|
66
66
|
this._isExiting = false;
|
|
67
|
+
this._isSwappingSessions = false;
|
|
67
68
|
this._onDidChangeProjectionMode = this._register(( new Emitter()));
|
|
68
69
|
this.onDidChangeProjectionMode = this._onDidChangeProjectionMode.event;
|
|
69
70
|
this._onDidChangeActiveSession = this._register(( new Emitter()));
|
|
@@ -80,7 +81,7 @@ let AgentSessionProjectionService = class AgentSessionProjectionService extends
|
|
|
80
81
|
return this.configurationService.getValue(ChatConfiguration.AgentSessionProjectionEnabled) === true;
|
|
81
82
|
}
|
|
82
83
|
_checkForEmptyEditors() {
|
|
83
|
-
if (!this._isActive || this._isExiting) {
|
|
84
|
+
if (!this._isActive || this._isExiting || this._isSwappingSessions) {
|
|
84
85
|
return;
|
|
85
86
|
}
|
|
86
87
|
const hasVisibleEditors = this.editorService.visibleEditors.length > 0;
|
|
@@ -109,7 +110,7 @@ let AgentSessionProjectionService = class AgentSessionProjectionService extends
|
|
|
109
110
|
async _openSessionInChatPanel(session) {
|
|
110
111
|
session.setRead(true);
|
|
111
112
|
await this.chatSessionsService.activateChatSessionItemProvider(session.providerType);
|
|
112
|
-
await this.chatWidgetService.openSession(session.resource,
|
|
113
|
+
await this.chatWidgetService.openSession(session.resource, undefined, {
|
|
113
114
|
title: {
|
|
114
115
|
preferred: session.label
|
|
115
116
|
},
|
|
@@ -131,17 +132,23 @@ let AgentSessionProjectionService = class AgentSessionProjectionService extends
|
|
|
131
132
|
`[AgentSessionProjection] Found ${diffResources.length} files with diffs to display`
|
|
132
133
|
);
|
|
133
134
|
if (diffResources.length > 0) {
|
|
134
|
-
await this.
|
|
135
|
-
|
|
136
|
-
});
|
|
137
|
-
await this.commandService.executeCommand("_workbench.openMultiDiffEditor", {
|
|
138
|
-
multiDiffSourceUri: session.resource.with({
|
|
135
|
+
await this.editorService.openEditor({
|
|
136
|
+
multiDiffSource: session.resource.with({
|
|
139
137
|
scheme: session.resource.scheme + "-agent-session-projection"
|
|
140
138
|
}),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
resources: ( diffResources.map(dr => ({
|
|
140
|
+
original: {
|
|
141
|
+
resource: dr.originalUri
|
|
142
|
+
},
|
|
143
|
+
modified: {
|
|
144
|
+
resource: dr.modifiedUri
|
|
145
|
+
}
|
|
146
|
+
}))),
|
|
147
|
+
label: ( localize(5158, "{0} - All Changes", session.label))
|
|
148
|
+
}, MODAL_GROUP);
|
|
149
|
+
this.logService.trace(
|
|
150
|
+
`[AgentSessionProjection] Multi-diff editor opened successfully in modal view`
|
|
151
|
+
);
|
|
145
152
|
const sessionKey = ( session.resource.toString());
|
|
146
153
|
const newWorkingSet = this.editorGroupsService.saveWorkingSet(`agent-session-projection-${sessionKey}`);
|
|
147
154
|
this._sessionWorkingSets.set(sessionKey, newWorkingSet);
|
|
@@ -176,19 +183,48 @@ let AgentSessionProjectionService = class AgentSessionProjectionService extends
|
|
|
176
183
|
this.logService.trace(
|
|
177
184
|
"[AgentSessionProjection] Session is in progress, opening chat without projection mode"
|
|
178
185
|
);
|
|
186
|
+
if (this._isActive) {
|
|
187
|
+
await this.exitProjection({
|
|
188
|
+
startNewChat: false
|
|
189
|
+
});
|
|
190
|
+
}
|
|
179
191
|
await this._openSessionInChatPanel(session);
|
|
180
192
|
return;
|
|
181
193
|
}
|
|
182
194
|
let hasUndecidedChanges = true;
|
|
195
|
+
let editingSessionExists = true;
|
|
183
196
|
if (session.providerType === AgentSessionProviders.Local) {
|
|
184
197
|
const editingSession = this.chatEditingService.getEditingSession(session.resource);
|
|
185
|
-
|
|
186
|
-
if (
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
198
|
+
editingSessionExists = !!editingSession;
|
|
199
|
+
if (editingSession) {
|
|
200
|
+
hasUndecidedChanges = ( editingSession.entries.get().some(e => e.state.get() === ModifiedFileEntryState.Modified));
|
|
201
|
+
if (!hasUndecidedChanges) {
|
|
202
|
+
this.logService.trace(
|
|
203
|
+
"[AgentSessionProjection] Local session has no undecided changes, opening chat without projection mode"
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
} else {
|
|
207
|
+
hasUndecidedChanges = false;
|
|
208
|
+
this.logService.trace("[AgentSessionProjection] Local session has no editing session yet");
|
|
190
209
|
}
|
|
191
210
|
}
|
|
211
|
+
if (!hasUndecidedChanges && this._isActive && editingSessionExists) {
|
|
212
|
+
this.logService.trace(
|
|
213
|
+
"[AgentSessionProjection] Switching to session without changes while in projection mode, exiting projection"
|
|
214
|
+
);
|
|
215
|
+
await this.exitProjection({
|
|
216
|
+
startNewChat: false
|
|
217
|
+
});
|
|
218
|
+
await this._openSessionInChatPanel(session);
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
if (!hasUndecidedChanges && this._isActive && !editingSessionExists) {
|
|
222
|
+
this.logService.trace(
|
|
223
|
+
"[AgentSessionProjection] Switching to session without editing session while in projection mode, staying in projection"
|
|
224
|
+
);
|
|
225
|
+
await this._openSessionInChatPanel(session);
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
192
228
|
if (hasUndecidedChanges) {
|
|
193
229
|
if (!this._isActive && !this._preProjectionWorkingSet) {
|
|
194
230
|
const visibleEditorsBefore = this.editorService.visibleEditors.length;
|
|
@@ -198,46 +234,49 @@ let AgentSessionProjectionService = class AgentSessionProjectionService extends
|
|
|
198
234
|
visibleEditorsBefore
|
|
199
235
|
});
|
|
200
236
|
}
|
|
201
|
-
|
|
237
|
+
const isSwapping = this._isActive && this._activeSession;
|
|
238
|
+
if (isSwapping) {
|
|
239
|
+
this._isSwappingSessions = true;
|
|
202
240
|
const previousSessionKey = ( this._activeSession.resource.toString());
|
|
203
241
|
const previousWorkingSet = this.editorGroupsService.saveWorkingSet(`agent-session-projection-${previousSessionKey}`);
|
|
204
242
|
this._sessionWorkingSets.set(previousSessionKey, previousWorkingSet);
|
|
205
243
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
} else {
|
|
213
|
-
filesOpened = await this._openSessionFiles(session);
|
|
214
|
-
}
|
|
215
|
-
if (!filesOpened) {
|
|
216
|
-
this.logService.trace(
|
|
217
|
-
"[AgentSessionProjection] No files to display, opening chat without projection mode"
|
|
218
|
-
);
|
|
219
|
-
if (!this._isActive && this._preProjectionWorkingSet) {
|
|
220
|
-
await this.editorGroupsService.applyWorkingSet(this._preProjectionWorkingSet);
|
|
221
|
-
this.editorGroupsService.deleteWorkingSet(this._preProjectionWorkingSet);
|
|
222
|
-
this._preProjectionWorkingSet = undefined;
|
|
223
|
-
}
|
|
224
|
-
} else {
|
|
225
|
-
const wasActive = this._isActive;
|
|
226
|
-
this._isActive = true;
|
|
227
|
-
this._activeSession = session;
|
|
228
|
-
this._inProjectionModeContextKey.set(true);
|
|
229
|
-
this.layoutService.mainContainer.classList.add("agent-session-projection-active");
|
|
230
|
-
if (!wasActive) {
|
|
231
|
-
this._wasAuxiliaryBarMaximized = isAuxBarMaximized;
|
|
232
|
-
this.logService.trace("[AgentSessionProjection] captured auxiliary bar maximized state", {
|
|
233
|
-
wasAuxiliaryBarMaximized: this._wasAuxiliaryBarMaximized
|
|
234
|
-
});
|
|
244
|
+
try {
|
|
245
|
+
let filesOpened = false;
|
|
246
|
+
if (session.providerType === AgentSessionProviders.Local) {
|
|
247
|
+
filesOpened = true;
|
|
248
|
+
} else {
|
|
249
|
+
filesOpened = await this._openSessionFiles(session);
|
|
235
250
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
251
|
+
if (!filesOpened) {
|
|
252
|
+
this.logService.trace(
|
|
253
|
+
"[AgentSessionProjection] No files to display, opening chat without projection mode"
|
|
254
|
+
);
|
|
255
|
+
if (!this._isActive && this._preProjectionWorkingSet) {
|
|
256
|
+
await this.editorGroupsService.applyWorkingSet(this._preProjectionWorkingSet);
|
|
257
|
+
this.editorGroupsService.deleteWorkingSet(this._preProjectionWorkingSet);
|
|
258
|
+
this._preProjectionWorkingSet = undefined;
|
|
259
|
+
}
|
|
260
|
+
} else {
|
|
261
|
+
const wasActive = this._isActive;
|
|
262
|
+
this._isActive = true;
|
|
263
|
+
this._activeSession = session;
|
|
264
|
+
this._inProjectionModeContextKey.set(true);
|
|
265
|
+
this.layoutService.mainContainer.classList.add("agent-session-projection-active");
|
|
266
|
+
if (!wasActive) {
|
|
267
|
+
this._wasAuxiliaryBarMaximized = isAuxBarMaximized;
|
|
268
|
+
this.logService.trace("[AgentSessionProjection] captured auxiliary bar maximized state", {
|
|
269
|
+
wasAuxiliaryBarMaximized: this._wasAuxiliaryBarMaximized
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
this.agentTitleBarStatusService.enterSessionMode(session.resource, session.label);
|
|
273
|
+
if (!wasActive) {
|
|
274
|
+
this._onDidChangeProjectionMode.fire(true);
|
|
275
|
+
}
|
|
276
|
+
this._onDidChangeActiveSession.fire(session);
|
|
239
277
|
}
|
|
240
|
-
|
|
278
|
+
} finally {
|
|
279
|
+
this._isSwappingSessions = false;
|
|
241
280
|
}
|
|
242
281
|
}
|
|
243
282
|
await this._openSessionInChatPanel(session);
|
|
@@ -73,6 +73,12 @@ let AgentSessionReadyContribution = class AgentSessionReadyContribution extends
|
|
|
73
73
|
this._checkSession(currentWidget.viewModel?.sessionResource);
|
|
74
74
|
}
|
|
75
75
|
}));
|
|
76
|
+
this._register(this.agentSessionsService.model.onDidChangeSessions(() => {
|
|
77
|
+
const currentWidget = this.chatWidgetService.getAllWidgets().find(w => w.location === ChatAgentLocation.Chat);
|
|
78
|
+
if (currentWidget) {
|
|
79
|
+
this._checkSession(currentWidget.viewModel?.sessionResource);
|
|
80
|
+
}
|
|
81
|
+
}));
|
|
76
82
|
}
|
|
77
83
|
_watchWidget(widget) {
|
|
78
84
|
this._widgetDisposables.clear();
|
|
@@ -85,6 +91,16 @@ let AgentSessionReadyContribution = class AgentSessionReadyContribution extends
|
|
|
85
91
|
if (sessionResource?.toString() !== this._watchedSessionResource?.toString()) {
|
|
86
92
|
this._suppressSessionReady = false;
|
|
87
93
|
}
|
|
94
|
+
if (this.agentSessionProjectionService.isActive) {
|
|
95
|
+
const activeSession = this.agentSessionProjectionService.activeSession;
|
|
96
|
+
if (sessionResource && activeSession && ( sessionResource.toString()) !== ( activeSession.resource.toString())) {
|
|
97
|
+
const newSession = this.agentSessionsService.getSession(sessionResource);
|
|
98
|
+
if (newSession) {
|
|
99
|
+
this.agentSessionProjectionService.enterProjection(newSession);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
88
104
|
this._updateSessionReadyState(sessionResource);
|
|
89
105
|
}
|
|
90
106
|
_clearEntriesWatcher() {
|
|
@@ -101,7 +117,6 @@ let AgentSessionReadyContribution = class AgentSessionReadyContribution extends
|
|
|
101
117
|
}
|
|
102
118
|
if (this.agentSessionProjectionService.isActive) {
|
|
103
119
|
this._clearEntriesWatcher();
|
|
104
|
-
this.agentTitleBarStatusService.exitSessionReadyMode();
|
|
105
120
|
return;
|
|
106
121
|
}
|
|
107
122
|
if (!sessionResource) {
|
|
@@ -181,14 +196,14 @@ registerWorkbenchContribution2(
|
|
|
181
196
|
);
|
|
182
197
|
MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
|
|
183
198
|
submenu: MenuId.AgentsTitleBarControlMenu,
|
|
184
|
-
title: ( localize(
|
|
199
|
+
title: ( localize(5159, "Agents")),
|
|
185
200
|
icon: Codicon.chatSparkle,
|
|
186
201
|
when: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(( ContextKeyExpr.has(`config.${ChatConfiguration.AgentStatusEnabled}`)), ( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedAgentsBar}`)))))),
|
|
187
202
|
order: 10002
|
|
188
203
|
});
|
|
189
204
|
MenuRegistry.appendMenuItem(MenuId.TitleBar, {
|
|
190
205
|
submenu: MenuId.ChatTitleBarMenu,
|
|
191
|
-
title: ( localize(
|
|
206
|
+
title: ( localize(5160, "Chat")),
|
|
192
207
|
group: "navigation",
|
|
193
208
|
icon: Codicon.chatSparkle,
|
|
194
209
|
when: ( ContextKeyExpr.and(ChatContextKeys.supported, ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabled.negate()))), ( ContextKeyExpr.has(`config.${ChatConfiguration.AgentStatusEnabled}`)), ( ( ContextKeyExpr.has("config.window.commandCenter")).negate()))),
|
|
@@ -197,7 +212,7 @@ MenuRegistry.appendMenuItem(MenuId.TitleBar, {
|
|
|
197
212
|
MenuRegistry.appendMenuItem(MenuId.AgentsTitleBarControlMenu, {
|
|
198
213
|
command: {
|
|
199
214
|
id: "workbench.action.chat.toggle",
|
|
200
|
-
title: ( localize(
|
|
215
|
+
title: ( localize(5161, "Open Chat"))
|
|
201
216
|
},
|
|
202
217
|
when: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(( ContextKeyExpr.has(`config.${ChatConfiguration.AgentStatusEnabled}`)), ( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedAgentsBar}`)))))),
|
|
203
218
|
group: "a_open",
|
|
@@ -206,7 +221,7 @@ MenuRegistry.appendMenuItem(MenuId.AgentsTitleBarControlMenu, {
|
|
|
206
221
|
MenuRegistry.appendMenuItem(MenuId.AgentsTitleBarControlMenu, {
|
|
207
222
|
command: {
|
|
208
223
|
id: `toggle.${ChatConfiguration.UnifiedAgentsBar}`,
|
|
209
|
-
title: ( localize(
|
|
224
|
+
title: ( localize(5162, "Agent Quick Input (Experimental)")),
|
|
210
225
|
toggled: ( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedAgentsBar}`))
|
|
211
226
|
},
|
|
212
227
|
when: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ProductQualityContext.notEqualsTo("stable")))),
|
|
@@ -20,6 +20,7 @@ import { IActionViewItemService } from "@codingame/monaco-vscode-api/vscode/vs/p
|
|
|
20
20
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
21
21
|
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
22
22
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
23
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
23
24
|
/**
|
|
24
25
|
* Agent Status Widget - renders agent status in the command center.
|
|
25
26
|
*
|
|
@@ -47,6 +48,7 @@ export declare class AgentTitleBarStatusWidget extends BaseActionViewItem {
|
|
|
47
48
|
private readonly configurationService;
|
|
48
49
|
private readonly chatEntitlementService;
|
|
49
50
|
private readonly chatWidgetService;
|
|
51
|
+
private readonly telemetryService;
|
|
50
52
|
private _container;
|
|
51
53
|
private readonly _dynamicDisposables;
|
|
52
54
|
/** The currently displayed in-progress session (if any) - clicking pill opens this */
|
|
@@ -63,7 +65,7 @@ export declare class AgentTitleBarStatusWidget extends BaseActionViewItem {
|
|
|
63
65
|
private readonly _commandCenterMenu;
|
|
64
66
|
/** Menu for ChatTitleBarMenu items (same as chat controls dropdown) */
|
|
65
67
|
private readonly _chatTitleBarMenu;
|
|
66
|
-
constructor(action: IAction, options: IBaseActionViewItemOptions | undefined, instantiationService: IInstantiationService, agentTitleBarStatusService: IAgentTitleBarStatusService, hoverService: IHoverService, commandService: ICommandService, keybindingService: IKeybindingService, agentSessionsService: IAgentSessionsService, labelService: ILabelService, workspaceContextService: IWorkspaceContextService, environmentService: IBrowserWorkbenchEnvironmentService, editorGroupsService: IEditorGroupsService, editorService: IEditorService, menuService: IMenuService, contextKeyService: IContextKeyService, storageService: IStorageService, configurationService: IConfigurationService, chatEntitlementService: IChatEntitlementService, chatWidgetService: IChatWidgetService);
|
|
68
|
+
constructor(action: IAction, options: IBaseActionViewItemOptions | undefined, instantiationService: IInstantiationService, agentTitleBarStatusService: IAgentTitleBarStatusService, hoverService: IHoverService, commandService: ICommandService, keybindingService: IKeybindingService, agentSessionsService: IAgentSessionsService, labelService: ILabelService, workspaceContextService: IWorkspaceContextService, environmentService: IBrowserWorkbenchEnvironmentService, editorGroupsService: IEditorGroupsService, editorService: IEditorService, menuService: IMenuService, contextKeyService: IContextKeyService, storageService: IStorageService, configurationService: IConfigurationService, chatEntitlementService: IChatEntitlementService, chatWidgetService: IChatWidgetService, telemetryService: ITelemetryService);
|
|
67
69
|
render(container: HTMLElement): void;
|
|
68
70
|
setFocusable(_focusable: boolean): void;
|
|
69
71
|
focus(): void;
|