@codingame/monaco-vscode-chat-service-override 34.1.3 → 35.0.1
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 +1424 -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
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
3
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
4
|
+
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
5
|
+
import { IUserDataProfilesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service";
|
|
6
|
+
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
7
|
+
import { IVoiceTranscriptStore } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.service";
|
|
8
|
+
/**
|
|
9
|
+
* Discriminates what produced this entry. Only ``user_voice`` and
|
|
10
|
+
* ``agent_voice`` are rendered in the transcripts UI; ``agent_tool_call`` and
|
|
11
|
+
* ``coding_event`` are persisted so we can replay them as cross-session
|
|
12
|
+
* context to the backend without polluting the visible transcript.
|
|
13
|
+
*
|
|
14
|
+
* user_voice — what the user said (ASR-committed)
|
|
15
|
+
* agent_voice — what the voice agent spoke back (TTS text)
|
|
16
|
+
* agent_tool_call — a tool the voice agent dispatched (send_to_chat, etc.)
|
|
17
|
+
* coding_event — a status transition on a Copilot coding session
|
|
18
|
+
* (started, finished, needs-input, errored)
|
|
19
|
+
*/
|
|
20
|
+
export type VoiceTranscriptKind = "user_voice" | "agent_voice" | "agent_tool_call" | "coding_event";
|
|
21
|
+
/**
|
|
22
|
+
* Free-form metadata for non-voice entries. Field meaning depends on ``kind``:
|
|
23
|
+
* agent_tool_call: { toolName, toolArgs? }
|
|
24
|
+
* coding_event: { codingSessionId, codingStatus, codingSessionLabel? }
|
|
25
|
+
*/
|
|
26
|
+
export interface IVoiceTranscriptEntryMetadata {
|
|
27
|
+
readonly toolName?: string;
|
|
28
|
+
readonly toolArgs?: Record<string, unknown>;
|
|
29
|
+
readonly codingSessionId?: string;
|
|
30
|
+
readonly codingStatus?: string;
|
|
31
|
+
readonly codingSessionLabel?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* One committed entry in a voice conversation timeline. Persisted as a single
|
|
35
|
+
* JSON line in the user's transcript JSONL file.
|
|
36
|
+
*
|
|
37
|
+
* Local-only — voice_code's backend does not have persistent conversation
|
|
38
|
+
* memory today. Entry IDs are generated client-side; ``ancestorIds`` chains
|
|
39
|
+
* the entries we have written so far.
|
|
40
|
+
*
|
|
41
|
+
* Backwards-compat note: older builds wrote entries without ``kind`` /
|
|
42
|
+
* ``metadata`` and only with ``role``. The store auto-wipes any such file on
|
|
43
|
+
* first read so we never have to read mixed-schema data in memory.
|
|
44
|
+
*/
|
|
45
|
+
export interface IVoiceTranscriptTurn {
|
|
46
|
+
/** Locally-generated entry id. */
|
|
47
|
+
readonly turnId: string;
|
|
48
|
+
/** Local ancestor entry ids, root → parent (the previous entry's turnId, or empty for the first entry). */
|
|
49
|
+
readonly ancestorIds: readonly string[];
|
|
50
|
+
/** What produced this entry. */
|
|
51
|
+
readonly kind: VoiceTranscriptKind;
|
|
52
|
+
/**
|
|
53
|
+
* Legacy/display role. Kept so the existing transcripts ViewPane can
|
|
54
|
+
* label rows without inspecting ``kind``. For non-voice kinds this is set
|
|
55
|
+
* to ``'assistant'`` (the entry is something the agent did).
|
|
56
|
+
*/
|
|
57
|
+
readonly role: "user" | "assistant";
|
|
58
|
+
/**
|
|
59
|
+
* Human-readable text for this entry. For voice kinds this is the spoken
|
|
60
|
+
* sentence. For tool-call / coding-event kinds it is a one-line summary
|
|
61
|
+
* suitable for context replay (e.g. ``"called send_to_chat(text=...)"``).
|
|
62
|
+
*/
|
|
63
|
+
readonly text: string;
|
|
64
|
+
/** Wall-clock time at the moment of persistence. ISO 8601 string. */
|
|
65
|
+
readonly timestamp: string;
|
|
66
|
+
/** Optional kind-specific structured fields. */
|
|
67
|
+
readonly metadata?: IVoiceTranscriptEntryMetadata;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Index of all transcripts known on this machine. Persisted via
|
|
71
|
+
* ``IStorageService`` (scope PROFILE, target MACHINE). One entry per
|
|
72
|
+
* GitHub login that has ever spoken on this machine.
|
|
73
|
+
*/
|
|
74
|
+
export interface IVoiceTranscriptIndex {
|
|
75
|
+
readonly entries: {
|
|
76
|
+
[userId: string]: IVoiceTranscriptIndexEntry;
|
|
77
|
+
};
|
|
78
|
+
readonly version: 1;
|
|
79
|
+
}
|
|
80
|
+
export interface IVoiceTranscriptIndexEntry {
|
|
81
|
+
/** GitHub login — partition key, doubles as filename stem. */
|
|
82
|
+
readonly userId: string;
|
|
83
|
+
/** ISO timestamp of first ever turn for this user. */
|
|
84
|
+
readonly createdAt: string;
|
|
85
|
+
/** ISO timestamp of most recent appended turn. */
|
|
86
|
+
readonly lastUpdatedAt: string;
|
|
87
|
+
/** Total turn count for this user. */
|
|
88
|
+
readonly turnCount: number;
|
|
89
|
+
/** Optional archive cutoff. Turns with timestamp < archivedBefore are hidden in the UI by default. */
|
|
90
|
+
readonly archivedBefore?: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Local on-disk transcript store for the Agents Voice feature.
|
|
94
|
+
*
|
|
95
|
+
* Layout (mirrors the chatSessionStore precedent, adapted for the per-user
|
|
96
|
+
* single-conversation model used by voice):
|
|
97
|
+
*
|
|
98
|
+
* <globalStorageHome>/voiceTranscripts/<githubLogin>.jsonl (append-only)
|
|
99
|
+
* IStorageService[AgentsVoiceStorageKeys.TranscriptIndex] (PROFILE/MACHINE)
|
|
100
|
+
*
|
|
101
|
+
* Writes are serialized via a ``Sequencer`` so simultaneous appendTurn calls
|
|
102
|
+
* preserve line ordering. A shutdown flush is registered so a final append
|
|
103
|
+
* completes before the window closes.
|
|
104
|
+
*/
|
|
105
|
+
export declare class VoiceTranscriptStore extends Disposable implements IVoiceTranscriptStore {
|
|
106
|
+
private readonly fileService;
|
|
107
|
+
private readonly storageService;
|
|
108
|
+
private readonly lifecycleService;
|
|
109
|
+
private readonly logService;
|
|
110
|
+
readonly _serviceBrand: undefined;
|
|
111
|
+
private readonly storageRoot;
|
|
112
|
+
private readonly writeQueue;
|
|
113
|
+
/** Cached snapshot of the index; we read once at startup and write through. */
|
|
114
|
+
private indexCache;
|
|
115
|
+
private pendingWrite;
|
|
116
|
+
private shuttingDown;
|
|
117
|
+
constructor(fileService: IFileService, storageService: IStorageService, userDataProfilesService: IUserDataProfilesService, lifecycleService: ILifecycleService, logService: ILogService);
|
|
118
|
+
appendTurn(userId: string, turn: IVoiceTranscriptTurn): Promise<void>;
|
|
119
|
+
loadTurns(userId: string, opts?: {
|
|
120
|
+
since?: string;
|
|
121
|
+
limit?: number;
|
|
122
|
+
}): Promise<IVoiceTranscriptTurn[]>;
|
|
123
|
+
getIndexEntry(userId: string): IVoiceTranscriptIndexEntry | undefined;
|
|
124
|
+
archiveUpTo(userId: string, cutoff: string): Promise<void>;
|
|
125
|
+
unarchive(userId: string): Promise<void>;
|
|
126
|
+
deleteAll(userId: string): Promise<void>;
|
|
127
|
+
private fileFor;
|
|
128
|
+
private doAppendTurn;
|
|
129
|
+
private updateIndexEntry;
|
|
130
|
+
private flushIndex;
|
|
131
|
+
private readIndexFromStorage;
|
|
132
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Sequencer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
|
+
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
5
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { joinPath } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
7
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
8
|
+
import { toFileOperationResult, FileOperationResult } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
9
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
10
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
11
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
12
|
+
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
13
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
14
|
+
import { IUserDataProfilesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
15
|
+
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
16
|
+
import { AgentsVoiceStorageKeys } from './agentsVoice.js';
|
|
17
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
18
|
+
|
|
19
|
+
let VoiceTranscriptStore = class VoiceTranscriptStore extends Disposable {
|
|
20
|
+
constructor(
|
|
21
|
+
fileService,
|
|
22
|
+
storageService,
|
|
23
|
+
userDataProfilesService,
|
|
24
|
+
lifecycleService,
|
|
25
|
+
logService
|
|
26
|
+
) {
|
|
27
|
+
super();
|
|
28
|
+
this.fileService = fileService;
|
|
29
|
+
this.storageService = storageService;
|
|
30
|
+
this.lifecycleService = lifecycleService;
|
|
31
|
+
this.logService = logService;
|
|
32
|
+
this.writeQueue = ( new Sequencer());
|
|
33
|
+
this.shuttingDown = false;
|
|
34
|
+
this.storageRoot = joinPath(
|
|
35
|
+
userDataProfilesService.defaultProfile.globalStorageHome,
|
|
36
|
+
"voiceTranscripts"
|
|
37
|
+
);
|
|
38
|
+
this.indexCache = this.readIndexFromStorage();
|
|
39
|
+
this._register(this.lifecycleService.onWillShutdown(e => {
|
|
40
|
+
this.shuttingDown = true;
|
|
41
|
+
if (!this.pendingWrite) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
e.join(this.pendingWrite, {
|
|
45
|
+
id: "join.voiceTranscriptStore",
|
|
46
|
+
label: ( localize(4874, "Saving voice transcript"))
|
|
47
|
+
});
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
async appendTurn(userId, turn) {
|
|
51
|
+
if (this.shuttingDown) {
|
|
52
|
+
this.logService.warn(`VoiceTranscriptStore: ignoring appendTurn for ${userId} (shutting down)`);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const work = this.writeQueue.queue(() => this.doAppendTurn(userId, turn));
|
|
56
|
+
this.pendingWrite = work;
|
|
57
|
+
try {
|
|
58
|
+
await work;
|
|
59
|
+
} finally {
|
|
60
|
+
if (this.pendingWrite === work) {
|
|
61
|
+
this.pendingWrite = undefined;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async loadTurns(userId, opts) {
|
|
66
|
+
const file = this.fileFor(userId);
|
|
67
|
+
let raw;
|
|
68
|
+
try {
|
|
69
|
+
const content = await this.fileService.readFile(file);
|
|
70
|
+
raw = ( content.value.toString());
|
|
71
|
+
} catch (e) {
|
|
72
|
+
if (toFileOperationResult(e) === FileOperationResult.FILE_NOT_FOUND) {
|
|
73
|
+
return [];
|
|
74
|
+
}
|
|
75
|
+
this.logService.error(`VoiceTranscriptStore: failed to read transcript for ${userId}`, e);
|
|
76
|
+
return [];
|
|
77
|
+
}
|
|
78
|
+
const turns = [];
|
|
79
|
+
let sawLegacyEntry = false;
|
|
80
|
+
for (const line of raw.split("\n")) {
|
|
81
|
+
const trimmed = line.trim();
|
|
82
|
+
if (!trimmed) {
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
try {
|
|
86
|
+
const parsed = JSON.parse(trimmed);
|
|
87
|
+
if (!parsed.kind) {
|
|
88
|
+
sawLegacyEntry = true;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
if (opts?.since && parsed.timestamp && parsed.timestamp < opts.since) {
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
turns.push(parsed);
|
|
95
|
+
} catch (e) {
|
|
96
|
+
this.logService.warn(
|
|
97
|
+
`VoiceTranscriptStore: skipping malformed line in ${userId}.jsonl: ${e.message}`
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (sawLegacyEntry) {
|
|
102
|
+
this.logService.info(
|
|
103
|
+
`VoiceTranscriptStore: detected pre-timeline transcript for ${userId}, wiping for new schema`
|
|
104
|
+
);
|
|
105
|
+
await this.deleteAll(userId);
|
|
106
|
+
return [];
|
|
107
|
+
}
|
|
108
|
+
if (opts?.limit !== undefined && turns.length > opts.limit) {
|
|
109
|
+
return turns.slice(turns.length - opts.limit);
|
|
110
|
+
}
|
|
111
|
+
return turns;
|
|
112
|
+
}
|
|
113
|
+
getIndexEntry(userId) {
|
|
114
|
+
return this.indexCache.entries[userId];
|
|
115
|
+
}
|
|
116
|
+
async archiveUpTo(userId, cutoff) {
|
|
117
|
+
const existing = this.indexCache.entries[userId];
|
|
118
|
+
if (!existing) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
this.updateIndexEntry(userId, {
|
|
122
|
+
...existing,
|
|
123
|
+
archivedBefore: cutoff
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
async unarchive(userId) {
|
|
127
|
+
const existing = this.indexCache.entries[userId];
|
|
128
|
+
if (!existing) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const {
|
|
132
|
+
archivedBefore: _unused,
|
|
133
|
+
...rest
|
|
134
|
+
} = existing;
|
|
135
|
+
this.updateIndexEntry(userId, rest);
|
|
136
|
+
}
|
|
137
|
+
async deleteAll(userId) {
|
|
138
|
+
const file = this.fileFor(userId);
|
|
139
|
+
try {
|
|
140
|
+
await this.fileService.del(file);
|
|
141
|
+
} catch (e) {
|
|
142
|
+
if (toFileOperationResult(e) !== FileOperationResult.FILE_NOT_FOUND) {
|
|
143
|
+
this.logService.error(`VoiceTranscriptStore: failed to delete transcript for ${userId}`, e);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const next = {
|
|
147
|
+
...this.indexCache.entries
|
|
148
|
+
};
|
|
149
|
+
delete next[userId];
|
|
150
|
+
this.indexCache = {
|
|
151
|
+
...this.indexCache,
|
|
152
|
+
entries: next
|
|
153
|
+
};
|
|
154
|
+
this.flushIndex();
|
|
155
|
+
}
|
|
156
|
+
fileFor(userId) {
|
|
157
|
+
const safe = userId.replace(/[^A-Za-z0-9-]/g, "_");
|
|
158
|
+
if (!safe) {
|
|
159
|
+
throw ( new Error("Invalid userId for transcript storage"));
|
|
160
|
+
}
|
|
161
|
+
return joinPath(this.storageRoot, `${safe}.jsonl`);
|
|
162
|
+
}
|
|
163
|
+
async doAppendTurn(userId, turn) {
|
|
164
|
+
const file = this.fileFor(userId);
|
|
165
|
+
const line = JSON.stringify(turn) + "\n";
|
|
166
|
+
try {
|
|
167
|
+
try {
|
|
168
|
+
await this.fileService.createFolder(this.storageRoot);
|
|
169
|
+
} catch {}
|
|
170
|
+
await this.fileService.writeFile(file, VSBuffer.fromString(line), {
|
|
171
|
+
append: true
|
|
172
|
+
});
|
|
173
|
+
} catch (e) {
|
|
174
|
+
this.logService.error(`VoiceTranscriptStore: failed to append turn for ${userId}`, e);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const existing = this.indexCache.entries[userId];
|
|
178
|
+
const next = existing ? {
|
|
179
|
+
...existing,
|
|
180
|
+
lastUpdatedAt: turn.timestamp,
|
|
181
|
+
turnCount: existing.turnCount + 1
|
|
182
|
+
} : {
|
|
183
|
+
userId,
|
|
184
|
+
createdAt: turn.timestamp,
|
|
185
|
+
lastUpdatedAt: turn.timestamp,
|
|
186
|
+
turnCount: 1
|
|
187
|
+
};
|
|
188
|
+
this.updateIndexEntry(userId, next);
|
|
189
|
+
}
|
|
190
|
+
updateIndexEntry(userId, entry) {
|
|
191
|
+
this.indexCache = {
|
|
192
|
+
...this.indexCache,
|
|
193
|
+
entries: {
|
|
194
|
+
...this.indexCache.entries,
|
|
195
|
+
[userId]: entry
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
this.flushIndex();
|
|
199
|
+
}
|
|
200
|
+
flushIndex() {
|
|
201
|
+
try {
|
|
202
|
+
this.storageService.store(
|
|
203
|
+
AgentsVoiceStorageKeys.TranscriptIndex,
|
|
204
|
+
JSON.stringify(this.indexCache),
|
|
205
|
+
StorageScope.PROFILE,
|
|
206
|
+
StorageTarget.MACHINE
|
|
207
|
+
);
|
|
208
|
+
} catch (e) {
|
|
209
|
+
this.logService.error(`VoiceTranscriptStore: failed to flush transcript index`, e);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
readIndexFromStorage() {
|
|
213
|
+
const raw = this.storageService.get(AgentsVoiceStorageKeys.TranscriptIndex, StorageScope.PROFILE);
|
|
214
|
+
if (!raw) {
|
|
215
|
+
return {
|
|
216
|
+
entries: {},
|
|
217
|
+
version: 1
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
try {
|
|
221
|
+
const parsed = JSON.parse(raw);
|
|
222
|
+
if (parsed && typeof parsed === "object" && parsed.entries && parsed.version === 1) {
|
|
223
|
+
return parsed;
|
|
224
|
+
}
|
|
225
|
+
this.logService.warn("VoiceTranscriptStore: ignoring index with unknown shape, starting fresh");
|
|
226
|
+
} catch (e) {
|
|
227
|
+
this.logService.warn("VoiceTranscriptStore: failed to parse stored index, starting fresh", e);
|
|
228
|
+
}
|
|
229
|
+
return {
|
|
230
|
+
entries: {},
|
|
231
|
+
version: 1
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
VoiceTranscriptStore = ( __decorate([( __param(0, IFileService)), ( __param(1, IStorageService)), ( __param(2, IUserDataProfilesService)), ( __param(3, ILifecycleService)), ( __param(4, ILogService))], VoiceTranscriptStore));
|
|
236
|
+
|
|
237
|
+
export { VoiceTranscriptStore };
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js
CHANGED
|
@@ -117,7 +117,7 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
this.toasts.clearAndDisposeAll();
|
|
120
|
-
const title = widget?.viewModel?.model.title ? ( localize(
|
|
120
|
+
const title = widget?.viewModel?.model.title ? ( localize(5040, "Chat: {0}", widget.viewModel.model.title)) : ( localize(5041, "Untitled Chat"));
|
|
121
121
|
const cts = ( new CancellationTokenSource());
|
|
122
122
|
const disposable = toDisposable(() => cts.dispose(true));
|
|
123
123
|
this.toasts.add(disposable);
|
|
@@ -125,7 +125,7 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
|
|
|
125
125
|
clicked
|
|
126
126
|
} = await this._hostService.showToast({
|
|
127
127
|
title,
|
|
128
|
-
body: ( localize(
|
|
128
|
+
body: ( localize(5042, "New chat response."))
|
|
129
129
|
}, cts.token);
|
|
130
130
|
this.toasts.deleteAndDispose(disposable);
|
|
131
131
|
if (clicked) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { IAccessibleViewImplementation } from "@codingame/monaco-vscode-api/vsco
|
|
|
6
6
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
7
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
8
8
|
import { AccessibilityVerbositySettingId } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration";
|
|
9
|
-
import { IChatExtensionsContent, IChatModifiedFilesConfirmationData, IChatPullRequestContent, IChatSearchToolInvocationData, IChatSimpleToolInvocationData, IChatSubagentToolInvocationData, IChatTerminalToolInvocationData, IChatTodoListContent, IChatToolInputInvocationData, IChatToolResourcesInvocationData, ILegacyChatTerminalToolInvocationData, IToolResultOutputDetailsSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
9
|
+
import { IChatAgentFeedbackReviewConfirmationData, IChatExtensionsContent, IChatModifiedFilesConfirmationData, IChatPullRequestContent, IChatSearchToolInvocationData, IChatSimpleToolInvocationData, IChatSubagentToolInvocationData, IChatTerminalToolInvocationData, IChatTodoListContent, IChatToolInputInvocationData, IChatToolResourcesInvocationData, ILegacyChatTerminalToolInvocationData, IToolResultOutputDetailsSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
10
10
|
import { IToolResultInputOutputDetails, IToolResultOutputDetails } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService";
|
|
11
11
|
import { ChatTreeItem, IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
12
12
|
import { Location } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages";
|
|
@@ -17,7 +17,7 @@ export declare class ChatResponseAccessibleView implements IAccessibleViewImplem
|
|
|
17
17
|
readonly when: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").RawContextKey<boolean>;
|
|
18
18
|
getProvider(accessor: ServicesAccessor): ChatResponseAccessibleProvider | undefined;
|
|
19
19
|
}
|
|
20
|
-
type ToolSpecificData = IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent | IChatPullRequestContent | IChatTodoListContent | IChatSubagentToolInvocationData | IChatSimpleToolInvocationData | IChatSearchToolInvocationData | IChatToolResourcesInvocationData | IChatModifiedFilesConfirmationData;
|
|
20
|
+
type ToolSpecificData = IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent | IChatPullRequestContent | IChatTodoListContent | IChatSubagentToolInvocationData | IChatSimpleToolInvocationData | IChatSearchToolInvocationData | IChatToolResourcesInvocationData | IChatModifiedFilesConfirmationData | IChatAgentFeedbackReviewConfirmationData;
|
|
21
21
|
type ResultDetails = Array<URI | Location> | IToolResultInputOutputDetails | IToolResultOutputDetails | IToolResultOutputDetailsSerialized;
|
|
22
22
|
export declare const CHAT_ACCESSIBLE_VIEW_INCLUDE_THINKING_STORAGE_KEY = "chat.accessibleView.includeThinking";
|
|
23
23
|
export declare function isThinkingContentIncludedInAccessibleView(storageService: IStorageService): boolean;
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js
CHANGED
|
@@ -78,29 +78,29 @@ function getToolSpecificDataDescription(toolSpecificData) {
|
|
|
78
78
|
{
|
|
79
79
|
const parts = [];
|
|
80
80
|
if (toolSpecificData.agentName) {
|
|
81
|
-
parts.push(( localize(
|
|
81
|
+
parts.push(( localize(5043, "Agent: {0}", toolSpecificData.agentName)));
|
|
82
82
|
}
|
|
83
83
|
if (toolSpecificData.description) {
|
|
84
84
|
parts.push(toolSpecificData.description);
|
|
85
85
|
}
|
|
86
86
|
if (toolSpecificData.prompt) {
|
|
87
|
-
parts.push(( localize(
|
|
87
|
+
parts.push(( localize(5044, "Task: {0}", toolSpecificData.prompt)));
|
|
88
88
|
}
|
|
89
89
|
return parts.join(". ") || "";
|
|
90
90
|
}
|
|
91
91
|
case "extensions":
|
|
92
|
-
return toolSpecificData.extensions.length > 0 ? ( localize(
|
|
92
|
+
return toolSpecificData.extensions.length > 0 ? ( localize(5045, "Extensions: {0}", toolSpecificData.extensions.join(", "))) : "";
|
|
93
93
|
case "todoList":
|
|
94
94
|
{
|
|
95
95
|
const todos = toolSpecificData.todoList;
|
|
96
96
|
if (todos.length === 0) {
|
|
97
97
|
return "";
|
|
98
98
|
}
|
|
99
|
-
const todoDescriptions = ( todos.map(t => ( localize(
|
|
100
|
-
return localize(
|
|
99
|
+
const todoDescriptions = ( todos.map(t => ( localize(5046, "{0} ({1})", t.title, t.status))));
|
|
100
|
+
return localize(5047, "{0} items: {1}", todos.length, todoDescriptions.join("; "));
|
|
101
101
|
}
|
|
102
102
|
case "pullRequest":
|
|
103
|
-
return localize(
|
|
103
|
+
return localize(5048, "PR: {0} by {1}", toolSpecificData.title, toolSpecificData.author);
|
|
104
104
|
case "input":
|
|
105
105
|
return typeof toolSpecificData.rawInput === "string" ? toolSpecificData.rawInput : JSON.stringify(toolSpecificData.rawInput);
|
|
106
106
|
case "resources":
|
|
@@ -116,13 +116,13 @@ function getToolSpecificDataDescription(toolSpecificData) {
|
|
|
116
116
|
return v.fsPath || v.path;
|
|
117
117
|
}
|
|
118
118
|
})).join(", ");
|
|
119
|
-
return localize(
|
|
119
|
+
return localize(5049, "Resources: {0}", paths);
|
|
120
120
|
}
|
|
121
121
|
case "simpleToolInvocation":
|
|
122
122
|
{
|
|
123
123
|
const inputText = toolSpecificData.input;
|
|
124
124
|
const outputText = toolSpecificData.output;
|
|
125
|
-
return localize(
|
|
125
|
+
return localize(5050, "Input: {0}, Output: {1}", inputText, outputText);
|
|
126
126
|
}
|
|
127
127
|
case "modifiedFilesConfirmation":
|
|
128
128
|
{
|
|
@@ -130,7 +130,7 @@ function getToolSpecificDataDescription(toolSpecificData) {
|
|
|
130
130
|
return "";
|
|
131
131
|
}
|
|
132
132
|
return localize(
|
|
133
|
-
|
|
133
|
+
5051,
|
|
134
134
|
"Modified files: {0}",
|
|
135
135
|
( toolSpecificData.modifiedFiles.map(file => {
|
|
136
136
|
const revivedUri = URI.revive(file.uri);
|
|
@@ -165,12 +165,12 @@ function getResultDetailsDescription(resultDetails) {
|
|
|
165
165
|
}
|
|
166
166
|
if (isOutputDetailsSerialized(resultDetails)) {
|
|
167
167
|
return {
|
|
168
|
-
input: ( localize(
|
|
168
|
+
input: ( localize(5052, "{0} data", resultDetails.output.mimeType))
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
if (isToolResultOutputDetails(resultDetails)) {
|
|
172
172
|
return {
|
|
173
|
-
input: ( localize(
|
|
173
|
+
input: ( localize(5052, "{0} data", resultDetails.output.mimeType))
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
return {};
|
|
@@ -194,13 +194,13 @@ function getToolInvocationA11yDescription(
|
|
|
194
194
|
if (isComplete && resultDetails) {
|
|
195
195
|
const details = getResultDetailsDescription(resultDetails);
|
|
196
196
|
if (details.isError) {
|
|
197
|
-
parts.unshift(( localize(
|
|
197
|
+
parts.unshift(( localize(5053, "Errored")));
|
|
198
198
|
}
|
|
199
199
|
if (details.input && !toolDataDesc) {
|
|
200
|
-
parts.push(( localize(
|
|
200
|
+
parts.push(( localize(5054, "Input: {0}", details.input)));
|
|
201
201
|
}
|
|
202
202
|
if (details.files && details.files.length > 0) {
|
|
203
|
-
parts.push(( localize(
|
|
203
|
+
parts.push(( localize(5055, "Files: {0}", details.files.join(", "))));
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
return parts.join(". ");
|
|
@@ -262,7 +262,7 @@ class ChatResponseAccessibleProvider extends Disposable {
|
|
|
262
262
|
const thinkingValue = Array.isArray(part.value) ? part.value.join("") : (part.value || "");
|
|
263
263
|
const trimmed = thinkingValue.trim();
|
|
264
264
|
if (trimmed) {
|
|
265
|
-
contentParts.push(( localize(
|
|
265
|
+
contentParts.push(( localize(5056, "Thinking: {0}", trimmed)));
|
|
266
266
|
}
|
|
267
267
|
break;
|
|
268
268
|
}
|
|
@@ -338,7 +338,7 @@ class ChatResponseAccessibleProvider extends Disposable {
|
|
|
338
338
|
contentParts.push(toolContent);
|
|
339
339
|
} else if (state.type === IChatToolInvocation.StateKind.WaitingForPostApproval) {
|
|
340
340
|
const postApprovalDetails = isToolResultInputOutputDetails(state.resultDetails) ? state.resultDetails.input : isToolResultOutputDetails(state.resultDetails) ? undefined : toolContentToA11yString(state.contentForModel);
|
|
341
|
-
contentParts.push(( localize(
|
|
341
|
+
contentParts.push(( localize(5057, "Approve results of {0}? Result: ", part.toolId)) + (postApprovalDetails ?? ""));
|
|
342
342
|
} else {
|
|
343
343
|
const resultDetails = IChatToolInvocation.resultDetails(part);
|
|
344
344
|
const isComplete = IChatToolInvocation.isComplete(part);
|
|
@@ -369,6 +369,22 @@ class ChatResponseAccessibleProvider extends Disposable {
|
|
|
369
369
|
}
|
|
370
370
|
break;
|
|
371
371
|
}
|
|
372
|
+
case "autoModeResolution":
|
|
373
|
+
{
|
|
374
|
+
if (part.predictedLabel === "fallback") {
|
|
375
|
+
contentParts.push(( localize(5058, "Routed to {0}. Unable to resolve.", part.resolvedModelName)));
|
|
376
|
+
} else {
|
|
377
|
+
const label = part.predictedLabel === "needs_reasoning" ? ( localize(5059, "Reasoning")) : ( localize(5060, "Non-reasoning"));
|
|
378
|
+
contentParts.push(( localize(
|
|
379
|
+
5061,
|
|
380
|
+
"Routed to {0}. {1} - Confidence {2}%",
|
|
381
|
+
part.resolvedModelName,
|
|
382
|
+
label,
|
|
383
|
+
(part.confidence * 100).toFixed(0)
|
|
384
|
+
)));
|
|
385
|
+
}
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
372
388
|
}
|
|
373
389
|
}
|
|
374
390
|
return this._normalizeWhitespace(contentParts.join("\n"));
|
|
@@ -22,11 +22,11 @@ class AnnounceChatConfirmationAction extends Action2 {
|
|
|
22
22
|
super({
|
|
23
23
|
id: ACTION_ID_FOCUS_CHAT_CONFIRMATION,
|
|
24
24
|
title: {
|
|
25
|
-
value: ( localize(
|
|
25
|
+
value: ( localize(5062, "Focus Chat Confirmation")),
|
|
26
26
|
original: "Focus Chat Confirmation"
|
|
27
27
|
},
|
|
28
28
|
category: {
|
|
29
|
-
value: ( localize(
|
|
29
|
+
value: ( localize(5063, "Chat")),
|
|
30
30
|
original: "Chat"
|
|
31
31
|
},
|
|
32
32
|
precondition: ChatContextKeys.enabled,
|
|
@@ -42,12 +42,12 @@ class AnnounceChatConfirmationAction extends Action2 {
|
|
|
42
42
|
const chatWidgetService = accessor.get(IChatWidgetService);
|
|
43
43
|
const pendingWidget = chatWidgetService.getAllWidgets().find(widget => widget.viewModel?.model.requestNeedsInput.get());
|
|
44
44
|
if (!pendingWidget) {
|
|
45
|
-
alert(( localize(
|
|
45
|
+
alert(( localize(5064, "No active chat session found.")));
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
const viewModel = pendingWidget.viewModel;
|
|
49
49
|
if (!viewModel) {
|
|
50
|
-
alert(( localize(
|
|
50
|
+
alert(( localize(5065, "Chat interface not ready.")));
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
let firstConfirmationElement;
|
|
@@ -69,7 +69,7 @@ class AnnounceChatConfirmationAction extends Action2 {
|
|
|
69
69
|
firstConfirmationElement.focus();
|
|
70
70
|
}
|
|
71
71
|
} else {
|
|
72
|
-
alert(( localize(
|
|
72
|
+
alert(( localize(5066, "No chat confirmation required")));
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -78,11 +78,11 @@ class ToggleThinkingContentAccessibleViewAction extends Action2 {
|
|
|
78
78
|
super({
|
|
79
79
|
id: ACTION_ID_TOGGLE_THINKING_CONTENT_ACCESSIBLE_VIEW,
|
|
80
80
|
title: {
|
|
81
|
-
value: ( localize(
|
|
81
|
+
value: ( localize(5067, "Toggle Thinking Content in Accessible View")),
|
|
82
82
|
original: "Toggle Thinking Content in Accessible View"
|
|
83
83
|
},
|
|
84
84
|
category: {
|
|
85
|
-
value: ( localize(
|
|
85
|
+
value: ( localize(5063, "Chat")),
|
|
86
86
|
original: "Chat"
|
|
87
87
|
},
|
|
88
88
|
precondition: ChatContextKeys.enabled,
|
|
@@ -104,7 +104,7 @@ class ToggleThinkingContentAccessibleViewAction extends Action2 {
|
|
|
104
104
|
StorageScope.PROFILE,
|
|
105
105
|
StorageTarget.USER
|
|
106
106
|
);
|
|
107
|
-
alert(updatedValue ? ( localize(
|
|
107
|
+
alert(updatedValue ? ( localize(5068, "Thinking content will be included in the accessible view.")) : ( localize(5069, "Thinking content will be hidden from the accessible view.")));
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
function registerChatAccessibilityActions() {
|
|
@@ -31,5 +31,5 @@ export declare class AgentChatAccessibilityHelp implements IAccessibleViewImplem
|
|
|
31
31
|
readonly when: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
32
32
|
getProvider(accessor: ServicesAccessor): AccessibleContentProvider | undefined;
|
|
33
33
|
}
|
|
34
|
-
export declare function getAccessibilityHelpText(type: "panelChat" | "inlineChat" | "
|
|
34
|
+
export declare function getAccessibilityHelpText(type: "panelChat" | "inlineChat" | "quickChat" | "editsView" | "agentView", keybindingService: IKeybindingService): string;
|
|
35
35
|
export declare function getChatAccessibilityHelpProvider(accessor: ServicesAccessor, editor: ICodeEditor | undefined, type: "panelChat" | "inlineChat" | "quickChat" | "editsView" | "agentView"): AccessibleContentProvider | undefined;
|