@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,85 +0,0 @@
1
-
2
- import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
- import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
5
- import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
6
- import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
7
- import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
8
- import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
9
- import { AgentSessionsSorter, groupAgentSessionsByDate } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer';
10
- import { shouldShowSessionInPicker, getSessionDescription } from '../../chat/browser/agentSessions/agentSessionsPicker.js';
11
- import { AgentSessionsFilter } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter';
12
- import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
13
-
14
- const setTargetButton = {
15
- iconClass: ThemeIcon.asClassName(Codicon.voiceMode),
16
- tooltip: ( localize(8677, "Set as voice target"))
17
- };
18
- let AgentsVoiceSessionsPicker = class AgentsVoiceSessionsPicker {
19
- constructor(
20
- onSelectTarget,
21
- agentSessionsService,
22
- quickInputService,
23
- instantiationService
24
- ) {
25
- this.onSelectTarget = onSelectTarget;
26
- this.agentSessionsService = agentSessionsService;
27
- this.quickInputService = quickInputService;
28
- this.instantiationService = instantiationService;
29
- this.sorter = ( new AgentSessionsSorter());
30
- }
31
- async show() {
32
- const disposables = ( new DisposableStore());
33
- const picker = disposables.add(this.quickInputService.createQuickPick({
34
- useSeparators: true
35
- }));
36
- const filter = disposables.add(this.instantiationService.createInstance(AgentSessionsFilter, {}));
37
- picker.items = this.createPickerItems(filter);
38
- picker.placeholder = ( localize(8678, "Select a session for voice input"));
39
- disposables.add(picker.onDidAccept(() => {
40
- const pick = picker.selectedItems[0];
41
- if (pick) {
42
- this.onSelectTarget(pick.session.resource);
43
- }
44
- picker.hide();
45
- }));
46
- disposables.add(picker.onDidTriggerItemButton(e => {
47
- if (e.button === setTargetButton) {
48
- this.onSelectTarget(e.item.session.resource);
49
- picker.hide();
50
- }
51
- }));
52
- disposables.add(picker.onDidHide(() => disposables.dispose()));
53
- picker.show();
54
- }
55
- createPickerItems(filter) {
56
- const sessions = this.agentSessionsService.model.sessions.filter(session => shouldShowSessionInPicker(session, filter)).sort(this.sorter.compare.bind(this.sorter));
57
- const items = [];
58
- const groupedSessions = groupAgentSessionsByDate(sessions);
59
- for (const group of ( groupedSessions.values())) {
60
- if (group.sessions.length > 0) {
61
- items.push({
62
- type: "separator",
63
- label: group.label
64
- });
65
- items.push(...group.sessions.map(session => this.toPickItem(session)));
66
- }
67
- }
68
- return items;
69
- }
70
- toPickItem(session) {
71
- const description = getSessionDescription(session);
72
- return {
73
- id: ( session.resource.toString()),
74
- label: session.label,
75
- tooltip: session.tooltip,
76
- description,
77
- iconClass: ThemeIcon.asClassName(session.icon),
78
- buttons: [setTargetButton],
79
- session
80
- };
81
- }
82
- };
83
- AgentsVoiceSessionsPicker = ( __decorate([( __param(1, IAgentSessionsService)), ( __param(2, IQuickInputService)), ( __param(3, IInstantiationService))], AgentsVoiceSessionsPicker));
84
-
85
- export { AgentsVoiceSessionsPicker };
@@ -1,200 +0,0 @@
1
- import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
3
- import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
- import { type SessionRowData, type SessionGroupData } from "./components/sessionListComponent.js";
5
- import type { VoiceState, IPendingToolConfirmation, ITranscriptTurn } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController";
6
- import { IVoiceGlowColors } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceGlow";
7
- import { GlowThemeKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceGlowController";
8
- export interface VoiceWidgetCallbacks {
9
- readonly copilotIconSrc: string;
10
- readonly hideDisconnect: boolean;
11
- connect(): void;
12
- disconnect(): void;
13
- pttDown(): void;
14
- pttUp(): void;
15
- /** Toggle whether the microphone is muted while keeping the session connected. */
16
- toggleMute(): void;
17
- closeWindow(): void;
18
- stopPlayback(): void;
19
- openSession(resource: URI): void;
20
- stopSession(resource: URI): void;
21
- cancelSession(resource: URI): void;
22
- /** Select a session as the transcription target. */
23
- selectTargetSession(resource: URI | undefined): void;
24
- /** Create a new session and set it as transcription target. */
25
- newSessionAsTarget(): void;
26
- getAnalyserNode(): AnalyserNode | null;
27
- onResize(): void;
28
- openPttKeySettings(): void;
29
- /**
30
- * Show the Voice Mode context menu (Configure, Select Microphone, Disable
31
- * Voice Mode) anchored at the triggering event. Wired to a right-click /
32
- * context-menu gesture on the voice mode mic icon.
33
- */
34
- showVoiceContextMenu(e: MouseEvent): void;
35
- /** Optional — when provided, header renders a "popout" button. */
36
- openPopout?(): void;
37
- /** Submit user feedback. Returns success/failure. */
38
- submitFeedback(feedbackText: string): Promise<{
39
- ok: boolean;
40
- error?: string;
41
- }>;
42
- /** Called when the user dismisses the onboarding card. */
43
- onOnboardingCompleted?(): void;
44
- /**
45
- * Optional — when provided, the expand chevron opens this picker instead of
46
- * the inline session list. Used by the floating window to show the agent
47
- * sessions quickpick with a "set as voice target" action.
48
- */
49
- showSessionsPicker?(): void;
50
- /** Active theme kind, for the ambient voice glow. */
51
- getGlowTheme(): GlowThemeKind;
52
- /** Theme-derived per-state accents for the ambient voice glow. */
53
- getGlowColors(): IVoiceGlowColors;
54
- /** Whether the user has asked for reduced motion. */
55
- isMotionReduced(): boolean;
56
- /** Fires when the color theme changes, so the glow can re-derive its accents. */
57
- readonly onDidChangeGlowTheme: Event<void>;
58
- }
59
- /**
60
- * Host-configuration for the widget. Defaults match the floating aux-window
61
- * (the original consumer); the chatViewPane voice bar overrides everything.
62
- */
63
- export interface VoiceWidgetOptions {
64
- /** Fixed pixel width (legacy aux-window behavior) or `'auto'` to flow. */
65
- readonly width?: number | "auto";
66
- /** Whether the header is a drag handle (aux window only). */
67
- readonly draggable?: boolean;
68
- /** Show the close X in the header. */
69
- readonly showClose?: boolean;
70
- /** Show the expand/collapse chevron + session list. */
71
- readonly showExpandChevron?: boolean;
72
- /** Show the centered "Tap to start / Listening / Speaking" status label. */
73
- readonly showStatusText?: boolean;
74
- /**
75
- * Show the working/needs-input/done counter rows and the "No active sessions"
76
- * placeholder. The speaking-session pill and tool confirmations remain
77
- * visible regardless, since they are important interactive context.
78
- */
79
- readonly showStatusCounters?: boolean;
80
- /** Show the copilot icon at the start of the header. */
81
- readonly showCopilotIcon?: boolean;
82
- /** Center the Connect button horizontally instead of pushing it to the right. */
83
- readonly centerConnectButton?: boolean;
84
- /** Optional title rendered above the header row (e.g. "VOICE CHAT"). */
85
- readonly title?: string;
86
- /** Optional subtitle rendered next to the title. */
87
- readonly subtitle?: string;
88
- /** Set tabIndex=0 on the widget root and wire Space-key PTT. */
89
- readonly focusable?: boolean;
90
- /** Whether to show the onboarding card (first-time experience). */
91
- readonly showOnboarding?: boolean;
92
- /**
93
- * When true, the onboarding card re-appears every time the widget enters
94
- * a fully-disconnected state (i.e. not connected, not connecting, and not
95
- * auto-reconnecting). When false (default), onboarding follows the legacy
96
- * first-time-only behavior gated by ``showOnboarding`` + manual dismiss.
97
- */
98
- readonly reshowOnboardingOnDisconnect?: boolean;
99
- /**
100
- * Initial expanded state of the widget — when true the session list and
101
- * expanded session details are shown by default. Defaults to false
102
- * (collapsed) to match the legacy floating aux-window behavior.
103
- */
104
- readonly defaultExpanded?: boolean;
105
- /**
106
- * When true, renders the widget in a chat-input-box style layout:
107
- * a rounded bordered container for transcript/placeholder text with a
108
- * toolbar row below for action icons. Matches the chat panel input box
109
- * appearance.
110
- */
111
- readonly inputBoxLayout?: boolean;
112
- }
113
- export declare class AgentsVoiceWidget extends Disposable {
114
- private readonly container;
115
- private readonly callbacks;
116
- private readonly _isConnected;
117
- private readonly _isConnecting;
118
- private readonly _isReconnecting;
119
- private readonly _isMuted;
120
- private readonly _voiceState;
121
- private readonly _expanded;
122
- private readonly _workingCount;
123
- private readonly _needsInputCount;
124
- private readonly _doneCount;
125
- private readonly _pendingToolConfirmations;
126
- private readonly _speakingSession;
127
- private readonly _speakingSessionLabel;
128
- private readonly _sessions;
129
- private readonly _sessionGroups;
130
- private readonly _selectedTargetSession;
131
- private readonly _transcriptTurns;
132
- private readonly _pttKeyLabel;
133
- private readonly _statusText;
134
- private readonly _popoutAvailable;
135
- private readonly _feedbackDialogState;
136
- private readonly _showOnboarding;
137
- private readonly _onboardingPendingConnect;
138
- private readonly _shouldShowExpanded;
139
- private readonly _headerComponent;
140
- private readonly _onboardingComponent;
141
- private readonly _feedbackDialogComponent;
142
- private readonly _voiceBarComponent;
143
- private readonly _transcriptComponent;
144
- private readonly _inputBoxTranscriptComponent;
145
- private readonly _statusRowsComponent;
146
- private readonly _sessionListComponent;
147
- private readonly _rootDiv;
148
- private readonly _glowDiv;
149
- private readonly _titleRow;
150
- private readonly _contentDiv;
151
- private readonly _statusTextDiv;
152
- private readonly _sessionListWrapper;
153
- private readonly _expandSpacer;
154
- private readonly _chevronWrapper;
155
- private readonly _chevronIcon;
156
- private readonly _inputBoxContainer;
157
- private readonly _inputBoxPlaceholder;
158
- private readonly _inputBoxToolbar;
159
- private readonly _inputBoxMicBtn;
160
- private readonly _inputBoxConnIndicator;
161
- private readonly _inputBoxMuteBtn;
162
- /** Ambient voice glow on the input box (input-box layout only). */
163
- private readonly _glowController;
164
- private readonly _inputBoxFeedbackBtn;
165
- private readonly _inputBoxSessionsBtn;
166
- private readonly _inputBoxCloseBtn;
167
- private readonly _options;
168
- constructor(container: HTMLElement, callbacks: VoiceWidgetCallbacks, options?: VoiceWidgetOptions);
169
- private _updateDOM;
170
- private _updateDOMInputBoxLayout;
171
- private _updateDOMClassicLayout;
172
- setConnected(connected: boolean): void;
173
- setConnecting(connecting: boolean): void;
174
- setReconnecting(reconnecting: boolean): void;
175
- setMuted(muted: boolean): void;
176
- setVoiceState(state: VoiceState): void;
177
- setStatusCounts(working: number, needsInput: number, done: number): void;
178
- setPendingToolConfirmations(confirmations: readonly IPendingToolConfirmation[]): void;
179
- setSpeakingSession(session: URI | undefined, label: string | undefined): void;
180
- setSessions(sessions: readonly SessionRowData[]): void;
181
- setSelectedTargetSession(resource: URI | undefined): void;
182
- setSessionGroups(groups: readonly SessionGroupData[] | undefined): void;
183
- setPttKeyLabel(label: string | undefined): void;
184
- setTranscriptTurns(turns: readonly ITranscriptTurn[]): void;
185
- setStatusText(text: string): void;
186
- setPopoutAvailable(available: boolean): void;
187
- private _toggleFeedbackDialog;
188
- private _dismissOnboarding;
189
- /**
190
- * Externally trigger onboarding dismissal (e.g. when the user connects
191
- * from the floating mini-view, the main panel should drop the onboarding).
192
- * Also clears any in-flight pending-connect state so a later success
193
- * doesn't re-trigger the completion callback.
194
- */
195
- dismissOnboarding(): void;
196
- private _submitFeedback;
197
- private _animationFrameId;
198
- private _startWaveformAnimation;
199
- private _stopWaveformAnimation;
200
- }