@codingame/monaco-vscode-chat-service-override 38.0.7 → 38.1.2

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.
Files changed (144) hide show
  1. package/common.js +0 -53
  2. package/index.js +0 -3
  3. package/package.json +5 -5
  4. package/session.js +0 -3
  5. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHostContribution.js +1 -1
  6. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js +1 -1
  7. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +1 -1
  8. package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +6 -6
  9. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.d.ts +1 -1
  10. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.js +1 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.d.ts +1 -1
  12. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.js +2 -2
  13. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentActions.js +1 -1
  14. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHost.contribution.js +7 -7
  15. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostChatContribution.js +4 -4
  16. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +1 -1
  17. package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.d.ts +0 -135
  18. package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.js +0 -510
  19. package/vscode/src/vs/platform/agentHost/common/agentModelNotices.d.ts +0 -22
  20. package/vscode/src/vs/platform/agentHost/common/agentModelNotices.js +0 -21
  21. package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.d.ts +0 -273
  22. package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.js +0 -61
  23. package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.d.ts +0 -7
  24. package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.js +0 -17
  25. package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.d.ts +0 -12
  26. package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.js +0 -48
  27. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.d.ts +0 -8
  28. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.js +0 -11
  29. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.d.ts +0 -114
  30. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.js +0 -141
  31. package/vscode/src/vs/platform/agentHost/common/taskEventReplay.d.ts +0 -48
  32. package/vscode/src/vs/platform/agentHost/common/taskEventReplay.js +0 -238
  33. package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.d.ts +0 -102
  34. package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.js +0 -260
  35. package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.d.ts +0 -102
  36. package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.js +0 -115
  37. package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.d.ts +0 -46
  38. package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.js +0 -92
  39. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -9
  40. package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.d.ts +0 -14
  41. package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.js +0 -385
  42. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.d.ts +0 -67
  43. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.js +0 -695
  44. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.d.ts +0 -4
  45. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.js +0 -39
  46. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.d.ts +0 -1
  47. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.js +0 -59
  48. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.d.ts +0 -1
  49. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.js +0 -83
  50. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.d.ts +0 -87
  51. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.js +0 -176
  52. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.d.ts +0 -422
  53. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.js +0 -2444
  54. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.d.ts +0 -91
  55. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.js +0 -620
  56. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.d.ts +0 -1
  57. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.js +0 -5
  58. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.d.ts +0 -46
  59. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.js +0 -321
  60. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.d.ts +0 -104
  61. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.js +0 -345
  62. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.d.ts +0 -2
  63. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +0 -611
  64. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.d.ts +0 -20
  65. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +0 -85
  66. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +0 -200
  67. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +0 -981
  68. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.d.ts +0 -24
  69. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +0 -206
  70. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +0 -65
  71. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +0 -368
  72. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +0 -10
  73. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +0 -57
  74. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.d.ts +0 -33
  75. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +0 -98
  76. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.d.ts +0 -32
  77. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +0 -186
  78. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.d.ts +0 -12
  79. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +0 -116
  80. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +0 -32
  81. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +0 -226
  82. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +0 -18
  83. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +0 -138
  84. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +0 -32
  85. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +0 -29
  86. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +0 -13
  87. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.js +0 -108
  88. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +0 -13
  89. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +0 -63
  90. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/media/voiceModeOnboarding.css +0 -252
  91. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.d.ts +0 -1
  92. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +0 -178
  93. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.d.ts +0 -47
  94. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +0 -322
  95. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.d.ts +0 -146
  96. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +0 -890
  97. package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.d.ts +0 -132
  98. package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +0 -237
  99. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +0 -120
  100. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +0 -234
  101. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +0 -36
  102. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +0 -164
  103. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.d.ts +0 -21
  104. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.js +0 -122
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.d.ts +0 -82
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.js +0 -213
  107. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.d.ts +0 -40
  108. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.js +0 -561
  109. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.d.ts +0 -133
  110. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.js +0 -1176
  111. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.d.ts +0 -17
  112. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.js +0 -76
  113. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.d.ts +0 -54
  114. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.js +0 -220
  115. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.d.ts +0 -21
  116. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.js +0 -184
  117. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.d.ts +0 -8
  118. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.js +0 -165
  119. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.d.ts +0 -43
  120. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.js +0 -162
  121. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.d.ts +0 -40
  122. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.js +0 -129
  123. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.d.ts +0 -166
  124. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.js +0 -838
  125. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.d.ts +0 -40
  126. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.js +0 -604
  127. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.d.ts +0 -289
  128. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.js +0 -497
  129. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.d.ts +0 -6
  130. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.js +0 -41
  131. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.d.ts +0 -73
  132. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.js +0 -398
  133. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.d.ts +0 -45
  134. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.js +0 -296
  135. package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.d.ts +0 -63
  136. package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.js +0 -361
  137. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.d.ts +0 -34
  138. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.js +0 -198
  139. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +0 -131
  140. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +0 -871
  141. package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.d.ts +0 -66
  142. package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +0 -297
  143. package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +0 -31
  144. package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.js +0 -118
