@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
|
@@ -7,6 +7,7 @@ import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/h
|
|
|
7
7
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
8
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
9
9
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
10
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
10
11
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
11
12
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
12
13
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
@@ -29,11 +30,14 @@ import { IActivityService } from "@codingame/monaco-vscode-api/vscode/vs/workben
|
|
|
29
30
|
import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
|
|
30
31
|
import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
|
|
31
32
|
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
33
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
34
|
+
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
32
35
|
export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelegate {
|
|
33
36
|
private readonly storageService;
|
|
34
37
|
private readonly chatService;
|
|
35
38
|
private readonly chatAgentService;
|
|
36
39
|
private readonly logService;
|
|
40
|
+
private readonly notificationService;
|
|
37
41
|
private readonly layoutService;
|
|
38
42
|
private readonly chatSessionsService;
|
|
39
43
|
private readonly telemetryService;
|
|
@@ -42,6 +46,8 @@ export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelega
|
|
|
42
46
|
private readonly chatEntitlementService;
|
|
43
47
|
private readonly commandService;
|
|
44
48
|
private readonly activityService;
|
|
49
|
+
private readonly workbenchEnvironmentService;
|
|
50
|
+
private readonly hostService;
|
|
45
51
|
private readonly memento;
|
|
46
52
|
private readonly viewState;
|
|
47
53
|
private viewPaneContainer;
|
|
@@ -52,7 +58,7 @@ export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelega
|
|
|
52
58
|
private restoringSession;
|
|
53
59
|
private readonly modelRef;
|
|
54
60
|
private readonly activityBadge;
|
|
55
|
-
constructor(options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, storageService: IStorageService, chatService: IChatService, chatAgentService: IChatAgentService, logService: ILogService, layoutService: IWorkbenchLayoutService, chatSessionsService: IChatSessionsService, telemetryService: ITelemetryService, lifecycleService: ILifecycleService, progressService: IProgressService, agentSessionsService: IAgentSessionsService, chatEntitlementService: IChatEntitlementService, commandService: ICommandService, activityService: IActivityService);
|
|
61
|
+
constructor(options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, storageService: IStorageService, chatService: IChatService, chatAgentService: IChatAgentService, logService: ILogService, notificationService: INotificationService, layoutService: IWorkbenchLayoutService, chatSessionsService: IChatSessionsService, telemetryService: ITelemetryService, lifecycleService: ILifecycleService, progressService: IProgressService, agentSessionsService: IAgentSessionsService, chatEntitlementService: IChatEntitlementService, commandService: ICommandService, activityService: IActivityService, workbenchEnvironmentService: IWorkbenchEnvironmentService, hostService: IHostService);
|
|
56
62
|
private updateContextKeys;
|
|
57
63
|
private getViewPositionAndLocation;
|
|
58
64
|
private getSessionHoverPosition;
|
|
@@ -97,6 +103,7 @@ export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelega
|
|
|
97
103
|
private registerControlsListeners;
|
|
98
104
|
private setupContextMenu;
|
|
99
105
|
private applyModel;
|
|
106
|
+
private _applyModel;
|
|
100
107
|
private showModel;
|
|
101
108
|
private updateWidgetLockState;
|
|
102
109
|
private clear;
|
|
@@ -23,6 +23,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
23
23
|
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
24
24
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
25
25
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
26
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
26
27
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
27
28
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
28
29
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
@@ -72,6 +73,9 @@ import { AgentSessionsFilter, AgentSessionsGrouping } from '@codingame/monaco-vs
|
|
|
72
73
|
import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
|
|
73
74
|
import { HoverPosition } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverWidget';
|
|
74
75
|
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
76
|
+
import { toErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errorMessage';
|
|
77
|
+
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
78
|
+
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
75
79
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
76
80
|
|
|
77
81
|
var ChatViewPane_1;
|
|
@@ -95,6 +99,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
95
99
|
chatService,
|
|
96
100
|
chatAgentService,
|
|
97
101
|
logService,
|
|
102
|
+
notificationService,
|
|
98
103
|
layoutService,
|
|
99
104
|
chatSessionsService,
|
|
100
105
|
telemetryService,
|
|
@@ -103,7 +108,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
103
108
|
agentSessionsService,
|
|
104
109
|
chatEntitlementService,
|
|
105
110
|
commandService,
|
|
106
|
-
activityService
|
|
111
|
+
activityService,
|
|
112
|
+
workbenchEnvironmentService,
|
|
113
|
+
hostService
|
|
107
114
|
) {
|
|
108
115
|
super(
|
|
109
116
|
options,
|
|
@@ -121,6 +128,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
121
128
|
this.chatService = chatService;
|
|
122
129
|
this.chatAgentService = chatAgentService;
|
|
123
130
|
this.logService = logService;
|
|
131
|
+
this.notificationService = notificationService;
|
|
124
132
|
this.layoutService = layoutService;
|
|
125
133
|
this.chatSessionsService = chatSessionsService;
|
|
126
134
|
this.telemetryService = telemetryService;
|
|
@@ -129,6 +137,8 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
129
137
|
this.chatEntitlementService = chatEntitlementService;
|
|
130
138
|
this.commandService = commandService;
|
|
131
139
|
this.activityService = activityService;
|
|
140
|
+
this.workbenchEnvironmentService = workbenchEnvironmentService;
|
|
141
|
+
this.hostService = hostService;
|
|
132
142
|
this.lastDimensionsPerOrientation = ( new Map());
|
|
133
143
|
this.modelRef = this._register(( new MutableDisposable()));
|
|
134
144
|
this.activityBadge = this._register(( new MutableDisposable()));
|
|
@@ -140,6 +150,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
140
150
|
this.viewState = this.memento.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
141
151
|
if (lifecycleService.startupKind !== StartupKind.ReloadedWindow && this.configurationService.getValue(ChatConfiguration.RestoreLastPanelSession) === false) {
|
|
142
152
|
this.viewState.sessionId = undefined;
|
|
153
|
+
this.viewState.sessionResource = undefined;
|
|
143
154
|
}
|
|
144
155
|
this.sessionsViewerVisible = false;
|
|
145
156
|
this.sessionsViewerSidebarWidth = Math.max(
|
|
@@ -199,8 +210,6 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
199
210
|
}[viewLocation === ViewContainerLocation.Panel ? this.layoutService.getPanelPosition() : sideBarPosition];
|
|
200
211
|
}
|
|
201
212
|
updateViewPaneClasses(fromEvent) {
|
|
202
|
-
const welcomeEnabled = !this.chatEntitlementService.sentiment.installed;
|
|
203
|
-
this.viewPaneContainer?.classList.toggle("chat-view-welcome-enabled", welcomeEnabled);
|
|
204
213
|
const activityBarLocationDefault = this.configurationService.getValue(LayoutSettings.ACTIVITY_BAR_LOCATION) === "default";
|
|
205
214
|
this.viewPaneContainer?.classList.toggle("activity-bar-location-default", activityBarLocationDefault);
|
|
206
215
|
this.viewPaneContainer?.classList.toggle("activity-bar-location-other", !activityBarLocationDefault);
|
|
@@ -235,15 +244,12 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
235
244
|
this._register(Event.filter(this.configurationService.onDidChangeConfiguration, e => {
|
|
236
245
|
return e.affectsConfiguration(LayoutSettings.ACTIVITY_BAR_LOCATION);
|
|
237
246
|
})(() => this.updateViewPaneClasses(true)));
|
|
238
|
-
this._register(this.chatEntitlementService.onDidChangeSentiment(() => {
|
|
239
|
-
this.updateViewPaneClasses(true);
|
|
240
|
-
}));
|
|
241
247
|
}
|
|
242
248
|
onDidChangeAgents() {
|
|
243
249
|
if (this.chatAgentService.getDefaultAgent(ChatAgentLocation.Chat)) {
|
|
244
250
|
if (!this._widget?.viewModel && !this.restoringSession) {
|
|
245
251
|
const sessionResource = this.getTransferredOrPersistedSessionInfo();
|
|
246
|
-
this.restoringSession = (sessionResource ? this.chatService.
|
|
252
|
+
this.restoringSession = (sessionResource ? this.chatService.acquireOrLoadSession(sessionResource, ChatAgentLocation.Chat, CancellationToken.None) : Promise.resolve(undefined)).then(async modelRef => {
|
|
247
253
|
if (!this._widget) {
|
|
248
254
|
return;
|
|
249
255
|
}
|
|
@@ -264,6 +270,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
264
270
|
if (this.chatService.transferredSessionResource) {
|
|
265
271
|
return this.chatService.transferredSessionResource;
|
|
266
272
|
}
|
|
273
|
+
if (this.viewState.sessionResource) {
|
|
274
|
+
return this.viewState.sessionResource;
|
|
275
|
+
}
|
|
267
276
|
return this.viewState.sessionId ? LocalChatSessionUri.forSession(this.viewState.sessionId) : undefined;
|
|
268
277
|
}
|
|
269
278
|
renderBody(parent) {
|
|
@@ -304,7 +313,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
304
313
|
const sessionsContainer = this.sessionsContainer = parent.appendChild($(".agent-sessions-container"));
|
|
305
314
|
const sessionsTitleContainer = this.sessionsTitleContainer = append(sessionsContainer, $(".agent-sessions-title-container"));
|
|
306
315
|
const sessionsTitle = this.sessionsTitle = append(sessionsTitleContainer, $("span.agent-sessions-title"));
|
|
307
|
-
sessionsTitle.textContent = ( localize(
|
|
316
|
+
sessionsTitle.textContent = ( localize(6894, "Sessions"));
|
|
308
317
|
this._register(addDisposableListener(sessionsTitle, EventType.CLICK, () => {
|
|
309
318
|
this.sessionsControl?.scrollToTop();
|
|
310
319
|
this.sessionsControl?.focus();
|
|
@@ -332,7 +341,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
332
341
|
...defaultButtonStyles,
|
|
333
342
|
secondary: true
|
|
334
343
|
})));
|
|
335
|
-
newSessionButton.label = ( localize(
|
|
344
|
+
newSessionButton.label = ( localize(6895, "New Session"));
|
|
336
345
|
this._register(
|
|
337
346
|
newSessionButton.onDidClick(() => this.commandService.executeCommand(ACTION_ID_NEW_CHAT))
|
|
338
347
|
);
|
|
@@ -364,6 +373,11 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
364
373
|
this.onDidChangeBodyVisibility(visible => sessionsControl.setVisible(visible))
|
|
365
374
|
);
|
|
366
375
|
sessionsToolbar.context = sessionsControl;
|
|
376
|
+
this._register(this.hostService.onDidChangeFocus(hasFocus => {
|
|
377
|
+
if (hasFocus) {
|
|
378
|
+
sessionsControl.refresh();
|
|
379
|
+
}
|
|
380
|
+
}));
|
|
367
381
|
this._register(Event.runAndSubscribe(Event.filter(
|
|
368
382
|
this.configurationService.onDidChangeConfiguration,
|
|
369
383
|
e => e.affectsConfiguration(ChatConfiguration.ChatViewSessionsOrientation)
|
|
@@ -417,7 +431,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
417
431
|
} else {
|
|
418
432
|
if (this.sessionsViewerOrientation === AgentSessionsViewerOrientation.Stacked) {
|
|
419
433
|
newSessionsContainerVisible =
|
|
420
|
-
!!this.chatEntitlementService.sentiment.installed && (!this._widget || (this._widget.isEmpty() && !!this._widget.viewModel)) && !this.welcomeController?.isShowingWelcome.get();
|
|
434
|
+
!!this.chatEntitlementService.sentiment.installed && (!this._widget || (this._widget.isEmpty() && !!this._widget.viewModel && !this._widget.viewModel.model.title)) && !this.welcomeController?.isShowingWelcome.get();
|
|
421
435
|
}
|
|
422
436
|
else {
|
|
423
437
|
newSessionsContainerVisible =
|
|
@@ -448,7 +462,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
448
462
|
const locationBasedColors = this.getLocationBasedColors();
|
|
449
463
|
const editorOverflowWidgetsDomNode = this.layoutService.getContainer(getWindow(chatControlsContainer)).appendChild($(".chat-editor-overflow.monaco-editor"));
|
|
450
464
|
this._register(toDisposable(() => editorOverflowWidgetsDomNode.remove()));
|
|
451
|
-
this.
|
|
465
|
+
if (this.viewDescriptorService.getViewLocationById(this.id) !== ViewContainerLocation.ChatBar) {
|
|
466
|
+
this.createChatTitleControl(chatControlsContainer);
|
|
467
|
+
}
|
|
452
468
|
const scopedInstantiationService = this._register(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, this.scopedContextKeyService]))));
|
|
453
469
|
this._widget = this._register(
|
|
454
470
|
scopedInstantiationService.createInstance(ChatWidget, ChatAgentLocation.Chat, {
|
|
@@ -467,9 +483,11 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
467
483
|
},
|
|
468
484
|
editorOverflowWidgetsDomNode,
|
|
469
485
|
enableImplicitContext: true,
|
|
470
|
-
enableWorkingSet: "explicit",
|
|
486
|
+
enableWorkingSet: this.workbenchEnvironmentService.isSessionsWindow ? "implicit" : "explicit",
|
|
471
487
|
supportsChangingModes: true,
|
|
472
|
-
dndContainer: parent
|
|
488
|
+
dndContainer: parent,
|
|
489
|
+
inputEditorMinLines: this.workbenchEnvironmentService.isSessionsWindow ? 2 : undefined,
|
|
490
|
+
isSessionsWindow: this.workbenchEnvironmentService.isSessionsWindow
|
|
473
491
|
}, {
|
|
474
492
|
listForeground: SIDE_BAR_FOREGROUND,
|
|
475
493
|
listBackground: locationBasedColors.background,
|
|
@@ -555,7 +573,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
555
573
|
progressBadgeDisposables.value.add(autorun(reader => {
|
|
556
574
|
if (model.requestInProgress.read(reader)) {
|
|
557
575
|
this.activityBadge.value = this.activityService.showViewActivity(this.id, {
|
|
558
|
-
badge: ( new ProgressBadge(() => ( localize(
|
|
576
|
+
badge: ( new ProgressBadge(() => ( localize(6896, "Agent Session in Progress"))))
|
|
559
577
|
});
|
|
560
578
|
} else {
|
|
561
579
|
this.activityBadge.clear();
|
|
@@ -582,9 +600,13 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
582
600
|
});
|
|
583
601
|
}));
|
|
584
602
|
}
|
|
585
|
-
|
|
603
|
+
applyModel() {
|
|
604
|
+
this.restoringSession = this._applyModel();
|
|
605
|
+
this.restoringSession.finally(() => this.restoringSession = undefined);
|
|
606
|
+
}
|
|
607
|
+
async _applyModel() {
|
|
586
608
|
const sessionResource = this.getTransferredOrPersistedSessionInfo();
|
|
587
|
-
const modelRef = sessionResource ? await this.chatService.
|
|
609
|
+
const modelRef = sessionResource ? await this.chatService.acquireOrLoadSession(sessionResource, ChatAgentLocation.Chat, CancellationToken.None) : undefined;
|
|
588
610
|
await this.showModel(modelRef);
|
|
589
611
|
}
|
|
590
612
|
async showModel(modelRef, startNewSession = true) {
|
|
@@ -592,7 +614,11 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
592
614
|
this.modelRef.value = undefined;
|
|
593
615
|
let ref;
|
|
594
616
|
if (startNewSession) {
|
|
595
|
-
ref = modelRef ?? (this.chatService.transferredSessionResource ? await this.chatService.
|
|
617
|
+
ref = modelRef ?? (this.chatService.transferredSessionResource ? await this.chatService.acquireOrLoadSession(
|
|
618
|
+
this.chatService.transferredSessionResource,
|
|
619
|
+
ChatAgentLocation.Chat,
|
|
620
|
+
CancellationToken.None
|
|
621
|
+
) : this.chatService.startNewLocalSession(ChatAgentLocation.Chat));
|
|
596
622
|
if (!ref) {
|
|
597
623
|
throw ( new Error("Could not start chat session"));
|
|
598
624
|
}
|
|
@@ -600,8 +626,8 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
600
626
|
this.modelRef.value = ref;
|
|
601
627
|
const model = ref?.object;
|
|
602
628
|
if (model) {
|
|
603
|
-
await this.updateWidgetLockState(model.sessionResource);
|
|
604
|
-
this.viewState.
|
|
629
|
+
await this.updateWidgetLockState(getChatSessionType(model.sessionResource));
|
|
630
|
+
this.viewState.sessionResource = model.sessionResource;
|
|
605
631
|
}
|
|
606
632
|
this._widget.setModel(model);
|
|
607
633
|
this.titleControl?.update(model);
|
|
@@ -611,17 +637,16 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
611
637
|
}
|
|
612
638
|
return model;
|
|
613
639
|
}
|
|
614
|
-
async updateWidgetLockState(
|
|
615
|
-
const sessionType = getChatSessionType(sessionResource);
|
|
640
|
+
async updateWidgetLockState(sessionType) {
|
|
616
641
|
if (sessionType === localChatSessionType) {
|
|
617
642
|
this._widget.unlockFromCodingAgent();
|
|
618
643
|
return;
|
|
619
644
|
}
|
|
620
645
|
let canResolve = false;
|
|
621
646
|
try {
|
|
622
|
-
canResolve = await this.chatSessionsService.canResolveChatSession(
|
|
647
|
+
canResolve = await this.chatSessionsService.canResolveChatSession(sessionType);
|
|
623
648
|
} catch (error) {
|
|
624
|
-
this.logService.warn(`Failed to resolve chat session '${
|
|
649
|
+
this.logService.warn(`Failed to resolve chat session type '${sessionType}' for locking`, error);
|
|
625
650
|
}
|
|
626
651
|
if (!canResolve) {
|
|
627
652
|
this._widget.unlockFromCodingAgent();
|
|
@@ -640,6 +665,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
640
665
|
this.updateActions();
|
|
641
666
|
}
|
|
642
667
|
async loadSession(sessionResource) {
|
|
668
|
+
if (this.restoringSession) {
|
|
669
|
+
await this.restoringSession;
|
|
670
|
+
}
|
|
643
671
|
return this.progressService.withProgress({
|
|
644
672
|
location: ChatViewId,
|
|
645
673
|
delay: 200
|
|
@@ -648,14 +676,18 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
648
676
|
const clearWidget = disposableTimeout(() => {
|
|
649
677
|
queue = this.showModel(undefined, false).then(() => {});
|
|
650
678
|
}, 100);
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
679
|
+
try {
|
|
680
|
+
const newModelRef = await this.chatService.acquireOrLoadSession(sessionResource, ChatAgentLocation.Chat, CancellationToken.None);
|
|
681
|
+
clearWidget.dispose();
|
|
682
|
+
await queue;
|
|
683
|
+
return this.showModel(newModelRef);
|
|
684
|
+
} catch (err) {
|
|
685
|
+
clearWidget.dispose();
|
|
686
|
+
await queue;
|
|
687
|
+
this.logService.error(`Failed to load chat session '${( sessionResource.toString())}'`, err);
|
|
688
|
+
this.notificationService.error(( localize(6897, "Failed to open chat session: {0}", toErrorMessage(err))));
|
|
689
|
+
return this.showModel(undefined);
|
|
654
690
|
}
|
|
655
|
-
const newModelRef = await this.chatService.loadSessionForResource(sessionResource, ChatAgentLocation.Chat, CancellationToken.None);
|
|
656
|
-
clearWidget.dispose();
|
|
657
|
-
await queue;
|
|
658
|
-
return this.showModel(newModelRef);
|
|
659
691
|
});
|
|
660
692
|
}
|
|
661
693
|
focus() {
|
|
@@ -727,9 +759,6 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
727
759
|
default:
|
|
728
760
|
newSessionsViewerOrientation = width >= ChatViewPane_1.SESSIONS_SIDEBAR_VIEW_MIN_WIDTH ? AgentSessionsViewerOrientation.SideBySide : AgentSessionsViewerOrientation.Stacked;
|
|
729
761
|
}
|
|
730
|
-
if (newSessionsViewerOrientation === AgentSessionsViewerOrientation.Stacked && width >= ChatViewPane_1.SESSIONS_SIDEBAR_VIEW_MIN_WIDTH && this.getViewPositionAndLocation().location === ViewContainerLocation.AuxiliaryBar && this.layoutService.isAuxiliaryBarMaximized()) {
|
|
731
|
-
newSessionsViewerOrientation = AgentSessionsViewerOrientation.SideBySide;
|
|
732
|
-
}
|
|
733
762
|
this.sessionsViewerOrientation = newSessionsViewerOrientation;
|
|
734
763
|
if (newSessionsViewerOrientation === AgentSessionsViewerOrientation.SideBySide) {
|
|
735
764
|
this.viewPaneContainer.classList.toggle("sessions-control-orientation-sidebyside", true);
|
|
@@ -787,10 +816,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
787
816
|
widthReduction = this.sessionsContainer.offsetWidth;
|
|
788
817
|
}
|
|
789
818
|
else {
|
|
790
|
-
|
|
791
|
-
this.sessionsControlContainer.style.height = `${sessionsHeight}px`;
|
|
819
|
+
this.sessionsControlContainer.style.height = `${availableSessionsHeight}px`;
|
|
792
820
|
this.sessionsControlContainer.style.width = ``;
|
|
793
|
-
this.sessionsControl.layout(
|
|
821
|
+
this.sessionsControl.layout(availableSessionsHeight, width);
|
|
794
822
|
heightReduction = this.sessionsContainer.offsetHeight;
|
|
795
823
|
widthReduction = 0;
|
|
796
824
|
}
|
|
@@ -889,6 +917,6 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
|
|
|
889
917
|
} : undefined;
|
|
890
918
|
}
|
|
891
919
|
};
|
|
892
|
-
ChatViewPane = ChatViewPane_1 = ( __decorate([( __param(1, IKeybindingService)), ( __param(2, IContextMenuService)), ( __param(3, IConfigurationService)), ( __param(4, IContextKeyService)), ( __param(5, IViewDescriptorService)), ( __param(6, IInstantiationService)), ( __param(7, IOpenerService)), ( __param(8, IThemeService)), ( __param(9, IHoverService)), ( __param(10, IStorageService)), ( __param(11, IChatService)), ( __param(12, IChatAgentService)), ( __param(13, ILogService)), ( __param(14,
|
|
920
|
+
ChatViewPane = ChatViewPane_1 = ( __decorate([( __param(1, IKeybindingService)), ( __param(2, IContextMenuService)), ( __param(3, IConfigurationService)), ( __param(4, IContextKeyService)), ( __param(5, IViewDescriptorService)), ( __param(6, IInstantiationService)), ( __param(7, IOpenerService)), ( __param(8, IThemeService)), ( __param(9, IHoverService)), ( __param(10, IStorageService)), ( __param(11, IChatService)), ( __param(12, IChatAgentService)), ( __param(13, ILogService)), ( __param(14, INotificationService)), ( __param(15, IWorkbenchLayoutService)), ( __param(16, IChatSessionsService)), ( __param(17, ITelemetryService)), ( __param(18, ILifecycleService)), ( __param(19, IProgressService)), ( __param(20, IAgentSessionsService)), ( __param(21, IChatEntitlementService)), ( __param(22, ICommandService)), ( __param(23, IActivityService)), ( __param(24, IWorkbenchEnvironmentService)), ( __param(25, IHostService))], ChatViewPane));
|
|
893
921
|
|
|
894
922
|
export { ChatViewPane };
|
package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js
CHANGED
|
@@ -23,7 +23,7 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
|
|
|
23
23
|
ChatViewTitleControl_1 = this;
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.DEFAULT_TITLE = ( localize(
|
|
26
|
+
this.DEFAULT_TITLE = ( localize(6898, "Chat"));
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
this.PICK_AGENT_SESSION_ACTION_ID = "workbench.action.chat.pickAgentSession";
|
|
@@ -43,11 +43,12 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
|
|
|
43
43
|
this.registerActions();
|
|
44
44
|
}
|
|
45
45
|
registerActions() {
|
|
46
|
+
const that = this;
|
|
46
47
|
this._register(registerAction2(class extends Action2 {
|
|
47
48
|
constructor() {
|
|
48
49
|
super({
|
|
49
50
|
id: ChatViewTitleControl_1.PICK_AGENT_SESSION_ACTION_ID,
|
|
50
|
-
title: ( localize(
|
|
51
|
+
title: ( localize(6899, "Pick Agent Session")),
|
|
51
52
|
f1: false,
|
|
52
53
|
menu: [{
|
|
53
54
|
id: MenuId.ChatViewSessionTitleNavigationToolbar,
|
|
@@ -58,16 +59,16 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
|
|
|
58
59
|
}
|
|
59
60
|
async run(accessor) {
|
|
60
61
|
const instantiationService = accessor.get(IInstantiationService);
|
|
61
|
-
const agentSessionsPicker = instantiationService.createInstance(AgentSessionsPicker);
|
|
62
|
+
const agentSessionsPicker = instantiationService.createInstance(AgentSessionsPicker, that.titleLabel.value?.element, undefined);
|
|
62
63
|
await agentSessionsPicker.pickAgentSession();
|
|
63
64
|
}
|
|
64
65
|
}));
|
|
65
66
|
}
|
|
66
67
|
render(parent) {
|
|
67
|
-
const elements = h("div.chat-view-title-container", [
|
|
68
|
+
const elements = h("div.chat-view-title-container", [h("div.chat-view-title-inner", [
|
|
68
69
|
h("div.chat-view-title-navigation-toolbar@navigationToolbar"),
|
|
69
70
|
h("div.chat-view-title-actions-toolbar@actionsToolbar")
|
|
70
|
-
]);
|
|
71
|
+
])]);
|
|
71
72
|
this.navigationToolbar = this._register(this.instantiationService.createInstance(
|
|
72
73
|
MenuWorkbenchToolBar,
|
|
73
74
|
elements.navigationToolbar,
|
package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css
CHANGED
|
@@ -18,27 +18,12 @@
|
|
|
18
18
|
|
|
19
19
|
.interactive-session {
|
|
20
20
|
|
|
21
|
-
/* needed so that the chat
|
|
21
|
+
/* needed so that the chat input does not overflow and input grows over content above */
|
|
22
22
|
width: 100%;
|
|
23
23
|
min-height: 0;
|
|
24
24
|
min-width: 0;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
&:not(.chat-view-welcome-enabled) {
|
|
29
|
-
|
|
30
|
-
.interactive-session {
|
|
31
|
-
|
|
32
|
-
/* hide most welcome pieces (except suggested actions) when we show recent sessions to make some space */
|
|
33
|
-
.chat-welcome-view .chat-welcome-view-icon,
|
|
34
|
-
.chat-welcome-view .chat-welcome-view-title,
|
|
35
|
-
.chat-welcome-view .chat-welcome-view-message,
|
|
36
|
-
.chat-welcome-view .chat-welcome-view-disclaimer,
|
|
37
|
-
.chat-welcome-view .chat-welcome-view-tips {
|
|
38
|
-
visibility: hidden;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
27
|
}
|
|
43
28
|
|
|
44
29
|
/* Sessions control: either sidebar or stacked */
|
|
@@ -83,7 +68,10 @@
|
|
|
83
68
|
.chat-viewpane.has-sessions-control.sessions-control-orientation-stacked {
|
|
84
69
|
|
|
85
70
|
.agent-sessions-container {
|
|
86
|
-
|
|
71
|
+
/* center it above the chat which has this max-width restriction */
|
|
72
|
+
max-width: 950px;
|
|
73
|
+
margin: 0 auto;
|
|
74
|
+
width: 100%;
|
|
87
75
|
}
|
|
88
76
|
|
|
89
77
|
.agent-sessions-new-button-container {
|
|
@@ -112,7 +100,7 @@
|
|
|
112
100
|
}
|
|
113
101
|
|
|
114
102
|
.agent-sessions-new-button-container {
|
|
115
|
-
padding: 8px
|
|
103
|
+
padding: 8px;
|
|
116
104
|
}
|
|
117
105
|
}
|
|
118
106
|
|
|
@@ -139,7 +127,15 @@
|
|
|
139
127
|
}
|
|
140
128
|
|
|
141
129
|
.agent-session-section {
|
|
142
|
-
padding: 0
|
|
130
|
+
padding: 0 6px 0 14px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Stacked: symmetric padding */
|
|
134
|
+
&.sessions-control-orientation-stacked {
|
|
135
|
+
|
|
136
|
+
.agent-sessions-empty-filter-message {
|
|
137
|
+
padding-left: 20px;
|
|
138
|
+
}
|
|
143
139
|
}
|
|
144
140
|
|
|
145
141
|
/* Right position: symmetric padding */
|
|
@@ -150,7 +146,7 @@
|
|
|
150
146
|
}
|
|
151
147
|
|
|
152
148
|
.agent-session-section {
|
|
153
|
-
padding: 0
|
|
149
|
+
padding: 0 6px 0 8px;
|
|
154
150
|
}
|
|
155
151
|
}
|
|
156
152
|
|
|
@@ -7,9 +7,18 @@
|
|
|
7
7
|
|
|
8
8
|
.chat-view-title-container {
|
|
9
9
|
display: none;
|
|
10
|
-
align-items: center;
|
|
11
10
|
cursor: pointer;
|
|
12
11
|
|
|
12
|
+
.chat-view-title-inner {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
/* center it above the chat which has this max-width restriction */
|
|
16
|
+
max-width: 950px;
|
|
17
|
+
margin: 0 auto;
|
|
18
|
+
width: 100%;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
13
22
|
.chat-view-title-navigation-toolbar {
|
|
14
23
|
overflow: hidden;
|
|
15
24
|
|
|
@@ -44,7 +53,7 @@
|
|
|
44
53
|
}
|
|
45
54
|
|
|
46
55
|
.chat-view-title-container.visible {
|
|
47
|
-
display:
|
|
56
|
+
display: block;
|
|
48
57
|
}
|
|
49
58
|
}
|
|
50
59
|
|
|
@@ -62,28 +71,28 @@
|
|
|
62
71
|
&.chat-view-location-sidebar,
|
|
63
72
|
&.chat-view-location-panel,
|
|
64
73
|
&.chat-view-location-auxiliarybar {
|
|
65
|
-
.chat-view-title-
|
|
74
|
+
.chat-view-title-inner {
|
|
66
75
|
padding: 0 12px 0 16px;
|
|
67
76
|
}
|
|
68
77
|
}
|
|
69
78
|
|
|
70
79
|
/* Auxiliarybar with non-default activity bar position */
|
|
71
80
|
&.activity-bar-location-other.chat-view-location-auxiliarybar {
|
|
72
|
-
.chat-view-title-
|
|
81
|
+
.chat-view-title-inner {
|
|
73
82
|
padding: 0 8px 0 16px;
|
|
74
83
|
}
|
|
75
84
|
}
|
|
76
85
|
|
|
77
86
|
/* Side-by-side sessions: left position (any activity bar) */
|
|
78
87
|
&.has-sessions-control.sessions-control-orientation-sidebyside.chat-view-position-left {
|
|
79
|
-
.chat-view-title-
|
|
88
|
+
.chat-view-title-inner {
|
|
80
89
|
padding: 0 8px;
|
|
81
90
|
}
|
|
82
91
|
}
|
|
83
92
|
|
|
84
93
|
/* Side-by-side sessions: right position (default activity bar only) */
|
|
85
94
|
&.activity-bar-location-default.has-sessions-control.sessions-control-orientation-sidebyside.chat-view-position-right {
|
|
86
|
-
.chat-view-title-
|
|
95
|
+
.chat-view-title-inner {
|
|
87
96
|
padding: 0 8px 0 16px;
|
|
88
97
|
}
|
|
89
98
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
+
import { PromptsStorage } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService";
|
|
3
|
+
/**
|
|
4
|
+
* Possible section IDs for the AI Customization Management Editor sidebar.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AICustomizationManagementSection: {
|
|
7
|
+
readonly Agents: "agents";
|
|
8
|
+
readonly Skills: "skills";
|
|
9
|
+
readonly Instructions: "instructions";
|
|
10
|
+
readonly Prompts: "prompts";
|
|
11
|
+
readonly Hooks: "hooks";
|
|
12
|
+
readonly McpServers: "mcpServers";
|
|
13
|
+
readonly Plugins: "plugins";
|
|
14
|
+
readonly Models: "models";
|
|
15
|
+
};
|
|
16
|
+
export type AICustomizationManagementSection = typeof AICustomizationManagementSection[keyof typeof AICustomizationManagementSection];
|
|
17
|
+
/**
|
|
18
|
+
* Per-type filter policy controlling which storage sources and user file
|
|
19
|
+
* roots are visible for a given customization type.
|
|
20
|
+
*/
|
|
21
|
+
export interface IStorageSourceFilter {
|
|
22
|
+
/**
|
|
23
|
+
* Which storage groups to display (e.g. workspace, user, extension).
|
|
24
|
+
*/
|
|
25
|
+
readonly sources: readonly PromptsStorage[];
|
|
26
|
+
/**
|
|
27
|
+
* If set, only user files under these roots are shown (allowlist).
|
|
28
|
+
* If `undefined`, all user file roots are included.
|
|
29
|
+
*/
|
|
30
|
+
readonly includedUserFileRoots?: readonly URI[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Applies a storage source filter to an array of items that have uri and storage.
|
|
34
|
+
* Removes items whose storage is not in the filter's source list,
|
|
35
|
+
* and for user-storage items, removes those not under an allowed root.
|
|
36
|
+
*/
|
|
37
|
+
export declare function applyStorageSourceFilter<T extends {
|
|
38
|
+
readonly uri: URI;
|
|
39
|
+
readonly storage: PromptsStorage;
|
|
40
|
+
}>(items: readonly T[], filter: IStorageSourceFilter): readonly T[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
import { isEqualOrParent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
3
|
+
import { PromptsStorage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService';
|
|
4
|
+
|
|
5
|
+
const AICustomizationManagementSection = {
|
|
6
|
+
Agents: "agents",
|
|
7
|
+
Skills: "skills",
|
|
8
|
+
Instructions: "instructions",
|
|
9
|
+
Prompts: "prompts",
|
|
10
|
+
Hooks: "hooks",
|
|
11
|
+
McpServers: "mcpServers",
|
|
12
|
+
Plugins: "plugins",
|
|
13
|
+
Models: "models"
|
|
14
|
+
};
|
|
15
|
+
function applyStorageSourceFilter(items, filter) {
|
|
16
|
+
const sourceSet = ( new Set(filter.sources));
|
|
17
|
+
return items.filter(item => {
|
|
18
|
+
if (!( sourceSet.has(item.storage))) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
if (item.storage === PromptsStorage.user && filter.includedUserFileRoots) {
|
|
22
|
+
return ( filter.includedUserFileRoots.some(root => isEqualOrParent(item.uri, root)));
|
|
23
|
+
}
|
|
24
|
+
return true;
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { AICustomizationManagementSection, applyStorageSourceFilter };
|