@codingame/monaco-vscode-chat-service-override 38.0.7 → 38.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.js +0 -53
- package/index.js +0 -3
- package/package.json +5 -5
- package/session.js +0 -3
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHostContribution.js +1 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHost.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostChatContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +1 -1
- package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.d.ts +0 -135
- package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.js +0 -510
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.d.ts +0 -22
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.js +0 -21
- package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.d.ts +0 -273
- package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.js +0 -61
- package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.d.ts +0 -7
- package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.js +0 -17
- package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.d.ts +0 -12
- package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.js +0 -48
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.d.ts +0 -8
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.js +0 -11
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.d.ts +0 -114
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.js +0 -141
- package/vscode/src/vs/platform/agentHost/common/taskEventReplay.d.ts +0 -48
- package/vscode/src/vs/platform/agentHost/common/taskEventReplay.js +0 -238
- package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.d.ts +0 -102
- package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.js +0 -260
- package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.d.ts +0 -102
- package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.js +0 -115
- package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.d.ts +0 -46
- package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.js +0 -92
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -9
- package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.d.ts +0 -14
- package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.js +0 -385
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.d.ts +0 -67
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.js +0 -695
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.d.ts +0 -4
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.js +0 -39
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.d.ts +0 -1
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.js +0 -59
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.d.ts +0 -1
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.js +0 -83
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.d.ts +0 -87
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.js +0 -176
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.d.ts +0 -422
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.js +0 -2444
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.d.ts +0 -91
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.js +0 -620
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.d.ts +0 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.js +0 -5
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.d.ts +0 -46
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.js +0 -321
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.d.ts +0 -104
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.js +0 -345
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +0 -611
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +0 -85
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +0 -200
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +0 -981
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +0 -206
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +0 -368
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +0 -57
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +0 -98
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +0 -186
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +0 -116
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +0 -226
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +0 -138
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +0 -29
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.js +0 -108
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +0 -63
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/media/voiceModeOnboarding.css +0 -252
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +0 -178
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.d.ts +0 -47
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +0 -322
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.d.ts +0 -146
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +0 -890
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.d.ts +0 -132
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +0 -237
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +0 -120
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +0 -234
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +0 -164
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.js +0 -122
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.d.ts +0 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.js +0 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.js +0 -561
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.d.ts +0 -133
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.js +0 -1176
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.js +0 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.d.ts +0 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.js +0 -220
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.js +0 -184
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.js +0 -165
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.d.ts +0 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.js +0 -162
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.js +0 -129
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.d.ts +0 -166
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.js +0 -838
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.js +0 -604
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.d.ts +0 -289
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.js +0 -497
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.js +0 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.d.ts +0 -73
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.js +0 -398
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.js +0 -296
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.d.ts +0 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.js +0 -361
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.js +0 -198
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +0 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +0 -871
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.d.ts +0 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +0 -297
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +0 -31
- 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
|
-
}
|