@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,138 +0,0 @@
1
-
2
- import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
- import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
- import { createToolConfirmations } from './confirmationComponent.js';
5
- import { FONT_SIZE } from './tokens.js';
6
-
7
- function createStatusRow() {
8
- const row = $("div");
9
- row.style.cssText = "display:flex;align-items:center;gap:6px;height:20px;flex-shrink:0;padding-left:2px;";
10
- const dot = $("span");
11
- dot.style.cssText = "width:7px;height:7px;border-radius:50%;flex-shrink:0;";
12
- const text = $("span");
13
- text.style.cssText = `font-size:${FONT_SIZE.body};color:var(--vscode-descriptionForeground);`;
14
- row.append(dot, text);
15
- return {
16
- element: row,
17
- update(dotColor, count, label) {
18
- if (count <= 0) {
19
- row.style.display = "none";
20
- return;
21
- }
22
- row.style.display = "flex";
23
- dot.style.background = dotColor;
24
- text.textContent = `${count} session${count > 1 ? "s" : ""} ${label}`;
25
- }
26
- };
27
- }
28
- function createStatusRows() {
29
- const container = $("div");
30
- container.style.cssText = "display:flex;flex-direction:column;";
31
- const inner = $("div");
32
- inner.style.cssText = "display:flex;flex-direction:column;";
33
- const speakingRow = $("div");
34
- speakingRow.style.cssText = "display:flex;align-items:center;gap:6px;height:20px;flex-shrink:0;padding-left:2px;";
35
- const speakingDot = $("span");
36
- speakingDot.style.cssText = "width:7px;height:7px;border-radius:50%;background:var(--vscode-agentsVoice-speakingForeground);flex-shrink:0;animation:agents-voice-pulse 1.4s ease-in-out infinite;";
37
- const speakingLabel = $("span");
38
- speakingLabel.style.cssText = `font-size:${FONT_SIZE.body};color:var(--vscode-agentsVoice-speakingForeground);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`;
39
- speakingRow.append(speakingDot, speakingLabel);
40
- let speakingClickHandler;
41
- let speakingKeyHandler;
42
- const workingRow = createStatusRow();
43
- const needsInputRow = createStatusRow();
44
- const doneRow = createStatusRow();
45
- const noSessionsRow = $("div");
46
- noSessionsRow.style.cssText = "display:flex;align-items:center;height:20px;flex-shrink:0;padding-left:2px;";
47
- const noSessionsText = $("span");
48
- noSessionsText.style.cssText = `font-size:${FONT_SIZE.body};color:var(--vscode-descriptionForeground);font-style:italic;`;
49
- noSessionsText.textContent = ( localize(8742, "No active sessions"));
50
- noSessionsRow.append(noSessionsText);
51
- inner.append(
52
- speakingRow,
53
- workingRow.element,
54
- needsInputRow.element,
55
- doneRow.element,
56
- noSessionsRow
57
- );
58
- const confirmations = createToolConfirmations();
59
- const pulseStyle = $("style");
60
- pulseStyle.textContent = "@keyframes agents-voice-pulse{0%,100%{opacity:1}50%{opacity:0.4}}";
61
- container.append(inner, confirmations.element, pulseStyle);
62
- return {
63
- element: container,
64
- update(props) {
65
- const showCounters = props.showCounters ?? true;
66
- const hasAny = props.workingCount > 0 || props.needsInputCount > 0 || props.doneCount > 0 || !!props.speakingSessionLabel;
67
- if (props.speakingSessionLabel) {
68
- speakingRow.style.display = "flex";
69
- speakingLabel.textContent = props.speakingSessionLabel;
70
- if (speakingClickHandler) {
71
- speakingRow.removeEventListener("click", speakingClickHandler);
72
- speakingClickHandler = undefined;
73
- }
74
- if (speakingKeyHandler) {
75
- speakingRow.removeEventListener("keydown", speakingKeyHandler);
76
- speakingKeyHandler = undefined;
77
- }
78
- if (props.speakingSessionResource) {
79
- const resource = props.speakingSessionResource;
80
- speakingClickHandler = () => props.onOpenSession(resource);
81
- speakingKeyHandler = e => {
82
- if (e.key === "Enter" || e.key === " ") {
83
- e.preventDefault();
84
- props.onOpenSession(resource);
85
- }
86
- };
87
- speakingRow.addEventListener("click", speakingClickHandler);
88
- speakingRow.addEventListener("keydown", speakingKeyHandler);
89
- speakingRow.style.cursor = "pointer";
90
- speakingRow.tabIndex = 0;
91
- speakingRow.setAttribute("role", "button");
92
- speakingRow.title = ( localize(8743, "Jump to session"));
93
- } else {
94
- speakingRow.style.cursor = "";
95
- speakingRow.removeAttribute("tabIndex");
96
- speakingRow.removeAttribute("role");
97
- speakingRow.title = "";
98
- }
99
- } else {
100
- speakingRow.style.display = "none";
101
- if (speakingClickHandler) {
102
- speakingRow.removeEventListener("click", speakingClickHandler);
103
- speakingClickHandler = undefined;
104
- }
105
- if (speakingKeyHandler) {
106
- speakingRow.removeEventListener("keydown", speakingKeyHandler);
107
- speakingKeyHandler = undefined;
108
- }
109
- speakingRow.style.cursor = "";
110
- speakingRow.removeAttribute("tabIndex");
111
- speakingRow.removeAttribute("role");
112
- speakingRow.title = "";
113
- }
114
- if (showCounters) {
115
- workingRow.update("var(--vscode-charts-green)", props.workingCount, ( localize(8744, "working")));
116
- needsInputRow.update(
117
- "var(--vscode-editorWarning-foreground)",
118
- props.needsInputCount,
119
- ( localize(8745, "needs attention"))
120
- );
121
- doneRow.update("var(--vscode-disabledForeground)", props.doneCount, ( localize(8746, "done")));
122
- noSessionsRow.style.display = !hasAny ? "flex" : "none";
123
- } else {
124
- workingRow.element.style.display = "none";
125
- needsInputRow.element.style.display = "none";
126
- doneRow.element.style.display = "none";
127
- noSessionsRow.style.display = "none";
128
- }
129
- confirmations.update({
130
- confirmations: props.pendingToolConfirmations,
131
- onOpenSession: props.onOpenSession
132
- });
133
- pulseStyle.style.display = props.speakingSessionLabel ? "" : "none";
134
- }
135
- };
136
- }
137
-
138
- export { createStatusRows };
@@ -1,32 +0,0 @@
1
- /**
2
- * Visual design tokens for the agentsVoice floating pane.
3
- * Centralize sizes and colors so every component pulls from the same palette.
4
- */
5
- export declare const FONT_SIZE: {
6
- readonly micro: "10px";
7
- readonly body: "12px";
8
- readonly base: "13px";
9
- readonly iconSm: "14px";
10
- readonly iconMd: "16px";
11
- };
12
- export declare const FONT_WEIGHT: {
13
- readonly normal: "400";
14
- readonly medium: "500";
15
- readonly semibold: "600";
16
- readonly bold: "700";
17
- };
18
- export declare const COLOR: {
19
- readonly userTranscript: "rgb(88,166,255)";
20
- readonly assistantTranscript: "rgb(163,113,247)";
21
- };
22
- /**
23
- * Add Enter/Space keyboard activation to a non-native button element.
24
- * Required for elements with role="button" + tabindex="0".
25
- */
26
- export declare function addKeyboardActivation(el: HTMLElement): void;
27
- /**
28
- * Whether a mouse event is a secondary-click / context-menu gesture (right-click,
29
- * or Ctrl-click on macOS) rather than a primary press. Used to keep such gestures
30
- * from starting/stopping push-to-talk when the mic also opens a context menu.
31
- */
32
- export declare function isSecondaryPointerGesture(e: MouseEvent): boolean;
@@ -1,29 +0,0 @@
1
-
2
- import { isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
3
-
4
- const FONT_SIZE = {
5
- micro: '10px',
6
- body: '12px',
7
- base: '13px',
8
- iconSm: '14px',
9
- iconMd: '16px',
10
- };
11
- const FONT_WEIGHT = {
12
- medium: '500'};
13
- const COLOR = {
14
- userTranscript: 'rgb(88,166,255)',
15
- assistantTranscript: 'rgb(163,113,247)',
16
- };
17
- function addKeyboardActivation(el) {
18
- el.addEventListener('keydown', (e) => {
19
- if (e.key === 'Enter' || e.key === ' ') {
20
- e.preventDefault();
21
- el.click();
22
- }
23
- });
24
- }
25
- function isSecondaryPointerGesture(e) {
26
- return e.button !== 0 || (isMacintosh && e.ctrlKey);
27
- }
28
-
29
- export { COLOR, FONT_SIZE, FONT_WEIGHT, addKeyboardActivation, isSecondaryPointerGesture };
@@ -1,13 +0,0 @@
1
- import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import type { ITranscriptTurn } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController";
3
- export interface TranscriptProps {
4
- readonly turns: readonly ITranscriptTurn[];
5
- readonly chatStyle?: boolean;
6
- /** When true, keep the scroll anchored to the top instead of the bottom. */
7
- readonly scrollToTop?: boolean;
8
- }
9
- export interface TranscriptComponent {
10
- readonly element: HTMLElement;
11
- update(props: TranscriptProps): void;
12
- }
13
- export declare function createTranscript(): TranscriptComponent & IDisposable;
@@ -1,108 +0,0 @@
1
-
2
- import { $, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
- import { DomScrollableElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
4
- import { ScrollbarVisibility } from '@codingame/monaco-vscode-api/vscode/vs/base/common/scrollable';
5
- import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
6
- import { COLOR, FONT_SIZE } from './tokens.js';
7
-
8
- const MAX_LINES = 10;
9
- const LINE_HEIGHT = 1.4;
10
- const MAX_HEIGHT = `${MAX_LINES * LINE_HEIGHT}em`;
11
- const USER_CONTAINER_STYLE = ["overflow-x:hidden"].join(";");
12
- const ASSISTANT_STYLE = [
13
- "overflow-x:hidden",
14
- "white-space:pre-wrap",
15
- `color:${COLOR.assistantTranscript}`
16
- ].join(";");
17
- const TRANSCRIPT_CSS = `
18
- @keyframes textPulse { 0%,100%{opacity:0.9} 50%{opacity:0.4} }
19
- `;
20
- function createUserTurn(turn, chatStyle) {
21
- const wrapper = $("div.voice-user-transcript");
22
- wrapper.style.cssText = USER_CONTAINER_STYLE;
23
- const userColor = chatStyle ? "var(--vscode-foreground)" : COLOR.userTranscript;
24
- const inner = $("div");
25
- if (!turn.isPartial) {
26
- const span = $("span");
27
- span.style.color = userColor;
28
- span.textContent = turn.text;
29
- inner.append(span);
30
- } else {
31
- const unsure = turn.committed ? turn.text.slice(turn.committed.length) : turn.text;
32
- if (turn.committed) {
33
- const committedSpan = $("span");
34
- committedSpan.style.color = userColor;
35
- committedSpan.textContent = turn.committed;
36
- inner.append(committedSpan);
37
- }
38
- const unsureSpan = $("span");
39
- unsureSpan.style.cssText = `color:${userColor};opacity:0.6;font-style:italic;animation:textPulse 1.5s ease-in-out infinite;`;
40
- unsureSpan.textContent = unsure;
41
- const cursor = $("span");
42
- cursor.style.fontStyle = "normal";
43
- cursor.textContent = "▉";
44
- unsureSpan.append(cursor);
45
- inner.append(unsureSpan);
46
- }
47
- wrapper.append(inner);
48
- return wrapper;
49
- }
50
- function createAssistantTurn(turn, chatStyle) {
51
- const el = $("div");
52
- if (chatStyle) {
53
- el.style.cssText = ASSISTANT_STYLE.replace(
54
- `color:${COLOR.assistantTranscript}`,
55
- "color:var(--vscode-descriptionForeground)"
56
- );
57
- } else {
58
- el.style.cssText = ASSISTANT_STYLE;
59
- }
60
- el.textContent = turn.text;
61
- return el;
62
- }
63
- function createTranscript() {
64
- const store = ( new DisposableStore());
65
- const container = $("div");
66
- container.style.cssText = `display:flex;flex-direction:column;gap:2px;padding:2px 2px 4px;font-size:${FONT_SIZE.body};line-height:${LINE_HEIGHT};word-break:break-word;max-height:${MAX_HEIGHT};overflow:hidden;box-sizing:border-box;`;
67
- const scrollable = store.add(( new DomScrollableElement(container, {
68
- horizontal: ScrollbarVisibility.Hidden,
69
- vertical: ScrollbarVisibility.Auto
70
- })));
71
- const wrapper = scrollable.getDomNode();
72
- wrapper.style.maxHeight = MAX_HEIGHT;
73
- const style = $("style");
74
- style.textContent = TRANSCRIPT_CSS;
75
- wrapper.prepend(style);
76
- return {
77
- element: wrapper,
78
- update(props) {
79
- let visible = props.turns.filter(t => t.text.length > 0 || (t.speaker === "user" && t.isPartial));
80
- if (visible.length >= 2 && visible[visible.length - 1].speaker === "assistant" && visible[visible.length - 2].speaker === "assistant") {
81
- visible = [visible[visible.length - 1]];
82
- }
83
- if (props.chatStyle && visible.length > 0) {
84
- visible = [visible[visible.length - 1]];
85
- }
86
- clearNode(container);
87
- if (visible.length === 0) {
88
- container.style.display = "none";
89
- return;
90
- }
91
- container.style.display = "flex";
92
- for (const turn of visible) {
93
- container.append(
94
- turn.speaker === "user" ? createUserTurn(turn, props.chatStyle) : createAssistantTurn(turn, props.chatStyle)
95
- );
96
- }
97
- scrollable.scanDomNode();
98
- scrollable.setScrollPosition({
99
- scrollTop: props.scrollToTop ? 0 : container.scrollHeight
100
- });
101
- },
102
- dispose() {
103
- store.dispose();
104
- }
105
- };
106
- }
107
-
108
- export { createTranscript };
@@ -1,13 +0,0 @@
1
- import type { VoiceState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController";
2
- import type { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
- export interface VoiceBarProps {
4
- readonly voiceState: VoiceState;
5
- readonly speakingSessionLabel: string | undefined;
6
- readonly speakingSession: URI | undefined;
7
- readonly onStopSpeech: () => void;
8
- }
9
- export interface VoiceBarComponent {
10
- readonly element: HTMLElement;
11
- update(props: VoiceBarProps): void;
12
- }
13
- export declare function createVoiceBar(): VoiceBarComponent;
@@ -1,63 +0,0 @@
1
-
2
- import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
- import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
- import { FONT_SIZE, addKeyboardActivation } from './tokens.js';
5
-
6
- function createVoiceBar() {
7
- const container = $("div");
8
- container.style.cssText = "display:flex;align-items:center;gap:6px;height:24px;padding:4px 2px;border-bottom:1px solid var(--vscode-panel-border);flex-shrink:0;";
9
- const dot = $("span");
10
- dot.style.cssText = "width:7px;height:7px;border-radius:50%;flex-shrink:0;";
11
- const label = $("span");
12
- label.style.cssText = `font-size:${FONT_SIZE.body};color:var(--vscode-foreground);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;`;
13
- const waveform = $("div");
14
- waveform.style.cssText = "display:flex;align-items:center;gap:2px;height:16px;flex:0 0 auto;";
15
- for (let i = 0; i < 6; i++) {
16
- const bar = $("div");
17
- bar.style.cssText = "width:2px;height:3px;border-radius:1px;background:var(--vscode-editorWidget-background);transition:height 0.05s ease;";
18
- waveform.append(bar);
19
- }
20
- const stopBtn = $("span.codicon.codicon-debug-stop");
21
- stopBtn.role = "button";
22
- stopBtn.tabIndex = 0;
23
- stopBtn.ariaLabel = ( localize(8747, "Stop speech"));
24
- stopBtn.style.cssText = `font-size:${FONT_SIZE.body};color:var(--vscode-editorError-foreground);cursor:pointer;-webkit-app-region:no-drag;padding:2px;`;
25
- addKeyboardActivation(stopBtn);
26
- container.append(dot, label, waveform, stopBtn);
27
- let currentStopHandler;
28
- return {
29
- element: container,
30
- update(props) {
31
- const isSpeaking = props.voiceState === "speaking";
32
- const isListening = props.voiceState === "listening";
33
- if ((isSpeaking && props.speakingSession) || (!isSpeaking && !isListening)) {
34
- container.style.display = "none";
35
- if (currentStopHandler) {
36
- stopBtn.removeEventListener("click", currentStopHandler);
37
- currentStopHandler = undefined;
38
- }
39
- return;
40
- }
41
- container.style.display = "flex";
42
- dot.style.background = isSpeaking ? "var(--vscode-charts-green)" : "var(--vscode-editorInfo-foreground)";
43
- label.textContent = isSpeaking ? (props.speakingSessionLabel || ( localize(8748, "Speaking..."))) : ( localize(8749, "Listening"));
44
- stopBtn.style.display = isSpeaking ? "" : "none";
45
- if (isSpeaking) {
46
- if (currentStopHandler) {
47
- stopBtn.removeEventListener("click", currentStopHandler);
48
- }
49
- currentStopHandler = e => {
50
- e.preventDefault();
51
- e.stopPropagation();
52
- props.onStopSpeech();
53
- };
54
- stopBtn.addEventListener("click", currentStopHandler);
55
- } else if (currentStopHandler) {
56
- stopBtn.removeEventListener("click", currentStopHandler);
57
- currentStopHandler = undefined;
58
- }
59
- }
60
- };
61
- }
62
-
63
- export { createVoiceBar };
@@ -1,252 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- /*
7
- * The Voice Mode introduction card.
8
- *
9
- * One layout at every width - a vertical stack - because the chat panel is
10
- * routinely ~250px and a card that re-tiers as it narrows never settles into a
11
- * rhythm. Stacked, the spacing is identical everywhere and nothing has to be
12
- * dropped, scrolled or clipped.
13
- *
14
- * Spacing rhythm, all from the shared spacing ramp:
15
- * 12px card padding (size120)
16
- * 8px between tiers, and voices to close (size80)
17
- * 2px between voice chips, and title to its sentence (size20)
18
- * 2/4px inside a voice chip (size20 / size40)
19
- */
20
-
21
- /* --- Copy --- */
22
-
23
- .voice-mode-onboarding-copy {
24
- display: flex;
25
- flex-direction: column;
26
- gap: var(--vscode-spacing-size20);
27
- min-width: 0;
28
- /* Clear of the pinned close button. */
29
- padding-right: var(--vscode-spacing-size240);
30
- }
31
-
32
- /* --- Waveform --- */
33
-
34
- /*
35
- * The waveform gets a row of its own. Earlier it sat behind the copy, which
36
- * forced a scrim over it, which erased it - a waveform competing with a
37
- * paragraph is a fight neither side wins. With its own space it needs no mask,
38
- * no scrim and no dimming, so it can simply be seen.
39
- */
40
- .voice-mode-onboarding-wave {
41
- height: 34px;
42
- pointer-events: none;
43
- /* Eases into the card's edges rather than being sliced off at them. */
44
- mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent 100%);
45
- }
46
-
47
- /*
48
- * Monochrome, and it is this declaration that decides the tier: the canvas
49
- * paints its bars in its own computed `color`, the same way the toolbar
50
- * waveform uses `currentColor`. It sits at the description's tier because it is
51
- * ambient - present, but never louder than the choice below it - and taking a
52
- * theme token means it stays legible in light, dark and high-contrast alike.
53
- */
54
- .voice-mode-onboarding-canvas {
55
- display: block;
56
- width: 100%;
57
- height: 100%;
58
- color: var(--vscode-descriptionForeground);
59
- }
60
-
61
- .monaco-workbench .voice-mode-onboarding-microphone-icon.codicon[class*='codicon-'] {
62
- flex-shrink: 0;
63
- font-size: var(--vscode-codiconFontSize-compact);
64
- line-height: 1;
65
- color: var(--vscode-descriptionForeground);
66
- }
67
-
68
- /* --- Voices and confirmation --- */
69
-
70
- .voice-mode-onboarding-actions {
71
- display: flex;
72
- align-items: center;
73
- gap: var(--vscode-spacing-size80);
74
- }
75
-
76
- /* --- Voice options --- */
77
-
78
- .voice-mode-onboarding-voices-label {
79
- flex: 0 0 auto;
80
- color: var(--vscode-descriptionForeground);
81
- font-size: var(--vscode-fontSize-label2);
82
- white-space: nowrap;
83
- }
84
-
85
- /*
86
- * The options are buttons and have to look like it. Bare text gave no sign it
87
- * could be clicked, let alone that clicking would speak *and* stick.
88
- */
89
- .voice-mode-onboarding-voices {
90
- display: flex;
91
- align-items: center;
92
- flex-wrap: wrap;
93
- gap: var(--vscode-spacing-size20);
94
- flex: 1 1 auto;
95
- min-width: 0;
96
- }
97
-
98
- .voice-mode-onboarding-voice {
99
- display: flex;
100
- align-items: center;
101
- gap: var(--vscode-spacing-size20);
102
- padding: var(--vscode-spacing-size20) var(--vscode-spacing-size40);
103
- border: var(--vscode-strokeThickness) solid var(--vscode-input-border, var(--vscode-widget-border, transparent));
104
- border-radius: var(--vscode-cornerRadius-medium);
105
- background-color: var(--vscode-button-secondaryBackground);
106
- color: var(--vscode-button-secondaryForeground);
107
- font-size: var(--vscode-fontSize-label2);
108
- white-space: nowrap;
109
- cursor: pointer;
110
- transition: background-color 100ms ease-out, border-color 100ms ease-out;
111
- }
112
-
113
- .voice-mode-onboarding-voice:hover {
114
- background-color: var(--vscode-button-secondaryHoverBackground);
115
- border-color: var(--vscode-agentsVoice-speakingForeground);
116
- }
117
-
118
- /* Pressed feedback, so a click is felt as well as seen. */
119
- .voice-mode-onboarding-voice:active {
120
- transform: translateY(1px);
121
- }
122
-
123
- .voice-mode-onboarding-voice:focus-visible {
124
- outline: var(--vscode-strokeThickness) solid var(--vscode-focusBorder);
125
- outline-offset: 2px;
126
- }
127
-
128
- .voice-mode-onboarding-voice.selected {
129
- background-color: var(--vscode-list-activeSelectionBackground);
130
- border-color: var(--vscode-focusBorder);
131
- color: var(--vscode-list-activeSelectionForeground);
132
- font-weight: var(--vscode-fontWeight-semiBold);
133
- }
134
-
135
- /* --- The icon carries the story --- */
136
-
137
- /*
138
- * One slot, three states. Play says "this will speak", the bars say "it is
139
- * speaking", the check says "this one is yours". Stacking them in a fixed-size
140
- * slot means swapping state never reflows the row.
141
- */
142
- /*
143
- * The slot collapses to nothing at rest and slides open on hover or once the
144
- * voice is chosen - the same move the Voice Mode pill makes with its own cells.
145
- * That is what lets four named buttons share one row in a narrow panel.
146
- */
147
- .voice-mode-onboarding-voice-icon {
148
- position: relative;
149
- display: flex;
150
- align-items: center;
151
- justify-content: center;
152
- flex-shrink: 0;
153
- width: 0;
154
- height: var(--vscode-codiconFontSize-compact);
155
- overflow: hidden;
156
- transition: width 0.2s cubic-bezier(0.2, 0.9, 0.2, 1), margin-right 0.2s cubic-bezier(0.2, 0.9, 0.2, 1);
157
- }
158
-
159
- .voice-mode-onboarding-voice:hover .voice-mode-onboarding-voice-icon,
160
- .voice-mode-onboarding-voice:focus-visible .voice-mode-onboarding-voice-icon,
161
- .voice-mode-onboarding-voice.selected .voice-mode-onboarding-voice-icon,
162
- .voice-mode-onboarding-voice.playing .voice-mode-onboarding-voice-icon {
163
- width: var(--vscode-codiconFontSize-compact);
164
- margin-right: var(--vscode-spacing-size20);
165
- }
166
-
167
- .voice-mode-onboarding-voice-icon > * {
168
- position: absolute;
169
- display: flex;
170
- align-items: center;
171
- justify-content: center;
172
- opacity: 0;
173
- transition: opacity 120ms ease-out;
174
- }
175
-
176
- .monaco-workbench .voice-mode-onboarding-voice-icon .codicon[class*='codicon-'] {
177
- font-size: var(--vscode-codiconFontSize-compact);
178
- line-height: 1;
179
- color: inherit;
180
- }
181
-
182
- /* Idle: the play glyph, brightening on hover. */
183
- .voice-mode-onboarding-voice .voice-mode-onboarding-voice-idle {
184
- opacity: 0.6;
185
- }
186
-
187
- .voice-mode-onboarding-voice:hover .voice-mode-onboarding-voice-idle {
188
- opacity: 1;
189
- }
190
-
191
- /* Chosen: the check replaces play, so the row says which voice is in use. */
192
- .voice-mode-onboarding-voice.selected .voice-mode-onboarding-voice-idle {
193
- opacity: 0;
194
- }
195
-
196
- .voice-mode-onboarding-voice.selected .voice-mode-onboarding-voice-chosen {
197
- opacity: 1;
198
- }
199
-
200
- /* Speaking: miniature bars, the same instrument as the big waveform. */
201
- .voice-mode-onboarding-voice.playing .voice-mode-onboarding-voice-idle,
202
- .voice-mode-onboarding-voice.playing .voice-mode-onboarding-voice-chosen {
203
- opacity: 0;
204
- }
205
-
206
- .voice-mode-onboarding-voice.playing .voice-mode-onboarding-voice-bars {
207
- opacity: 1;
208
- }
209
-
210
- .voice-mode-onboarding-voice-bars {
211
- gap: 1px;
212
- height: var(--vscode-codiconFontSize-compact);
213
- }
214
-
215
- .voice-mode-onboarding-voice-bar {
216
- width: 1.5px;
217
- height: 4px;
218
- border-radius: 1px;
219
- background: currentColor;
220
- }
221
-
222
- .monaco-workbench.monaco-enable-motion .voice-mode-onboarding-voice.playing .voice-mode-onboarding-voice-bar {
223
- animation: voice-mode-onboarding-eq 0.85s ease-in-out infinite;
224
- }
225
-
226
- .monaco-workbench.monaco-enable-motion .voice-mode-onboarding-voice.playing .voice-mode-onboarding-voice-bar:nth-child(2) {
227
- animation-delay: 0.12s;
228
- }
229
-
230
- .monaco-workbench.monaco-enable-motion .voice-mode-onboarding-voice.playing .voice-mode-onboarding-voice-bar:nth-child(3) {
231
- animation-delay: 0.24s;
232
- }
233
-
234
- /* Mirrors `chat-voice-input-mode-eq`, so the two waveforms move alike. */
235
- @keyframes voice-mode-onboarding-eq {
236
- 0%, 100% { height: 3px; }
237
- 50% { height: 10px; }
238
- }
239
-
240
- /* --- Reduced motion --- */
241
-
242
- /*
243
- * The keyframe animations above are already opt-in via `.monaco-enable-motion`,
244
- * but transitions are not: without this the icon slot would still slide open
245
- * over 200ms and its glyphs still crossfade, which is exactly the movement the
246
- * preference asks us not to make. Colour changes are left alone - they convey
247
- * state rather than motion.
248
- */
249
- .monaco-reduce-motion .voice-mode-onboarding-voice-icon,
250
- .monaco-reduce-motion .voice-mode-onboarding-voice-icon > * {
251
- transition: none;
252
- }