@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
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
|
|
2
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
3
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
|
+
import { Action2, registerAction2, MenuId, MenuRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
6
|
+
import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
8
|
+
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
9
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
10
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
11
|
+
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
12
|
+
import { ViewPaneContainer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
13
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
14
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
15
|
+
import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
16
|
+
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
17
|
+
import { VoiceTranscriptsViewPane } from './voiceTranscriptsView.js';
|
|
18
|
+
|
|
19
|
+
const CONTAINER_ID = "workbench.view.voiceTranscriptsContainer";
|
|
20
|
+
const VIEW_ID = VoiceTranscriptsViewPane.ID;
|
|
21
|
+
const SHOW_VIEW_CONTEXT_KEY = ( new RawContextKey("voiceTranscripts.showView", false));
|
|
22
|
+
const voiceTranscriptsIcon = registerIcon("voice-transcripts-view-icon", Codicon.history, ( localize(4852, "View icon of the Voice Transcripts view.")));
|
|
23
|
+
const viewContainersRegistry = ( Registry.as(Extensions.ViewContainersRegistry));
|
|
24
|
+
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
25
|
+
const container = viewContainersRegistry.registerViewContainer({
|
|
26
|
+
id: CONTAINER_ID,
|
|
27
|
+
title: ( localize2(4853, "Voice Transcripts")),
|
|
28
|
+
icon: voiceTranscriptsIcon,
|
|
29
|
+
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [CONTAINER_ID, {
|
|
30
|
+
mergeViewWithContainerWhenSingleView: true
|
|
31
|
+
}])),
|
|
32
|
+
storageId: CONTAINER_ID,
|
|
33
|
+
hideIfEmpty: true,
|
|
34
|
+
order: 10
|
|
35
|
+
}, ViewContainerLocation.Sidebar);
|
|
36
|
+
const viewDescriptor = {
|
|
37
|
+
id: VIEW_ID,
|
|
38
|
+
name: ( localize2(4854, "Voice Transcripts")),
|
|
39
|
+
containerIcon: voiceTranscriptsIcon,
|
|
40
|
+
ctorDescriptor: ( new SyncDescriptor(VoiceTranscriptsViewPane)),
|
|
41
|
+
canToggleVisibility: true,
|
|
42
|
+
canMoveView: true,
|
|
43
|
+
when: SHOW_VIEW_CONTEXT_KEY,
|
|
44
|
+
openCommandActionDescriptor: {
|
|
45
|
+
id: "voiceTranscripts.focus",
|
|
46
|
+
title: ( localize2(4855, "Focus Voice Transcripts View"))
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
viewsRegistry.registerViews([viewDescriptor], container);
|
|
50
|
+
const SHOW_VIEW_COMMAND_ID = "agentsVoice.showTranscripts";
|
|
51
|
+
class ShowVoiceTranscriptsAction extends Action2 {
|
|
52
|
+
constructor() {
|
|
53
|
+
super({
|
|
54
|
+
id: SHOW_VIEW_COMMAND_ID,
|
|
55
|
+
title: ( localize2(4856, "Show Voice Transcripts")),
|
|
56
|
+
f1: true,
|
|
57
|
+
category: ( localize2(4857, "Agents Voice")),
|
|
58
|
+
precondition: ChatContextKeys.enabled
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
async run(accessor) {
|
|
62
|
+
const contextKeyService = accessor.get(IContextKeyService);
|
|
63
|
+
const viewsService = accessor.get(IViewsService);
|
|
64
|
+
SHOW_VIEW_CONTEXT_KEY.bindTo(contextKeyService).set(true);
|
|
65
|
+
await viewsService.openView(VIEW_ID, true);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
registerAction2(ShowVoiceTranscriptsAction);
|
|
69
|
+
const VIEW_TITLE_WHEN = ( ContextKeyExpr.equals("view", VIEW_ID));
|
|
70
|
+
class RefreshVoiceTranscriptsAction extends Action2 {
|
|
71
|
+
static {
|
|
72
|
+
this.ID = "voiceTranscripts.refresh";
|
|
73
|
+
}
|
|
74
|
+
constructor() {
|
|
75
|
+
super({
|
|
76
|
+
id: RefreshVoiceTranscriptsAction.ID,
|
|
77
|
+
title: ( localize2(4858, "Refresh")),
|
|
78
|
+
icon: Codicon.refresh,
|
|
79
|
+
menu: [{
|
|
80
|
+
id: MenuId.ViewTitle,
|
|
81
|
+
when: VIEW_TITLE_WHEN,
|
|
82
|
+
group: "navigation",
|
|
83
|
+
order: 1
|
|
84
|
+
}]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
async run(accessor) {
|
|
88
|
+
const viewsService = accessor.get(IViewsService);
|
|
89
|
+
const view = viewsService.getActiveViewWithId(VIEW_ID);
|
|
90
|
+
await view?.refresh();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
class ArchiveAllVoiceTranscriptsAction extends Action2 {
|
|
94
|
+
static {
|
|
95
|
+
this.ID = "voiceTranscripts.archiveAll";
|
|
96
|
+
}
|
|
97
|
+
constructor() {
|
|
98
|
+
super({
|
|
99
|
+
id: ArchiveAllVoiceTranscriptsAction.ID,
|
|
100
|
+
title: ( localize2(4859, "Archive All")),
|
|
101
|
+
icon: Codicon.archive,
|
|
102
|
+
menu: [{
|
|
103
|
+
id: MenuId.ViewTitle,
|
|
104
|
+
when: VIEW_TITLE_WHEN,
|
|
105
|
+
group: "1_actions",
|
|
106
|
+
order: 1
|
|
107
|
+
}]
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
async run(accessor) {
|
|
111
|
+
const viewsService = accessor.get(IViewsService);
|
|
112
|
+
const view = viewsService.getActiveViewWithId(VIEW_ID);
|
|
113
|
+
await view?.archiveAll();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
class DeleteAllVoiceTranscriptsAction extends Action2 {
|
|
117
|
+
static {
|
|
118
|
+
this.ID = "voiceTranscripts.deleteAll";
|
|
119
|
+
}
|
|
120
|
+
constructor() {
|
|
121
|
+
super({
|
|
122
|
+
id: DeleteAllVoiceTranscriptsAction.ID,
|
|
123
|
+
title: ( localize2(4860, "Delete All")),
|
|
124
|
+
icon: Codicon.trash,
|
|
125
|
+
menu: [{
|
|
126
|
+
id: MenuId.ViewTitle,
|
|
127
|
+
when: VIEW_TITLE_WHEN,
|
|
128
|
+
group: "1_actions",
|
|
129
|
+
order: 2
|
|
130
|
+
}]
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
async run(accessor) {
|
|
134
|
+
const dialogService = accessor.get(IDialogService);
|
|
135
|
+
const viewsService = accessor.get(IViewsService);
|
|
136
|
+
const view = viewsService.getActiveViewWithId(VIEW_ID);
|
|
137
|
+
if (!view) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
const result = await dialogService.confirm({
|
|
141
|
+
type: "warning",
|
|
142
|
+
message: ( localize(4861, "Delete all voice transcripts?")),
|
|
143
|
+
detail: ( localize(
|
|
144
|
+
4862,
|
|
145
|
+
"This permanently deletes the local transcript file for your user. There is no server-side copy."
|
|
146
|
+
)),
|
|
147
|
+
primaryButton: ( localize(4863, "Delete"))
|
|
148
|
+
});
|
|
149
|
+
if (result.confirmed) {
|
|
150
|
+
await view.deleteAll();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
registerAction2(RefreshVoiceTranscriptsAction);
|
|
155
|
+
registerAction2(ArchiveAllVoiceTranscriptsAction);
|
|
156
|
+
registerAction2(DeleteAllVoiceTranscriptsAction);
|
|
157
|
+
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
158
|
+
command: {
|
|
159
|
+
id: SHOW_VIEW_COMMAND_ID,
|
|
160
|
+
title: ( localize(4864, "Show Voice Transcripts"))
|
|
161
|
+
},
|
|
162
|
+
when: ( ContextKeyExpr.equals("view", "workbench.panel.chat.view.copilot")),
|
|
163
|
+
group: "3_show",
|
|
164
|
+
order: 2
|
|
165
|
+
});
|
|
166
|
+
class VoiceTranscriptsContribution extends Disposable {
|
|
167
|
+
static {
|
|
168
|
+
this.ID = "workbench.contrib.voiceTranscripts";
|
|
169
|
+
}
|
|
170
|
+
constructor() {
|
|
171
|
+
super();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
registerWorkbenchContribution2(
|
|
175
|
+
VoiceTranscriptsContribution.ID,
|
|
176
|
+
VoiceTranscriptsContribution,
|
|
177
|
+
WorkbenchPhase.AfterRestored
|
|
178
|
+
);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
2
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
3
|
+
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
4
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
5
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
|
+
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
7
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
8
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
9
|
+
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
|
+
import { ViewPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
11
|
+
import { IViewletViewOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
12
|
+
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
13
|
+
import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
|
|
14
|
+
import { IVoiceSessionController } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.service";
|
|
15
|
+
import { IVoiceTranscriptStore } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.service";
|
|
16
|
+
/**
|
|
17
|
+
* Side-panel view that lists the user's persisted voice-conversation turns,
|
|
18
|
+
* grouped by relative time bucket. Display-only — read from the local
|
|
19
|
+
* voiceTranscriptStore (JSONL on disk).
|
|
20
|
+
*/
|
|
21
|
+
export declare class VoiceTranscriptsViewPane extends ViewPane {
|
|
22
|
+
private readonly voiceTranscriptStore;
|
|
23
|
+
private readonly authenticationService;
|
|
24
|
+
private readonly voiceSessionController;
|
|
25
|
+
private readonly logService;
|
|
26
|
+
static readonly ID = "workbench.view.voiceTranscripts";
|
|
27
|
+
private contentContainer;
|
|
28
|
+
private emptyState;
|
|
29
|
+
/** Cached login resolved on first render, refreshed lazily on each refresh(). */
|
|
30
|
+
private userLogin;
|
|
31
|
+
constructor(options: IViewletViewOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, voiceTranscriptStore: IVoiceTranscriptStore, authenticationService: IAuthenticationService, voiceSessionController: IVoiceSessionController, logService: ILogService);
|
|
32
|
+
protected renderBody(container: HTMLElement): void;
|
|
33
|
+
protected layoutBody(height: number, width: number): void;
|
|
34
|
+
/**
|
|
35
|
+
* Re-read the transcript JSONL and re-render. Cheap; the file is text-only
|
|
36
|
+
* and bounded by the user's actual usage.
|
|
37
|
+
*/
|
|
38
|
+
refresh(): Promise<void>;
|
|
39
|
+
archiveAll(): Promise<void>;
|
|
40
|
+
deleteAll(): Promise<void>;
|
|
41
|
+
private resolveUserLogin;
|
|
42
|
+
private renderEmpty;
|
|
43
|
+
private renderTurns;
|
|
44
|
+
private renderGroup;
|
|
45
|
+
private renderPair;
|
|
46
|
+
private renderRow;
|
|
47
|
+
}
|
package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { $ as $$1, append, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
5
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
8
|
+
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
9
|
+
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
10
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
11
|
+
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
12
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
13
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
14
|
+
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
15
|
+
import { ViewPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
16
|
+
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
17
|
+
import { IAuthenticationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service';
|
|
18
|
+
import { IVoiceSessionController } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.service';
|
|
19
|
+
import { IVoiceTranscriptStore } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.service';
|
|
20
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
21
|
+
|
|
22
|
+
const $ = $$1;
|
|
23
|
+
let VoiceTranscriptsViewPane = class VoiceTranscriptsViewPane extends ViewPane {
|
|
24
|
+
static {
|
|
25
|
+
this.ID = "workbench.view.voiceTranscripts";
|
|
26
|
+
}
|
|
27
|
+
constructor(
|
|
28
|
+
options,
|
|
29
|
+
keybindingService,
|
|
30
|
+
contextMenuService,
|
|
31
|
+
configurationService,
|
|
32
|
+
contextKeyService,
|
|
33
|
+
viewDescriptorService,
|
|
34
|
+
instantiationService,
|
|
35
|
+
openerService,
|
|
36
|
+
themeService,
|
|
37
|
+
hoverService,
|
|
38
|
+
voiceTranscriptStore,
|
|
39
|
+
authenticationService,
|
|
40
|
+
voiceSessionController,
|
|
41
|
+
logService
|
|
42
|
+
) {
|
|
43
|
+
super(
|
|
44
|
+
options,
|
|
45
|
+
keybindingService,
|
|
46
|
+
contextMenuService,
|
|
47
|
+
configurationService,
|
|
48
|
+
contextKeyService,
|
|
49
|
+
viewDescriptorService,
|
|
50
|
+
instantiationService,
|
|
51
|
+
openerService,
|
|
52
|
+
themeService,
|
|
53
|
+
hoverService
|
|
54
|
+
);
|
|
55
|
+
this.voiceTranscriptStore = voiceTranscriptStore;
|
|
56
|
+
this.authenticationService = authenticationService;
|
|
57
|
+
this.voiceSessionController = voiceSessionController;
|
|
58
|
+
this.logService = logService;
|
|
59
|
+
let lastState;
|
|
60
|
+
this._register(autorun(reader => {
|
|
61
|
+
const state = this.voiceSessionController.voiceState.read(reader);
|
|
62
|
+
const wasMidTurn = lastState === "speaking" || lastState === "processing";
|
|
63
|
+
const nowIdle = state === "idle" || state === "listening";
|
|
64
|
+
lastState = state;
|
|
65
|
+
if (wasMidTurn && nowIdle && this.isBodyVisible()) {
|
|
66
|
+
void this.refresh();
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
renderBody(container) {
|
|
71
|
+
super.renderBody(container);
|
|
72
|
+
container.classList.add("voice-transcripts-view");
|
|
73
|
+
container.style.display = "flex";
|
|
74
|
+
container.style.flexDirection = "column";
|
|
75
|
+
container.style.overflow = "hidden";
|
|
76
|
+
this.contentContainer = append(container, $(".voice-transcripts-content"));
|
|
77
|
+
this.contentContainer.style.flex = "1";
|
|
78
|
+
this.contentContainer.style.overflowY = "auto";
|
|
79
|
+
this.contentContainer.style.padding = "6px 12px 12px";
|
|
80
|
+
this.contentContainer.style.fontSize = "13px";
|
|
81
|
+
this.emptyState = append(container, $(".voice-transcripts-empty"));
|
|
82
|
+
this.emptyState.style.display = "none";
|
|
83
|
+
this.emptyState.style.padding = "24px 16px";
|
|
84
|
+
this.emptyState.style.textAlign = "center";
|
|
85
|
+
this.emptyState.style.color = "var(--vscode-descriptionForeground)";
|
|
86
|
+
this.emptyState.style.fontSize = "13px";
|
|
87
|
+
this.emptyState.textContent = ( localize(
|
|
88
|
+
4865,
|
|
89
|
+
"No transcripts yet. Start a voice conversation to populate this view."
|
|
90
|
+
));
|
|
91
|
+
void this.refresh();
|
|
92
|
+
}
|
|
93
|
+
layoutBody(height, width) {
|
|
94
|
+
super.layoutBody(height, width);
|
|
95
|
+
}
|
|
96
|
+
async refresh() {
|
|
97
|
+
if (!this.contentContainer || !this.emptyState) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
try {
|
|
101
|
+
this.userLogin = await this.resolveUserLogin();
|
|
102
|
+
if (!this.userLogin) {
|
|
103
|
+
this.renderEmpty();
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const turns = await this.voiceTranscriptStore.loadTurns(this.userLogin);
|
|
107
|
+
const indexEntry = this.voiceTranscriptStore.getIndexEntry(this.userLogin);
|
|
108
|
+
const archiveCutoff = indexEntry?.archivedBefore;
|
|
109
|
+
const spoken = turns.filter(t => t.kind === "user_voice" || t.kind === "agent_voice");
|
|
110
|
+
const visible = archiveCutoff ? spoken.filter(t => t.timestamp >= archiveCutoff) : spoken;
|
|
111
|
+
const archivedCount = spoken.length - visible.length;
|
|
112
|
+
if (visible.length === 0 && archivedCount === 0) {
|
|
113
|
+
this.renderEmpty();
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
this.renderTurns(visible, archivedCount);
|
|
117
|
+
} catch (err) {
|
|
118
|
+
this.logService.warn("[voiceTranscripts] refresh failed", err);
|
|
119
|
+
this.renderEmpty();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
async archiveAll() {
|
|
123
|
+
if (!this.userLogin) {
|
|
124
|
+
this.userLogin = await this.resolveUserLogin();
|
|
125
|
+
}
|
|
126
|
+
if (!this.userLogin) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const cutoff = ( new Date()).toISOString();
|
|
130
|
+
try {
|
|
131
|
+
await this.voiceTranscriptStore.archiveUpTo(this.userLogin, cutoff);
|
|
132
|
+
} catch (err) {
|
|
133
|
+
this.logService.warn("[voiceTranscripts] archiveUpTo failed", err);
|
|
134
|
+
}
|
|
135
|
+
await this.refresh();
|
|
136
|
+
}
|
|
137
|
+
async deleteAll() {
|
|
138
|
+
if (!this.userLogin) {
|
|
139
|
+
this.userLogin = await this.resolveUserLogin();
|
|
140
|
+
}
|
|
141
|
+
if (!this.userLogin) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
try {
|
|
145
|
+
await this.voiceTranscriptStore.deleteAll(this.userLogin);
|
|
146
|
+
} catch (err) {
|
|
147
|
+
this.logService.warn("[voiceTranscripts] deleteAll failed", err);
|
|
148
|
+
}
|
|
149
|
+
await this.refresh();
|
|
150
|
+
}
|
|
151
|
+
async resolveUserLogin() {
|
|
152
|
+
try {
|
|
153
|
+
const sessions = await this.authenticationService.getSessions("github");
|
|
154
|
+
return sessions[0]?.account.label;
|
|
155
|
+
} catch (err) {
|
|
156
|
+
this.logService.warn("[voiceTranscripts] failed to resolve github session", err);
|
|
157
|
+
return undefined;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
renderEmpty() {
|
|
161
|
+
if (!this.contentContainer || !this.emptyState) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
clearNode(this.contentContainer);
|
|
165
|
+
this.contentContainer.style.display = "none";
|
|
166
|
+
this.emptyState.style.display = "block";
|
|
167
|
+
}
|
|
168
|
+
renderTurns(turns, archivedCount) {
|
|
169
|
+
if (!this.contentContainer || !this.emptyState) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
this.emptyState.style.display = "none";
|
|
173
|
+
this.contentContainer.style.display = "block";
|
|
174
|
+
clearNode(this.contentContainer);
|
|
175
|
+
const groups = groupTurnsByTime(turns).filter(g => g.pairs.length > 0);
|
|
176
|
+
for (const group of groups) {
|
|
177
|
+
this.renderGroup(group);
|
|
178
|
+
}
|
|
179
|
+
if (archivedCount > 0) {
|
|
180
|
+
const archived = append(this.contentContainer, $(".voice-transcripts-archived-note"));
|
|
181
|
+
archived.style.marginTop = "12px";
|
|
182
|
+
archived.style.fontSize = "11px";
|
|
183
|
+
archived.style.color = "var(--vscode-descriptionForeground)";
|
|
184
|
+
archived.style.fontStyle = "italic";
|
|
185
|
+
archived.textContent = ( localize(
|
|
186
|
+
4866,
|
|
187
|
+
"{0} archived turn{1} hidden.",
|
|
188
|
+
archivedCount,
|
|
189
|
+
archivedCount === 1 ? "" : "s"
|
|
190
|
+
));
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
renderGroup(group) {
|
|
194
|
+
if (!this.contentContainer) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
const groupEl = append(this.contentContainer, $(".voice-transcripts-group"));
|
|
198
|
+
groupEl.style.marginBottom = "14px";
|
|
199
|
+
const heading = append(groupEl, $(".voice-transcripts-group-heading"));
|
|
200
|
+
heading.textContent = group.label;
|
|
201
|
+
heading.style.fontSize = "11px";
|
|
202
|
+
heading.style.fontWeight = "600";
|
|
203
|
+
heading.style.textTransform = "uppercase";
|
|
204
|
+
heading.style.letterSpacing = "0.5px";
|
|
205
|
+
heading.style.color = "var(--vscode-descriptionForeground)";
|
|
206
|
+
heading.style.padding = "4px 0 6px";
|
|
207
|
+
heading.style.borderBottom = "1px solid var(--vscode-editorWhitespace-foreground)";
|
|
208
|
+
heading.style.marginBottom = "4px";
|
|
209
|
+
for (const pair of group.pairs) {
|
|
210
|
+
this.renderPair(groupEl, pair);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
renderPair(parent, pair) {
|
|
214
|
+
const pairEl = append(parent, $(".voice-transcripts-pair"));
|
|
215
|
+
pairEl.style.padding = "6px 0";
|
|
216
|
+
pairEl.style.borderBottom = "1px solid var(--vscode-editorWhitespace-foreground)";
|
|
217
|
+
const time = append(pairEl, $(".voice-transcripts-time"));
|
|
218
|
+
time.textContent = formatTime(pair.timestamp);
|
|
219
|
+
time.style.fontSize = "10px";
|
|
220
|
+
time.style.color = "var(--vscode-descriptionForeground)";
|
|
221
|
+
time.style.marginBottom = "4px";
|
|
222
|
+
if (pair.user) {
|
|
223
|
+
this.renderRow(pairEl, "You", pair.user.text);
|
|
224
|
+
}
|
|
225
|
+
if (pair.assistant) {
|
|
226
|
+
this.renderRow(pairEl, "Voice", pair.assistant.text);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
renderRow(parent, label, text) {
|
|
230
|
+
const row = append(parent, $(".voice-transcripts-row"));
|
|
231
|
+
row.style.display = "flex";
|
|
232
|
+
row.style.gap = "6px";
|
|
233
|
+
row.style.alignItems = "baseline";
|
|
234
|
+
row.style.marginBottom = "3px";
|
|
235
|
+
row.style.lineHeight = "1.4";
|
|
236
|
+
const labelEl = append(row, $("span"));
|
|
237
|
+
labelEl.textContent = `${label}:`;
|
|
238
|
+
labelEl.style.fontSize = "11px";
|
|
239
|
+
labelEl.style.fontWeight = "600";
|
|
240
|
+
labelEl.style.color = "var(--vscode-descriptionForeground)";
|
|
241
|
+
labelEl.style.flex = "0 0 auto";
|
|
242
|
+
labelEl.style.minWidth = "32px";
|
|
243
|
+
const textEl = append(row, $("span"));
|
|
244
|
+
textEl.textContent = text;
|
|
245
|
+
textEl.style.fontSize = "13px";
|
|
246
|
+
textEl.style.color = "var(--vscode-foreground)";
|
|
247
|
+
textEl.style.whiteSpace = "pre-wrap";
|
|
248
|
+
textEl.style.wordBreak = "break-word";
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
VoiceTranscriptsViewPane = ( __decorate([( __param(1, IKeybindingService)), ( __param(2, IContextMenuService)), ( __param(3, IConfigurationService)), ( __param(4, IContextKeyService)), ( __param(5, IViewDescriptorService)), ( __param(6, IInstantiationService)), ( __param(7, IOpenerService)), ( __param(8, IThemeService)), ( __param(9, IHoverService)), ( __param(10, IVoiceTranscriptStore)), ( __param(11, IAuthenticationService)), ( __param(12, IVoiceSessionController)), ( __param(13, ILogService))], VoiceTranscriptsViewPane));
|
|
252
|
+
function formatTime(timestamp) {
|
|
253
|
+
try {
|
|
254
|
+
return ( new Date(timestamp)).toLocaleTimeString(undefined, {
|
|
255
|
+
hour: "2-digit",
|
|
256
|
+
minute: "2-digit"
|
|
257
|
+
});
|
|
258
|
+
} catch {
|
|
259
|
+
return "";
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function startOfDay(d) {
|
|
263
|
+
return ( new Date(d.getFullYear(), d.getMonth(), d.getDate()));
|
|
264
|
+
}
|
|
265
|
+
function groupTurnsByTime(turns) {
|
|
266
|
+
if (turns.length === 0) {
|
|
267
|
+
return [];
|
|
268
|
+
}
|
|
269
|
+
const now = ( new Date());
|
|
270
|
+
const today = startOfDay(now);
|
|
271
|
+
const yesterday = ( new Date(today.getTime() - 24 * 60 * 60 * 1000));
|
|
272
|
+
const weekStart = ( new Date(today.getTime() - 7 * 24 * 60 * 60 * 1000));
|
|
273
|
+
const monthStart = ( new Date(today.getTime() - 30 * 24 * 60 * 60 * 1000));
|
|
274
|
+
const buckets = [{
|
|
275
|
+
label: ( localize(4867, "Today")),
|
|
276
|
+
pairs: []
|
|
277
|
+
}, {
|
|
278
|
+
label: ( localize(4868, "Yesterday")),
|
|
279
|
+
pairs: []
|
|
280
|
+
}, {
|
|
281
|
+
label: ( localize(4869, "Earlier this week")),
|
|
282
|
+
pairs: []
|
|
283
|
+
}, {
|
|
284
|
+
label: ( localize(4870, "Earlier this month")),
|
|
285
|
+
pairs: []
|
|
286
|
+
}, {
|
|
287
|
+
label: ( localize(4871, "Older")),
|
|
288
|
+
pairs: []
|
|
289
|
+
}];
|
|
290
|
+
for (const turn of turns) {
|
|
291
|
+
const ts = ( new Date(turn.timestamp));
|
|
292
|
+
let bucket;
|
|
293
|
+
if (ts >= today) {
|
|
294
|
+
bucket = buckets[0];
|
|
295
|
+
} else if (ts >= yesterday) {
|
|
296
|
+
bucket = buckets[1];
|
|
297
|
+
} else if (ts >= weekStart) {
|
|
298
|
+
bucket = buckets[2];
|
|
299
|
+
} else if (ts >= monthStart) {
|
|
300
|
+
bucket = buckets[3];
|
|
301
|
+
} else {
|
|
302
|
+
bucket = buckets[4];
|
|
303
|
+
}
|
|
304
|
+
const last = bucket.pairs[bucket.pairs.length - 1];
|
|
305
|
+
if (turn.role === "user") {
|
|
306
|
+
bucket.pairs.push({
|
|
307
|
+
user: turn,
|
|
308
|
+
timestamp: turn.timestamp
|
|
309
|
+
});
|
|
310
|
+
} else if (last && !last.assistant) {
|
|
311
|
+
last.assistant = turn;
|
|
312
|
+
} else {
|
|
313
|
+
bucket.pairs.push({
|
|
314
|
+
assistant: turn,
|
|
315
|
+
timestamp: turn.timestamp
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return buckets;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export { VoiceTranscriptsViewPane };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default dimensions for the Agents Voice floating window.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AGENTS_VOICE_WINDOW_DEFAULT_WIDTH = 400;
|
|
5
|
+
export declare const AGENTS_VOICE_WINDOW_DEFAULT_HEIGHT = 70;
|
|
6
|
+
/**
|
|
7
|
+
* Storage keys for persisting window state across restarts.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum AgentsVoiceStorageKeys {
|
|
10
|
+
WindowOpen = "agentsVoice.windowOpen",
|
|
11
|
+
WindowBounds = "agentsVoice.windowBounds",
|
|
12
|
+
TranscriptIndex = "agentsVoice.transcriptIndex",
|
|
13
|
+
OnboardingCompleted = "agentsVoice.onboardingCompleted",
|
|
14
|
+
MicrophoneDevice = "agentsVoice.microphoneDevice"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import './agentsVoiceColors.js';
|
|
3
|
+
|
|
4
|
+
const AGENTS_VOICE_WINDOW_DEFAULT_WIDTH = 400;
|
|
5
|
+
const AGENTS_VOICE_WINDOW_DEFAULT_HEIGHT = 70;
|
|
6
|
+
var AgentsVoiceStorageKeys;
|
|
7
|
+
(function (AgentsVoiceStorageKeys) {
|
|
8
|
+
AgentsVoiceStorageKeys["WindowOpen"] = "agentsVoice.windowOpen";
|
|
9
|
+
AgentsVoiceStorageKeys["WindowBounds"] = "agentsVoice.windowBounds";
|
|
10
|
+
AgentsVoiceStorageKeys["TranscriptIndex"] = "agentsVoice.transcriptIndex";
|
|
11
|
+
AgentsVoiceStorageKeys["OnboardingCompleted"] = "agentsVoice.onboardingCompleted";
|
|
12
|
+
AgentsVoiceStorageKeys["MicrophoneDevice"] = "agentsVoice.microphoneDevice";
|
|
13
|
+
})(AgentsVoiceStorageKeys || (AgentsVoiceStorageKeys = {}));
|
|
14
|
+
|
|
15
|
+
export { AGENTS_VOICE_WINDOW_DEFAULT_HEIGHT, AGENTS_VOICE_WINDOW_DEFAULT_WIDTH, AgentsVoiceStorageKeys };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
import { registerColor } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
3
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
4
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
5
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
|
|
6
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
|
|
7
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
|
|
8
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
|
|
9
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
10
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
|
|
11
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
12
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
13
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
|
+
|
|
15
|
+
registerColor("agentsVoice.speakingForeground", {
|
|
16
|
+
dark: "#a371f7",
|
|
17
|
+
light: "#8250df",
|
|
18
|
+
hcDark: "#d2a8ff",
|
|
19
|
+
hcLight: "#6639ba"
|
|
20
|
+
}, ( localize(4872, "Color for the speaking/active voice state indicator")));
|
|
21
|
+
registerColor("agentsVoice.speakingBackground", {
|
|
22
|
+
dark: "#a371f714",
|
|
23
|
+
light: "#8250df14",
|
|
24
|
+
hcDark: "#d2a8ff14",
|
|
25
|
+
hcLight: "#6639ba14"
|
|
26
|
+
}, ( localize(4873, "Background color for the speaking voice state row highlight")));
|