@codingame/monaco-vscode-chat-service-override 37.3.2 → 37.3.4

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 (295) hide show
  1. package/common.js +1 -1
  2. package/package.json +4 -4
  3. package/session.js +5 -2
  4. package/vscode/src/vs/platform/agentHost/browser/nullWslRemoteAgentHostService.d.ts +20 -0
  5. package/vscode/src/vs/platform/agentHost/browser/nullWslRemoteAgentHostService.js +33 -0
  6. package/vscode/src/vs/sessions/browser/parts/mobile/contributions/mobileDiffView.js +7 -7
  7. package/vscode/src/vs/sessions/browser/parts/mobile/contributions/mobileMultiDiffView.js +8 -8
  8. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +3 -3
  9. package/vscode/src/vs/sessions/contrib/chat/browser/branchChatSessionAction.js +2 -2
  10. package/vscode/src/vs/sessions/contrib/chat/browser/btwSlashCommand.contribution.js +6 -6
  11. package/vscode/src/vs/sessions/contrib/chat/browser/chat.contribution.js +52 -52
  12. package/vscode/src/vs/sessions/contrib/chat/browser/newSessionFolderQuickPickAction.js +4 -4
  13. package/vscode/src/vs/sessions/contrib/chat/browser/openSessionLinkOpener.contribution.js +1 -1
  14. package/vscode/src/vs/sessions/contrib/chat/browser/runScriptAction.js +49 -49
  15. package/vscode/src/vs/sessions/contrib/chat/browser/runScriptCustomTaskWidget.js +21 -21
  16. package/vscode/src/vs/sessions/contrib/chat/browser/sessionTurnChanges.js +5 -5
  17. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.js +66 -66
  18. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostAgentPicker.js +1 -1
  19. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSettings.contribution.js +2 -2
  20. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSettingsFileSystemProvider.js +4 -4
  21. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentSessionSettings.contribution.js +2 -2
  22. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentSessionSettingsFileSystemProvider.js +4 -4
  23. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/openAgentHostStateFileAction.js +1 -1
  24. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/branchPicker.js +5 -5
  25. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.js +2 -2
  26. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.js +6 -6
  27. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/mobilePermissionPicker.contribution.js +2 -2
  28. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/modePicker.js +3 -3
  29. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/sandboxPicker.js +4 -4
  30. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.js +1 -1
  31. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/hostFilter.contribution.js +1 -1
  32. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/hostFilterActionViewItem.js +11 -11
  33. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/manageRemoteAgentHosts.js +6 -6
  34. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/mobileHostFilterActionViewItem.js +11 -11
  35. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHost.contribution.js +16 -16
  36. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js +90 -90
  37. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostCustomizationHarness.js +4 -4
  38. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/tunnelAgentHost.contribution.js +1 -1
  39. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/wslAgentHost.contribution.d.ts +1 -1
  40. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/wslAgentHost.contribution.js +2 -2
  41. package/vscode/src/vs/sessions/contrib/sessions/browser/mobile/mobileOverlayContribution.js +3 -3
  42. package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +2 -2
  43. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +2 -2
  44. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +28 -28
  45. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +2 -2
  46. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +18 -18
  47. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +3 -3
  48. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +3 -3
  49. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +6 -6
  50. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +11 -11
  51. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +11 -11
  52. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +9 -9
  53. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +5 -5
  54. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +2 -2
  55. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +13 -13
  56. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +7 -7
  57. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +28 -28
  58. package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +1 -1
  59. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +18 -18
  60. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
  61. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +93 -93
  62. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  63. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
  64. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
  65. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +7 -7
  66. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +7 -7
  67. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  68. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.js +7 -7
  69. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
  70. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  71. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
  72. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +12 -12
  73. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
  74. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +14 -14
  75. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  76. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +15 -15
  77. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  78. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
  79. package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +32 -32
  80. package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.js +6 -6
  81. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.js +7 -7
  82. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +2 -2
  83. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
  84. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +12 -12
  85. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +15 -15
  86. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.js +3 -3
  87. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.js +2 -2
  88. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +2 -2
  89. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +7 -7
  90. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +1 -1
  91. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +5 -5
  92. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.js +4 -4
  93. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.js +22 -22
  94. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.js +19 -19
  95. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.js +1 -1
  96. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.js +2 -2
  97. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.js +4 -4
  98. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.js +4 -4
  99. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.js +1 -1
  100. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.js +2 -2
  101. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.js +4 -4
  102. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +1 -1
  103. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +50 -50
  104. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +3 -3
  105. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  106. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
  107. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
  108. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
  109. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +22 -22
  110. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  111. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  112. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessionsConfiguration.js +3 -3
  113. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +44 -44
  114. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.js +6 -6
  115. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.js +9 -9
  116. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +1 -1
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +344 -344
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +1 -1
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +38 -38
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +124 -124
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +72 -72
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +1 -1
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.js +4 -4
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +32 -20
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +22 -22
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +12 -12
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +36 -36
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.js +41 -41
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +2 -2
  153. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
  154. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
  155. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
  156. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
  157. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.js +12 -12
  158. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.js +1 -1
  159. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.js +1 -1
  160. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.js +35 -35
  161. package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.js +1 -1
  162. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +25 -25
  163. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  164. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +2 -2
  165. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +18 -18
  166. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
  167. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
  168. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +26 -26
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +16 -16
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +20 -20
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +10 -10
  172. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
  173. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
  174. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +7 -7
  175. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
  176. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +5 -5
  177. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +5 -5
  178. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
  179. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
  180. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.js +6 -6
  181. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +6 -6
  182. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +27 -27
  183. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
  184. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
  185. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +2 -2
  186. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  187. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.js +2 -2
  188. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  189. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  190. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  191. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  192. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  193. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimeline.contribution.js +5 -5
  194. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.js +4 -4
  195. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.js +4 -4
  196. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.js +3 -3
  197. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.js +1 -1
  198. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.js +3 -3
  199. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
  200. package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +10 -10
  201. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
  202. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +25 -25
  203. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +8 -8
  204. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +7 -7
  205. package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +2 -2
  206. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  207. package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +1 -1
  208. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.js +17 -17
  209. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.js +15 -15
  210. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +11 -11
  211. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +1 -1
  212. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +10 -10
  213. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +1 -1
  214. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +3 -3
  215. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
  216. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
  217. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +11 -11
  218. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
  219. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +8 -8
  220. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
  221. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +12 -12
  222. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
  223. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +13 -13
  224. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +12 -12
  225. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
  226. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
  227. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +154 -154
  228. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
  229. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +7 -7
  230. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +2 -2
  231. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +3 -3
  232. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +4 -4
  233. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
  234. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  235. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +10 -10
  236. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +10 -10
  237. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +1 -1
  238. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
  239. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
  240. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.js +1 -1
  241. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
  242. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  243. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  244. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
  245. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
  246. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  247. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  248. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +10 -10
  249. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  250. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
  251. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
  252. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
  253. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
  254. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
  255. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
  256. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
  257. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  258. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
  259. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  260. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
  261. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +3 -3
  262. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +4 -4
  263. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +73 -73
  264. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +10 -10
  265. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
  266. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
  267. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
  268. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  269. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +4 -4
  270. package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.js +3 -3
  271. package/vscode/src/vs/platform/agentHost/common/wslRemoteAgentHost.service.d.ts +0 -51
  272. package/vscode/src/vs/platform/agentHost/common/wslRemoteAgentHost.service.js +0 -6
  273. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -9
  274. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.d.ts +0 -104
  275. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.js +0 -301
  276. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.d.ts +0 -518
  277. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.js +0 -3121
  278. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/mobilePermissionPicker.d.ts +0 -25
  279. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/mobilePermissionPicker.js +0 -97
  280. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/permissionPicker.d.ts +0 -135
  281. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/permissionPicker.js +0 -521
  282. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.d.ts +0 -166
  283. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.js +0 -586
  284. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxConnectionCustomization.d.ts +0 -15
  285. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxConnectionCustomization.js +0 -47
  286. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxReadOnlySessionHandler.d.ts +0 -45
  287. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxReadOnlySessionHandler.js +0 -109
  288. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.d.ts +0 -49
  289. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.js +0 -69
  290. package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.d.ts +0 -112
  291. package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +0 -670
  292. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.d.ts +0 -132
  293. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.js +0 -446
  294. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostUsageSidecar.d.ts +0 -183
  295. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostUsageSidecar.js +0 -218
