@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
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
4
|
import * as chatStatus from './media/chatStatus.css';
|
|
5
|
-
import { Disposable, MutableDisposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { Disposable, MutableDisposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
7
|
import { StatusbarAlignment, ShowTooltipCommand } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
8
8
|
import { IStatusbarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
9
|
-
import {
|
|
9
|
+
import { ChatEntitlement, ChatEntitlementContextKeys, isProUser } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService';
|
|
10
10
|
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
11
|
+
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
12
|
+
import { disposableLongTimeout, disposableTimeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
13
|
+
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
14
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
11
15
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
12
16
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
13
17
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
18
|
import { getCodeEditor } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser';
|
|
15
19
|
import { IInlineCompletionsService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/inlineCompletionsService.service';
|
|
16
|
-
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
17
20
|
import { ChatStatusDashboard } from './chatStatusDashboard.js';
|
|
18
21
|
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
19
22
|
import { $, disposableWindowInterval } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
@@ -28,6 +31,45 @@ import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbe
|
|
|
28
31
|
|
|
29
32
|
var ChatStatusBarEntry_1;
|
|
30
33
|
registerCss(chatStatus);
|
|
34
|
+
function isTrackedEntitlement(entitlement) {
|
|
35
|
+
switch (entitlement) {
|
|
36
|
+
case ChatEntitlement.Free:
|
|
37
|
+
case ChatEntitlement.EDU:
|
|
38
|
+
case ChatEntitlement.Pro:
|
|
39
|
+
case ChatEntitlement.ProPlus:
|
|
40
|
+
case ChatEntitlement.Business:
|
|
41
|
+
case ChatEntitlement.Enterprise:
|
|
42
|
+
return true;
|
|
43
|
+
default:
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function isQuotaBlocked(quotas) {
|
|
48
|
+
const premiumChat = quotas.premiumChat;
|
|
49
|
+
if (premiumChat === undefined) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
return premiumChat.unlimited ? premiumChat.hasQuota === false : premiumChat.percentRemaining === 0;
|
|
53
|
+
}
|
|
54
|
+
function hasResolvedQuota(quotas) {
|
|
55
|
+
return quotas.premiumChat !== undefined;
|
|
56
|
+
}
|
|
57
|
+
function computeQuotaResumeState(previous, entitlement, quotas) {
|
|
58
|
+
if (!isTrackedEntitlement(entitlement)) {
|
|
59
|
+
return "none";
|
|
60
|
+
}
|
|
61
|
+
const additionalSpend = quotas.additionalUsageEnabled === true;
|
|
62
|
+
if (!additionalSpend && isQuotaBlocked(quotas)) {
|
|
63
|
+
return "blocked";
|
|
64
|
+
}
|
|
65
|
+
if (previous !== "blocked") {
|
|
66
|
+
return previous;
|
|
67
|
+
}
|
|
68
|
+
if (additionalSpend) {
|
|
69
|
+
return "none";
|
|
70
|
+
}
|
|
71
|
+
return hasResolvedQuota(quotas) ? "resumed" : "blocked";
|
|
72
|
+
}
|
|
31
73
|
let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
32
74
|
static {
|
|
33
75
|
ChatStatusBarEntry_1 = this;
|
|
@@ -42,6 +84,12 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
42
84
|
ChatEntitlementContextKeys.hasByokModels.key
|
|
43
85
|
]));
|
|
44
86
|
}
|
|
87
|
+
static {
|
|
88
|
+
this.QUOTA_RESUME_STATE_KEY = "chat.quotaResumeState";
|
|
89
|
+
}
|
|
90
|
+
static {
|
|
91
|
+
this.QUOTA_RESET_RETRY_DELAY = 5 * 60 * 1000;
|
|
92
|
+
}
|
|
45
93
|
constructor(
|
|
46
94
|
chatEntitlementService,
|
|
47
95
|
instantiationService,
|
|
@@ -49,8 +97,8 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
49
97
|
editorService,
|
|
50
98
|
configurationService,
|
|
51
99
|
completionsService,
|
|
52
|
-
|
|
53
|
-
|
|
100
|
+
contextKeyService,
|
|
101
|
+
storageService
|
|
54
102
|
) {
|
|
55
103
|
super();
|
|
56
104
|
this.chatEntitlementService = chatEntitlementService;
|
|
@@ -59,14 +107,18 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
59
107
|
this.editorService = editorService;
|
|
60
108
|
this.configurationService = configurationService;
|
|
61
109
|
this.completionsService = completionsService;
|
|
62
|
-
this.chatSessionsService = chatSessionsService;
|
|
63
110
|
this.contextKeyService = contextKeyService;
|
|
111
|
+
this.storageService = storageService;
|
|
64
112
|
this.entry = undefined;
|
|
65
113
|
this.activeCodeEditorListener = this._register(( new MutableDisposable()));
|
|
66
114
|
this.entryAnchor = $("span");
|
|
67
|
-
this.
|
|
115
|
+
this.quotaResetTimer = this._register(( new MutableDisposable()));
|
|
116
|
+
this.quotaRefresh = this._register(( new MutableDisposable()));
|
|
117
|
+
this.clearResumedScheduler = this._register(( new MutableDisposable()));
|
|
118
|
+
this.quotaResumeState = this.readPersistedQuotaResumeState();
|
|
68
119
|
this.dashboardTooltip = {
|
|
69
120
|
element: token => {
|
|
121
|
+
this.onDashboardOpened();
|
|
70
122
|
const store = ( new DisposableStore());
|
|
71
123
|
store.add(token.onCancellationRequested(() => {
|
|
72
124
|
store.dispose();
|
|
@@ -82,6 +134,7 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
82
134
|
};
|
|
83
135
|
this.update();
|
|
84
136
|
this.registerListeners();
|
|
137
|
+
this.initializeQuotaResumeState();
|
|
85
138
|
}
|
|
86
139
|
update() {
|
|
87
140
|
const sentiment = this.chatEntitlementService.sentiment;
|
|
@@ -104,22 +157,22 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
104
157
|
}
|
|
105
158
|
}
|
|
106
159
|
registerListeners() {
|
|
107
|
-
this._register(
|
|
160
|
+
this._register(
|
|
161
|
+
this.chatEntitlementService.onDidChangeQuotaExceeded(() => this.onQuotaChanged())
|
|
162
|
+
);
|
|
163
|
+
this._register(
|
|
164
|
+
this.chatEntitlementService.onDidChangeQuotaRemaining(() => this.onQuotaChanged())
|
|
165
|
+
);
|
|
108
166
|
this._register(this.chatEntitlementService.onDidChangeSentiment(() => this.update()));
|
|
109
|
-
this._register(
|
|
167
|
+
this._register(
|
|
168
|
+
this.chatEntitlementService.onDidChangeEntitlement(() => this.onQuotaChanged())
|
|
169
|
+
);
|
|
110
170
|
this._register(this.contextKeyService.onDidChangeContext(e => {
|
|
111
171
|
if (e.affectsSome(ChatStatusBarEntry_1.TITLE_BAR_CONTEXT_KEYS)) {
|
|
112
172
|
this.update();
|
|
113
173
|
}
|
|
114
174
|
}));
|
|
115
175
|
this._register(this.completionsService.onDidChangeIsSnoozing(() => this.update()));
|
|
116
|
-
this._register(this.chatSessionsService.onDidChangeInProgress(() => {
|
|
117
|
-
const oldSessionsCount = this.runningSessionsCount;
|
|
118
|
-
this.runningSessionsCount = this.chatSessionsService.getInProgress().reduce((total, item) => total + item.count, 0);
|
|
119
|
-
if (this.runningSessionsCount !== oldSessionsCount) {
|
|
120
|
-
this.update();
|
|
121
|
-
}
|
|
122
|
-
}));
|
|
123
176
|
this._register(
|
|
124
177
|
this.editorService.onDidActiveEditorChange(() => this.onDidActiveEditorChange())
|
|
125
178
|
);
|
|
@@ -139,9 +192,99 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
139
192
|
});
|
|
140
193
|
}
|
|
141
194
|
}
|
|
195
|
+
onQuotaChanged() {
|
|
196
|
+
this.evaluateQuotaResumeState();
|
|
197
|
+
this.update();
|
|
198
|
+
}
|
|
199
|
+
evaluateQuotaResumeState() {
|
|
200
|
+
const next = computeQuotaResumeState(
|
|
201
|
+
this.quotaResumeState,
|
|
202
|
+
this.chatEntitlementService.entitlement,
|
|
203
|
+
this.chatEntitlementService.quotas
|
|
204
|
+
);
|
|
205
|
+
this.setQuotaResumeState(next);
|
|
206
|
+
if (next === "blocked") {
|
|
207
|
+
this.scheduleQuotaResetRefresh();
|
|
208
|
+
} else {
|
|
209
|
+
this.quotaResetTimer.clear();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
getQuotaResetTime() {
|
|
213
|
+
const quotas = this.chatEntitlementService.quotas;
|
|
214
|
+
const premiumResetAt = quotas.premiumChat?.resetAt;
|
|
215
|
+
if (typeof premiumResetAt === "number") {
|
|
216
|
+
return premiumResetAt * 1000;
|
|
217
|
+
}
|
|
218
|
+
if (quotas.resetDate) {
|
|
219
|
+
const parsed = Date.parse(quotas.resetDate);
|
|
220
|
+
if (!isNaN(parsed)) {
|
|
221
|
+
return parsed;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return undefined;
|
|
225
|
+
}
|
|
226
|
+
scheduleQuotaResetRefresh() {
|
|
227
|
+
const resetAt = this.getQuotaResetTime();
|
|
228
|
+
if (resetAt === undefined) {
|
|
229
|
+
this.quotaResetTimer.clear();
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
const delay = resetAt > Date.now() ? resetAt - Date.now() : ChatStatusBarEntry_1.QUOTA_RESET_RETRY_DELAY;
|
|
233
|
+
this.quotaResetTimer.value = disposableLongTimeout(() => this.refreshQuotaAndEvaluate(), delay);
|
|
234
|
+
}
|
|
235
|
+
refreshQuotaAndEvaluate() {
|
|
236
|
+
const cts = ( new CancellationTokenSource());
|
|
237
|
+
this.quotaRefresh.value = toDisposable(() => cts.dispose(true));
|
|
238
|
+
(async () => {
|
|
239
|
+
try {
|
|
240
|
+
await this.chatEntitlementService.update(cts.token);
|
|
241
|
+
} catch {}
|
|
242
|
+
if (cts.token.isCancellationRequested) {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
this.evaluateQuotaResumeState();
|
|
246
|
+
this.update();
|
|
247
|
+
})();
|
|
248
|
+
}
|
|
249
|
+
initializeQuotaResumeState() {
|
|
250
|
+
if (this.quotaResumeState === "blocked") {
|
|
251
|
+
this.refreshQuotaAndEvaluate();
|
|
252
|
+
} else {
|
|
253
|
+
this.evaluateQuotaResumeState();
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
readPersistedQuotaResumeState() {
|
|
257
|
+
const stored = this.storageService.get(ChatStatusBarEntry_1.QUOTA_RESUME_STATE_KEY, StorageScope.PROFILE);
|
|
258
|
+
return stored === "blocked" || stored === "resumed" ? stored : "none";
|
|
259
|
+
}
|
|
260
|
+
setQuotaResumeState(state) {
|
|
261
|
+
if (this.quotaResumeState === state) {
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
this.quotaResumeState = state;
|
|
265
|
+
if (state === "none") {
|
|
266
|
+
this.storageService.remove(ChatStatusBarEntry_1.QUOTA_RESUME_STATE_KEY, StorageScope.PROFILE);
|
|
267
|
+
} else {
|
|
268
|
+
this.storageService.store(
|
|
269
|
+
ChatStatusBarEntry_1.QUOTA_RESUME_STATE_KEY,
|
|
270
|
+
state,
|
|
271
|
+
StorageScope.PROFILE,
|
|
272
|
+
StorageTarget.MACHINE
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
onDashboardOpened() {
|
|
277
|
+
if (this.quotaResumeState !== "resumed") {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
this.clearResumedScheduler.value = disposableTimeout(() => {
|
|
281
|
+
this.setQuotaResumeState("none");
|
|
282
|
+
this.update();
|
|
283
|
+
}, 0);
|
|
284
|
+
}
|
|
142
285
|
getEntryProps() {
|
|
143
286
|
let text = "$(copilot)";
|
|
144
|
-
let ariaLabel = ( localize(
|
|
287
|
+
let ariaLabel = ( localize(7371, "Copilot status"));
|
|
145
288
|
let kind;
|
|
146
289
|
if (isNewUser(this.chatEntitlementService)) {
|
|
147
290
|
const entitlement = this.chatEntitlementService.entitlement;
|
|
@@ -151,54 +294,36 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
151
294
|
}
|
|
152
295
|
} else {
|
|
153
296
|
const quotas = this.chatEntitlementService.quotas;
|
|
154
|
-
const chatQuotaExceeded = quotas.chat?.percentRemaining === 0;
|
|
155
|
-
const completionsQuotaExceeded = quotas.completions?.percentRemaining === 0;
|
|
156
|
-
const isPooledQuotaDepleted = quotas.premiumChat?.unlimited && quotas.premiumChat.hasQuota === false;
|
|
157
297
|
if (this.chatEntitlementService.sentiment.disabled || this.chatEntitlementService.sentiment.untrusted) {
|
|
158
298
|
text = "$(copilot-unavailable)";
|
|
159
|
-
ariaLabel = ( localize(
|
|
160
|
-
}
|
|
161
|
-
else if (this.runningSessionsCount > 0) {
|
|
162
|
-
text = "$(copilot-in-progress)";
|
|
163
|
-
if (this.runningSessionsCount > 1) {
|
|
164
|
-
ariaLabel = ( localize(6867, "{0} agent sessions in progress", this.runningSessionsCount));
|
|
165
|
-
} else {
|
|
166
|
-
ariaLabel = ( localize(6868, "1 agent session in progress"));
|
|
167
|
-
}
|
|
299
|
+
ariaLabel = ( localize(7372, "Copilot disabled"));
|
|
168
300
|
}
|
|
169
301
|
else if (this.chatEntitlementService.entitlement === ChatEntitlement.Unknown) {
|
|
170
302
|
return this.getSetupEntryProps();
|
|
171
303
|
}
|
|
172
|
-
else if (this.chatEntitlementService.entitlement
|
|
173
|
-
|
|
174
|
-
if (chatQuotaExceeded && !completionsQuotaExceeded) {
|
|
175
|
-
quotaWarning = ( localize(6869, "Chat quota reached"));
|
|
176
|
-
} else if (completionsQuotaExceeded && !chatQuotaExceeded) {
|
|
177
|
-
quotaWarning = ( localize(6870, "Inline suggestions limit reached"));
|
|
178
|
-
} else {
|
|
179
|
-
quotaWarning = ( localize(6871, "Quota reached"));
|
|
180
|
-
}
|
|
304
|
+
else if (isTrackedEntitlement(this.chatEntitlementService.entitlement) && isQuotaBlocked(quotas)) {
|
|
305
|
+
const quotaWarning = ( localize(7373, "Quota reached"));
|
|
181
306
|
text = `$(copilot-warning) ${quotaWarning}`;
|
|
182
307
|
ariaLabel = quotaWarning;
|
|
183
308
|
kind = "prominent";
|
|
184
309
|
}
|
|
185
|
-
else if (
|
|
186
|
-
const
|
|
187
|
-
text = `$(copilot
|
|
188
|
-
ariaLabel =
|
|
310
|
+
else if (this.quotaResumeState === "resumed") {
|
|
311
|
+
const resumedLabel = ( localize(7374, "Copilot Resumed"));
|
|
312
|
+
text = `$(copilot) ${resumedLabel}`;
|
|
313
|
+
ariaLabel = resumedLabel;
|
|
189
314
|
kind = "prominent";
|
|
190
315
|
}
|
|
191
316
|
else if (this.editorService.activeTextEditorLanguageId && !isCompletionsEnabled(this.configurationService, this.editorService.activeTextEditorLanguageId)) {
|
|
192
317
|
text = "$(copilot-unavailable)";
|
|
193
|
-
ariaLabel = ( localize(
|
|
318
|
+
ariaLabel = ( localize(7375, "Inline suggestions disabled"));
|
|
194
319
|
}
|
|
195
320
|
else if (this.completionsService.isSnoozing()) {
|
|
196
321
|
text = "$(copilot-snooze)";
|
|
197
|
-
ariaLabel = ( localize(
|
|
322
|
+
ariaLabel = ( localize(7376, "Inline suggestions snoozed"));
|
|
198
323
|
}
|
|
199
324
|
}
|
|
200
325
|
const baseResult = {
|
|
201
|
-
name: ( localize(
|
|
326
|
+
name: ( localize(7377, "Copilot Status")),
|
|
202
327
|
text,
|
|
203
328
|
ariaLabel,
|
|
204
329
|
command: ShowTooltipCommand,
|
|
@@ -211,11 +336,11 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
211
336
|
}
|
|
212
337
|
getSetupEntryProps() {
|
|
213
338
|
const showSignInLabel = !this.isSignInTitleBarAffordanceVisible();
|
|
214
|
-
const signInLabel = ( localize(
|
|
339
|
+
const signInLabel = ( localize(7378, "Sign In"));
|
|
215
340
|
return {
|
|
216
|
-
name: ( localize(
|
|
341
|
+
name: ( localize(7377, "Copilot Status")),
|
|
217
342
|
text: showSignInLabel ? `$(copilot) ${signInLabel}` : "$(copilot)",
|
|
218
|
-
ariaLabel: showSignInLabel ? signInLabel : ( localize(
|
|
343
|
+
ariaLabel: showSignInLabel ? signInLabel : ( localize(7371, "Copilot status")),
|
|
219
344
|
command: CHAT_SETUP_ACTION_ID,
|
|
220
345
|
showInAllWindows: true,
|
|
221
346
|
kind: undefined,
|
|
@@ -249,6 +374,6 @@ let ChatStatusBarEntry = class ChatStatusBarEntry extends Disposable {
|
|
|
249
374
|
this.entry = undefined;
|
|
250
375
|
}
|
|
251
376
|
};
|
|
252
|
-
ChatStatusBarEntry = ChatStatusBarEntry_1 = ( __decorate([( __param(0, IChatEntitlementService)), ( __param(1, IInstantiationService)), ( __param(2, IStatusbarService)), ( __param(3, IEditorService)), ( __param(4, IConfigurationService)), ( __param(5, IInlineCompletionsService)), ( __param(6,
|
|
377
|
+
ChatStatusBarEntry = ChatStatusBarEntry_1 = ( __decorate([( __param(0, IChatEntitlementService)), ( __param(1, IInstantiationService)), ( __param(2, IStatusbarService)), ( __param(3, IEditorService)), ( __param(4, IConfigurationService)), ( __param(5, IInlineCompletionsService)), ( __param(6, IContextKeyService)), ( __param(7, IStorageService))], ChatStatusBarEntry));
|
|
253
378
|
|
|
254
|
-
export { ChatStatusBarEntry };
|
|
379
|
+
export { ChatStatusBarEntry, computeQuotaResumeState };
|
|
@@ -274,6 +274,10 @@
|
|
|
274
274
|
border-radius: 4px;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
+
.chat-status-bar-entry-tooltip .quota-indicator.muted {
|
|
278
|
+
opacity: 0.5;
|
|
279
|
+
}
|
|
280
|
+
|
|
277
281
|
/* Compact Quota Indicator (2x2 grid: plan name + percentage, reset + label) */
|
|
278
282
|
|
|
279
283
|
.chat-status-bar-entry-tooltip .quota-indicator.compact {
|
|
@@ -39,7 +39,7 @@ const TIP_CATALOG = [{
|
|
|
39
39
|
priority: 0,
|
|
40
40
|
buildMessage(_ctx) {
|
|
41
41
|
return (new MarkdownString(localize(
|
|
42
|
-
|
|
42
|
+
7379,
|
|
43
43
|
"Using GPT-4.1? Try switching to [Auto](command:workbench.action.chat.openModelPicker \"Open Model Picker\") in the model picker for better coding performance."
|
|
44
44
|
)));
|
|
45
45
|
},
|
|
@@ -51,7 +51,7 @@ const TIP_CATALOG = [{
|
|
|
51
51
|
buildMessage(ctx) {
|
|
52
52
|
const kb = formatKeybinding(ctx, GENERATE_AGENT_INSTRUCTIONS_COMMAND_ID);
|
|
53
53
|
return (new MarkdownString(localize(
|
|
54
|
-
|
|
54
|
+
7380,
|
|
55
55
|
"Use [{0}](command:{1} \"Run /init\"){2} to generate or update a workspace instructions file for AI coding agents.",
|
|
56
56
|
"/init",
|
|
57
57
|
GENERATE_AGENT_INSTRUCTIONS_COMMAND_ID,
|
|
@@ -69,7 +69,7 @@ const TIP_CATALOG = [{
|
|
|
69
69
|
buildMessage(ctx) {
|
|
70
70
|
const kb = formatKeybinding(ctx, GENERATE_PROMPT_COMMAND_ID);
|
|
71
71
|
return (new MarkdownString(localize(
|
|
72
|
-
|
|
72
|
+
7381,
|
|
73
73
|
"Use [{0}](command:{1} \"Run /create-prompt\"){2} to generate a reusable prompt file with the agent.",
|
|
74
74
|
"/create-prompt",
|
|
75
75
|
GENERATE_PROMPT_COMMAND_ID,
|
|
@@ -85,7 +85,7 @@ const TIP_CATALOG = [{
|
|
|
85
85
|
buildMessage(ctx) {
|
|
86
86
|
const kb = formatKeybinding(ctx, GENERATE_AGENT_COMMAND_ID);
|
|
87
87
|
return (new MarkdownString(localize(
|
|
88
|
-
|
|
88
|
+
7382,
|
|
89
89
|
"Use [{0}](command:{1} \"Run /create-agent\"){2} to scaffold a custom agent for your workflow.",
|
|
90
90
|
"/create-agent",
|
|
91
91
|
GENERATE_AGENT_COMMAND_ID,
|
|
@@ -101,7 +101,7 @@ const TIP_CATALOG = [{
|
|
|
101
101
|
buildMessage(ctx) {
|
|
102
102
|
const kb = formatKeybinding(ctx, GENERATE_SKILL_COMMAND_ID);
|
|
103
103
|
return (new MarkdownString(localize(
|
|
104
|
-
|
|
104
|
+
7383,
|
|
105
105
|
"Use [{0}](command:{1} \"Run /create-skill\"){2} to create a skill the agent can load when relevant.",
|
|
106
106
|
"/create-skill",
|
|
107
107
|
GENERATE_SKILL_COMMAND_ID,
|
|
@@ -117,7 +117,7 @@ const TIP_CATALOG = [{
|
|
|
117
117
|
buildMessage(ctx) {
|
|
118
118
|
const kb = formatKeybinding(ctx, "workbench.action.chat.openPlan");
|
|
119
119
|
return (new MarkdownString(localize(
|
|
120
|
-
|
|
120
|
+
7384,
|
|
121
121
|
"Try the [{0}](command:workbench.action.chat.openPlan \"Start Plan Mode\"){1} to research and plan before implementing changes.",
|
|
122
122
|
"Plan agent",
|
|
123
123
|
kb
|
|
@@ -131,7 +131,7 @@ const TIP_CATALOG = [{
|
|
|
131
131
|
tier: ChatTipTier.Qol,
|
|
132
132
|
buildMessage() {
|
|
133
133
|
return (new MarkdownString(localize(
|
|
134
|
-
|
|
134
|
+
7385,
|
|
135
135
|
"Reference files or folders with # to give the agent more context about the task."
|
|
136
136
|
)));
|
|
137
137
|
},
|
|
@@ -147,7 +147,7 @@ const TIP_CATALOG = [{
|
|
|
147
147
|
tier: ChatTipTier.Qol,
|
|
148
148
|
buildMessage() {
|
|
149
149
|
return (new MarkdownString(localize(
|
|
150
|
-
|
|
150
|
+
7386,
|
|
151
151
|
"Select a code block in the editor and right-click to access more AI actions."
|
|
152
152
|
)));
|
|
153
153
|
},
|
|
@@ -157,7 +157,7 @@ const TIP_CATALOG = [{
|
|
|
157
157
|
tier: ChatTipTier.Qol,
|
|
158
158
|
buildMessage() {
|
|
159
159
|
return (new MarkdownString(localize(
|
|
160
|
-
|
|
160
|
+
7387,
|
|
161
161
|
"Hover a previous request and select \"Restore Checkpoint\" to undo changes after that point in the chat conversation."
|
|
162
162
|
)));
|
|
163
163
|
},
|
|
@@ -171,7 +171,7 @@ const TIP_CATALOG = [{
|
|
|
171
171
|
tier: ChatTipTier.Qol,
|
|
172
172
|
buildMessage() {
|
|
173
173
|
return (new MarkdownString(localize(
|
|
174
|
-
|
|
174
|
+
7388,
|
|
175
175
|
"Steer the agent mid-task by sending follow-up messages. They queue and apply in order."
|
|
176
176
|
)));
|
|
177
177
|
},
|
|
@@ -186,7 +186,7 @@ const TIP_CATALOG = [{
|
|
|
186
186
|
buildMessage(ctx) {
|
|
187
187
|
const kb = formatKeybinding(ctx, INSERT_FORK_CONVERSATION_COMMAND_ID);
|
|
188
188
|
return (new MarkdownString(localize(
|
|
189
|
-
|
|
189
|
+
7389,
|
|
190
190
|
"Use [{0}](command:{1} \"Run /fork\"){2} to branch the conversation. Explore a different approach without losing the original context.",
|
|
191
191
|
"/fork",
|
|
192
192
|
INSERT_FORK_CONVERSATION_COMMAND_ID,
|
|
@@ -203,7 +203,7 @@ const TIP_CATALOG = [{
|
|
|
203
203
|
tier: ChatTipTier.Qol,
|
|
204
204
|
buildMessage() {
|
|
205
205
|
return (new MarkdownString(localize(
|
|
206
|
-
|
|
206
|
+
7390,
|
|
207
207
|
"Ask the agent to draw an architectural diagram or flow chart. It can render Mermaid diagrams directly in chat."
|
|
208
208
|
)));
|
|
209
209
|
},
|
|
@@ -214,7 +214,7 @@ const TIP_CATALOG = [{
|
|
|
214
214
|
tier: ChatTipTier.Qol,
|
|
215
215
|
buildMessage() {
|
|
216
216
|
return (new MarkdownString(localize(
|
|
217
|
-
|
|
217
|
+
7391,
|
|
218
218
|
"Have another task to work on? Start a new session to run multiple agents at once."
|
|
219
219
|
)));
|
|
220
220
|
},
|
|
@@ -225,7 +225,7 @@ const TIP_CATALOG = [{
|
|
|
225
225
|
tier: ChatTipTier.Qol,
|
|
226
226
|
buildMessage() {
|
|
227
227
|
return (new MarkdownString(localize(
|
|
228
|
-
|
|
228
|
+
7392,
|
|
229
229
|
"Customize the loading messages shown while the agent works with [{0}](command:workbench.action.openSettings?%5B%22{1}%22%5D \"Open Settings\").",
|
|
230
230
|
"thinking phrases",
|
|
231
231
|
ChatConfiguration.ThinkingPhrases
|
|
@@ -239,7 +239,7 @@ const TIP_CATALOG = [{
|
|
|
239
239
|
tier: ChatTipTier.Qol,
|
|
240
240
|
buildMessage() {
|
|
241
241
|
return (new MarkdownString(localize(
|
|
242
|
-
|
|
242
|
+
7393,
|
|
243
243
|
"Configure [{0}](command:workbench.action.openSettings?%5B%22chat.editing.autoAcceptDelay%22%5D \"Open Settings\") to automatically accept changes from the agent after a short countdown.",
|
|
244
244
|
"auto-accept delay"
|
|
245
245
|
)));
|
|
@@ -253,7 +253,7 @@ const TIP_CATALOG = [{
|
|
|
253
253
|
buildMessage(ctx) {
|
|
254
254
|
const kb = formatKeybinding(ctx, INSERT_TROUBLESHOOT_COMMAND_ID);
|
|
255
255
|
return (new MarkdownString(localize(
|
|
256
|
-
|
|
256
|
+
7394,
|
|
257
257
|
"Something not working? Type [{0}](command:{1} \"Run /troubleshoot\"){2} <question> to diagnose issues from debug logs.",
|
|
258
258
|
"/troubleshoot",
|
|
259
259
|
INSERT_TROUBLESHOOT_COMMAND_ID,
|
|
@@ -267,7 +267,7 @@ const TIP_CATALOG = [{
|
|
|
267
267
|
tier: ChatTipTier.Qol,
|
|
268
268
|
buildMessage(ctx) {
|
|
269
269
|
const defaultMessage = ( localize(
|
|
270
|
-
|
|
270
|
+
7395,
|
|
271
271
|
"Work across multiple projects at once in the [Agents window](command:{0} \"Open Agents Window\").",
|
|
272
272
|
OPEN_AGENTS_WINDOW_COMMAND_ID
|
|
273
273
|
));
|
|
@@ -282,7 +282,7 @@ const TIP_CATALOG = [{
|
|
|
282
282
|
tier: ChatTipTier.Qol,
|
|
283
283
|
buildMessage() {
|
|
284
284
|
return (new MarkdownString(localize(
|
|
285
|
-
|
|
285
|
+
7396,
|
|
286
286
|
"Run agents in parallel with [Copilot CLI](command:workbench.action.chat.openNewChatSessionInPlace.copilotcli?%5B%22sidebar%22%5D \"Switch to Copilot CLI\")."
|
|
287
287
|
)));
|
|
288
288
|
},
|
|
@@ -293,7 +293,7 @@ const TIP_CATALOG = [{
|
|
|
293
293
|
tier: ChatTipTier.Qol,
|
|
294
294
|
buildMessage() {
|
|
295
295
|
return (new MarkdownString(localize(
|
|
296
|
-
|
|
296
|
+
7397,
|
|
297
297
|
"Configure [{0}](command:workbench.action.openSettings?%5B%22{1}%22%5D \"Open Settings\") to start new sessions in Bypass Approvals or Autopilot mode.",
|
|
298
298
|
"default permissions",
|
|
299
299
|
ChatConfiguration.DefaultPermissionLevel
|
|
@@ -5,7 +5,7 @@ import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/comm
|
|
|
5
5
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
6
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
7
7
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
8
|
-
import { getSelectedModelIdentifier } from '
|
|
8
|
+
import { getSelectedModelIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSelectedModel';
|
|
9
9
|
import { ChatConfiguration, ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
10
10
|
import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
|
|
11
11
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
@@ -613,7 +613,7 @@ let ChatTipService = class ChatTipService extends Disposable {
|
|
|
613
613
|
experimentalTipMessages: this._experimentalTipMessages
|
|
614
614
|
};
|
|
615
615
|
const rawMessage = tipDef.buildMessage(ctx);
|
|
616
|
-
const prefixedMessage = ( localize(
|
|
616
|
+
const prefixedMessage = ( localize(7398, "**Tip:** {0}", rawMessage.value));
|
|
617
617
|
const enabledCommands = extractCommandIds(prefixedMessage);
|
|
618
618
|
const markdown = ( new MarkdownString(prefixedMessage, {
|
|
619
619
|
isTrusted: enabledCommands.length > 0 ? {
|
|
@@ -77,12 +77,12 @@ let ChatWindowNotifier = class ChatWindowNotifier extends Disposable {
|
|
|
77
77
|
mode: FocusMode.Notify
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
const notificationTitle = info.title ? ( localize(
|
|
80
|
+
const notificationTitle = info.title ? ( localize(7399, "Session: {0}", info.title)) : ( localize(7400, "Untitled Session"));
|
|
81
81
|
const cts = ( new CancellationTokenSource());
|
|
82
82
|
this._activeNotifications.set(sessionResource, toDisposable(() => cts.dispose(true)));
|
|
83
83
|
const isQuestionCarousel = this._isQuestionCarouselPending(sessionResource);
|
|
84
84
|
try {
|
|
85
|
-
const actionLabel = isQuestionCarousel ? ( localize(
|
|
85
|
+
const actionLabel = isQuestionCarousel ? ( localize(7401, "Open Session")) : ( localize(7402, "Allow"));
|
|
86
86
|
const result = await this._hostService.showToast({
|
|
87
87
|
title: this._sanitizeOSToastText(notificationTitle),
|
|
88
88
|
body: this._getNotificationBody(sessionResource, info, isQuestionCarousel),
|
|
@@ -121,7 +121,7 @@ let ChatWindowNotifier = class ChatWindowNotifier extends Disposable {
|
|
|
121
121
|
}
|
|
122
122
|
_getNotificationBody(sessionResource, info, isQuestionCarousel) {
|
|
123
123
|
if (isQuestionCarousel) {
|
|
124
|
-
return localize(
|
|
124
|
+
return localize(7403, "Questions need your input.");
|
|
125
125
|
}
|
|
126
126
|
const terminalCommand = this._getPendingTerminalCommand(sessionResource);
|
|
127
127
|
if (terminalCommand) {
|
|
@@ -130,7 +130,7 @@ let ChatWindowNotifier = class ChatWindowNotifier extends Disposable {
|
|
|
130
130
|
if (info.detail) {
|
|
131
131
|
return this._sanitizeOSToastText(info.detail);
|
|
132
132
|
}
|
|
133
|
-
return localize(
|
|
133
|
+
return localize(7404, "Approval needed to continue.");
|
|
134
134
|
}
|
|
135
135
|
_getPendingTerminalCommand(sessionResource) {
|
|
136
136
|
const model = this._chatService.getSession(sessionResource);
|
|
@@ -64,8 +64,8 @@ let AgentPluginRecommendations = class AgentPluginRecommendations extends Dispos
|
|
|
64
64
|
if (uninstalledCount === 0) {
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
-
this._notificationService.prompt(Severity.Info, uninstalledCount === 1 ? ( localize(
|
|
68
|
-
label: ( localize(
|
|
67
|
+
this._notificationService.prompt(Severity.Info, uninstalledCount === 1 ? ( localize(7405, "This workspace recommends 1 agent plugin.")) : ( localize(7406, "This workspace recommends {0} agent plugins.", uninstalledCount)), [{
|
|
68
|
+
label: ( localize(7407, "Show Plugins")),
|
|
69
69
|
run: () => {
|
|
70
70
|
this._extensionsWorkbenchService.openSearch("@agentPlugins @recommended");
|
|
71
71
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js
CHANGED
|
@@ -11,22 +11,22 @@ import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workb
|
|
|
11
11
|
const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
12
12
|
extensionPoint: "chatContext",
|
|
13
13
|
jsonSchema: {
|
|
14
|
-
description: ( localize(
|
|
14
|
+
description: ( localize(7408, "Contributes chat context integrations to the chat widget.")),
|
|
15
15
|
type: "array",
|
|
16
16
|
items: {
|
|
17
17
|
type: "object",
|
|
18
18
|
properties: {
|
|
19
19
|
id: {
|
|
20
|
-
description: ( localize(
|
|
20
|
+
description: ( localize(7409, "A unique identifier for this item.")),
|
|
21
21
|
type: "string"
|
|
22
22
|
},
|
|
23
23
|
icon: {
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(7410, "The icon associated with this chat context item.")),
|
|
25
25
|
type: "string"
|
|
26
26
|
},
|
|
27
27
|
displayName: {
|
|
28
28
|
description: ( localize(
|
|
29
|
-
|
|
29
|
+
7411,
|
|
30
30
|
"A user-friendly name for this item which is used for display in menus."
|
|
31
31
|
)),
|
|
32
32
|
type: "string"
|
|
@@ -60,7 +60,7 @@ let ChatContextContribution = class ChatContextContribution extends Disposable {
|
|
|
60
60
|
const icon = contribution.icon ? ThemeIcon.fromString(contribution.icon) : undefined;
|
|
61
61
|
if (!icon && contribution.icon) {
|
|
62
62
|
ext.collector.error(( localize(
|
|
63
|
-
|
|
63
|
+
7412,
|
|
64
64
|
"Invalid icon format for chat context contribution '{0}'. Icon must be in the format '{1}' or '{2}', e.g. '{3}'.",
|
|
65
65
|
contribution.id,
|
|
66
66
|
"$(iconId)",
|
|
@@ -12,8 +12,8 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
12
12
|
function createDefaultModelArrays(defaultEntryLabel, defaultEntryDescription) {
|
|
13
13
|
return {
|
|
14
14
|
modelIds: [""],
|
|
15
|
-
modelLabels: [defaultEntryLabel ?? ( localize(
|
|
16
|
-
modelDescriptions: [defaultEntryDescription ?? ( localize(
|
|
15
|
+
modelLabels: [defaultEntryLabel ?? ( localize(7413, "Auto (Vendor Default)"))],
|
|
16
|
+
modelDescriptions: [defaultEntryDescription ?? ( localize(7414, "Use the vendor's default model"))]
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
let DefaultModelContribution = class DefaultModelContribution extends Disposable {
|
|
@@ -48,8 +48,8 @@ let DefaultModelContribution = class DefaultModelContribution extends Disposable
|
|
|
48
48
|
modelLabels.length = 0;
|
|
49
49
|
modelDescriptions.length = 0;
|
|
50
50
|
modelIds.push("");
|
|
51
|
-
modelLabels.push(defaultEntryLabel ?? ( localize(
|
|
52
|
-
modelDescriptions.push(defaultEntryDescription ?? ( localize(
|
|
51
|
+
modelLabels.push(defaultEntryLabel ?? ( localize(7413, "Auto (Vendor Default)")));
|
|
52
|
+
modelDescriptions.push(defaultEntryDescription ?? ( localize(7414, "Use the vendor's default model")));
|
|
53
53
|
const models = [];
|
|
54
54
|
const allModelIds = this._languageModelsService.getLanguageModelIds();
|
|
55
55
|
for (const modelId of allModelIds) {
|
|
@@ -119,7 +119,7 @@ let DefaultModelContribution = class DefaultModelContribution extends Disposable
|
|
|
119
119
|
}
|
|
120
120
|
modelIds.push(storedId);
|
|
121
121
|
modelLabels.push(( localize(
|
|
122
|
-
|
|
122
|
+
7415,
|
|
123
123
|
"{0} ({1})",
|
|
124
124
|
model.metadata.name,
|
|
125
125
|
vendorDisplayName ?? model.metadata.vendor
|