@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.
- 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,66 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
3
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
|
-
import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
5
|
-
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
6
|
-
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
7
|
-
import { IChatSpeechToTextService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/speechToText/chatSpeechToTextService.service";
|
|
8
|
-
import { IVoiceInputModeService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.service";
|
|
9
|
-
/**
|
|
10
|
-
* The two mutually-exclusive voice input modes exposed in the chat input.
|
|
11
|
-
* - `dictation`: speech-to-text that types the recognized words into the input box.
|
|
12
|
-
* - `voice`: the live, conversational Voice Mode agent (real-time listen + talk-back).
|
|
13
|
-
*/
|
|
14
|
-
export type VoiceInputMode = "dictation" | "voice";
|
|
15
|
-
/**
|
|
16
|
-
* Simulated voice-cell visual states for development/preview, so the UI can be
|
|
17
|
-
* inspected without a live backend connection. `undefined` = use real state.
|
|
18
|
-
*/
|
|
19
|
-
export type SimulatedVoiceState = "off" | "connecting" | "idle" | "listening" | "speaking" | "dictating";
|
|
20
|
-
/**
|
|
21
|
-
* The four push-to-talk interaction designs being compared. Each drives its own
|
|
22
|
-
* prototype walkthrough (state sequence + layout + hint) so they can be evaluated
|
|
23
|
-
* side by side without a live backend.
|
|
24
|
-
* - `handsFree`: auto-listen + auto-send; hold a key only to barge in / interrupt.
|
|
25
|
-
* - `keyboardHold`: walkie-talkie — hold a keybinding to talk; button only connects.
|
|
26
|
-
* - `buttonHold`: hold the voice button to talk; a quick tap disconnects.
|
|
27
|
-
* - `clickToggle`: tap the button to start listening, tap again to stop.
|
|
28
|
-
*/
|
|
29
|
-
export type VoiceWalkthroughVersion = "handsFree" | "keyboardHold" | "buttonHold" | "clickToggle";
|
|
30
|
-
/**
|
|
31
|
-
* Which voice input mode is currently selected in the segmented toggle. This is the
|
|
32
|
-
* single source of truth for *which* segment is highlighted — distinct from whether
|
|
33
|
-
* that mode is currently active (listening / connected / speaking).
|
|
34
|
-
*/
|
|
35
|
-
export declare const CHAT_VOICE_INPUT_MODE: RawContextKey<VoiceInputMode>;
|
|
36
|
-
export declare class VoiceInputModeService extends Disposable implements IVoiceInputModeService {
|
|
37
|
-
private readonly storageService;
|
|
38
|
-
readonly _serviceBrand: undefined;
|
|
39
|
-
private readonly _selectedMode;
|
|
40
|
-
readonly selectedMode: IObservable<VoiceInputMode>;
|
|
41
|
-
readonly voiceAvailable: IObservable<boolean>;
|
|
42
|
-
readonly dictationAvailable: IObservable<boolean>;
|
|
43
|
-
readonly handsFree: IObservable<boolean>;
|
|
44
|
-
private readonly _simulatedVoiceState;
|
|
45
|
-
readonly simulatedVoiceState: IObservable<SimulatedVoiceState | undefined>;
|
|
46
|
-
private readonly _simulatedHandsFree;
|
|
47
|
-
readonly simulatedHandsFree: IObservable<boolean | undefined>;
|
|
48
|
-
private readonly _simulatedVersion;
|
|
49
|
-
readonly simulatedVersion: IObservable<VoiceWalkthroughVersion | undefined>;
|
|
50
|
-
private readonly _simulatedHover;
|
|
51
|
-
readonly simulatedHover: IObservable<boolean>;
|
|
52
|
-
private readonly _contextKey;
|
|
53
|
-
constructor(storageService: IStorageService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, chatSpeechToTextService: IChatSpeechToTextService);
|
|
54
|
-
setSelectedMode(mode: VoiceInputMode): void;
|
|
55
|
-
setSimulatedVoiceState(state: SimulatedVoiceState | undefined): void;
|
|
56
|
-
private static readonly WALKTHROUGHS;
|
|
57
|
-
private static readonly WALK_STEP_MS;
|
|
58
|
-
private _walkTimer;
|
|
59
|
-
private _walkIndex;
|
|
60
|
-
private _walkVersion;
|
|
61
|
-
startVoiceStateWalkthrough(version: VoiceWalkthroughVersion): void;
|
|
62
|
-
stepVoiceStateWalkthrough(): void;
|
|
63
|
-
clearSimulation(): void;
|
|
64
|
-
private _stopWalkTimer;
|
|
65
|
-
dispose(): void;
|
|
66
|
-
}
|
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
6
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
|
-
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
|
-
import { RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
-
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
10
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
11
|
-
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
12
|
-
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
13
|
-
import { AGENTS_VOICE_ENTITLED, AgentsVoiceSettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/agentsVoice/common/agentsVoice';
|
|
14
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
15
|
-
import { DictationSettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/speechToText/chatSpeechToTextService';
|
|
16
|
-
import { IChatSpeechToTextService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/speechToText/chatSpeechToTextService.service';
|
|
17
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
18
|
-
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
19
|
-
import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
|
|
20
|
-
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
21
|
-
import { transaction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/transaction';
|
|
22
|
-
|
|
23
|
-
var VoiceInputModeService_1;
|
|
24
|
-
const CHAT_VOICE_INPUT_MODE = new RawContextKey("chatVoiceInputMode", "voice", {
|
|
25
|
-
type: "string",
|
|
26
|
-
description: ( localize(
|
|
27
|
-
13636,
|
|
28
|
-
"The currently selected voice input mode in the chat input (dictation or voice)."
|
|
29
|
-
))
|
|
30
|
-
});
|
|
31
|
-
const STORAGE_KEY = "chat.voiceInputMode.selected";
|
|
32
|
-
let VoiceInputModeService = class VoiceInputModeService extends Disposable {
|
|
33
|
-
static {
|
|
34
|
-
VoiceInputModeService_1 = this;
|
|
35
|
-
}
|
|
36
|
-
constructor(
|
|
37
|
-
storageService,
|
|
38
|
-
configurationService,
|
|
39
|
-
contextKeyService,
|
|
40
|
-
chatSpeechToTextService
|
|
41
|
-
) {
|
|
42
|
-
super();
|
|
43
|
-
this.storageService = storageService;
|
|
44
|
-
this._simulatedVoiceState = observableValue(this, undefined);
|
|
45
|
-
this.simulatedVoiceState = this._simulatedVoiceState;
|
|
46
|
-
this._simulatedHandsFree = observableValue(this, undefined);
|
|
47
|
-
this.simulatedHandsFree = this._simulatedHandsFree;
|
|
48
|
-
this._simulatedVersion = observableValue(this, undefined);
|
|
49
|
-
this.simulatedVersion = this._simulatedVersion;
|
|
50
|
-
this._simulatedHover = observableValue(this, false);
|
|
51
|
-
this.simulatedHover = this._simulatedHover;
|
|
52
|
-
this._walkIndex = 0;
|
|
53
|
-
const stored = this.storageService.get(STORAGE_KEY, StorageScope.PROFILE);
|
|
54
|
-
const initial = stored === "dictation" ? "dictation" : "voice";
|
|
55
|
-
this._selectedMode = observableValue(this, initial);
|
|
56
|
-
this.selectedMode = this._selectedMode;
|
|
57
|
-
this.voiceAvailable = observableFromEvent(this, Event.any(
|
|
58
|
-
configurationService.onDidChangeConfiguration,
|
|
59
|
-
contextKeyService.onDidChangeContext
|
|
60
|
-
), () => configurationService.getValue("agents.voice.enabled") === true && ChatContextKeys.enabled.getValue(contextKeyService) === true && AGENTS_VOICE_ENTITLED.evaluate({
|
|
61
|
-
getValue: key => contextKeyService.getContextKeyValue(key)
|
|
62
|
-
}) && configurationService.getValue(AgentsVoiceSettingId.ShowButton) !== false);
|
|
63
|
-
this.dictationAvailable = observableFromEvent(this, Event.any(
|
|
64
|
-
configurationService.onDidChangeConfiguration,
|
|
65
|
-
contextKeyService.onDidChangeContext
|
|
66
|
-
), () => chatSpeechToTextService.isConfigured && configurationService.getValue(DictationSettingId.ShowButton) !== false);
|
|
67
|
-
this.handsFree = observableFromEvent(
|
|
68
|
-
this,
|
|
69
|
-
configurationService.onDidChangeConfiguration,
|
|
70
|
-
() => configurationService.getValue("agents.voice.handsFree") !== false
|
|
71
|
-
);
|
|
72
|
-
this._contextKey = CHAT_VOICE_INPUT_MODE.bindTo(contextKeyService);
|
|
73
|
-
this._register(autorun(reader => {
|
|
74
|
-
this._contextKey.set(this._selectedMode.read(reader));
|
|
75
|
-
}));
|
|
76
|
-
}
|
|
77
|
-
setSelectedMode(mode) {
|
|
78
|
-
if (this._selectedMode.get() === mode) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
this._selectedMode.set(mode, undefined);
|
|
82
|
-
this.storageService.store(STORAGE_KEY, mode, StorageScope.PROFILE, StorageTarget.USER);
|
|
83
|
-
}
|
|
84
|
-
setSimulatedVoiceState(state) {
|
|
85
|
-
this._simulatedVoiceState.set(state, undefined);
|
|
86
|
-
}
|
|
87
|
-
static {
|
|
88
|
-
this.WALKTHROUGHS = {
|
|
89
|
-
handsFree: {
|
|
90
|
-
handsFree: true,
|
|
91
|
-
steps: [{
|
|
92
|
-
state: "off",
|
|
93
|
-
ms: 1600
|
|
94
|
-
}, {
|
|
95
|
-
state: "connecting",
|
|
96
|
-
ms: 1400
|
|
97
|
-
}, {
|
|
98
|
-
state: "idle",
|
|
99
|
-
ms: 1400
|
|
100
|
-
}, {
|
|
101
|
-
state: "listening",
|
|
102
|
-
ms: 2800
|
|
103
|
-
}, {
|
|
104
|
-
state: "speaking",
|
|
105
|
-
ms: 2800
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
state: "listening",
|
|
109
|
-
ms: 1600
|
|
110
|
-
}, {
|
|
111
|
-
state: "speaking",
|
|
112
|
-
ms: 2400
|
|
113
|
-
}, {
|
|
114
|
-
state: "idle",
|
|
115
|
-
ms: 1600
|
|
116
|
-
}, {
|
|
117
|
-
state: "off",
|
|
118
|
-
ms: 1600
|
|
119
|
-
}]
|
|
120
|
-
},
|
|
121
|
-
keyboardHold: {
|
|
122
|
-
handsFree: false,
|
|
123
|
-
steps: [{
|
|
124
|
-
state: "off",
|
|
125
|
-
ms: 1600
|
|
126
|
-
}, {
|
|
127
|
-
state: "connecting",
|
|
128
|
-
ms: 1400
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
state: "idle",
|
|
132
|
-
ms: 2400
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
state: "listening",
|
|
136
|
-
ms: 2800
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
state: "speaking",
|
|
140
|
-
ms: 2800
|
|
141
|
-
}, {
|
|
142
|
-
state: "idle",
|
|
143
|
-
ms: 1800
|
|
144
|
-
}, {
|
|
145
|
-
state: "listening",
|
|
146
|
-
ms: 2600
|
|
147
|
-
}, {
|
|
148
|
-
state: "speaking",
|
|
149
|
-
ms: 2400
|
|
150
|
-
}, {
|
|
151
|
-
state: "idle",
|
|
152
|
-
ms: 1600
|
|
153
|
-
}, {
|
|
154
|
-
state: "off",
|
|
155
|
-
ms: 1600
|
|
156
|
-
}]
|
|
157
|
-
},
|
|
158
|
-
buttonHold: {
|
|
159
|
-
handsFree: false,
|
|
160
|
-
steps: [{
|
|
161
|
-
state: "off",
|
|
162
|
-
ms: 1600
|
|
163
|
-
}, {
|
|
164
|
-
state: "connecting",
|
|
165
|
-
ms: 1400
|
|
166
|
-
}, {
|
|
167
|
-
state: "idle",
|
|
168
|
-
ms: 2200
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
state: "idle",
|
|
172
|
-
hover: true,
|
|
173
|
-
ms: 1800
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
state: "listening",
|
|
177
|
-
ms: 2800
|
|
178
|
-
}, {
|
|
179
|
-
state: "speaking",
|
|
180
|
-
ms: 2800
|
|
181
|
-
}, {
|
|
182
|
-
state: "idle",
|
|
183
|
-
ms: 1800
|
|
184
|
-
}, {
|
|
185
|
-
state: "listening",
|
|
186
|
-
ms: 2600
|
|
187
|
-
}, {
|
|
188
|
-
state: "speaking",
|
|
189
|
-
ms: 2400
|
|
190
|
-
}, {
|
|
191
|
-
state: "idle",
|
|
192
|
-
ms: 1600
|
|
193
|
-
}, {
|
|
194
|
-
state: "off",
|
|
195
|
-
ms: 1600
|
|
196
|
-
}]
|
|
197
|
-
},
|
|
198
|
-
clickToggle: {
|
|
199
|
-
handsFree: false,
|
|
200
|
-
steps: [{
|
|
201
|
-
state: "off",
|
|
202
|
-
ms: 1600
|
|
203
|
-
}, {
|
|
204
|
-
state: "connecting",
|
|
205
|
-
ms: 1400
|
|
206
|
-
}, {
|
|
207
|
-
state: "idle",
|
|
208
|
-
ms: 2000
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
state: "listening",
|
|
212
|
-
ms: 2800
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
state: "idle",
|
|
216
|
-
ms: 1800
|
|
217
|
-
}, {
|
|
218
|
-
state: "listening",
|
|
219
|
-
ms: 2600
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
state: "speaking",
|
|
223
|
-
ms: 2800
|
|
224
|
-
}, {
|
|
225
|
-
state: "listening",
|
|
226
|
-
ms: 1800
|
|
227
|
-
}, {
|
|
228
|
-
state: "idle",
|
|
229
|
-
ms: 1600
|
|
230
|
-
}, {
|
|
231
|
-
state: "off",
|
|
232
|
-
ms: 1600
|
|
233
|
-
}]
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
static {
|
|
238
|
-
this.WALK_STEP_MS = 2400;
|
|
239
|
-
}
|
|
240
|
-
startVoiceStateWalkthrough(version) {
|
|
241
|
-
this.clearSimulation();
|
|
242
|
-
const walkthrough = VoiceInputModeService_1.WALKTHROUGHS[version];
|
|
243
|
-
this._walkVersion = version;
|
|
244
|
-
this._simulatedHandsFree.set(walkthrough.handsFree, undefined);
|
|
245
|
-
this._simulatedVersion.set(version, undefined);
|
|
246
|
-
this._walkIndex = 0;
|
|
247
|
-
const advance = () => {
|
|
248
|
-
const steps = walkthrough.steps;
|
|
249
|
-
const step = steps[this._walkIndex % steps.length];
|
|
250
|
-
transaction(tx => {
|
|
251
|
-
this._simulatedVoiceState.set(step.state, tx);
|
|
252
|
-
this._simulatedHover.set(step.hover ?? false, tx);
|
|
253
|
-
});
|
|
254
|
-
this._walkIndex++;
|
|
255
|
-
this._walkTimer = setTimeout(advance, step.ms ?? VoiceInputModeService_1.WALK_STEP_MS);
|
|
256
|
-
};
|
|
257
|
-
advance();
|
|
258
|
-
}
|
|
259
|
-
stepVoiceStateWalkthrough() {
|
|
260
|
-
this._stopWalkTimer();
|
|
261
|
-
const version = this._walkVersion ?? "keyboardHold";
|
|
262
|
-
const steps = VoiceInputModeService_1.WALKTHROUGHS[version].steps;
|
|
263
|
-
this._walkIndex = this._walkIndex % steps.length;
|
|
264
|
-
const step = steps[this._walkIndex];
|
|
265
|
-
transaction(tx => {
|
|
266
|
-
this._simulatedVersion.set(version, tx);
|
|
267
|
-
this._simulatedHandsFree.set(VoiceInputModeService_1.WALKTHROUGHS[version].handsFree, tx);
|
|
268
|
-
this._simulatedVoiceState.set(step.state, tx);
|
|
269
|
-
this._simulatedHover.set(step.hover ?? false, tx);
|
|
270
|
-
});
|
|
271
|
-
this._walkIndex++;
|
|
272
|
-
}
|
|
273
|
-
clearSimulation() {
|
|
274
|
-
this._stopWalkTimer();
|
|
275
|
-
this._walkIndex = 0;
|
|
276
|
-
this._walkVersion = undefined;
|
|
277
|
-
transaction(tx => {
|
|
278
|
-
this._simulatedVoiceState.set(undefined, tx);
|
|
279
|
-
this._simulatedHandsFree.set(undefined, tx);
|
|
280
|
-
this._simulatedVersion.set(undefined, tx);
|
|
281
|
-
this._simulatedHover.set(false, tx);
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
_stopWalkTimer() {
|
|
285
|
-
if (this._walkTimer !== undefined) {
|
|
286
|
-
clearTimeout(this._walkTimer);
|
|
287
|
-
this._walkTimer = undefined;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
dispose() {
|
|
291
|
-
this._stopWalkTimer();
|
|
292
|
-
super.dispose();
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
VoiceInputModeService = VoiceInputModeService_1 = ( __decorate([( __param(0, IStorageService)), ( __param(1, IConfigurationService)), ( __param(2, IContextKeyService)), ( __param(3, IChatSpeechToTextService))], VoiceInputModeService));
|
|
296
|
-
|
|
297
|
-
export { CHAT_VOICE_INPUT_MODE, VoiceInputModeService };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
3
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
-
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
5
|
-
import { IVoicePlaybackService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/voicePlaybackService.service";
|
|
6
|
-
export interface IVoicePlaybackEntry {
|
|
7
|
-
readonly transcript: string;
|
|
8
|
-
readonly timestamp: number;
|
|
9
|
-
}
|
|
10
|
-
export declare class VoicePlaybackService extends Disposable implements IVoicePlaybackService {
|
|
11
|
-
private readonly commandService;
|
|
12
|
-
readonly _serviceBrand: undefined;
|
|
13
|
-
private readonly _speakingSession;
|
|
14
|
-
readonly speakingSession: IObservable<URI | undefined>;
|
|
15
|
-
private readonly _lastPlayed;
|
|
16
|
-
private readonly _lastPlayedVersion;
|
|
17
|
-
readonly lastPlayedVersion: IObservable<number>;
|
|
18
|
-
private readonly _pendingResponses;
|
|
19
|
-
private readonly _pendingResponseVersion;
|
|
20
|
-
readonly pendingResponseVersion: IObservable<number>;
|
|
21
|
-
private _activeReplay;
|
|
22
|
-
constructor(commandService: ICommandService);
|
|
23
|
-
notifyPlaybackStart(sessionResource: URI | undefined, transcript: string | undefined): void;
|
|
24
|
-
notifyPlaybackEnd(sessionResource: URI | undefined): void;
|
|
25
|
-
getLastPlayed(sessionResource: URI): IVoicePlaybackEntry | undefined;
|
|
26
|
-
hasLastPlayed(sessionResource: URI): boolean;
|
|
27
|
-
setPendingResponse(sessionResource: URI, pending: boolean): void;
|
|
28
|
-
hasPendingResponse(sessionResource: URI): boolean;
|
|
29
|
-
replay(sessionResource: URI): Promise<void>;
|
|
30
|
-
stop(sessionResource?: URI): void;
|
|
31
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
4
|
-
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { ResourceMap, ResourceSet } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
6
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
7
|
-
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
8
|
-
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
9
|
-
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
10
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
11
|
-
import { IVoicePlaybackService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/voicePlaybackService.service';
|
|
12
|
-
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
13
|
-
|
|
14
|
-
let VoicePlaybackService = class VoicePlaybackService extends Disposable {
|
|
15
|
-
constructor(commandService) {
|
|
16
|
-
super();
|
|
17
|
-
this.commandService = commandService;
|
|
18
|
-
this._speakingSession = observableValue(this, undefined);
|
|
19
|
-
this.speakingSession = this._speakingSession;
|
|
20
|
-
this._lastPlayed = ( new ResourceMap());
|
|
21
|
-
this._lastPlayedVersion = observableValue(this, 0);
|
|
22
|
-
this.lastPlayedVersion = this._lastPlayedVersion;
|
|
23
|
-
this._pendingResponses = ( new ResourceSet());
|
|
24
|
-
this._pendingResponseVersion = observableValue(this, 0);
|
|
25
|
-
this.pendingResponseVersion = this._pendingResponseVersion;
|
|
26
|
-
this._register(toDisposable(() => {
|
|
27
|
-
this._activeReplay?.dispose(true);
|
|
28
|
-
this._activeReplay = undefined;
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
notifyPlaybackStart(sessionResource, transcript) {
|
|
32
|
-
this._speakingSession.set(sessionResource, undefined);
|
|
33
|
-
if (sessionResource && transcript) {
|
|
34
|
-
this._lastPlayed.set(sessionResource, {
|
|
35
|
-
transcript,
|
|
36
|
-
timestamp: Date.now()
|
|
37
|
-
});
|
|
38
|
-
this._lastPlayedVersion.set(this._lastPlayedVersion.get() + 1, undefined);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
notifyPlaybackEnd(sessionResource) {
|
|
42
|
-
const current = this._speakingSession.get();
|
|
43
|
-
if (!current) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (!sessionResource || ( current.toString()) === ( sessionResource.toString())) {
|
|
47
|
-
this._speakingSession.set(undefined, undefined);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
getLastPlayed(sessionResource) {
|
|
51
|
-
return this._lastPlayed.get(sessionResource);
|
|
52
|
-
}
|
|
53
|
-
hasLastPlayed(sessionResource) {
|
|
54
|
-
return ( this._lastPlayed.has(sessionResource));
|
|
55
|
-
}
|
|
56
|
-
setPendingResponse(sessionResource, pending) {
|
|
57
|
-
let changed;
|
|
58
|
-
if (pending) {
|
|
59
|
-
changed = !( this._pendingResponses.has(sessionResource));
|
|
60
|
-
if (changed) {
|
|
61
|
-
this._pendingResponses.add(sessionResource);
|
|
62
|
-
}
|
|
63
|
-
} else {
|
|
64
|
-
changed = this._pendingResponses.delete(sessionResource);
|
|
65
|
-
}
|
|
66
|
-
if (changed) {
|
|
67
|
-
this._pendingResponseVersion.set(this._pendingResponseVersion.get() + 1, undefined);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
hasPendingResponse(sessionResource) {
|
|
71
|
-
return ( this._pendingResponses.has(sessionResource));
|
|
72
|
-
}
|
|
73
|
-
async replay(sessionResource) {
|
|
74
|
-
const entry = this._lastPlayed.get(sessionResource);
|
|
75
|
-
if (!entry || !entry.transcript) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
this._activeReplay?.dispose(true);
|
|
79
|
-
this._activeReplay = ( new CancellationTokenSource());
|
|
80
|
-
this._speakingSession.set(sessionResource, undefined);
|
|
81
|
-
await this.commandService.executeCommand("_chat.voicePlayback.replay", {
|
|
82
|
-
sessionId: ( sessionResource.toString()),
|
|
83
|
-
transcript: entry.transcript
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
stop(sessionResource) {
|
|
87
|
-
this._activeReplay?.dispose(true);
|
|
88
|
-
this._activeReplay = undefined;
|
|
89
|
-
void this.commandService.executeCommand("_chat.voicePlayback.stop", {
|
|
90
|
-
sessionId: sessionResource?.toString()
|
|
91
|
-
});
|
|
92
|
-
const current = this._speakingSession.get();
|
|
93
|
-
if (!sessionResource || current?.toString() === ( sessionResource.toString())) {
|
|
94
|
-
this._speakingSession.set(undefined, undefined);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
VoicePlaybackService = ( __decorate([( __param(0, ICommandService))], VoicePlaybackService));
|
|
99
|
-
function tryParseSessionResource(sessionId) {
|
|
100
|
-
if (!sessionId) {
|
|
101
|
-
return undefined;
|
|
102
|
-
}
|
|
103
|
-
try {
|
|
104
|
-
return ( URI.parse(sessionId));
|
|
105
|
-
} catch {
|
|
106
|
-
return undefined;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
CommandsRegistry.registerCommand("_chat.voicePlayback.notifyStart", (accessor, payload) => {
|
|
110
|
-
const service = accessor.get(IVoicePlaybackService);
|
|
111
|
-
service.notifyPlaybackStart(tryParseSessionResource(payload?.sessionId), payload?.transcript);
|
|
112
|
-
});
|
|
113
|
-
CommandsRegistry.registerCommand("_chat.voicePlayback.notifyEnd", (accessor, payload) => {
|
|
114
|
-
const service = accessor.get(IVoicePlaybackService);
|
|
115
|
-
service.notifyPlaybackEnd(tryParseSessionResource(payload?.sessionId));
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
export { VoicePlaybackService };
|