@@ -1,611 +0,0 @@
1
-
2
- import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService';
4
- import '../../chat/browser/voiceClient/ttsPlaybackService.js';
5
- import '../../chat/browser/voiceClient/voiceClientService.js';
6
- import { isVoiceEntitled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController';
7
- import { IVoiceSessionController } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.service';
8
- import { VOICE_AGENT_PROGRESS_SETTING, normalizeAgentsVoiceId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/voiceClient/voiceClientService';
9
- import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService';
10
- import '../../chat/common/voicePlaybackService.js';
11
- import '../common/voiceTranscriptStore.js';
12
- import './transcriptsView/voiceTranscripts.contribution.js';
13
- import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
14
- import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
15
- import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
16
- import { PolicyCategory } from '@codingame/monaco-vscode-api/vscode/vs/base/common/policy';
17
- import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
18
- import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
19
- import { registerAction2, Action2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
20
- import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
21
- import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
22
- import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
23
- import { SegmentedVoiceInputModePillInactive } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputModeContextKeys';
24
- import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
25
- import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
26
- import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
27
- import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
28
- import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
29
- import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
30
- import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
31
- import { AGENTS_VOICE_ENTITLED, AGENTS_VOICE_CONNECTED, AGENTS_VOICE_CONNECTING, AGENTS_VOICE_LISTENING, AGENTS_VOICE_RECONNECTING, AGENTS_VOICE_MUTED, AGENTS_VOICE_ENABLED, AgentsVoiceSettingId, AGENTS_VOICE_TOGGLE_MUTE_COMMAND_ID, AgentsVoiceStorageKeys, getAgentsVoicePolicyValue } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/agentsVoice/common/agentsVoice';
32
- import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
33
- import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
34
- import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
35
- import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
36
- import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
37
- import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
38
- import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
39
- import { getActiveWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
40
- import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
41
- import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
42
- import { CONFIGURE_VOICE_INSTRUCTIONS_ACTION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/configureVoiceInstructionsAction';
43
- import { IVoiceModeOnboardingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.service';
44
- import { SHOW_VOICE_MODE_ONBOARDING_COMMAND } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/speechToText/micButtonMenuActions';
45
- import { IsSessionsWindowContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
46
- import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
47
-
48
- var AgentsVoiceTelemetryContribution_1;
49
- const AGENTS_VOICE_WIDGET_FOCUSED = new RawContextKey("agentsVoiceWidgetFocused", false);
50
- const AGENTS_VOICE_INITIATED_HERE = ( ContextKeyExpr.equals("agentsVoiceInitiatedHere", true));
51
- const VOICE_ACTIVE_ON_SURFACE = ( ContextKeyExpr.or(( IsSessionsWindowContext.negate()), AGENTS_VOICE_INITIATED_HERE));
52
- let AgentsVoiceEntitlementKeyContribution = class AgentsVoiceEntitlementKeyContribution extends Disposable {
53
- static {
54
- this.ID = "workbench.contrib.agentsVoiceEntitlementKey";
55
- }
56
- constructor(chatEntitlementService, contextKeyService) {
57
- super();
58
- const entitledKey = AGENTS_VOICE_ENTITLED.bindTo(contextKeyService);
59
- const update = () => entitledKey.set(isVoiceEntitled(chatEntitlementService));
60
- update();
61
- this._register(chatEntitlementService.onDidChangeEntitlement(update));
62
- }
63
- };
64
- AgentsVoiceEntitlementKeyContribution = ( __decorate([( __param(0, IChatEntitlementService)), ( __param(1, IContextKeyService))], AgentsVoiceEntitlementKeyContribution));
65
- registerWorkbenchContribution2(
66
- AgentsVoiceEntitlementKeyContribution.ID,
67
- AgentsVoiceEntitlementKeyContribution,
68
- WorkbenchPhase.AfterRestored
69
- );
70
- let AgentsVoiceConnectedKeyContribution = class AgentsVoiceConnectedKeyContribution extends Disposable {
71
- static {
72
- this.ID = "workbench.contrib.agentsVoiceConnectedKey";
73
- }
74
- constructor(voiceSessionController, contextKeyService) {
75
- super();
76
- const connectedKey = AGENTS_VOICE_CONNECTED.bindTo(contextKeyService);
77
- const connectingKey = AGENTS_VOICE_CONNECTING.bindTo(contextKeyService);
78
- const listeningKey = AGENTS_VOICE_LISTENING.bindTo(contextKeyService);
79
- const reconnectingKey = AGENTS_VOICE_RECONNECTING.bindTo(contextKeyService);
80
- const mutedKey = AGENTS_VOICE_MUTED.bindTo(contextKeyService);
81
- this._register(autorun(reader => {
82
- connectedKey.set(voiceSessionController.isConnected.read(reader));
83
- connectingKey.set(voiceSessionController.isConnecting.read(reader));
84
- reconnectingKey.set(voiceSessionController.isReconnecting.read(reader));
85
- listeningKey.set(voiceSessionController.voiceState.read(reader) === "listening");
86
- mutedKey.set(voiceSessionController.isMuted.read(reader));
87
- }));
88
- }
89
- };
90
- AgentsVoiceConnectedKeyContribution = ( __decorate([( __param(0, IVoiceSessionController)), ( __param(1, IContextKeyService))], AgentsVoiceConnectedKeyContribution));
91
- registerWorkbenchContribution2(
92
- AgentsVoiceConnectedKeyContribution.ID,
93
- AgentsVoiceConnectedKeyContribution,
94
- WorkbenchPhase.Eventually
95
- );
96
- let AgentsVoiceTelemetryContribution = class AgentsVoiceTelemetryContribution extends Disposable {
97
- static {
98
- AgentsVoiceTelemetryContribution_1 = this;
99
- }
100
- static {
101
- this.ID = "workbench.contrib.agentsVoiceTelemetry";
102
- }
103
- static {
104
- this._ENABLED_AT_KEY = "agents.voice.enabledAtMs";
105
- }
106
- constructor(configurationService, telemetryService, storageService) {
107
- super();
108
- this._register(configurationService.onDidChangeConfiguration(e => {
109
- if (e.affectsConfiguration("agents.voice.enabled")) {
110
- const enabled = configurationService.getValue("agents.voice.enabled");
111
- if (enabled) {
112
- storageService.store(
113
- AgentsVoiceTelemetryContribution_1._ENABLED_AT_KEY,
114
- Date.now(),
115
- StorageScope.PROFILE,
116
- StorageTarget.MACHINE
117
- );
118
- telemetryService.publicLog2("voiceEnabled", {
119
- source: "setting"
120
- });
121
- } else {
122
- const enabledAt = storageService.getNumber(
123
- AgentsVoiceTelemetryContribution_1._ENABLED_AT_KEY,
124
- StorageScope.PROFILE,
125
- 0
126
- );
127
- const daysActive = enabledAt ? Math.round((Date.now() - enabledAt) / (1000 * 60 * 60 * 24)) : 0;
128
- telemetryService.publicLog2("voiceDisabled", {
129
- daysActive
130
- });
131
- storageService.remove(AgentsVoiceTelemetryContribution_1._ENABLED_AT_KEY, StorageScope.PROFILE);
132
- }
133
- }
134
- }));
135
- }
136
- };
137
- AgentsVoiceTelemetryContribution = AgentsVoiceTelemetryContribution_1 = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, ITelemetryService)), ( __param(2, IStorageService))], AgentsVoiceTelemetryContribution));
138
- registerWorkbenchContribution2(
139
- AgentsVoiceTelemetryContribution.ID,
140
- AgentsVoiceTelemetryContribution,
141
- WorkbenchPhase.AfterRestored
142
- );
143
- let AgentsVoiceOnboardingContribution = class AgentsVoiceOnboardingContribution extends Disposable {
144
- static {
145
- this.ID = "workbench.contrib.agentsVoiceOnboarding";
146
- }
147
- constructor(voiceSessionController, voiceModeOnboardingService) {
148
- super();
149
- this._register(autorun(reader => {
150
- if (voiceSessionController.isConnecting.read(reader) || voiceSessionController.isConnected.read(reader)) {
151
- voiceModeOnboardingService.showIfNeeded();
152
- }
153
- }));
154
- }
155
- };
156
- AgentsVoiceOnboardingContribution = ( __decorate([( __param(0, IVoiceSessionController)), ( __param(1, IVoiceModeOnboardingService))], AgentsVoiceOnboardingContribution));
157
- registerWorkbenchContribution2(
158
- AgentsVoiceOnboardingContribution.ID,
159
- AgentsVoiceOnboardingContribution,
160
- WorkbenchPhase.Eventually
161
- );
162
- registerAction2(class extends Action2 {
163
- constructor() {
164
- super({
165
- id: "agentsVoice.connecting",
166
- title: ( localize2(8636, "Connecting...")),
167
- icon: Codicon.loadingCompact,
168
- precondition: ( ContextKeyExpr.and(AGENTS_VOICE_ENABLED, ( ContextKeyExpr.or(( AGENTS_VOICE_CONNECTING.isEqualTo(true)), ( AGENTS_VOICE_RECONNECTING.isEqualTo(true)))))),
169
- menu: {
170
- id: MenuId.ChatExecute,
171
- when: ( ContextKeyExpr.and(SegmentedVoiceInputModePillInactive, AGENTS_VOICE_ENABLED, ( ContextKeyExpr.notEquals(`config.${AgentsVoiceSettingId.ShowButton}`, false)), ( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Chat)), ( ContextKeyExpr.or(( AGENTS_VOICE_CONNECTING.isEqualTo(true)), ( AGENTS_VOICE_RECONNECTING.isEqualTo(true)))), VOICE_ACTIVE_ON_SURFACE)),
172
- group: "navigation",
173
- order: -10
174
- }
175
- });
176
- }
177
- async run() {}
178
- });
179
- registerAction2(class extends Action2 {
180
- constructor() {
181
- super({
182
- id: "agentsVoice.startVoiceInChat",
183
- title: ( localize2(8637, "Voice Mode")),
184
- icon: Codicon.voiceModeCompact,
185
- precondition: AGENTS_VOICE_ENABLED,
186
- menu: {
187
- id: MenuId.ChatExecute,
188
- when: ( ContextKeyExpr.and(SegmentedVoiceInputModePillInactive, AGENTS_VOICE_ENABLED, ( ContextKeyExpr.notEquals(`config.${AgentsVoiceSettingId.ShowButton}`, false)), ( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Chat)), ( ChatContextKeys.currentlyEditing.negate()), ( AGENTS_VOICE_LISTENING.negate()), ( AGENTS_VOICE_CONNECTING.negate()), ( AGENTS_VOICE_RECONNECTING.negate()), (
189
- ChatContextKeys.speechToTextRecording.negate()), ( ChatContextKeys.speechToTextPreparing.negate()))),
190
- group: "navigation",
191
- order: -10
192
- },
193
- keybinding: {
194
- weight: KeybindingWeight.WorkbenchContrib,
195
- primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Space,
196
- when: ( ContextKeyExpr.and(
197
- SegmentedVoiceInputModePillInactive,
198
- AGENTS_VOICE_ENABLED,
199
- ChatContextKeys.inChatInput
200
- ))
201
- }
202
- });
203
- }
204
- async run(accessor) {
205
- const voiceController = accessor.get(IVoiceSessionController);
206
- const keybindingService = accessor.get(IKeybindingService);
207
- const handsFree = accessor.get(IConfigurationService).getValue("agents.voice.handsFree") === true;
208
- const activeWindow = getActiveWindow();
209
- voiceController.setActiveWindow(activeWindow);
210
- const holdMode = keybindingService.enableKeybindingHoldMode("agentsVoice.startVoiceInChat");
211
- const currentSession = await accessor.get(ICommandService).executeCommand("_chat.voice.getCurrentSession");
212
- if (currentSession) {
213
- try {
214
- const resource = ( URI.parse(currentSession));
215
- if (resource.scheme === "sessions-voice") {
216
- voiceController.setDraftTarget();
217
- } else {
218
- voiceController.setTargetSession(resource);
219
- voiceController.activateSession(resource);
220
- }
221
- } catch {}
222
- }
223
- const wasConnected = voiceController.isConnected.get();
224
- if (!wasConnected) {
225
- await voiceController.connect(activeWindow);
226
- }
227
- if (!holdMode && !handsFree && !wasConnected) {
228
- return;
229
- }
230
- voiceController.pttDown();
231
- if (!holdMode) {
232
- voiceController.pttUp();
233
- return;
234
- }
235
- await holdMode;
236
- voiceController.pttUp();
237
- }
238
- });
239
- registerAction2(class extends Action2 {
240
- constructor() {
241
- super({
242
- id: "agentsVoice.pttStopInChat",
243
- title: ( localize2(8638, "Voice Mode: Stop Recording")),
244
- icon: Codicon.voiceModeCompact,
245
- precondition: ( ContextKeyExpr.and(AGENTS_VOICE_ENABLED, ( AGENTS_VOICE_LISTENING.isEqualTo(true)))),
246
- menu: {
247
- id: MenuId.ChatExecute,
248
- when: ( ContextKeyExpr.and(SegmentedVoiceInputModePillInactive, AGENTS_VOICE_ENABLED, ( ContextKeyExpr.notEquals(`config.${AgentsVoiceSettingId.ShowButton}`, false)), ( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Chat)), ( ChatContextKeys.currentlyEditing.negate()), ( AGENTS_VOICE_LISTENING.isEqualTo(true)), VOICE_ACTIVE_ON_SURFACE)),
249
- group: "navigation",
250
- order: -10
251
- }
252
- });
253
- }
254
- async run(accessor) {
255
- const voiceController = accessor.get(IVoiceSessionController);
256
- voiceController.stopListening();
257
- }
258
- });
259
- registerAction2(class extends Action2 {
260
- constructor() {
261
- super({
262
- id: "agentsVoice.disconnect",
263
- title: ( localize2(8639, "Disconnect Voice Mode")),
264
- icon: Codicon.debugDisconnectCompact,
265
- f1: true,
266
- precondition: ( ContextKeyExpr.and(AGENTS_VOICE_ENABLED, ( ContextKeyExpr.or(AGENTS_VOICE_CONNECTED, AGENTS_VOICE_CONNECTING)))),
267
- menu: {
268
- id: MenuId.ChatExecute,
269
- when: ( ContextKeyExpr.and(AGENTS_VOICE_ENABLED, ( ContextKeyExpr.notEquals(`config.${AgentsVoiceSettingId.ShowButton}`, false)), ( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Chat)), ( ChatContextKeys.currentlyEditing.negate()), ( AGENTS_VOICE_CONNECTED.isEqualTo(true)), VOICE_ACTIVE_ON_SURFACE,
270
- SegmentedVoiceInputModePillInactive)),
271
- group: "navigation",
272
- order: -9
273
- },
274
- keybinding: {
275
- weight: KeybindingWeight.EditorContrib - 5,
276
- primary: KeyCode.Escape,
277
- when: ( ContextKeyExpr.and(AGENTS_VOICE_ENABLED, ChatContextKeys.inChatInput, ( ContextKeyExpr.or(AGENTS_VOICE_CONNECTED, AGENTS_VOICE_CONNECTING)), VOICE_ACTIVE_ON_SURFACE, (
278
- ChatContextKeys.hasActiveRequest.negate()), ( EditorContextKeys.hoverVisible.toNegated()), ( EditorContextKeys.hasNonEmptySelection.toNegated()), ( EditorContextKeys.hasMultipleSelections.toNegated())))
279
- }
280
- });
281
- }
282
- async run(accessor) {
283
- const voiceController = accessor.get(IVoiceSessionController);
284
- voiceController.disconnect("explicit");
285
- }
286
- });
287
- registerAction2(class extends Action2 {
288
- constructor() {
289
- super({
290
- id: AGENTS_VOICE_TOGGLE_MUTE_COMMAND_ID,
291
- title: ( localize2(8640, "Voice Mode: Toggle Mute Microphone")),
292
- f1: true,
293
- toggled: {
294
- condition: ( AGENTS_VOICE_MUTED.isEqualTo(true)),
295
- title: ( localize(8641, "Unmute Microphone"))
296
- },
297
- precondition: ( ContextKeyExpr.and(AGENTS_VOICE_ENABLED, ( AGENTS_VOICE_CONNECTED.isEqualTo(true)))),
298
- keybinding: {
299
- weight: KeybindingWeight.WorkbenchContrib + 1,
300
- primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyM,
301
- when: ( ContextKeyExpr.and(AGENTS_VOICE_ENABLED, ( AGENTS_VOICE_CONNECTED.isEqualTo(true)), VOICE_ACTIVE_ON_SURFACE, ChatContextKeys.inputHasFocus))
302
- }
303
- });
304
- }
305
- async run(accessor) {
306
- const voiceController = accessor.get(IVoiceSessionController);
307
- voiceController.setMuted(!voiceController.isMuted.get());
308
- }
309
- });
310
- registerAction2(class extends Action2 {
311
- constructor() {
312
- super({
313
- id: "agentsVoice.cancelActiveRequest",
314
- title: ( localize2(8642, "Voice Mode: Cancel Request")),
315
- f1: false,
316
- keybinding: {
317
- weight: KeybindingWeight.EditorContrib - 5,
318
- primary: KeyCode.Escape,
319
- when: ( ContextKeyExpr.and(AGENTS_VOICE_ENABLED, ChatContextKeys.inChatInput, ( AGENTS_VOICE_CONNECTED.isEqualTo(true)),
320
- ChatContextKeys.hasActiveRequest, ( EditorContextKeys.hoverVisible.toNegated()), ( EditorContextKeys.hasNonEmptySelection.toNegated()), ( EditorContextKeys.hasMultipleSelections.toNegated())))
321
- }
322
- });
323
- }
324
- async run(accessor) {
325
- await accessor.get(ICommandService).executeCommand("workbench.action.chat.cancel");
326
- }
327
- });
328
- registerAction2(class extends Action2 {
329
- constructor() {
330
- super({
331
- id: "agentsVoice.openSettings",
332
- title: ( localize2(8643, "Voice Mode Settings")),
333
- f1: true,
334
- precondition: AGENTS_VOICE_ENABLED
335
- });
336
- }
337
- async run(accessor) {
338
- const commandService = accessor.get(ICommandService);
339
- await commandService.executeCommand("workbench.action.openSettings", {
340
- query: "agents.voice"
341
- });
342
- }
343
- });
344
- registerAction2(class extends Action2 {
345
- constructor() {
346
- super({
347
- id: SHOW_VOICE_MODE_ONBOARDING_COMMAND,
348
- title: ( localize2(8644, "Voice Mode: Show Introduction")),
349
- f1: true,
350
- precondition: AGENTS_VOICE_ENABLED
351
- });
352
- }
353
- run(accessor) {
354
- if (!accessor.get(IVoiceModeOnboardingService).show()) {
355
- accessor.get(INotificationService).info(( localize(8645, "Open a chat to see the Voice Mode introduction.")));
356
- }
357
- }
358
- });
359
- registerAction2(class extends Action2 {
360
- constructor() {
361
- super({
362
- id: "agentsVoice.simulateConnection",
363
- title: ( localize2(8646, "Voice: Simulate Connection (Dev)")),
364
- f1: true
365
- });
366
- }
367
- async run(accessor) {
368
- const voiceController = accessor.get(IVoiceSessionController);
369
- voiceController.simulateConnection();
370
- }
371
- });
372
- registerAction2(class extends Action2 {
373
- constructor() {
374
- super({
375
- id: "agentsVoice.resetOnboarding",
376
- title: ( localize2(8647, "Voice: Reset Onboarding")),
377
- f1: true
378
- });
379
- }
380
- async run(accessor) {
381
- const storageService = accessor.get(IStorageService);
382
- storageService.remove(AgentsVoiceStorageKeys.OnboardingCompleted, StorageScope.PROFILE);
383
- storageService.remove(AgentsVoiceStorageKeys.IntroBannerShown, StorageScope.APPLICATION);
384
- }
385
- });
386
- registerAction2(class extends Action2 {
387
- constructor() {
388
- super({
389
- id: "agentsVoice.pushToTalk",
390
- title: ( localize2(8648, "Voice Mode: Push to Talk")),
391
- f1: true,
392
- precondition: AGENTS_VOICE_ENABLED,
393
- keybinding: {
394
- weight: KeybindingWeight.WorkbenchContrib,
395
- primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Space,
396
- when: ( ContextKeyExpr.and(AGENTS_VOICE_WIDGET_FOCUSED, ContextKeyExpr.not("inputFocus")))
397
- }
398
- });
399
- }
400
- async run(accessor) {
401
- const voiceController = accessor.get(IVoiceSessionController);
402
- const keybindingService = accessor.get(IKeybindingService);
403
- const holdMode = keybindingService.enableKeybindingHoldMode("agentsVoice.pushToTalk");
404
- if (!voiceController.isConnected.get() && !voiceController.isConnecting.get()) {
405
- await voiceController.connect(getActiveWindow());
406
- }
407
- if (!voiceController.isConnected.get()) {
408
- return;
409
- }
410
- voiceController.pttDown();
411
- if (!holdMode) {
412
- voiceController.pttUp();
413
- return;
414
- }
415
- await holdMode;
416
- voiceController.pttUp();
417
- }
418
- });
419
- const configurationRegistry = ( Registry.as(Extensions.Configuration));
420
- configurationRegistry.registerConfiguration({
421
- id: "agentsVoice",
422
- title: ( localize(8649, "Voice Mode")),
423
- type: "object",
424
- properties: {
425
- "agents.voice.enabled": {
426
- type: "boolean",
427
- description: ( localize(
428
- 8650,
429
- "Enable the Voice Mode panel in the chat view for voice-driven coding conversations."
430
- )),
431
- default: false,
432
- experiment: {
433
- mode: "auto"
434
- },
435
- tags: ["experimental"],
436
- scope: ConfigurationScope.APPLICATION,
437
- restricted: true,
438
- policy: {
439
- name: "AgentsVoice",
440
- category: PolicyCategory.InteractiveSession,
441
- minimumVersion: "1.137",
442
- value: getAgentsVoicePolicyValue,
443
- localization: {
444
- description: {
445
- key: "agents.voice.enabled",
446
- value: ( localize(
447
- 8650,
448
- "Enable the Voice Mode panel in the chat view for voice-driven coding conversations."
449
- ))
450
- }
451
- }
452
- }
453
- },
454
- [AgentsVoiceSettingId.ShowButton]: {
455
- type: "boolean",
456
- markdownDescription: ( localize(
457
- 8651,
458
- "Controls whether the Voice Mode button is shown in the chat input. When hidden, Voice Mode can still be started with its keyboard shortcut."
459
- )),
460
- default: true,
461
- tags: ["experimental"],
462
- scope: ConfigurationScope.APPLICATION
463
- },
464
- "agents.voice.backendUrl": {
465
- type: "string",
466
- description: ( localize(
467
- 8652,
468
- "Voice backend WebSocket URL. Leave empty to use the default hosted backend. Set to e.g. `ws://localhost:8000/api/v1/realtime/voice` to point at a backend running on your machine."
469
- )),
470
- default: "",
471
- scope: ConfigurationScope.APPLICATION,
472
- included: false
473
- },
474
- "agents.voice.speakResponses": {
475
- type: "boolean",
476
- markdownDescription: ( localize(
477
- 8653,
478
- "When enabled, the assistant reads responses aloud. When disabled, responses are not spoken; enable `#agents.voice.showTranscript#` to read them as a text transcript instead."
479
- )),
480
- default: true,
481
- scope: ConfigurationScope.APPLICATION
482
- },
483
- [VOICE_AGENT_PROGRESS_SETTING]: {
484
- type: "boolean",
485
- markdownDescription: ( localize(
486
- 8654,
487
- "Allow Agent mode to speak brief semantic progress updates while it investigates, plans, edits, validates, or recovers from a problem."
488
- )),
489
- default: true,
490
- tags: ["experimental"],
491
- scope: ConfigurationScope.APPLICATION
492
- },
493
- "agents.voice.voice": {
494
- type: "string",
495
- enum: ["harper_neutral", "birch_neutral", "junho_neutral", "oak_neutral"],
496
- enumItemLabels: ["Harper", "Birch", "Junho", "Oak"],
497
- enumDescriptions: [( localize(8655, "Harper.")), ( localize(8656, "Birch.")), ( localize(8657, "Junho.")), ( localize(8658, "Oak."))],
498
- markdownDescription: ( localize(
499
- 8659,
500
- "The voice used when the assistant reads responses aloud. Changing this while voice mode is connected takes effect immediately. Use [Voice Mode instructions](command:{0}) to customize Voice Mode behavior and terminology.",
501
- CONFIGURE_VOICE_INSTRUCTIONS_ACTION_ID
502
- )),
503
- default: "birch_neutral",
504
- scope: ConfigurationScope.APPLICATION
505
- },
506
- "agents.voice.language": {
507
- type: "string",
508
- enum: ["auto", "en", "de", "es", "fr", "it", "pt", "ja", "ko", "zh"],
509
- enumItemLabels: [( localize(8660, "Automatic")), ( localize(8661, "English")), ( localize(8662, "German")), ( localize(8663, "Spanish")), ( localize(8664, "French")), ( localize(8665, "Italian")), ( localize(8666, "Portuguese")), ( localize(8667, "Japanese")), ( localize(8668, "Korean")), ( localize(8669, "Chinese"))],
510
- markdownDescription: ( localize(
511
- 8670,
512
- "The language used for speech recognition, dictation, and spoken responses. The selectable languages support native voice output. Automatic uses the configured display language for speech recognition and dictation when supported; otherwise, it follows the system or browser locale. English voice output is used when the detected language does not support native voice output. Changing this while voice mode is connected takes effect immediately."
513
- )),
514
- default: "auto",
515
- scope: ConfigurationScope.APPLICATION
516
- },
517
- "agents.voice.showTranscript": {
518
- type: "boolean",
519
- markdownDescription: ( localize(
520
- 8671,
521
- "Show the voice transcript overlay in the chat input area while voice mode is active. Enable this to read responses as text when `#agents.voice.speakResponses#` is disabled."
522
- )),
523
- default: false,
524
- scope: ConfigurationScope.APPLICATION
525
- },
526
- "agents.voice.liveTranscript": {
527
- type: "boolean",
528
- markdownDescription: ( localize(
529
- 8672,
530
- "Show your speech as a live, word-by-word transcript while you are speaking. When disabled, your transcript appears only once you finish speaking. Requires `#agents.voice.showTranscript#` to be enabled to be visible."
531
- )),
532
- default: false,
533
- scope: ConfigurationScope.APPLICATION
534
- },
535
- "agents.voice.handsFree": {
536
- type: "boolean",
537
- markdownDescription: ( localize(
538
- 8673,
539
- "When enabled, voice mode automatically re-enters listening after the assistant finishes speaking, so you can hold a hands-free back-and-forth conversation. When disabled, you start and end each turn manually, and ending the turn sends it. Turns are not ended automatically on trailing silence or a stop phrase unless {0} or {1} is explicitly configured.",
540
- "`#agents.voice.turn.silenceMs#`",
541
- "`#agents.voice.turn.stopPhrases#`"
542
- )),
543
- default: true,
544
- scope: ConfigurationScope.APPLICATION
545
- },
546
- "agents.voice.turn.silenceMs": {
547
- type: "number",
548
- markdownDescription: ( localize(
549
- 8674,
550
- "Trailing silence in milliseconds before the backend ends the turn automatically. Set to `-1` to disable ending the turn on silence, in which case the turn ends only via a stop phrase ({0}) or manually. When enabled, the backend clamps this to its supported range (currently 200-5000 ms) and is the source of truth. When hands-free mode ({1}) is disabled, the turn is not ended on silence by default unless this setting is explicitly configured, so you keep manual control over when a turn is sent.",
551
- "`#agents.voice.turn.stopPhrases#`",
552
- "`#agents.voice.handsFree#`"
553
- )),
554
- default: 800,
555
- anyOf: [{
556
- const: -1,
557
- description: ( localize(8675, "Do not end the turn on trailing silence."))
558
- }, {
559
- type: "number",
560
- minimum: 200,
561
- maximum: 5000
562
- }],
563
- scope: ConfigurationScope.APPLICATION
564
- },
565
- "agents.voice.turn.stopPhrases": {
566
- type: "array",
567
- items: {
568
- type: "string"
569
- },
570
- markdownDescription: ( localize(
571
- 8676,
572
- "Phrases that end the turn when spoken at the end of an utterance. Leave empty to disable ending the turn on a stop phrase, in which case the turn ends only on trailing silence ({0}) or manually. The backend strips the matched phrase from the transcript before it reaches the agent. When hands-free mode ({1}) is disabled, stop phrases do not end the turn by default unless this setting is explicitly configured, so you keep manual control over when a turn is sent.",
573
- "`#agents.voice.turn.silenceMs#`",
574
- "`#agents.voice.handsFree#`"
575
- )),
576
- default: ["send it"],
577
- scope: ConfigurationScope.APPLICATION
578
- }
579
- }
580
- });
581
- ( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([{
582
- key: "agents.voice.voice",
583
- includeApplication: true,
584
- migrateFn: value => ({
585
- value: normalizeAgentsVoiceId(value)
586
- })
587
- }, {
588
- key: "agents.voice.turn.autoEndMode",
589
- migrateFn: value => {
590
- const result = [["agents.voice.turn.autoEndMode", {
591
- value: undefined
592
- }]];
593
- if (value === "off" || value === "vad" || value === "phrase" || value === "both") {
594
- const silenceEnabled = value === "vad" || value === "both";
595
- const phraseEnabled = value === "phrase" || value === "both";
596
- if (!silenceEnabled) {
597
- result.push(["agents.voice.turn.silenceMs", {
598
- value: -1
599
- }]);
600
- }
601
- if (!phraseEnabled) {
602
- result.push(["agents.voice.turn.stopPhrases", {
603
- value: []
604
- }]);
605
- }
606
- }
607
- return result;
608
- }
609
- }]);
610
-
611
- export { AGENTS_VOICE_WIDGET_FOCUSED };
@@ -1,20 +0,0 @@
1
- import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
2
- import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
3
- import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
4
- import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
5
- /**
6
- * A quickpick that lists agent sessions and allows the user to select one
7
- * as the voice transcription target. Mirrors the pattern of AgentSessionsPicker
8
- * but with a voice-specific action.
9
- */
10
- export declare class AgentsVoiceSessionsPicker {
11
- private readonly onSelectTarget;
12
- private readonly agentSessionsService;
13
- private readonly quickInputService;
14
- private readonly instantiationService;
15
- private readonly sorter;
16
- constructor(onSelectTarget: (resource: URI) => void, agentSessionsService: IAgentSessionsService, quickInputService: IQuickInputService, instantiationService: IInstantiationService);
17
- show(): Promise<void>;
18
- private createPickerItems;
19
- private toPickItem;
20
- }