@codingame/monaco-vscode-chat-service-override 34.1.3 → 35.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 +38 -0
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.js +40 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.d.ts +27 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.js +91 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +20 -4
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +148 -15
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +9 -1
- package/vscode/src/vs/platform/agentHost/common/agentHost.config.contribution.js +57 -3
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +10 -14
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +29 -8
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.d.ts +109 -2
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.js +207 -21
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +362 -37
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +698 -91
- package/vscode/src/vs/platform/agentHost/common/agentService.js +46 -3
- package/vscode/src/vs/platform/agentHost/common/customAgents.js +1 -0
- package/vscode/src/vs/platform/agentHost/common/resourceReadLogging.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/resourceReadLogging.js +26 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.d.ts +5 -5
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +17 -17
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +96 -12
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +226 -19
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/reducer.d.ts +18 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/reducer.js +89 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/reducer.js +10 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.d.ts +6 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.js +400 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.js +129 -446
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/reducer-helpers.d.ts +2 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +35 -25
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +7 -1
- package/vscode/src/vs/{workbench/contrib → platform}/browserView/common/browserChatToolReferenceNames.d.ts +4 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +1 -1
- package/vscode/src/vs/platform/sandbox/browser/sandboxHelperService.js +1 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxCommandRules.d.ts +0 -6
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxCommandRules.js +5 -18
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.d.ts +52 -3
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.js +212 -34
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.js +3 -4
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxRuntimeConfigurationPerOperation.js +11 -10
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +13 -6
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +6 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +399 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +85 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +177 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +898 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +204 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +338 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +57 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +98 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +149 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +116 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +226 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +138 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +25 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.js +108 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +63 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +178 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +322 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.js +15 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.js +26 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.d.ts +132 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +237 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +32 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +71 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +19 -24
- 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 +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +66 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +15 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +128 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +58 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +15 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.js +64 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.d.ts +45 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +25 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.js +143 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.js +7 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.js +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.js +163 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +26 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +106 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.d.ts +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.js +44 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +70 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.js +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +11 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +9 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +143 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +107 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +46 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +19 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +244 -190
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +13 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.js +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +47 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.d.ts +87 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.js +772 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +24 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +3 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.js +94 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +421 -201
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +1426 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +107 -127
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +331 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.d.ts +120 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.js +898 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +581 -336
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +567 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.js +168 -84
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +183 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +897 -251
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.d.ts +213 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +720 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +33 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +354 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +11 -4
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +55 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +192 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +37 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.d.ts +40 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +230 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +23 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +35 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +26 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +56 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +109 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +38 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +175 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.d.ts +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +32 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +183 -84
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +20 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.js +109 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +117 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +40 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +169 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.js +399 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +504 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.d.ts +321 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.js +2117 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.js +367 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +16 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +68 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +11 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +2 -2
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +23 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +320 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +80 -4
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automation.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +226 -88
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +8 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +13 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +12 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +177 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +2 -18
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +78 -136
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +1 -16
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +1 -17
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +16 -5
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +24 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +113 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +227 -152
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.js +98 -0
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +7 -6
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +11 -12
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +7 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +32 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.d.ts +23 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.js +37 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/largeOutputFileWriter.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/largeOutputFileWriter.js +71 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +29 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +7 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +2 -1
- 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 +10 -8
- 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 +4 -4
- 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.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +26 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +32 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +416 -252
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +10 -10
- 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/sandboxSettingsReader.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +25 -8
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.d.ts +8 -3
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +0 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.js +0 -82
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +0 -38
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +0 -47
- /package/vscode/src/vs/{workbench/contrib → platform}/browserView/common/browserChatToolReferenceNames.js +0 -0
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js
CHANGED
|
@@ -95,7 +95,7 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
95
95
|
return {
|
|
96
96
|
startLineNumber: change.modified.startLineNumber,
|
|
97
97
|
endLineNumber: change.modified.endLineNumberExclusive - 1,
|
|
98
|
-
explanation: ( localize(
|
|
98
|
+
explanation: ( localize(7007, "Generating explanation...")),
|
|
99
99
|
read: false,
|
|
100
100
|
loading: true,
|
|
101
101
|
originalText,
|
|
@@ -116,7 +116,7 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
116
116
|
this._headerNode.appendChild(this._toggleButton);
|
|
117
117
|
this._dismissButton = $("div.chat-explanation-dismiss");
|
|
118
118
|
this._dismissButton.appendChild(renderIcon(Codicon.close));
|
|
119
|
-
this._dismissButton.title = ( localize(
|
|
119
|
+
this._dismissButton.title = ( localize(7008, "Dismiss"));
|
|
120
120
|
this._headerNode.appendChild(this._dismissButton);
|
|
121
121
|
this._domNode.appendChild(this._headerNode);
|
|
122
122
|
this._bodyNode = $("div.chat-explanation-body");
|
|
@@ -178,35 +178,35 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
178
178
|
this._readIndicator.appendChild(renderIcon(Codicon.circle));
|
|
179
179
|
this._readIndicator.classList.add("read");
|
|
180
180
|
this._readIndicator.classList.remove("partial", "unread");
|
|
181
|
-
this._readIndicator.title = ( localize(
|
|
181
|
+
this._readIndicator.title = ( localize(7009, "Mark as unread"));
|
|
182
182
|
} else if (someRead) {
|
|
183
183
|
this._readIndicator.appendChild(renderIcon(Codicon.circleFilled));
|
|
184
184
|
this._readIndicator.classList.remove("read", "unread");
|
|
185
185
|
this._readIndicator.classList.add("partial");
|
|
186
|
-
this._readIndicator.title = ( localize(
|
|
186
|
+
this._readIndicator.title = ( localize(7010, "Mark all as read"));
|
|
187
187
|
} else {
|
|
188
188
|
this._readIndicator.appendChild(renderIcon(Codicon.circleFilled));
|
|
189
189
|
this._readIndicator.classList.remove("read", "partial");
|
|
190
190
|
this._readIndicator.classList.add("unread");
|
|
191
|
-
this._readIndicator.title = ( localize(
|
|
191
|
+
this._readIndicator.title = ( localize(7011, "Mark as read"));
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
_updateTitle() {
|
|
195
195
|
const count = this._explanations.length;
|
|
196
196
|
if (count === 1) {
|
|
197
|
-
this._titleNode.textContent = ( localize(
|
|
197
|
+
this._titleNode.textContent = ( localize(7012, "1 change"));
|
|
198
198
|
} else {
|
|
199
|
-
this._titleNode.textContent = ( localize(
|
|
199
|
+
this._titleNode.textContent = ( localize(7013, "{0} changes", count));
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
_updateToggleButton() {
|
|
203
203
|
clearNode(this._toggleButton);
|
|
204
204
|
if (this._isExpanded) {
|
|
205
205
|
this._toggleButton.appendChild(renderIcon(Codicon.chevronUp));
|
|
206
|
-
this._toggleButton.title = ( localize(
|
|
206
|
+
this._toggleButton.title = ( localize(7014, "Collapse"));
|
|
207
207
|
} else {
|
|
208
208
|
this._toggleButton.appendChild(renderIcon(Codicon.chevronDown));
|
|
209
|
-
this._toggleButton.title = ( localize(
|
|
209
|
+
this._toggleButton.title = ( localize(7015, "Expand"));
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
_buildExplanationItems() {
|
|
@@ -217,9 +217,9 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
217
217
|
const item = $("div.chat-explanation-item");
|
|
218
218
|
const lineInfo = $("span.chat-explanation-line-info");
|
|
219
219
|
if (exp.startLineNumber === exp.endLineNumber) {
|
|
220
|
-
lineInfo.textContent = ( localize(
|
|
220
|
+
lineInfo.textContent = ( localize(7016, "Line {0}", exp.startLineNumber));
|
|
221
221
|
} else {
|
|
222
|
-
lineInfo.textContent = ( localize(
|
|
222
|
+
lineInfo.textContent = ( localize(7017, "Lines {0}-{1}", exp.startLineNumber, exp.endLineNumber));
|
|
223
223
|
}
|
|
224
224
|
item.appendChild(lineInfo);
|
|
225
225
|
const text = $("span.chat-explanation-text");
|
|
@@ -238,7 +238,7 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
238
238
|
item.appendChild(itemReadIndicator);
|
|
239
239
|
const replyButton = $("div.chat-explanation-reply-button");
|
|
240
240
|
replyButton.appendChild(renderIcon(Codicon.arrowRight));
|
|
241
|
-
replyButton.title = ( localize(
|
|
241
|
+
replyButton.title = ( localize(7018, "Follow up on this change"));
|
|
242
242
|
item.appendChild(replyButton);
|
|
243
243
|
this._eventStore.add(addDisposableListener(replyButton, "click", async e => {
|
|
244
244
|
e.stopPropagation();
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js
CHANGED
|
@@ -30,7 +30,7 @@ import { ModifiedFileEntryState } from '@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
30
30
|
import { ChatEditingCodeEditorIntegration } from './chatEditingCodeEditorIntegration.js';
|
|
31
31
|
import { AbstractChatEditingModifiedFileEntry } from './chatEditingModifiedFileEntry.js';
|
|
32
32
|
import { ChatEditingTextModelChangeService } from './chatEditingTextModelChangeService.js';
|
|
33
|
-
import { ChatEditingTextModelContentProvider, ChatEditingSnapshotTextModelContentProvider } from '
|
|
33
|
+
import { ChatEditingTextModelContentProvider, ChatEditingSnapshotTextModelContentProvider } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders';
|
|
34
34
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
35
35
|
import { transaction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/transaction';
|
|
36
36
|
|
|
@@ -142,7 +142,7 @@ let ChatEditingModifiedDocumentEntry = class ChatEditingModifiedDocumentEntry ex
|
|
|
142
142
|
if (inProgress) {
|
|
143
143
|
const res = this._lastModifyingResponseObs.read(r);
|
|
144
144
|
const req = res && res.session.getRequests().find(value => value.id === res.requestId);
|
|
145
|
-
resourceFilter.value = markerService.installResourceFilter(this.modifiedURI, req?.message.text || ( localize(
|
|
145
|
+
resourceFilter.value = markerService.installResourceFilter(this.modifiedURI, req?.message.text || ( localize(7019, "Chat Edits")));
|
|
146
146
|
} else {
|
|
147
147
|
resourceFilter.clear();
|
|
148
148
|
}
|
|
@@ -158,7 +158,14 @@ let ChatEditingModifiedDocumentEntry = class ChatEditingModifiedDocumentEntry ex
|
|
|
158
158
|
return {
|
|
159
159
|
resource: this.modifiedURI,
|
|
160
160
|
languageId: this.modifiedModel.getLanguageId(),
|
|
161
|
-
snapshotUri: ChatEditingSnapshotTextModelContentProvider.getSnapshotFileURI(
|
|
161
|
+
snapshotUri: ChatEditingSnapshotTextModelContentProvider.getSnapshotFileURI(
|
|
162
|
+
chatSessionResource,
|
|
163
|
+
requestId,
|
|
164
|
+
undoStop,
|
|
165
|
+
this.modifiedURI.path,
|
|
166
|
+
this.modifiedURI.scheme,
|
|
167
|
+
this.modifiedURI.authority
|
|
168
|
+
),
|
|
162
169
|
original: this.originalModel.getValue(),
|
|
163
170
|
current: this.modifiedModel.getValue(),
|
|
164
171
|
state: this.state.get(),
|
|
@@ -187,7 +194,7 @@ let ChatEditingModifiedDocumentEntry = class ChatEditingModifiedDocumentEntry ex
|
|
|
187
194
|
}
|
|
188
195
|
_createUndoRedoElement(response) {
|
|
189
196
|
const request = response.session.getRequests().find(req => req.id === response.requestId);
|
|
190
|
-
const label = request?.message.text ? ( localize(
|
|
197
|
+
const label = request?.message.text ? ( localize(7020, "Chat Edit: '{0}'", request.message.text)) : ( localize(7021, "Chat Edit"));
|
|
191
198
|
return ( new SingleModelEditStackElement(label, "chat.edit", this.modifiedModel, null));
|
|
192
199
|
}
|
|
193
200
|
async acceptAgentEdits(resource, textEdits, isLastEdits, responseModel) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js
CHANGED
|
@@ -42,7 +42,7 @@ class AutoAcceptControl {
|
|
|
42
42
|
this.cancel = cancel;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const pendingRewriteMinimap = registerColor("minimap.chatEditHighlight", ( transparent(editorBackground, 0.6)), ( localize(
|
|
45
|
+
const pendingRewriteMinimap = registerColor("minimap.chatEditHighlight", ( transparent(editorBackground, 0.6)), ( localize(7022, "Color of pending edit regions in the minimap")));
|
|
46
46
|
let AbstractChatEditingModifiedFileEntry = class AbstractChatEditingModifiedFileEntry extends Disposable {
|
|
47
47
|
static {
|
|
48
48
|
AbstractChatEditingModifiedFileEntry_1 = this;
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js
CHANGED
|
@@ -485,7 +485,7 @@ let ChatEditingModifiedNotebookEntry = class ChatEditingModifiedNotebookEntry ex
|
|
|
485
485
|
}
|
|
486
486
|
_createUndoRedoElement(response) {
|
|
487
487
|
const request = response.session.getRequests().find(req => req.id === response.requestId);
|
|
488
|
-
const label = request?.message.text ? ( localize(
|
|
488
|
+
const label = request?.message.text ? ( localize(7023, "Chat Edit: '{0}'", request.message.text)) : ( localize(7024, "Chat Edit"));
|
|
489
489
|
const transientOptions = this.transientOptions;
|
|
490
490
|
const outputSizeLimit = this.configurationService.getValue(NotebookSetting.outputBackupSizeLimit) * 1024;
|
|
491
491
|
let initial = createSnapshot(this.modifiedModel, transientOptions, outputSizeLimit);
|
|
@@ -40,7 +40,7 @@ import { getChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workb
|
|
|
40
40
|
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput';
|
|
41
41
|
import { AbstractChatEditingModifiedFileEntry } from './chatEditingModifiedFileEntry.js';
|
|
42
42
|
import { ChatEditingSession } from './chatEditingSession.js';
|
|
43
|
-
import { ChatEditingTextModelContentProvider, ChatEditingSnapshotTextModelContentProvider } from '
|
|
43
|
+
import { ChatEditingTextModelContentProvider, ChatEditingSnapshotTextModelContentProvider } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders';
|
|
44
44
|
import { observableValueOpts } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValueOpts';
|
|
45
45
|
import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
|
|
46
46
|
import { runOnChange } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/runOnChange';
|
|
@@ -126,7 +126,7 @@ let ChatEditingService = class ChatEditingService extends Disposable {
|
|
|
126
126
|
}
|
|
127
127
|
e.join(storageTask, {
|
|
128
128
|
id: "join.chatEditingSession",
|
|
129
|
-
label: ( localize(
|
|
129
|
+
label: ( localize(7025, "Saving chat edits history"))
|
|
130
130
|
});
|
|
131
131
|
}));
|
|
132
132
|
}
|
|
@@ -358,7 +358,7 @@ class ChatDecorationsProvider extends Disposable {
|
|
|
358
358
|
constructor(_sessions) {
|
|
359
359
|
super();
|
|
360
360
|
this._sessions = _sessions;
|
|
361
|
-
this.label = ( localize(
|
|
361
|
+
this.label = ( localize(7026, "Chat Editing"));
|
|
362
362
|
this._currentEntries = derived(this, r => {
|
|
363
363
|
const sessions = this._sessions.read(r);
|
|
364
364
|
if (!sessions) {
|
|
@@ -402,7 +402,7 @@ class ChatDecorationsProvider extends Disposable {
|
|
|
402
402
|
return {
|
|
403
403
|
weight: 1000,
|
|
404
404
|
letter: Codicon.diffModified,
|
|
405
|
-
tooltip: ( localize(
|
|
405
|
+
tooltip: ( localize(7027, "Pending changes from chat")),
|
|
406
406
|
bubble: true
|
|
407
407
|
};
|
|
408
408
|
}
|
|
@@ -43,7 +43,7 @@ import { ChatEditingModifiedNotebookEntry } from './chatEditingModifiedNotebookE
|
|
|
43
43
|
import { getKeyForChatSessionResource, FileOperationType } from './chatEditingOperations.js';
|
|
44
44
|
import { IChatEditingExplanationModelManager } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.service';
|
|
45
45
|
import { ChatEditingSessionStorage } from './chatEditingSessionStorage.js';
|
|
46
|
-
import { ChatEditingTextModelContentProvider } from '
|
|
46
|
+
import { ChatEditingTextModelContentProvider } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders';
|
|
47
47
|
import { getChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
48
48
|
import { AgentSessionProviders } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
49
49
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
@@ -410,7 +410,7 @@ let ChatEditingSession = ChatEditingSession_1 = class ChatEditingSession extends
|
|
|
410
410
|
}
|
|
411
411
|
const input = MultiDiffEditorInput.fromResourceMultiDiffEditorInput({
|
|
412
412
|
multiDiffSource: getMultiDiffSourceUri(this, previousChanges),
|
|
413
|
-
label: ( localize(
|
|
413
|
+
label: ( localize(7028, "Suggested Edits"))
|
|
414
414
|
}, this._instantiationService);
|
|
415
415
|
this._editorPane = await this._editorService.openEditor(input, {
|
|
416
416
|
pinned: true,
|
|
@@ -881,7 +881,7 @@ let ChatEditingSession = ChatEditingSession_1 = class ChatEditingSession extends
|
|
|
881
881
|
return responseModel.request?.modelId;
|
|
882
882
|
}
|
|
883
883
|
get modeId() {
|
|
884
|
-
return responseModel.request?.modeInfo?.
|
|
884
|
+
return responseModel.request?.modeInfo?.telemetryModeId;
|
|
885
885
|
}
|
|
886
886
|
get command() {
|
|
887
887
|
return responseModel.slashCommand?.name;
|
|
@@ -265,7 +265,7 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
|
|
|
265
265
|
requestId: request?.id,
|
|
266
266
|
sessionId,
|
|
267
267
|
languageId,
|
|
268
|
-
mode: request?.modeInfo?.
|
|
268
|
+
mode: request?.modeInfo?.telemetryModeId,
|
|
269
269
|
extensionId,
|
|
270
270
|
codeBlockSuggestionId: request?.modeInfo?.applyCodeBlockSuggestionId
|
|
271
271
|
});
|
|
@@ -630,7 +630,7 @@ let ChatEditingNotebookEditorWidgetIntegration = class ChatEditingNotebookEditor
|
|
|
630
630
|
modified: {
|
|
631
631
|
resource: this._entry.modifiedURI
|
|
632
632
|
},
|
|
633
|
-
label: ( localize(
|
|
633
|
+
label: ( localize(7029, "{0} (changes from chat)", basename(this._entry.modifiedURI)))
|
|
634
634
|
};
|
|
635
635
|
await this._editorService.openEditor(diffInput);
|
|
636
636
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
3
3
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
4
|
+
import type { IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries";
|
|
4
5
|
import { IChatRequestViewModel, IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
5
6
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
6
7
|
import { IChatImageCarouselService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatImageCarouselService.service";
|
|
@@ -34,12 +35,15 @@ export interface ICarouselSingleImageArgs {
|
|
|
34
35
|
* Each request/response pair with images becomes one section containing
|
|
35
36
|
* user attachment images, tool invocation images, and inline reference images.
|
|
36
37
|
*/
|
|
37
|
-
export declare function collectCarouselSections(items: (IChatRequestViewModel | IChatResponseViewModel)[], readFile: (uri: URI) => Promise<Uint8Array
|
|
38
|
+
export declare function collectCarouselSections(items: (IChatRequestViewModel | IChatResponseViewModel)[], readFile: (uri: URI) => Promise<Uint8Array>, currentInput?: {
|
|
39
|
+
readonly text: string;
|
|
40
|
+
readonly attachments: readonly IChatRequestVariableEntry[];
|
|
41
|
+
}): Promise<ICarouselSection[]>;
|
|
38
42
|
/**
|
|
39
43
|
* Finds the global index of the clicked image across all carousel sections.
|
|
40
44
|
* Tries URI string match, then parsed URI equality, then data buffer equality.
|
|
41
45
|
*/
|
|
42
|
-
export declare function findClickedImageIndex(sections: ICarouselSection[], resource: URI, data?: Uint8Array): number;
|
|
46
|
+
export declare function findClickedImageIndex(sections: ICarouselSection[], resource: URI, data?: Uint8Array, preferredSectionIndex?: number): number;
|
|
43
47
|
/**
|
|
44
48
|
* Builds the collection arguments for the carousel command.
|
|
45
49
|
*/
|
|
@@ -54,6 +58,8 @@ export declare class ChatImageCarouselService implements IChatImageCarouselServi
|
|
|
54
58
|
private readonly fileService;
|
|
55
59
|
readonly _serviceBrand: undefined;
|
|
56
60
|
constructor(chatWidgetService: IChatWidgetService, commandService: ICommandService, fileService: IFileService);
|
|
57
|
-
openCarouselAtResource(resource: URI, data?: Uint8Array
|
|
61
|
+
openCarouselAtResource(resource: URI, data?: Uint8Array, options?: {
|
|
62
|
+
readonly preferCurrentInput?: boolean;
|
|
63
|
+
}): Promise<void>;
|
|
58
64
|
private openSingleImage;
|
|
59
65
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
4
|
+
import { stripIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iconLabels';
|
|
3
5
|
import { getMediaMime } from '@codingame/monaco-vscode-api/vscode/vs/base/common/mime';
|
|
4
6
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
5
7
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
@@ -7,11 +9,11 @@ import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buf
|
|
|
7
9
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
8
10
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
9
11
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
10
|
-
import { extractImagesFromChatResponse, extractImagesFromChatRequest } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/common/chatImageExtraction';
|
|
12
|
+
import { extractImagesFromChatResponse, extractImagesFromChatRequest, extractImagesFromChatVariables } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/common/chatImageExtraction';
|
|
11
13
|
import { isRequestVM, isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
12
14
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
13
15
|
|
|
14
|
-
async function collectCarouselSections(items, readFile) {
|
|
16
|
+
async function collectCarouselSections(items, readFile, currentInput) {
|
|
15
17
|
const sections = [];
|
|
16
18
|
const requestMap = ( new Map());
|
|
17
19
|
for (const item of items) {
|
|
@@ -47,7 +49,7 @@ async function collectCarouselSections(items, readFile) {
|
|
|
47
49
|
name,
|
|
48
50
|
mimeType,
|
|
49
51
|
data: data.buffer,
|
|
50
|
-
caption
|
|
52
|
+
caption: toCaptionText(caption)
|
|
51
53
|
})))
|
|
52
54
|
});
|
|
53
55
|
}
|
|
@@ -75,13 +77,44 @@ async function collectCarouselSections(items, readFile) {
|
|
|
75
77
|
name,
|
|
76
78
|
mimeType,
|
|
77
79
|
data: data.buffer,
|
|
78
|
-
caption
|
|
80
|
+
caption: toCaptionText(caption)
|
|
81
|
+
})))
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
if (currentInput) {
|
|
86
|
+
const inputImages = deduplicateConsecutiveImages(extractImagesFromChatVariables(currentInput.attachments));
|
|
87
|
+
if (inputImages.length > 0) {
|
|
88
|
+
sections.push({
|
|
89
|
+
title: currentInput.text.trim() || ( localize(7030, "Current Input")),
|
|
90
|
+
images: ( inputImages.map((
|
|
91
|
+
{
|
|
92
|
+
uri,
|
|
93
|
+
name,
|
|
94
|
+
mimeType,
|
|
95
|
+
data,
|
|
96
|
+
caption
|
|
97
|
+
}
|
|
98
|
+
) => ({
|
|
99
|
+
id: ( uri.toString()),
|
|
100
|
+
name,
|
|
101
|
+
mimeType,
|
|
102
|
+
data: data.buffer,
|
|
103
|
+
caption: toCaptionText(caption)
|
|
79
104
|
})))
|
|
80
105
|
});
|
|
81
106
|
}
|
|
82
107
|
}
|
|
83
108
|
return sections;
|
|
84
109
|
}
|
|
110
|
+
function toCaptionText(caption) {
|
|
111
|
+
if (caption === undefined) {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
return typeof caption === "string" ? caption : stripIcons(renderAsPlaintext(caption, {
|
|
115
|
+
useLinkFormatter: true
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
85
118
|
function deduplicateConsecutiveImages(images) {
|
|
86
119
|
return images.filter((img, index) => {
|
|
87
120
|
if (index === 0) {
|
|
@@ -90,7 +123,15 @@ function deduplicateConsecutiveImages(images) {
|
|
|
90
123
|
return !isEqual(images[index - 1].uri, img.uri);
|
|
91
124
|
});
|
|
92
125
|
}
|
|
93
|
-
function findClickedImageIndex(sections, resource, data) {
|
|
126
|
+
function findClickedImageIndex(sections, resource, data, preferredSectionIndex) {
|
|
127
|
+
if (preferredSectionIndex !== undefined && preferredSectionIndex >= 0 && preferredSectionIndex < sections.length) {
|
|
128
|
+
const preferredSection = sections[preferredSectionIndex];
|
|
129
|
+
const uriIndex = findImageInListByUri(preferredSection.images, resource);
|
|
130
|
+
const localIndex = uriIndex >= 0 ? uriIndex : (data ? findImageInListByData(preferredSection.images, data) : -1);
|
|
131
|
+
if (localIndex >= 0) {
|
|
132
|
+
return sections.slice(0, preferredSectionIndex).reduce((total, section) => total + section.images.length, 0) + localIndex;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
94
135
|
let globalOffset = 0;
|
|
95
136
|
for (const section of sections) {
|
|
96
137
|
const localIndex = findImageInListByUri(section.images, resource);
|
|
@@ -136,7 +177,7 @@ function findImageInListByData(images, data) {
|
|
|
136
177
|
}
|
|
137
178
|
function buildCollectionArgs(sections, clickedGlobalIndex, sessionResource) {
|
|
138
179
|
const collectionId = ( sessionResource.toString()) + "_carousel";
|
|
139
|
-
const defaultTitle = ( localize(
|
|
180
|
+
const defaultTitle = ( localize(7031, "Conversation Images"));
|
|
140
181
|
return {
|
|
141
182
|
collection: {
|
|
142
183
|
id: collectionId,
|
|
@@ -166,7 +207,7 @@ let ChatImageCarouselService = class ChatImageCarouselService {
|
|
|
166
207
|
this.commandService = commandService;
|
|
167
208
|
this.fileService = fileService;
|
|
168
209
|
}
|
|
169
|
-
async openCarouselAtResource(resource, data) {
|
|
210
|
+
async openCarouselAtResource(resource, data, options) {
|
|
170
211
|
const widget = this.chatWidgetService.lastFocusedWidget;
|
|
171
212
|
if (!widget?.viewModel) {
|
|
172
213
|
await this.openSingleImage(resource, data);
|
|
@@ -175,7 +216,13 @@ let ChatImageCarouselService = class ChatImageCarouselService {
|
|
|
175
216
|
const items = widget.viewModel.getItems().filter(item => isRequestVM(item) || isResponseVM(item));
|
|
176
217
|
const readFile = async uri => (await this.fileService.readFile(uri)).value.buffer;
|
|
177
218
|
const sections = await collectCarouselSections(items, readFile);
|
|
178
|
-
const
|
|
219
|
+
const currentInputSections = await collectCarouselSections([], readFile, {
|
|
220
|
+
text: widget.getInput(),
|
|
221
|
+
attachments: widget.attachmentModel.attachments
|
|
222
|
+
});
|
|
223
|
+
const preferredSectionIndex = options?.preferCurrentInput && currentInputSections.length > 0 ? sections.length : undefined;
|
|
224
|
+
sections.push(...currentInputSections);
|
|
225
|
+
const clickedGlobalIndex = findClickedImageIndex(sections, resource, data, preferredSectionIndex);
|
|
179
226
|
if (clickedGlobalIndex === -1 || sections.length === 0) {
|
|
180
227
|
await this.openSingleImage(resource, data);
|
|
181
228
|
return;
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js
CHANGED
|
@@ -30,7 +30,7 @@ import { EnablementState } from '@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
30
30
|
import { IWorkbenchExtensionEnablementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
|
|
31
31
|
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
32
32
|
|
|
33
|
-
const languageModelsOpenSettingsIcon = registerIcon("language-models-open-settings", Codicon.goToFile, ( localize(
|
|
33
|
+
const languageModelsOpenSettingsIcon = registerIcon("language-models-open-settings", Codicon.goToFile, ( localize(7032, "Icon for open language models settings commands.")));
|
|
34
34
|
const LANGUAGE_MODELS_ENTITLEMENT_PRECONDITION = ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(
|
|
35
35
|
ChatContextKeys.Entitlement.planFree,
|
|
36
36
|
ChatContextKeys.Entitlement.planEdu,
|
|
@@ -43,7 +43,7 @@ const LANGUAGE_MODELS_ENTITLEMENT_PRECONDITION = ( ContextKeyExpr.and(ChatContex
|
|
|
43
43
|
ChatEntitlementContextKeys.clientByokEnabled
|
|
44
44
|
))));
|
|
45
45
|
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
|
|
46
|
-
EditorPaneDescriptor.create(ModelsManagementEditor, ModelsManagementEditor.ID, ( localize(
|
|
46
|
+
EditorPaneDescriptor.create(ModelsManagementEditor, ModelsManagementEditor.ID, ( localize(7033, "Models Management Editor"))),
|
|
47
47
|
[( new SyncDescriptor(ModelsManagementEditorInput))]
|
|
48
48
|
);
|
|
49
49
|
class ModelsManagementEditorInputSerializer {
|
|
@@ -73,10 +73,10 @@ async function ensureChatExtensionEnabled(accessor) {
|
|
|
73
73
|
}
|
|
74
74
|
await progressService.withProgress({
|
|
75
75
|
location: ProgressLocation.Window,
|
|
76
|
-
title: ( localize(
|
|
76
|
+
title: ( localize(7034, "Enabling AI features…"))
|
|
77
77
|
}, async () => {
|
|
78
78
|
await extensionsWorkbenchService.setEnablement([chatExtension], EnablementState.EnabledGlobally);
|
|
79
|
-
await extensionsWorkbenchService.updateRunningExtensions(( localize(
|
|
79
|
+
await extensionsWorkbenchService.updateRunningExtensions(( localize(7035, "Enabling AI features")));
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
let ChatManagementActionsContribution = class ChatManagementActionsContribution extends Disposable {
|
|
@@ -94,7 +94,7 @@ let ChatManagementActionsContribution = class ChatManagementActionsContribution
|
|
|
94
94
|
constructor() {
|
|
95
95
|
super({
|
|
96
96
|
id: MANAGE_CHAT_COMMAND_ID,
|
|
97
|
-
title: ( localize2(
|
|
97
|
+
title: ( localize2(7036, "Manage Language Models")),
|
|
98
98
|
category: CHAT_CATEGORY,
|
|
99
99
|
precondition: LANGUAGE_MODELS_ENTITLEMENT_PRECONDITION,
|
|
100
100
|
f1: true
|
|
@@ -118,7 +118,7 @@ let ChatManagementActionsContribution = class ChatManagementActionsContribution
|
|
|
118
118
|
weight: KeybindingWeight.EditorContrib,
|
|
119
119
|
when: CONTEXT_MODELS_SEARCH_FOCUS
|
|
120
120
|
},
|
|
121
|
-
title: ( localize2(
|
|
121
|
+
title: ( localize2(7037, "Clear Models Search Results"))
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
run(accessor) {
|
|
@@ -134,7 +134,7 @@ let ChatManagementActionsContribution = class ChatManagementActionsContribution
|
|
|
134
134
|
constructor() {
|
|
135
135
|
super({
|
|
136
136
|
id: "workbench.action.openLanguageModelsJson",
|
|
137
|
-
title: ( localize2(
|
|
137
|
+
title: ( localize2(7038, "Open Language Models (JSON)")),
|
|
138
138
|
category: CHAT_CATEGORY,
|
|
139
139
|
precondition: LANGUAGE_MODELS_ENTITLEMENT_PRECONDITION,
|
|
140
140
|
icon: languageModelsOpenSettingsIcon,
|
|
@@ -164,7 +164,7 @@ let ChatManagementActionsContribution = class ChatManagementActionsContribution
|
|
|
164
164
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
165
165
|
command: {
|
|
166
166
|
id: MANAGE_CHAT_COMMAND_ID,
|
|
167
|
-
title: ( localize2(
|
|
167
|
+
title: ( localize2(7036, "Manage Language Models")),
|
|
168
168
|
icon: languageModelsOpenSettingsIcon
|
|
169
169
|
},
|
|
170
170
|
when: openModelsManagementEditorWhen,
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js
CHANGED
|
@@ -5,7 +5,7 @@ import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/th
|
|
|
5
5
|
import { EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
6
6
|
import { EditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput';
|
|
7
7
|
|
|
8
|
-
const ModelsManagementEditorIcon = registerIcon("models-management-editor-label-icon", Codicon.settings, ( localize(
|
|
8
|
+
const ModelsManagementEditorIcon = registerIcon("models-management-editor-label-icon", Codicon.settings, ( localize(7039, "Icon of the Models Management editor label.")));
|
|
9
9
|
class ModelsManagementEditorInput extends EditorInput {
|
|
10
10
|
static {
|
|
11
11
|
this.ID = "workbench.input.modelsManagement";
|
|
@@ -24,7 +24,7 @@ class ModelsManagementEditorInput extends EditorInput {
|
|
|
24
24
|
return ModelsManagementEditorInput.ID;
|
|
25
25
|
}
|
|
26
26
|
getName() {
|
|
27
|
-
return localize(
|
|
27
|
+
return localize(7040, "Language Models");
|
|
28
28
|
}
|
|
29
29
|
getIcon() {
|
|
30
30
|
return ModelsManagementEditorIcon;
|
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { ILanguageModelProviderDescriptor } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels";
|
|
2
3
|
import { ILanguageModelsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service";
|
|
3
4
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
5
|
import { MarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
5
6
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
6
7
|
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
8
|
+
import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
7
9
|
import { ILanguageModel } from "./chatModelsViewModel.js";
|
|
8
10
|
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
9
11
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
10
12
|
import { IEditorProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
|
|
13
|
+
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
11
14
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
15
|
+
import { IExtensionsWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service";
|
|
12
16
|
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
17
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
13
18
|
export declare function getModelHoverContent(model: ILanguageModel): MarkdownString;
|
|
19
|
+
/**
|
|
20
|
+
* Pure helper for building the dropdown actions shown by the **Add Models** button.
|
|
21
|
+
*
|
|
22
|
+
* Exposed for unit testing. When `supportsAddingModels` is false, no actions are returned
|
|
23
|
+
* regardless of the other inputs so that the existing entitlement/managed-by-organization
|
|
24
|
+
* restriction is preserved.
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildAddModelsDropdownActions(configurableVendors: ILanguageModelProviderDescriptor[], supportsAddingModels: boolean, runVendorAction: (vendor: ILanguageModelProviderDescriptor) => void | Promise<void>): IAction[];
|
|
14
27
|
export declare class ChatModelsWidget extends Disposable {
|
|
15
28
|
private readonly languageModelsService;
|
|
16
29
|
private readonly instantiationService;
|
|
@@ -19,8 +32,11 @@ export declare class ChatModelsWidget extends Disposable {
|
|
|
19
32
|
private readonly chatEntitlementService;
|
|
20
33
|
private readonly editorProgressService;
|
|
21
34
|
private readonly commandService;
|
|
35
|
+
private readonly editorGroupsService;
|
|
22
36
|
private readonly contextKeyService;
|
|
23
37
|
private readonly dialogService;
|
|
38
|
+
private readonly extensionsWorkbenchService;
|
|
39
|
+
private readonly environmentService;
|
|
24
40
|
private static NUM_INSTANCES;
|
|
25
41
|
readonly element: HTMLElement;
|
|
26
42
|
private readonly _onDidChangeItemCount;
|
|
@@ -40,10 +56,11 @@ export declare class ChatModelsWidget extends Disposable {
|
|
|
40
56
|
private delayedFiltering;
|
|
41
57
|
private readonly searchFocusContextKey;
|
|
42
58
|
private readonly tableDisposables;
|
|
43
|
-
constructor(languageModelsService: ILanguageModelsService, instantiationService: IInstantiationService, extensionService: IExtensionService, contextMenuService: IContextMenuService, chatEntitlementService: IChatEntitlementService, editorProgressService: IEditorProgressService, commandService: ICommandService, contextKeyService: IContextKeyService, dialogService: IDialogService);
|
|
59
|
+
constructor(languageModelsService: ILanguageModelsService, instantiationService: IInstantiationService, extensionService: IExtensionService, contextMenuService: IContextMenuService, chatEntitlementService: IChatEntitlementService, editorProgressService: IEditorProgressService, commandService: ICommandService, editorGroupsService: IEditorGroupsService, contextKeyService: IContextKeyService, dialogService: IDialogService, extensionsWorkbenchService: IExtensionsWorkbenchService, environmentService: IWorkbenchEnvironmentService);
|
|
44
60
|
private create;
|
|
45
61
|
private createTable;
|
|
46
62
|
private updateAddModelsButton;
|
|
63
|
+
private openLanguageModelProviderExtensionsSearch;
|
|
47
64
|
private filterModels;
|
|
48
65
|
private addModelsForVendor;
|
|
49
66
|
layout(height: number, width: number): void;
|