@@ -1,518 +0,0 @@
1
- import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
- import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
3
- import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
4
- import { IObservable, ISettableObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
5
- import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
6
- import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
7
- import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
8
- import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
9
- import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
10
- import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
11
- import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
12
- import { AgentSessionTarget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions";
13
- import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
14
- import { IChatSessionProviderOptionItem, SessionType } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
15
- import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
16
- import { AutomationModelConfiguration } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/automations/browser/automationModelConfiguration";
17
- import { ChatModelSource, ISession, IChat, ISessionWorkspace, ISideChatSelection, SessionStatus, IGitHubInfo, ISessionType, ISessionWorkspaceBrowseAction, ISessionFileChange, IChatCheckpoints, ISessionChangesSummary } from "@codingame/monaco-vscode-api/vscode/vs/sessions/services/sessions/common/session";
18
- import { ChatPermissionLevel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
19
- import { IAutomationSessionConfiguration, IDeleteChatOptions, ISendRequestOptions, ISessionChangeEvent, ISessionModelPickerOptions, ISessionModelsSnapshot, ISessionsProvider, ISessionsProviderCreateSessionOptions } from "@codingame/monaco-vscode-api/vscode/vs/sessions/services/sessions/common/sessionsProvider";
20
- import { ISessionOptionGroup } from "../../../chat/browser/newSession.js";
21
- import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service";
22
- import { IChatMode } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes";
23
- import { IChatModeService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes.service";
24
- import { ILanguageModelsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service";
25
- import { IGitRepository } from "@codingame/monaco-vscode-extensions-service-override/vscode/vs/workbench/contrib/git/common/gitService";
26
- import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
27
- import { IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries";
28
- import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
29
- import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
30
- import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
31
- import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
32
- import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
33
- import { IGitHubService } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/github/browser/githubService.service";
34
- import { IPullRequestIconCache } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/github/browser/pullRequestIconCache.service";
35
- import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
36
- import { IAgentHostEnablementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentHostEnablementService.service";
37
- import { CloudSandboxAgentHostContribution } from "../../remoteAgentHost/browser/cloudSandboxAgentHostContribution.js";
38
- import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
39
- import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
40
- /** Copilot Cloud session type - cloud-hosted agent. */
41
- export declare const CopilotCloudSessionType: ISessionType;
42
- export type IsolationMode = "worktree" | "workspace";
43
- export interface ICopilotChatSession {
44
- /** Globally unique session ID (`providerId:localId`). */
45
- readonly sessionId: string;
46
- /** Resource URI identifying this session. */
47
- readonly resource: URI;
48
- /** ID of the provider that owns this session. */
49
- readonly providerId: string;
50
- /** Session type ID (e.g., 'copilot-cli', 'copilot-cloud', 'local'). */
51
- readonly sessionType: typeof SessionType[keyof typeof SessionType] | string;
52
- /** Icon for this session. */
53
- readonly icon: ThemeIcon;
54
- /** When the session was created. */
55
- readonly createdAt: Date;
56
- /** Workspace this session operates on. */
57
- readonly workspace: IObservable<ISessionWorkspace | undefined>;
58
- /** Session display title (changes when auto-titled or renamed). */
59
- readonly title: IObservable<string>;
60
- /** When the session was last updated. */
61
- readonly updatedAt: IObservable<Date>;
62
- /** Current session status. */
63
- readonly status: IObservable<SessionStatus>;
64
- /** Summary of file changes produced by the session. */
65
- readonly changesSummary?: IObservable<ISessionChangesSummary | undefined>;
66
- /** File changes produced by the session. */
67
- readonly changes: IObservable<readonly ISessionFileChange[]>;
68
- /** Currently selected model identifier. */
69
- readonly modelId: IObservable<string | undefined>;
70
- readonly modelSource: IObservable<ChatModelSource | undefined>;
71
- /** Currently selected mode identifier and kind. */
72
- readonly mode: IObservable<{
73
- readonly id: string;
74
- readonly kind: string;
75
- } | undefined>;
76
- /** Whether the session is still initializing (e.g., resolving git repository). */
77
- readonly loading: IObservable<boolean>;
78
- /** Whether the session's repository supports worktree-backed operations. */
79
- readonly hasGitRepository?: IObservable<boolean>;
80
- /** Whether the session is archived. */
81
- readonly isArchived: IObservable<boolean>;
82
- /** Whether the session has been read. */
83
- readonly isRead: IObservable<boolean>;
84
- /** Status description shown while the session is active (e.g., current agent action). */
85
- readonly description: IObservable<IMarkdownString | undefined>;
86
- /** Timestamp of when the last agent turn ended, if any. */
87
- readonly lastTurnEnd: IObservable<Date | undefined>;
88
- /** GitHub information associated with this session, if any. */
89
- readonly gitHubInfo: IObservable<IGitHubInfo | undefined>;
90
- /** Checkpoints associated with this session, if any. */
91
- readonly checkpoints: IObservable<IChatCheckpoints | undefined>;
92
- readonly permissionLevel: IObservable<ChatPermissionLevel>;
93
- setPermissionLevel(level: ChatPermissionLevel): void;
94
- readonly initialAutomationSessionConfiguration?: IAutomationSessionConfiguration;
95
- readonly branch: IObservable<string | undefined>;
96
- setBranch(branch: string | undefined): void;
97
- readonly isolationMode: IObservable<IsolationMode | undefined>;
98
- setIsolationMode(mode: IsolationMode): void;
99
- /**
100
- * For cloud sessions: whether the session should run in a GitHub-managed sandbox the client
101
- * drives over the Agent Host Protocol, instead of the server-run cloud agent. Always
102
- * `undefined` for session kinds that have no such choice.
103
- */
104
- readonly useSandbox: IObservable<boolean | undefined>;
105
- setUseSandbox(useSandbox: boolean): void;
106
- setModelId(modelId: string | undefined, source: ChatModelSource): void;
107
- setMode(chatMode: IChatMode | undefined): void;
108
- setOption?(optionId: string, value: IChatSessionProviderOptionItem | string): void;
109
- readonly gitRepository?: IGitRepository;
110
- readonly branches: IObservable<readonly string[]>;
111
- /**
112
- * Settable observable holding the {@link IChat} representation of this chat.
113
- * For committed chats, the value is stable.
114
- */
115
- readonly mainChat: ISettableObservable<IChat>;
116
- }
117
- /** Provider ID for the Copilot Chat Sessions provider. */
118
- export declare const COPILOT_PROVIDER_ID = "default-copilot";
119
- /** Setting key controlling whether the Copilot provider supports multiple chats per session. */
120
- export declare const COPILOT_MULTI_CHAT_SETTING = "sessions.github.copilot.multiChatSessions";
121
- /**
122
- * Remote new session for Cloud agent sessions.
123
- * Implements {@link ICopilotChatSession} (session facade) and provides
124
- * pre-send configuration methods for the new-session flow.
125
- */
126
- export declare class RemoteNewSession extends Disposable implements ICopilotChatSession {
127
- readonly resource: URI;
128
- readonly sessionWorkspace: ISessionWorkspace;
129
- readonly target: AgentSessionTarget;
130
- readonly initialAutomationSessionConfiguration: IAutomationSessionConfiguration | undefined;
131
- private readonly chatSessionsService;
132
- private readonly contextKeyService;
133
- private readonly storageService;
134
- readonly sessionId: string;
135
- readonly providerId: string;
136
- readonly sessionType: string;
137
- readonly icon: ThemeIcon;
138
- readonly createdAt: Date;
139
- private readonly _title;
140
- readonly title: IObservable<string>;
141
- private readonly _updatedAt;
142
- readonly updatedAt: IObservable<Date>;
143
- private readonly _status;
144
- readonly status: IObservable<SessionStatus>;
145
- private readonly _permissionLevel;
146
- readonly permissionLevel: IObservable<ChatPermissionLevel>;
147
- private readonly _workspaceData;
148
- readonly workspace: IObservable<ISessionWorkspace | undefined>;
149
- readonly changes: IObservable<readonly ISessionFileChange[]>;
150
- readonly checkpoints: IObservable<IChatCheckpoints | undefined>;
151
- private readonly _modelIdObservable;
152
- readonly modelId: IObservable<string | undefined>;
153
- protected readonly _modelSourceObservable: ISettableObservable<ChatModelSource | undefined, void>;
154
- readonly modelSource: IObservable<ChatModelSource | undefined>;
155
- readonly mode: IObservable<{
156
- readonly id: string;
157
- readonly kind: string;
158
- } | undefined>;
159
- readonly loading: IObservable<boolean>;
160
- private readonly _isArchived;
161
- readonly isArchived: IObservable<boolean>;
162
- readonly isRead: IObservable<boolean>;
163
- readonly description: IObservable<IMarkdownString | undefined>;
164
- readonly lastTurnEnd: IObservable<Date | undefined>;
165
- readonly gitHubInfo: IObservable<IGitHubInfo | undefined>;
166
- readonly branch: IObservable<string | undefined>;
167
- readonly isolationMode: IObservable<IsolationMode | undefined>;
168
- private readonly _useSandbox;
169
- readonly useSandbox: IObservable<boolean | undefined>;
170
- readonly branches: IObservable<readonly string[]>;
171
- readonly gitRepository?: IGitRepository | undefined;
172
- readonly mainChat: ISettableObservable<IChat>;
173
- readonly _hasGitRepo: ISettableObservable<boolean, void>;
174
- readonly hasGitRepo: IObservable<boolean>;
175
- private _repoUri;
176
- private _project;
177
- private _modelId;
178
- private _query;
179
- private _attachedContext;
180
- private readonly _onDidChangeOptionGroups;
181
- readonly onDidChangeOptionGroups: Event<void>;
182
- readonly selectedOptions: Map<string, IChatSessionProviderOptionItem>;
183
- get project(): ISessionWorkspace | undefined;
184
- get selectedModelId(): string | undefined;
185
- /**
186
- * The repository this session targets, as `owner/repo`. A GitHub workspace root carries a ref
187
- * (`/<owner>/<repo>/HEAD`, see {@link CopilotChatSessionsProvider._browseForRepository}), so this
188
- * takes only the first two path segments rather than the whole path.
189
- */
190
- get repoNwo(): string | undefined;
191
- get chatMode(): IChatMode | undefined;
192
- get query(): string | undefined;
193
- get attachedContext(): IChatRequestVariableEntry[] | undefined;
194
- get disabled(): boolean;
195
- private readonly _whenClauseKeys;
196
- readonly modelConfiguration: AutomationModelConfiguration;
197
- constructor(resource: URI, sessionWorkspace: ISessionWorkspace, target: AgentSessionTarget, providerId: string, initialAutomationSessionConfiguration: IAutomationSessionConfiguration | undefined, chatSessionsService: IChatSessionsService, contextKeyService: IContextKeyService, storageService: IStorageService, languageModelsService: ILanguageModelsService);
198
- setPermissionLevel(level: ChatPermissionLevel): void;
199
- setIsolationMode(_mode: IsolationMode): void;
200
- setUseSandbox(useSandbox: boolean): void;
201
- setBranch(_branch: string | undefined): void;
202
- setModelId(modelId: string | undefined, source: ChatModelSource): void;
203
- setTitle(title: string): void;
204
- setStatus(status: SessionStatus): void;
205
- setArchived(archived: boolean): void;
206
- setMode(_mode: IChatMode | undefined): void;
207
- setOption(optionId: string, value: IChatSessionProviderOptionItem | string): void;
208
- getModelOptionsSnapshot(): {
209
- readonly modelOption: ISessionOptionGroup | undefined;
210
- readonly isResolved: boolean;
211
- };
212
- getOtherOptionGroups(): ISessionOptionGroup[];
213
- getOptionValue(groupId: string): IChatSessionProviderOptionItem | undefined;
214
- setOptionValue(groupId: string, value: IChatSessionProviderOptionItem): void;
215
- private _getOptionGroups;
216
- private _isOptionGroupVisible;
217
- private _updateWhenClauseKeys;
218
- private _getValueForGroup;
219
- update(_session: IAgentSession): void;
220
- }
221
- /**
222
- * Default sessions provider for Copilot CLI and Cloud session types.
223
- * Wraps the existing session infrastructure into the extensible provider model.
224
- */
225
- export declare class CopilotChatSessionsProvider extends Disposable implements ISessionsProvider {
226
- private readonly agentSessionsService;
227
- private readonly chatService;
228
- private readonly chatSessionsService;
229
- private readonly dialogService;
230
- private readonly commandService;
231
- private readonly instantiationService;
232
- private readonly languageModelsService;
233
- private readonly toolsService;
234
- private readonly configurationService;
235
- private readonly agentHostEnablementService;
236
- private readonly logService;
237
- private readonly notificationService;
238
- private readonly gitHubService;
239
- private readonly pullRequestIconCache;
240
- private readonly labelService;
241
- private readonly chatModeService;
242
- private readonly uriIdentityService;
243
- private readonly fileService;
244
- private readonly pathService;
245
- /**
246
- * How long the first sandbox turn waits for the session's model catalog to arrive before
247
- * dispatching without the user's model. Long enough to cover the gap between the relay
248
- * connecting and the host publishing its models, short enough not to strand a send behind a
249
- * catalog that is never coming. Exceeding it is reported to the user, not only logged.
250
- */
251
- private static readonly SANDBOX_MODEL_WAIT_MS;
252
- private static readonly AUTOMATION_AGENT_RESOLUTION_TIMEOUT_MS;
253
- readonly id = "default-copilot";
254
- readonly label: string;
255
- readonly icon: ThemeIcon;
256
- readonly order = 0;
257
- readonly supportsAutomationSessionConfiguration = true;
258
- get sessionTypes(): readonly ISessionType[];
259
- private readonly _onDidChangeSessionTypes;
260
- readonly onDidChangeSessionTypes: Event<void>;
261
- private readonly _onDidChangeSessions;
262
- readonly onDidChangeSessions: Event<ISessionChangeEvent>;
263
- private readonly _onDidReplaceSession;
264
- readonly onDidReplaceSession: Event<{
265
- readonly from: ISession;
266
- readonly to: ISession;
267
- }>;
268
- /** Cache of adapted sessions, keyed by resource URI string. */
269
- private readonly _sessionCache;
270
- /**
271
- * Resources of committed sessions that are currently in-flight (i.e.
272
- * between {@link _sendFirstChat} entering the send and the replace
273
- * event firing). Protected from spurious removal by
274
- * {@link _refreshSessionCache} so that a concurrent model re-resolve
275
- * cannot transiently drop them.
276
- */
277
- private readonly _inFlightCommits;
278
- /** Cache of ISession wrappers, keyed by session group ID. */
279
- private readonly _sessionGroupCache;
280
- /** Cache of chats keyed by raw session ID (resource path without leading slash). */
281
- private _chatByRawSessionIdCache;
282
- /** Cache of derived group IDs keyed by chat ID. */
283
- private _groupIdByChatIdCache;
284
- /** Cache of sorted chat IDs keyed by group ID. */
285
- private _chatIdsByGroupIdCache;
286
- /**
287
- * Emitter fired when the set of chats in a group changes,
288
- * used to update the chats observable in `_chatToSession`.
289
- */
290
- private readonly _onDidGroupMembershipChange;
291
- /**
292
- * Per-group signals, keyed by `sessionId`, that invalidate a single group's
293
- * chats observable. A group's chats derived observes only its own signal, so a
294
- * membership change recomputes just the affected group rather than every observed
295
- * group.
296
- */
297
- private readonly _groupMembershipSignals;
298
- /**
299
- * A single subscription to `_onDidGroupMembershipChange` that fans each event out
300
- * to the affected group's own signal. Subscribing exactly once (instead of once per
301
- * session) keeps the emitter's listener count constant regardless of how many
302
- * sessions exist — the per-session subscriptions previously leaked listeners as
303
- * sessions accumulated.
304
- */
305
- private _registerGroupMembershipFanOut;
306
- private readonly _multiChatEnabled;
307
- private readonly _localGitRepositoryState;
308
- private readonly _localGitRepositoryResolutionStarted;
309
- private _isCopilotCliAvailable;
310
- readonly supportsLocalWorkspaces = true;
311
- constructor(agentSessionsService: IAgentSessionsService, chatService: IChatService, chatSessionsService: IChatSessionsService, dialogService: IDialogService, commandService: ICommandService, instantiationService: IInstantiationService, languageModelsService: ILanguageModelsService, toolsService: ILanguageModelToolsService, configurationService: IConfigurationService, agentHostEnablementService: IAgentHostEnablementService, logService: ILogService, notificationService: INotificationService, gitHubService: IGitHubService, pullRequestIconCache: IPullRequestIconCache, labelService: ILabelService, chatModeService: IChatModeService, uriIdentityService: IUriIdentityService, fileService: IFileService, pathService: IPathService);
312
- get browseActions(): readonly ISessionWorkspaceBrowseAction[];
313
- getSessionTypes(workspaceUri: URI): ISessionType[];
314
- getSessions(): ISession[];
315
- private readonly _newSessions;
316
- /**
317
- * Clear the tracked new session with the given session's id, but only if
318
- * the map still holds exactly that instance. Async flows (commit wait,
319
- * cache population) may complete after the entry was already replaced or
320
- * removed — acting unconditionally would dispose an unrelated session.
321
- *
322
- * @param session The session that initiated the async flow.
323
- * @param leak When `true` use {@link DisposableMap.deleteAndLeak}
324
- * (the session is still referenced elsewhere, e.g. the session
325
- * cache); otherwise use {@link DisposableMap.deleteAndDispose}.
326
- */
327
- private _clearCurrentNewSessionIfMatch;
328
- deleteNewSession(sessionId: string): void;
329
- getSession(sessionId: string): ICopilotChatSession | undefined;
330
- createNewSession(workspaceUri: URI, sessionTypeId: string, options?: ISessionsProviderCreateSessionOptions): ISession;
331
- private _getCloudWorkspaceForLocalRepository;
332
- getAutomationModelConfiguration(sessionId: string): AutomationModelConfiguration | undefined;
333
- getAutomationSessionConfiguration(sessionId: string): Promise<IAutomationSessionConfiguration | undefined>;
334
- createQuickChat(_sessionTypeId: string, _options?: ISessionsProviderCreateSessionOptions): ISession;
335
- /**
336
- * Resolves the initial permission level for a brand-new session from
337
- * `chat.permissions.default`, clamped to `Default` when enterprise policy
338
- * disables global auto-approval.
339
- */
340
- private _defaultPermissionLevel;
341
- private _applyAutomationSessionConfiguration;
342
- get onDidChangeModels(): Event<void>;
343
- getModelsSnapshot(sessionId: string, desiredModelId?: string): ISessionModelsSnapshot;
344
- getModelPickerOptions(sessionId: string): ISessionModelPickerOptions;
345
- private _toSyntheticModel;
346
- setModel(sessionId: string, chatResource: URI, modelId: string, source: ChatModelSource): void;
347
- setMode(sessionId: string, modeId: string): void;
348
- private _setSessionMode;
349
- private _findSessionMode;
350
- private _resolveAutomationSessionMode;
351
- setPermissionLevel(sessionId: string, level: string): void;
352
- setIsolationMode(sessionId: string, mode: string): Promise<void>;
353
- setBranch(sessionId: string, branch: string): Promise<void>;
354
- archiveSession(sessionId: string): Promise<void>;
355
- unarchiveSession(sessionId: string): Promise<void>;
356
- setSessionReadState(sessionId: string, isRead: boolean): Promise<void>;
357
- deleteSession(sessionId: string): Promise<void>;
358
- deleteSessions(sessionIds: readonly string[]): Promise<void>;
359
- renameChat(sessionId: string, chatUri: URI, title: string): Promise<void>;
360
- renameSession(sessionId: string, title: string): Promise<void>;
361
- deleteChat(sessionId: string, chatUri: URI, options?: IDeleteChatOptions): Promise<boolean>;
362
- private _deleteAgentSessions;
363
- forkChat(sessionId: string, _sourceChat: URI, _turnId: string): Promise<IChat>;
364
- createSideChat(sessionId: string, _sourceChat: URI, _turnId: string, _selection?: ISideChatSelection): Promise<IChat>;
365
- createNewChat(sessionId: string, _prompt?: string): Promise<IChat>;
366
- private _createNewSubsequentChat;
367
- /** Test seam: the contribution registry is global, so tests override this with a stub. */
368
- protected _getCloudSandboxContribution(): Pick<CloudSandboxAgentHostContribution, "provisionSession">;
369
- /** Test seam: overridden so a test can reach the timeout without waiting out the real budget. */
370
- protected get _sandboxModelWaitMs(): number;
371
- /**
372
- * Commit a cloud new-session into a GitHub-managed sandbox instead of the server-run cloud
373
- * agent: provision the sandbox, then hand the session over to the remote-agent-host provider
374
- * that owns it and send the first turn there.
375
- *
376
- * The committed session belongs to that other provider, which is why this fires
377
- * `onDidReplaceSession` across providers — the same swap {@link _sendFirstChat} performs, just
378
- * landing outside this provider. Mission Control starts no run for the task it creates, so the
379
- * first turn has to be dispatched here rather than being picked up server-side.
380
- */
381
- private _sendFirstChatToSandbox;
382
- /** Reveal the sandbox session that {@link CloudSandboxAgentHostContribution.provisionSession} withheld from listings. */
383
- private _publishSandboxSession;
384
- /**
385
- * The composer's model selection as the sandbox knows it, plus the label to name it by.
386
- *
387
- * Cloud sessions pick from the extension host's `models` option group, whose ids are the
388
- * group's own item ids, while a sandbox registers its models from what the agent host
389
- * advertises. Different id spaces, so only the underlying model id crosses over.
390
- *
391
- * Only the model, because only the model exists: an option item's `modelMetadata` is hover and
392
- * pricing detail with no configuration schema, so a cloud composer never offers a thinking
393
- * level or context tier to carry alongside it.
394
- */
395
- private _selectedCloudModel;
396
- /**
397
- * Apply the model the user picked in the composer to the sandbox session before its first turn.
398
- *
399
- * Mission Control starts no run, so this client sends that turn — and a session that has never
400
- * run has no model of its own to restore. Without this the turn carries no model at all and
401
- * runs on whatever the agent host defaults to.
402
- *
403
- * A freshly connected sandbox publishes its models asynchronously, so an empty catalog is "not
404
- * yet" rather than "no": resolution is awaited while it reports `pending`, bounded because the
405
- * turn cannot be held indefinitely.
406
- *
407
- * Every path that gives up tells the user: an absent `Message.model` means "host decides", so
408
- * nothing downstream would report running at a capability and price they did not choose.
409
- */
410
- private _carryModelToSandbox;
411
- /** Name the model so the substitution is attributable. A warning: the turn still runs. */
412
- private _notifySandboxModelNotApplied;
413
- /** Retire the optimistic placeholder in favour of the session that now exists. */
414
- private _retirePlaceholder;
415
- sendRequest(sessionId: string, chatResource: URI, options: ISendRequestOptions): Promise<ISession>;
416
- private _sendFirstChat;
417
- private _createChatSession;
418
- private _updateChatSessionState;
419
- /**
420
- * Sends a request for an existing chat session that is already registered
421
- * in the cache.
422
- */
423
- private _sendExistingChat;
424
- /**
425
- * Waits for the committed (real) URI for a session by listening to the
426
- * {@link IChatSessionsService.onDidCommitSession} event.
427
- *
428
- * By default the wait is bounded by response completion: if the response
429
- * finishes before the commit event, we fall through to a short safety
430
- * timeout. Cloud sessions instead pass {@link IWaitForCommitOptions.deferred}
431
- * because their commit is delayed by a confirmation round-trip and network
432
- * delegation — response completion fires early (at the confirmation) and is
433
- * not a signal that the commit won't come — so they skip the response race
434
- * and use a longer timeout.
435
- */
436
- private _waitForCommittedSession;
437
- /**
438
- * Waits for an {@link AgentSessionAdapter} with the given resource to appear
439
- * in the session cache (populated by {@link _refreshSessionCache}).
440
- * Only called once during session initialisation (after the commit event),
441
- * so the timeout has no performance impact on steady-state operations.
442
- */
443
- private _waitForSessionInCache;
444
- private _browseForRepository;
445
- private _supportsLocalRepositoryActions;
446
- private _cloneRepository;
447
- private _browseForGitHubContext;
448
- resolveWorkspace(uri: URI): ISessionWorkspace | undefined;
449
- private _getLocalGitRepository;
450
- private _getLocalGitRepositoryState;
451
- private _resolveLocalGitRepository;
452
- private _labelFromUri;
453
- private _descriptionFromUri;
454
- private _iconFromUri;
455
- private _ensureSessionCache;
456
- private _invalidateGroupingCaches;
457
- private _ensureGroupingCaches;
458
- /**
459
- * Cleans up a temp session (one that hasn't been committed) from the cache.
460
- * Used when delete/archive is invoked on a session that is still pending
461
- * commit (e.g. was stopped before the agent created a worktree).
462
- */
463
- private _cleanupTempSession;
464
- private _refreshSessionCache;
465
- private _refreshSessionCacheMultiChat;
466
- private _findChatSession;
467
- private _findAgentSession;
468
- /**
469
- * Returns the group ID for a given chat.
470
- * Grouping is derived from `sessionParentId` in metadata (for committed sessions)
471
- * or from `PARENT_SESSION_OPTION_ID` in selected options (for uncommitted sessions).
472
- * If the root chat is not loaded, a synthetic provider-scoped group ID is used.
473
- */
474
- private _getGroupIdForChat;
475
- /**
476
- * Returns all chat IDs that belong to the given group,
477
- * ordered by creation time (root session first).
478
- */
479
- private _getChatIdsInGroup;
480
- private _getDirectParentRawSessionId;
481
- private _getSyntheticGroupId;
482
- private _findSession;
483
- private _localIdFromchatId;
484
- /**
485
- * Get (creating on first use) the membership signal for a group, keyed by
486
- * `sessionId`. The group's chats observable observes this signal so a membership
487
- * change recomputes only the affected group; the single fan-out subscription in
488
- * `_groupMembershipSubscription` triggers it.
489
- */
490
- private _getGroupMembershipSignal;
491
- /**
492
- * Structural equality for a group's chat list keyed on each chat's resource.
493
- * `_toChat` returns a fresh wrapper on every recompute, so identity comparison
494
- * would always differ; comparing resources lets a recompute that produced the
495
- * same set of chats avoid propagating downstream. Uses the URI identity comparer
496
- * so scheme-specific path casing and normalization are handled consistently.
497
- */
498
- private _chatArraysEqual;
499
- /**
500
- * Wraps a primary {@link ICopilotChatSession} and its sibling chats into an {@link ISession}.
501
- * When multi-chat is enabled, the `chats` observable is derived from `sessionParentId`
502
- * metadata and updates when group membership changes.
503
- * When disabled, each session has exactly one chat.
504
- */
505
- private _chatToSession;
506
- private _chatToSingleChatSession;
507
- /**
508
- * Whether {@link renameChat} can rename a session of the given type. Only
509
- * the CopilotCLI backend exposes a rename command; others throw.
510
- */
511
- private _sessionTypeSupportsRename;
512
- private _sessionTypeSupportsDelete;
513
- private _toChat;
514
- private _createChangesets;
515
- private _latestDate;
516
- private _aggregateStatus;
517
- private _isMultiChatEnabled;
518
- }