@codingame/monaco-vscode-chat-service-override 34.1.2 → 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/widgetHosts/viewPane/media/chatViewPane.css
CHANGED
|
@@ -3,11 +3,88 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
+
/* Voice Agent Bar — wraps the shared AgentsVoiceWidget inside input container */
|
|
7
|
+
.voice-agent-bar {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
border-bottom: 1px solid var(--vscode-panel-border);
|
|
12
|
+
position: relative;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes voiceTextPulse {
|
|
17
|
+
0%,
|
|
18
|
+
100% {
|
|
19
|
+
opacity: 0.9;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
50% {
|
|
23
|
+
opacity: 0.4;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.voice-transcript-overlay-scrollable {
|
|
28
|
+
position: absolute !important;
|
|
29
|
+
top: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
bottom: 36px;
|
|
33
|
+
z-index: 10;
|
|
34
|
+
/* Let clicks pass through to the input editor unless there is scrollable transcript content */
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
background: var(--vscode-input-background, transparent);
|
|
37
|
+
border-radius: inherit;
|
|
38
|
+
border-bottom-left-radius: 0;
|
|
39
|
+
border-bottom-right-radius: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.voice-transcript-overlay-scrollable.has-transcript {
|
|
43
|
+
pointer-events: auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.voice-transcript-overlay {
|
|
47
|
+
height: 100%;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
padding: var(--vscode-spacing-size80) var(--vscode-spacing-size120);
|
|
50
|
+
font-size: var(--vscode-bodyFontSize);
|
|
51
|
+
line-height: 1.4;
|
|
52
|
+
word-break: break-word;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
overscroll-behavior: contain;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.voice-transcript-overlay .committed {
|
|
58
|
+
color: var(--vscode-foreground);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.voice-transcript-overlay .partial {
|
|
62
|
+
color: var(--vscode-foreground);
|
|
63
|
+
opacity: 0.6;
|
|
64
|
+
font-style: italic;
|
|
65
|
+
animation: voiceTextPulse 1.5s ease-in-out infinite;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.voice-transcript-overlay .assistant-text {
|
|
69
|
+
color: var(--vscode-descriptionForeground);
|
|
70
|
+
white-space: pre-wrap;
|
|
71
|
+
}
|
|
72
|
+
|
|
6
73
|
/* Overall styles */
|
|
7
74
|
.chat-viewpane {
|
|
8
75
|
display: flex;
|
|
9
76
|
flex-direction: column;
|
|
10
77
|
|
|
78
|
+
/* wrapper that holds sessions + chat controls */
|
|
79
|
+
> .voice-agent-controls-wrapper {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
flex: 1;
|
|
83
|
+
min-height: 0;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
}
|
|
87
|
+
|
|
11
88
|
.chat-controls-container {
|
|
12
89
|
display: flex;
|
|
13
90
|
flex-direction: column;
|
|
@@ -17,7 +94,7 @@
|
|
|
17
94
|
min-width: 0;
|
|
18
95
|
|
|
19
96
|
.interactive-session {
|
|
20
|
-
|
|
97
|
+
flex: 1;
|
|
21
98
|
/* needed so that the chat input does not overflow and input grows over content above */
|
|
22
99
|
width: 100%;
|
|
23
100
|
min-height: 0;
|
|
@@ -38,7 +115,6 @@
|
|
|
38
115
|
font-size: 11px;
|
|
39
116
|
font-weight: 700;
|
|
40
117
|
text-transform: uppercase;
|
|
41
|
-
letter-spacing: 0.5px;
|
|
42
118
|
|
|
43
119
|
.agent-sessions-title {
|
|
44
120
|
cursor: pointer;
|
|
@@ -83,7 +159,7 @@
|
|
|
83
159
|
/* Sessions control: side by side */
|
|
84
160
|
.chat-viewpane.has-sessions-control.sessions-control-orientation-sidebyside {
|
|
85
161
|
|
|
86
|
-
&.chat-view-position-left {
|
|
162
|
+
&.chat-view-position-left > .voice-agent-controls-wrapper {
|
|
87
163
|
flex-direction: row;
|
|
88
164
|
|
|
89
165
|
.agent-sessions-container {
|
|
@@ -91,7 +167,7 @@
|
|
|
91
167
|
}
|
|
92
168
|
}
|
|
93
169
|
|
|
94
|
-
&.chat-view-position-right {
|
|
170
|
+
&.chat-view-position-right > .voice-agent-controls-wrapper {
|
|
95
171
|
flex-direction: row-reverse;
|
|
96
172
|
|
|
97
173
|
.agent-sessions-container {
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
+
/**
|
|
3
|
+
* How often an automation runs. `hourly` fires every hour from creation/update;
|
|
4
|
+
* `daily`/`weekly` fire at the configured local-time hour/minute (and day-of-week).
|
|
5
|
+
*/
|
|
6
|
+
export type AutomationInterval = "manual" | "hourly" | "daily" | "weekly";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the cadence at which an automation should fire.
|
|
9
|
+
*
|
|
10
|
+
* Times are stored in local-time wall-clock values. The scheduler converts
|
|
11
|
+
* them to UTC when computing concrete run instants so DST transitions are
|
|
12
|
+
* handled correctly.
|
|
13
|
+
*/
|
|
14
|
+
export interface IAutomationSchedule {
|
|
15
|
+
readonly interval: AutomationInterval;
|
|
16
|
+
/** Hour-of-day, 0-23. Ignored for `manual` and `hourly`. */
|
|
17
|
+
readonly scheduleHour: number;
|
|
18
|
+
/** Minute-of-hour, 0-59. Ignored for `manual` and `hourly`. */
|
|
19
|
+
readonly scheduleMinute: number;
|
|
20
|
+
/** Day-of-week, 0 (Sunday) through 6 (Saturday). Only used for `weekly`. */
|
|
21
|
+
readonly scheduleDay: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A single scheduled automation. Identity is the immutable `id`; everything
|
|
25
|
+
* else may be edited by the user.
|
|
26
|
+
*/
|
|
27
|
+
export interface IAutomation {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly prompt: string;
|
|
31
|
+
readonly schedule: IAutomationSchedule;
|
|
32
|
+
/** Workspace folder for the spawned session. Required. */
|
|
33
|
+
readonly folderUri: URI;
|
|
34
|
+
/**
|
|
35
|
+
* Sessions provider for the scheduled run (e.g. `local-agent-host`). Omitted
|
|
36
|
+
* on automations predating the picker; the runner then falls back to the
|
|
37
|
+
* workspace default provider.
|
|
38
|
+
*/
|
|
39
|
+
readonly providerId?: string;
|
|
40
|
+
/** Session type to create within {@link providerId}, captured alongside it. */
|
|
41
|
+
readonly sessionTypeId?: string;
|
|
42
|
+
/** Optional language model identifier to seed the new session with. */
|
|
43
|
+
readonly modelId?: string;
|
|
44
|
+
/** Optional chat mode (`agent`/`ask`/`edit`). Defaults to provider's default; custom modes unsupported. */
|
|
45
|
+
readonly mode?: string;
|
|
46
|
+
/** Optional permission level (`default`/`autoApprove`/`autopilot`). Overrides only for scheduled runs; defaults to provider's default. */
|
|
47
|
+
readonly permissionLevel?: string;
|
|
48
|
+
/** Optional worktree isolation mode (`worktree` or `workspace`). */
|
|
49
|
+
readonly isolationMode?: string;
|
|
50
|
+
/** Optional git branch for isolated runs. */
|
|
51
|
+
readonly branch?: string;
|
|
52
|
+
readonly enabled: boolean;
|
|
53
|
+
/** ISO-8601 UTC timestamp. */
|
|
54
|
+
readonly createdAt: string;
|
|
55
|
+
readonly updatedAt: string;
|
|
56
|
+
readonly lastRunAt?: string;
|
|
57
|
+
/** ISO-8601 UTC timestamp; `undefined` when interval is `manual`. */
|
|
58
|
+
readonly nextRunAt?: string;
|
|
59
|
+
}
|
|
60
|
+
export type AutomationRunStatus = "pending" | "running" | "completed" | "failed";
|
|
61
|
+
/**
|
|
62
|
+
* What kicked off a run. `catch_up` fires once at startup for a due-time that
|
|
63
|
+
* passed while VS Code was closed.
|
|
64
|
+
*/
|
|
65
|
+
export type AutomationRunTrigger = "schedule" | "catch_up" | "manual";
|
|
66
|
+
export interface IAutomationRun {
|
|
67
|
+
readonly id: string;
|
|
68
|
+
readonly automationId: string;
|
|
69
|
+
readonly status: AutomationRunStatus;
|
|
70
|
+
readonly trigger: AutomationRunTrigger;
|
|
71
|
+
/** Session resource URI (stringified) assigned by ISessionsManagementService, if any. */
|
|
72
|
+
readonly sessionResource?: string;
|
|
73
|
+
readonly startedAt: string;
|
|
74
|
+
readonly completedAt?: string;
|
|
75
|
+
readonly errorMessage?: string;
|
|
76
|
+
/** Window that claimed this run; the leader-election guard uses it to avoid duplicate execution across windows. */
|
|
77
|
+
readonly leaderWindowId: number;
|
|
78
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAutomation } from "./automation.js";
|
|
2
|
+
import { ICreateAutomationOptions, IUpdateAutomationOptions } from "./automationService.js";
|
|
3
|
+
export interface IShowAutomationDialogOptions {
|
|
4
|
+
readonly existing?: IAutomation;
|
|
5
|
+
}
|
|
6
|
+
export type IAutomationDialogResult = {
|
|
7
|
+
readonly kind: "create";
|
|
8
|
+
readonly value: ICreateAutomationOptions;
|
|
9
|
+
} | {
|
|
10
|
+
readonly kind: "update";
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly value: IUpdateAutomationOptions;
|
|
13
|
+
};
|
package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IShowAutomationDialogOptions, IAutomationDialogResult } from "./automationDialogService.js";
|
|
2
|
+
export declare const IAutomationDialogService: import("@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IAutomationDialogService>;
|
|
3
|
+
/**
|
|
4
|
+
* Bridges the workbench Automations UI (list widget) to the Sessions-layer
|
|
5
|
+
* dialog implementation without a cross-layer import: the widget depends only
|
|
6
|
+
* on this interface, while {@link AutomationDialogService} (sessions) provides it.
|
|
7
|
+
*/
|
|
8
|
+
export interface IAutomationDialogService {
|
|
9
|
+
readonly _serviceBrand: undefined;
|
|
10
|
+
showAutomationDialog(options: IShowAutomationDialogOptions): Promise<IAutomationDialogResult | undefined>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { IAutomation, AutomationRunTrigger } from "./automation.js";
|
|
3
|
+
export declare const IAutomationRunner: import("@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IAutomationRunner>;
|
|
4
|
+
/**
|
|
5
|
+
* Runs a single automation: claim the per-automation slot, record the run,
|
|
6
|
+
* drive the chat session, report success/failure to {@link IAutomationService}.
|
|
7
|
+
* Implemented in the sessions layer via `ISessionsManagementService`.
|
|
8
|
+
*/
|
|
9
|
+
export interface IAutomationRunner {
|
|
10
|
+
readonly _serviceBrand: undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Runs `automation` once (skips if another run for it is already in flight).
|
|
13
|
+
* Never throws. Failures are recorded on the run row in {@link IAutomationService}.
|
|
14
|
+
*/
|
|
15
|
+
runOnce(automation: IAutomation, trigger: AutomationRunTrigger, leaderWindowId: number, token?: CancellationToken): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
+
import { IAutomationRun, IAutomationSchedule } from "./automation.js";
|
|
3
|
+
/**
|
|
4
|
+
* Input for `createAutomation`. The service fills in `id`, timestamps, and
|
|
5
|
+
* `nextRunAt`. `folderUri` is required.
|
|
6
|
+
*/
|
|
7
|
+
export interface ICreateAutomationOptions {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly prompt: string;
|
|
10
|
+
readonly schedule: IAutomationSchedule;
|
|
11
|
+
readonly folderUri: URI;
|
|
12
|
+
readonly providerId?: string;
|
|
13
|
+
readonly sessionTypeId?: string;
|
|
14
|
+
readonly modelId?: string;
|
|
15
|
+
readonly mode?: string;
|
|
16
|
+
readonly permissionLevel?: string;
|
|
17
|
+
readonly isolationMode?: string;
|
|
18
|
+
readonly branch?: string;
|
|
19
|
+
readonly enabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Patch for `updateAutomation`. Absent fields are unchanged. Pass `null` for
|
|
23
|
+
* `providerId`/`sessionTypeId`/`modelId`/`mode`/`permissionLevel` to clear them;
|
|
24
|
+
* `folderUri` cannot be cleared.
|
|
25
|
+
*/
|
|
26
|
+
export interface IUpdateAutomationOptions {
|
|
27
|
+
readonly name?: string;
|
|
28
|
+
readonly prompt?: string;
|
|
29
|
+
readonly schedule?: IAutomationSchedule;
|
|
30
|
+
readonly folderUri?: URI;
|
|
31
|
+
readonly providerId?: string | null;
|
|
32
|
+
readonly sessionTypeId?: string | null;
|
|
33
|
+
readonly modelId?: string | null;
|
|
34
|
+
readonly mode?: string | null;
|
|
35
|
+
readonly permissionLevel?: string | null;
|
|
36
|
+
readonly isolationMode?: string | null;
|
|
37
|
+
readonly branch?: string | null;
|
|
38
|
+
readonly enabled?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** Patch for `updateRun`. Absent fields are unchanged. */
|
|
41
|
+
export interface IUpdateAutomationRunOptions {
|
|
42
|
+
readonly status?: IAutomationRun["status"];
|
|
43
|
+
readonly sessionResource?: string;
|
|
44
|
+
readonly completedAt?: string;
|
|
45
|
+
readonly errorMessage?: string;
|
|
46
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
2
|
+
import { IAutomation, IAutomationRun, AutomationRunTrigger } from "./automation.js";
|
|
3
|
+
import { ICreateAutomationOptions, IUpdateAutomationOptions, IUpdateAutomationRunOptions } from "./automationService.js";
|
|
4
|
+
export declare const IAutomationService: import("@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IAutomationService>;
|
|
5
|
+
/**
|
|
6
|
+
* Persistent store for automations and their run history, and the single
|
|
7
|
+
* mutation point. Scheduler, runner, and UI all flow through it to keep
|
|
8
|
+
* cross-window propagation, persistence, and observables consistent.
|
|
9
|
+
*/
|
|
10
|
+
export interface IAutomationService {
|
|
11
|
+
readonly _serviceBrand: undefined;
|
|
12
|
+
/** All defined automations, newest first. */
|
|
13
|
+
readonly automations: IObservable<readonly IAutomation[]>;
|
|
14
|
+
/** All recorded runs across all automations, newest first. */
|
|
15
|
+
readonly runs: IObservable<readonly IAutomationRun[]>;
|
|
16
|
+
/** Snapshot accessor (no observable dependency). */
|
|
17
|
+
getAutomation(id: string): IAutomation | undefined;
|
|
18
|
+
/** Runs for a single automation, newest first. */
|
|
19
|
+
runsFor(automationId: string): IObservable<readonly IAutomationRun[]>;
|
|
20
|
+
createAutomation(options: ICreateAutomationOptions): Promise<IAutomation>;
|
|
21
|
+
updateAutomation(id: string, patch: IUpdateAutomationOptions): Promise<IAutomation>;
|
|
22
|
+
deleteAutomation(id: string): Promise<void>;
|
|
23
|
+
/** Records a new run as `pending`. Throws if the automation does not exist. */
|
|
24
|
+
recordRunStart(automationId: string, trigger: AutomationRunTrigger, leaderWindowId: number): Promise<IAutomationRun>;
|
|
25
|
+
/** Applies a patch to a run; returns the updated run or `undefined` if not found. */
|
|
26
|
+
updateRun(runId: string, patch: IUpdateAutomationRunOptions): Promise<IAutomationRun | undefined>;
|
|
27
|
+
/** Most recent `pending`/`running` run for an automation, or `undefined`. Backs the runner's per-automation claim. */
|
|
28
|
+
getActiveRunFor(automationId: string): IAutomationRun | undefined;
|
|
29
|
+
/** Marks all stuck (`pending`/`running`) runs failed. Called on startup to recover from crashes. */
|
|
30
|
+
markStaleRunsFailed(reason: string): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Sets `lastRunAt = now` and recomputes `nextRunAt`. Called right after
|
|
33
|
+
* dispatch so the same automation isn't picked up twice on the next tick.
|
|
34
|
+
*/
|
|
35
|
+
advanceNextRunAt(id: string, now?: Date): Promise<IAutomation | undefined>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
2
|
+
/**
|
|
3
|
+
* Gates the entire Automations feature: sidebar entry, editor section,
|
|
4
|
+
* session composer option, and scheduled execution. Default `false`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CHAT_AUTOMATIONS_ENABLED_SETTING = "chat.automations.enabled";
|
|
7
|
+
/** Per-run timeout in minutes. Hung runs are cancelled and marked failed so they don't block the dispatch chain. */
|
|
8
|
+
export declare const CHAT_AUTOMATIONS_RUN_TIMEOUT_MINUTES_SETTING = "chat.automations.runTimeoutMinutes";
|
|
9
|
+
/** Default for {@link CHAT_AUTOMATIONS_RUN_TIMEOUT_MINUTES_SETTING}. */
|
|
10
|
+
export declare const DEFAULT_AUTOMATIONS_RUN_TIMEOUT_MINUTES = 30;
|
|
11
|
+
/** Context key mirroring {@link CHAT_AUTOMATIONS_ENABLED_SETTING}, for `when` clauses on menus/commands. */
|
|
12
|
+
export declare const ChatAutomationsEnabledContext: RawContextKey<boolean>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IAutomationSchedule } from "./automation.js";
|
|
2
|
+
export declare const DAYS_OF_WEEK: readonly string[];
|
|
3
|
+
/**
|
|
4
|
+
* Computes the next fire time for a schedule. Daily/weekly times are
|
|
5
|
+
* local wall-clock (not UTC) so DST transitions don't shift them.
|
|
6
|
+
* Day advances use `Date` constructor overflow, not milliseconds, to
|
|
7
|
+
* avoid skipping spring-forward days. Returns `undefined` for `manual`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function computeNextRunAt(schedule: IAutomationSchedule, now: Date): Date | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
|
+
|
|
4
|
+
const DAYS_OF_WEEK = [( localize(8515, "Sunday")), ( localize(8516, "Monday")), ( localize(8517, "Tuesday")), ( localize(8518, "Wednesday")), ( localize(8519, "Thursday")), ( localize(8520, "Friday")), ( localize(8521, "Saturday"))];
|
|
5
|
+
|
|
6
|
+
export { DAYS_OF_WEEK };
|
|
@@ -21,6 +21,8 @@ export declare class ChatDebugServiceImpl extends Disposable implements IChatDeb
|
|
|
21
21
|
readonly onDidAddEvent: Event<IChatDebugEvent>;
|
|
22
22
|
private readonly _onDidClearProviderEvents;
|
|
23
23
|
readonly onDidClearProviderEvents: Event<URI>;
|
|
24
|
+
private readonly _onDidEndSession;
|
|
25
|
+
readonly onDidEndSession: Event<URI>;
|
|
24
26
|
private readonly _onDidChangeAvailableSessionResources;
|
|
25
27
|
readonly onDidChangeAvailableSessionResources: Event<void>;
|
|
26
28
|
private readonly _providers;
|
|
@@ -74,6 +74,8 @@ class ChatDebugServiceImpl extends Disposable {
|
|
|
74
74
|
this.onDidAddEvent = this._onDidAddEvent.event;
|
|
75
75
|
this._onDidClearProviderEvents = this._register(( new Emitter()));
|
|
76
76
|
this.onDidClearProviderEvents = this._onDidClearProviderEvents.event;
|
|
77
|
+
this._onDidEndSession = this._register(( new Emitter()));
|
|
78
|
+
this.onDidEndSession = this._onDidEndSession.event;
|
|
77
79
|
this._onDidChangeAvailableSessionResources = this._register(( new Emitter()));
|
|
78
80
|
this.onDidChangeAvailableSessionResources = this._onDidChangeAvailableSessionResources.event;
|
|
79
81
|
this._providers = ( new Set());
|
|
@@ -107,10 +109,13 @@ class ChatDebugServiceImpl extends Disposable {
|
|
|
107
109
|
this._debugEligibleSessionTypes = ( new Set([
|
|
108
110
|
localChatSessionType,
|
|
109
111
|
"copilotcli",
|
|
112
|
+
"agent-host-copilotcli",
|
|
110
113
|
"claude-code"]));
|
|
111
114
|
}
|
|
112
115
|
_isDebugEligibleSession(sessionResource) {
|
|
113
|
-
|
|
116
|
+
const sessionType = getChatSessionType(sessionResource);
|
|
117
|
+
return (
|
|
118
|
+
ChatDebugServiceImpl._debugEligibleSessionTypes.has(sessionType)) || (sessionType.startsWith("remote-") && sessionType.endsWith("-copilotcli")) || ( this._importedSessions.has(sessionResource));
|
|
114
119
|
}
|
|
115
120
|
log(sessionResource, name, details, level = ChatDebugLogLevel.Info, options) {
|
|
116
121
|
if (!this._isDebugEligibleSession(sessionResource)) {
|
|
@@ -313,6 +318,7 @@ class ChatDebugServiceImpl extends Disposable {
|
|
|
313
318
|
cts.dispose();
|
|
314
319
|
this._invocationCts.delete(sessionResource);
|
|
315
320
|
}
|
|
321
|
+
this._onDidEndSession.fire(sessionResource);
|
|
316
322
|
}
|
|
317
323
|
_clearProviderEvents(sessionResource) {
|
|
318
324
|
const buffer = this._sessionBuffers.get(sessionResource);
|
|
@@ -45,6 +45,19 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
45
45
|
private readonly _sessionModels;
|
|
46
46
|
private readonly _pendingRequests;
|
|
47
47
|
private readonly _queuedRequestDeferreds;
|
|
48
|
+
/**
|
|
49
|
+
* In-flight untitled→real materializations, keyed by the original untitled
|
|
50
|
+
* chat session resource. A first send to an untitled contributed session
|
|
51
|
+
* stores the promise that resolves to the newly minted real resource (or
|
|
52
|
+
* `undefined` on failure). A concurrent second send for the same untitled
|
|
53
|
+
* resource awaits this instead of materializing a second real session.
|
|
54
|
+
*
|
|
55
|
+
* The committed (settled) untitled→real mapping is owned by
|
|
56
|
+
* {@link IChatSessionsService} (published via `setMaterializedSessionResource`
|
|
57
|
+
* and read via `getMaterializedSessionResource`); this map only tracks the
|
|
58
|
+
* transient in-flight serialization.
|
|
59
|
+
*/
|
|
60
|
+
private readonly _inFlightUntitledMaterializations;
|
|
48
61
|
private _saveModelsEnabled;
|
|
49
62
|
private _transferredSessionResource;
|
|
50
63
|
get transferredSessionResource(): URI | undefined;
|
|
@@ -132,6 +145,20 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
132
145
|
resendRequest(request: IChatRequestModel, options?: IChatSendRequestOptions): Promise<void>;
|
|
133
146
|
private queuePendingRequest;
|
|
134
147
|
sendRequest(sessionResource: URI, request: string, options?: IChatSendRequestOptions): Promise<ChatSendResult>;
|
|
148
|
+
/**
|
|
149
|
+
* Converts an untitled contributed chat session into its real session on the
|
|
150
|
+
* first send and returns the real model/resource so the caller can re-target
|
|
151
|
+
* the request. Serialized per untitled resource: a first send stores an
|
|
152
|
+
* in-flight promise, and a concurrent second send awaits it and converges on
|
|
153
|
+
* the same real session (where the caller's pending-request check then rejects
|
|
154
|
+
* the duplicate) instead of minting a second real session.
|
|
155
|
+
*
|
|
156
|
+
* Returns `undefined` when no conversion happened — either there is no
|
|
157
|
+
* `newChatSessionItem` handler / the handler declined, or a concurrent
|
|
158
|
+
* materialization failed — in which case the caller keeps using the untitled
|
|
159
|
+
* session (the original behavior).
|
|
160
|
+
*/
|
|
161
|
+
private _materializeUntitledSession;
|
|
135
162
|
private getAttachmentCapabilitiesForParser;
|
|
136
163
|
private parseChatRequest;
|
|
137
164
|
private refreshFollowupsCancellationToken;
|
|
@@ -162,6 +189,7 @@ export declare class ChatService extends Disposable implements IChatService {
|
|
|
162
189
|
requestId: string;
|
|
163
190
|
kind: ChatRequestQueueKind;
|
|
164
191
|
}[]): void;
|
|
192
|
+
sendPendingRequestImmediately(sessionResource: URI, requestId: string): Promise<void>;
|
|
165
193
|
hasSessions(): boolean;
|
|
166
194
|
transferChatSession(transferredSessionResource: URI, toWorkspace: URI): Promise<void>;
|
|
167
195
|
getChatStorageFolder(): URI;
|