@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.
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,178 +0,0 @@
1
-
2
- import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
3
- import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
- import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
5
- import { Action2, registerAction2, MenuId, MenuRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
6
- import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
7
- import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
8
- import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
9
- import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
10
- import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
11
- import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
12
- import { ViewPaneContainer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
13
- import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
14
- import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
15
- import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
16
- import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
17
- import { VoiceTranscriptsViewPane } from './voiceTranscriptsView.js';
18
-
19
- const CONTAINER_ID = "workbench.view.voiceTranscriptsContainer";
20
- const VIEW_ID = VoiceTranscriptsViewPane.ID;
21
- const SHOW_VIEW_CONTEXT_KEY = new RawContextKey("voiceTranscripts.showView", false);
22
- const voiceTranscriptsIcon = registerIcon("voice-transcripts-view-icon", Codicon.history, ( localize(8750, "View icon of the Voice Transcripts view.")));
23
- const viewContainersRegistry = ( Registry.as(Extensions.ViewContainersRegistry));
24
- const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
25
- const container = viewContainersRegistry.registerViewContainer({
26
- id: CONTAINER_ID,
27
- title: ( localize2(8751, "Voice Transcripts")),
28
- icon: voiceTranscriptsIcon,
29
- ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [CONTAINER_ID, {
30
- mergeViewWithContainerWhenSingleView: true
31
- }])),
32
- storageId: CONTAINER_ID,
33
- hideIfEmpty: true,
34
- order: 10
35
- }, ViewContainerLocation.Sidebar);
36
- const viewDescriptor = {
37
- id: VIEW_ID,
38
- name: ( localize2(8752, "Voice Transcripts")),
39
- containerIcon: voiceTranscriptsIcon,
40
- ctorDescriptor: ( new SyncDescriptor(VoiceTranscriptsViewPane)),
41
- canToggleVisibility: true,
42
- canMoveView: true,
43
- when: SHOW_VIEW_CONTEXT_KEY,
44
- openCommandActionDescriptor: {
45
- id: "voiceTranscripts.focus",
46
- title: ( localize2(8753, "Focus Voice Transcripts View"))
47
- }
48
- };
49
- viewsRegistry.registerViews([viewDescriptor], container);
50
- const SHOW_VIEW_COMMAND_ID = "agentsVoice.showTranscripts";
51
- class ShowVoiceTranscriptsAction extends Action2 {
52
- constructor() {
53
- super({
54
- id: SHOW_VIEW_COMMAND_ID,
55
- title: ( localize2(8754, "Show Voice Transcripts")),
56
- f1: true,
57
- category: ( localize2(8755, "Agents Voice")),
58
- precondition: ChatContextKeys.enabled
59
- });
60
- }
61
- async run(accessor) {
62
- const contextKeyService = accessor.get(IContextKeyService);
63
- const viewsService = accessor.get(IViewsService);
64
- SHOW_VIEW_CONTEXT_KEY.bindTo(contextKeyService).set(true);
65
- await viewsService.openView(VIEW_ID, true);
66
- }
67
- }
68
- registerAction2(ShowVoiceTranscriptsAction);
69
- const VIEW_TITLE_WHEN = ( ContextKeyExpr.equals("view", VIEW_ID));
70
- class RefreshVoiceTranscriptsAction extends Action2 {
71
- static {
72
- this.ID = "voiceTranscripts.refresh";
73
- }
74
- constructor() {
75
- super({
76
- id: RefreshVoiceTranscriptsAction.ID,
77
- title: ( localize2(8756, "Refresh")),
78
- icon: Codicon.refresh,
79
- menu: [{
80
- id: MenuId.ViewTitle,
81
- when: VIEW_TITLE_WHEN,
82
- group: "navigation",
83
- order: 1
84
- }]
85
- });
86
- }
87
- async run(accessor) {
88
- const viewsService = accessor.get(IViewsService);
89
- const view = viewsService.getActiveViewWithId(VIEW_ID);
90
- await view?.refresh();
91
- }
92
- }
93
- class ArchiveAllVoiceTranscriptsAction extends Action2 {
94
- static {
95
- this.ID = "voiceTranscripts.archiveAll";
96
- }
97
- constructor() {
98
- super({
99
- id: ArchiveAllVoiceTranscriptsAction.ID,
100
- title: ( localize2(8757, "Archive All")),
101
- icon: Codicon.archive,
102
- menu: [{
103
- id: MenuId.ViewTitle,
104
- when: VIEW_TITLE_WHEN,
105
- group: "1_actions",
106
- order: 1
107
- }]
108
- });
109
- }
110
- async run(accessor) {
111
- const viewsService = accessor.get(IViewsService);
112
- const view = viewsService.getActiveViewWithId(VIEW_ID);
113
- await view?.archiveAll();
114
- }
115
- }
116
- class DeleteAllVoiceTranscriptsAction extends Action2 {
117
- static {
118
- this.ID = "voiceTranscripts.deleteAll";
119
- }
120
- constructor() {
121
- super({
122
- id: DeleteAllVoiceTranscriptsAction.ID,
123
- title: ( localize2(8758, "Delete All")),
124
- icon: Codicon.trash,
125
- menu: [{
126
- id: MenuId.ViewTitle,
127
- when: VIEW_TITLE_WHEN,
128
- group: "1_actions",
129
- order: 2
130
- }]
131
- });
132
- }
133
- async run(accessor) {
134
- const dialogService = accessor.get(IDialogService);
135
- const viewsService = accessor.get(IViewsService);
136
- const view = viewsService.getActiveViewWithId(VIEW_ID);
137
- if (!view) {
138
- return;
139
- }
140
- const result = await dialogService.confirm({
141
- type: "warning",
142
- message: ( localize(8759, "Delete all voice transcripts?")),
143
- detail: ( localize(
144
- 8760,
145
- "This permanently deletes the local transcript file for your user. There is no server-side copy."
146
- )),
147
- primaryButton: ( localize(8761, "Delete"))
148
- });
149
- if (result.confirmed) {
150
- await view.deleteAll();
151
- }
152
- }
153
- }
154
- registerAction2(RefreshVoiceTranscriptsAction);
155
- registerAction2(ArchiveAllVoiceTranscriptsAction);
156
- registerAction2(DeleteAllVoiceTranscriptsAction);
157
- MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
158
- command: {
159
- id: SHOW_VIEW_COMMAND_ID,
160
- title: ( localize(8762, "Show Voice Transcripts"))
161
- },
162
- when: ( ContextKeyExpr.equals("view", "workbench.panel.chat.view.copilot")),
163
- group: "3_show",
164
- order: 2
165
- });
166
- class VoiceTranscriptsContribution extends Disposable {
167
- static {
168
- this.ID = "workbench.contrib.voiceTranscripts";
169
- }
170
- constructor() {
171
- super();
172
- }
173
- }
174
- registerWorkbenchContribution2(
175
- VoiceTranscriptsContribution.ID,
176
- VoiceTranscriptsContribution,
177
- WorkbenchPhase.AfterRestored
178
- );
@@ -1,47 +0,0 @@
1
- import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
2
- import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
3
- import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
4
- import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
5
- import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
6
- import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
7
- import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
8
- import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
9
- import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
10
- import { ViewPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane";
11
- import { IViewletViewOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewsViewlet";
12
- import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
13
- import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
14
- import { IVoiceSessionController } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.service";
15
- import { IVoiceTranscriptStore } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.service";
16
- /**
17
- * Side-panel view that lists the user's persisted voice-conversation turns,
18
- * grouped by relative time bucket. Display-only — read from the local
19
- * voiceTranscriptStore (JSONL on disk).
20
- */
21
- export declare class VoiceTranscriptsViewPane extends ViewPane {
22
- private readonly voiceTranscriptStore;
23
- private readonly authenticationService;
24
- private readonly voiceSessionController;
25
- private readonly logService;
26
- static readonly ID = "workbench.view.voiceTranscripts";
27
- private contentContainer;
28
- private emptyState;
29
- /** Cached login resolved on first render, refreshed lazily on each refresh(). */
30
- private userLogin;
31
- constructor(options: IViewletViewOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, voiceTranscriptStore: IVoiceTranscriptStore, authenticationService: IAuthenticationService, voiceSessionController: IVoiceSessionController, logService: ILogService);
32
- protected renderBody(container: HTMLElement): void;
33
- protected layoutBody(height: number, width: number): void;
34
- /**
35
- * Re-read the transcript JSONL and re-render. Cheap; the file is text-only
36
- * and bounded by the user's actual usage.
37
- */
38
- refresh(): Promise<void>;
39
- archiveAll(): Promise<void>;
40
- deleteAll(): Promise<void>;
41
- private resolveUserLogin;
42
- private renderEmpty;
43
- private renderTurns;
44
- private renderGroup;
45
- private renderPair;
46
- private renderRow;
47
- }
@@ -1,322 +0,0 @@
1
-
2
- import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { $ as $$1, append, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
- import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
5
- import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
6
- import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
7
- import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
8
- import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
9
- import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
10
- import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
11
- import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
12
- import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
13
- import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
14
- import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
15
- import { ViewPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane';
16
- import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
17
- import { IAuthenticationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service';
18
- import { IVoiceSessionController } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.service';
19
- import { IVoiceTranscriptStore } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.service';
20
- import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
21
-
22
- const $ = $$1;
23
- let VoiceTranscriptsViewPane = class VoiceTranscriptsViewPane extends ViewPane {
24
- static {
25
- this.ID = "workbench.view.voiceTranscripts";
26
- }
27
- constructor(
28
- options,
29
- keybindingService,
30
- contextMenuService,
31
- configurationService,
32
- contextKeyService,
33
- viewDescriptorService,
34
- instantiationService,
35
- openerService,
36
- themeService,
37
- hoverService,
38
- voiceTranscriptStore,
39
- authenticationService,
40
- voiceSessionController,
41
- logService
42
- ) {
43
- super(
44
- options,
45
- keybindingService,
46
- contextMenuService,
47
- configurationService,
48
- contextKeyService,
49
- viewDescriptorService,
50
- instantiationService,
51
- openerService,
52
- themeService,
53
- hoverService
54
- );
55
- this.voiceTranscriptStore = voiceTranscriptStore;
56
- this.authenticationService = authenticationService;
57
- this.voiceSessionController = voiceSessionController;
58
- this.logService = logService;
59
- let lastState;
60
- this._register(autorun(reader => {
61
- const state = this.voiceSessionController.voiceState.read(reader);
62
- const wasMidTurn = lastState === "speaking" || lastState === "processing";
63
- const nowIdle = state === "idle" || state === "listening";
64
- lastState = state;
65
- if (wasMidTurn && nowIdle && this.isBodyVisible()) {
66
- void this.refresh();
67
- }
68
- }));
69
- }
70
- renderBody(container) {
71
- super.renderBody(container);
72
- container.classList.add("voice-transcripts-view");
73
- container.style.display = "flex";
74
- container.style.flexDirection = "column";
75
- container.style.overflow = "hidden";
76
- this.contentContainer = append(container, $(".voice-transcripts-content"));
77
- this.contentContainer.style.flex = "1";
78
- this.contentContainer.style.overflowY = "auto";
79
- this.contentContainer.style.padding = "6px 12px 12px";
80
- this.contentContainer.style.fontSize = "13px";
81
- this.emptyState = append(container, $(".voice-transcripts-empty"));
82
- this.emptyState.style.display = "none";
83
- this.emptyState.style.padding = "24px 16px";
84
- this.emptyState.style.textAlign = "center";
85
- this.emptyState.style.color = "var(--vscode-descriptionForeground)";
86
- this.emptyState.style.fontSize = "13px";
87
- this.emptyState.textContent = ( localize(
88
- 8763,
89
- "No transcripts yet. Start a voice conversation to populate this view."
90
- ));
91
- void this.refresh();
92
- }
93
- layoutBody(height, width) {
94
- super.layoutBody(height, width);
95
- }
96
- async refresh() {
97
- if (!this.contentContainer || !this.emptyState) {
98
- return;
99
- }
100
- try {
101
- this.userLogin = await this.resolveUserLogin();
102
- if (!this.userLogin) {
103
- this.renderEmpty();
104
- return;
105
- }
106
- const turns = await this.voiceTranscriptStore.loadTurns(this.userLogin);
107
- const indexEntry = this.voiceTranscriptStore.getIndexEntry(this.userLogin);
108
- const archiveCutoff = indexEntry?.archivedBefore;
109
- const spoken = turns.filter(t => t.kind === "user_voice" || t.kind === "agent_voice");
110
- const visible = archiveCutoff ? spoken.filter(t => t.timestamp >= archiveCutoff) : spoken;
111
- const archivedCount = spoken.length - visible.length;
112
- if (visible.length === 0 && archivedCount === 0) {
113
- this.renderEmpty();
114
- return;
115
- }
116
- this.renderTurns(visible, archivedCount);
117
- } catch (err) {
118
- this.logService.warn("[voiceTranscripts] refresh failed", err);
119
- this.renderEmpty();
120
- }
121
- }
122
- async archiveAll() {
123
- if (!this.userLogin) {
124
- this.userLogin = await this.resolveUserLogin();
125
- }
126
- if (!this.userLogin) {
127
- return;
128
- }
129
- const cutoff = ( new Date()).toISOString();
130
- try {
131
- await this.voiceTranscriptStore.archiveUpTo(this.userLogin, cutoff);
132
- } catch (err) {
133
- this.logService.warn("[voiceTranscripts] archiveUpTo failed", err);
134
- }
135
- await this.refresh();
136
- }
137
- async deleteAll() {
138
- if (!this.userLogin) {
139
- this.userLogin = await this.resolveUserLogin();
140
- }
141
- if (!this.userLogin) {
142
- return;
143
- }
144
- try {
145
- await this.voiceTranscriptStore.deleteAll(this.userLogin);
146
- } catch (err) {
147
- this.logService.warn("[voiceTranscripts] deleteAll failed", err);
148
- }
149
- await this.refresh();
150
- }
151
- async resolveUserLogin() {
152
- try {
153
- const sessions = await this.authenticationService.getSessions("github");
154
- return sessions[0]?.account.label;
155
- } catch (err) {
156
- this.logService.warn("[voiceTranscripts] failed to resolve github session", err);
157
- return undefined;
158
- }
159
- }
160
- renderEmpty() {
161
- if (!this.contentContainer || !this.emptyState) {
162
- return;
163
- }
164
- clearNode(this.contentContainer);
165
- this.contentContainer.style.display = "none";
166
- this.emptyState.style.display = "block";
167
- }
168
- renderTurns(turns, archivedCount) {
169
- if (!this.contentContainer || !this.emptyState) {
170
- return;
171
- }
172
- this.emptyState.style.display = "none";
173
- this.contentContainer.style.display = "block";
174
- clearNode(this.contentContainer);
175
- const groups = groupTurnsByTime(turns).filter(g => g.pairs.length > 0);
176
- for (const group of groups) {
177
- this.renderGroup(group);
178
- }
179
- if (archivedCount > 0) {
180
- const archived = append(this.contentContainer, $(".voice-transcripts-archived-note"));
181
- archived.style.marginTop = "12px";
182
- archived.style.fontSize = "11px";
183
- archived.style.color = "var(--vscode-descriptionForeground)";
184
- archived.style.fontStyle = "italic";
185
- archived.textContent = ( localize(
186
- 8764,
187
- "{0} archived turn{1} hidden.",
188
- archivedCount,
189
- archivedCount === 1 ? "" : "s"
190
- ));
191
- }
192
- }
193
- renderGroup(group) {
194
- if (!this.contentContainer) {
195
- return;
196
- }
197
- const groupEl = append(this.contentContainer, $(".voice-transcripts-group"));
198
- groupEl.style.marginBottom = "14px";
199
- const heading = append(groupEl, $(".voice-transcripts-group-heading"));
200
- heading.textContent = group.label;
201
- heading.style.fontSize = "11px";
202
- heading.style.fontWeight = "600";
203
- heading.style.textTransform = "uppercase";
204
- heading.style.letterSpacing = "0.5px";
205
- heading.style.color = "var(--vscode-descriptionForeground)";
206
- heading.style.padding = "4px 0 6px";
207
- heading.style.borderBottom = "1px solid var(--vscode-editorWhitespace-foreground)";
208
- heading.style.marginBottom = "4px";
209
- for (const pair of group.pairs) {
210
- this.renderPair(groupEl, pair);
211
- }
212
- }
213
- renderPair(parent, pair) {
214
- const pairEl = append(parent, $(".voice-transcripts-pair"));
215
- pairEl.style.padding = "6px 0";
216
- pairEl.style.borderBottom = "1px solid var(--vscode-editorWhitespace-foreground)";
217
- const time = append(pairEl, $(".voice-transcripts-time"));
218
- time.textContent = formatTime(pair.timestamp);
219
- time.style.fontSize = "10px";
220
- time.style.color = "var(--vscode-descriptionForeground)";
221
- time.style.marginBottom = "4px";
222
- if (pair.user) {
223
- this.renderRow(pairEl, "You", pair.user.text);
224
- }
225
- if (pair.assistant) {
226
- this.renderRow(pairEl, "Voice", pair.assistant.text);
227
- }
228
- }
229
- renderRow(parent, label, text) {
230
- const row = append(parent, $(".voice-transcripts-row"));
231
- row.style.display = "flex";
232
- row.style.gap = "6px";
233
- row.style.alignItems = "baseline";
234
- row.style.marginBottom = "3px";
235
- row.style.lineHeight = "1.4";
236
- const labelEl = append(row, $("span"));
237
- labelEl.textContent = `${label}:`;
238
- labelEl.style.fontSize = "11px";
239
- labelEl.style.fontWeight = "600";
240
- labelEl.style.color = "var(--vscode-descriptionForeground)";
241
- labelEl.style.flex = "0 0 auto";
242
- labelEl.style.minWidth = "32px";
243
- const textEl = append(row, $("span"));
244
- textEl.textContent = text;
245
- textEl.style.fontSize = "13px";
246
- textEl.style.color = "var(--vscode-foreground)";
247
- textEl.style.whiteSpace = "pre-wrap";
248
- textEl.style.wordBreak = "break-word";
249
- }
250
- };
251
- VoiceTranscriptsViewPane = ( __decorate([( __param(1, IKeybindingService)), ( __param(2, IContextMenuService)), ( __param(3, IConfigurationService)), ( __param(4, IContextKeyService)), ( __param(5, IViewDescriptorService)), ( __param(6, IInstantiationService)), ( __param(7, IOpenerService)), ( __param(8, IThemeService)), ( __param(9, IHoverService)), ( __param(10, IVoiceTranscriptStore)), ( __param(11, IAuthenticationService)), ( __param(12, IVoiceSessionController)), ( __param(13, ILogService))], VoiceTranscriptsViewPane));
252
- function formatTime(timestamp) {
253
- try {
254
- return ( new Date(timestamp)).toLocaleTimeString(undefined, {
255
- hour: "2-digit",
256
- minute: "2-digit"
257
- });
258
- } catch {
259
- return "";
260
- }
261
- }
262
- function startOfDay(d) {
263
- return ( new Date(d.getFullYear(), d.getMonth(), d.getDate()));
264
- }
265
- function groupTurnsByTime(turns) {
266
- if (turns.length === 0) {
267
- return [];
268
- }
269
- const now = ( new Date());
270
- const today = startOfDay(now);
271
- const yesterday = ( new Date(today.getTime() - 24 * 60 * 60 * 1000));
272
- const weekStart = ( new Date(today.getTime() - 7 * 24 * 60 * 60 * 1000));
273
- const monthStart = ( new Date(today.getTime() - 30 * 24 * 60 * 60 * 1000));
274
- const buckets = [{
275
- label: ( localize(8765, "Today")),
276
- pairs: []
277
- }, {
278
- label: ( localize(8766, "Yesterday")),
279
- pairs: []
280
- }, {
281
- label: ( localize(8767, "Earlier this week")),
282
- pairs: []
283
- }, {
284
- label: ( localize(8768, "Earlier this month")),
285
- pairs: []
286
- }, {
287
- label: ( localize(8769, "Older")),
288
- pairs: []
289
- }];
290
- for (const turn of turns) {
291
- const ts = ( new Date(turn.timestamp));
292
- let bucket;
293
- if (ts >= today) {
294
- bucket = buckets[0];
295
- } else if (ts >= yesterday) {
296
- bucket = buckets[1];
297
- } else if (ts >= weekStart) {
298
- bucket = buckets[2];
299
- } else if (ts >= monthStart) {
300
- bucket = buckets[3];
301
- } else {
302
- bucket = buckets[4];
303
- }
304
- const last = bucket.pairs[bucket.pairs.length - 1];
305
- if (turn.role === "user") {
306
- bucket.pairs.push({
307
- user: turn,
308
- timestamp: turn.timestamp
309
- });
310
- } else if (last && !last.assistant) {
311
- last.assistant = turn;
312
- } else {
313
- bucket.pairs.push({
314
- assistant: turn,
315
- timestamp: turn.timestamp
316
- });
317
- }
318
- }
319
- return buckets;
320
- }
321
-
322
- export { VoiceTranscriptsViewPane };