@codingame/monaco-vscode-chat-service-override 37.6.1 → 38.0.0

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 (690) hide show
  1. package/common.js +64 -2
  2. package/index.js +3 -3
  3. package/package.json +5 -5
  4. package/session.js +5 -1
  5. package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.d.ts +13 -2
  6. package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.js +164 -12
  7. package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.d.ts +4 -2
  8. package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.js +8 -2
  9. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +34 -4
  10. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +345 -48
  11. package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.d.ts +135 -0
  12. package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.js +510 -0
  13. package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +4 -1
  14. package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +12 -2
  15. package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.d.ts +2 -11
  16. package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.js +14 -27
  17. package/vscode/src/vs/platform/agentHost/common/agentHostOperatingSystem.d.ts +6 -0
  18. package/vscode/src/vs/platform/agentHost/common/agentHostOperatingSystem.js +43 -0
  19. package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +158 -73
  20. package/vscode/src/vs/platform/agentHost/common/artifactToolsConfiguration.d.ts +16 -0
  21. package/vscode/src/vs/platform/agentHost/common/artifactToolsConfiguration.js +26 -0
  22. package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.d.ts +273 -0
  23. package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.js +61 -0
  24. package/vscode/src/vs/platform/agentHost/common/codexAccountPlan.d.ts +3 -0
  25. package/vscode/src/vs/platform/agentHost/common/codexAccountPlan.js +30 -0
  26. package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.js +8 -8
  27. package/vscode/src/vs/platform/agentHost/common/meta/agentHostChatInputState.d.ts +2 -0
  28. package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.d.ts +7 -0
  29. package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.js +17 -0
  30. package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.d.ts +12 -0
  31. package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.js +48 -0
  32. package/vscode/src/vs/platform/agentHost/common/meta/{agentCustomizationMeta.js → vscode/agentCustomizationMeta.js} +2 -2
  33. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentHostChatInputState.d.ts +16 -0
  34. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentHostChatInputState.js +16 -0
  35. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelConfigurationMeta.d.ts +8 -0
  36. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelConfigurationMeta.js +20 -0
  37. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.d.ts +8 -0
  38. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.js +11 -0
  39. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.js +141 -0
  40. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentPermissionResponseMeta.d.ts +12 -0
  41. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentPermissionResponseMeta.js +25 -0
  42. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentSandboxDiagnostics.d.ts +5 -0
  43. package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentSandboxDiagnostics.js +11 -0
  44. package/vscode/src/vs/platform/agentHost/common/meta/{clientPluginCustomizationMeta.d.ts → vscode/clientPluginCustomizationMeta.d.ts} +10 -0
  45. package/vscode/src/vs/platform/agentHost/common/meta/{clientPluginCustomizationMeta.js → vscode/clientPluginCustomizationMeta.js} +7 -1
  46. package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.d.ts +35 -24
  47. package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +85 -20
  48. package/vscode/src/vs/platform/agentHost/common/sessionDataService.d.ts +440 -0
  49. package/vscode/src/vs/platform/agentHost/common/sessionDataService.js +11 -0
  50. package/vscode/src/vs/platform/agentHost/common/sessionDataService.service.d.ts +104 -0
  51. package/vscode/src/vs/platform/agentHost/common/taskEventReplay.d.ts +48 -0
  52. package/vscode/src/vs/platform/agentHost/common/taskEventReplay.js +238 -0
  53. package/vscode/src/vs/platform/agentHost/common/titleGenerationConfiguration.d.ts +35 -0
  54. package/vscode/src/vs/platform/agentHost/common/titleGenerationConfiguration.js +49 -0
  55. package/vscode/src/vs/platform/agentHost/common/vscodeSandboxPaths.d.ts +9 -0
  56. package/vscode/src/vs/platform/agentHost/common/vscodeSandboxPaths.js +13 -0
  57. package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.d.ts +102 -0
  58. package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.js +260 -0
  59. package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.d.ts +102 -0
  60. package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.js +115 -0
  61. package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.d.ts +46 -0
  62. package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.js +92 -0
  63. package/vscode/src/vs/platform/customizationMarketplace/common/mcpGalleryMarketplaceProvider.d.ts +22 -0
  64. package/vscode/src/vs/platform/customizationMarketplace/common/mcpGalleryMarketplaceProvider.js +158 -0
  65. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +4 -2
  66. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +12 -5
  67. package/vscode/src/vs/platform/otel/common/chatUserInteraction.d.ts +20 -0
  68. package/vscode/src/vs/platform/otel/common/chatUserInteraction.js +45 -0
  69. package/vscode/src/vs/platform/sandbox/browser/sandboxHelperService.d.ts +1 -4
  70. package/vscode/src/vs/platform/sandbox/browser/sandboxHelperService.js +0 -9
  71. package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +1 -4
  72. package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +0 -15
  73. package/vscode/src/vs/platform/sandbox/common/terminalSandboxCommandRules.d.ts +1 -1
  74. package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.d.ts +6 -24
  75. package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.js +51 -109
  76. package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.d.ts +1 -1
  77. package/vscode/src/vs/platform/sandbox/common/terminalSandboxRuntimeConfigurationPerOperation.d.ts +1 -1
  78. package/vscode/src/vs/sessions/browser/parts/mobile/contributions/mobileDiffView.js +7 -7
  79. package/vscode/src/vs/sessions/browser/parts/mobile/contributions/mobileMultiDiffView.js +8 -8
  80. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +1 -1
  81. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +11 -10
  82. package/vscode/src/vs/sessions/contrib/chat/browser/branchChatSessionAction.js +2 -2
  83. package/vscode/src/vs/sessions/contrib/chat/browser/btwSlashCommand.contribution.js +6 -6
  84. package/vscode/src/vs/sessions/contrib/chat/browser/chat.contribution.js +460 -94
  85. package/vscode/src/vs/sessions/contrib/chat/browser/chatBackgroundTint.d.ts +35 -0
  86. package/vscode/src/vs/sessions/contrib/chat/browser/chatBackgroundTint.js +652 -0
  87. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +9 -0
  88. package/vscode/src/vs/sessions/contrib/chat/browser/newSessionAction.d.ts +11 -0
  89. package/vscode/src/vs/sessions/contrib/chat/browser/newSessionAction.js +118 -0
  90. package/vscode/src/vs/sessions/contrib/chat/browser/newSessionFolderQuickPickAction.js +4 -4
  91. package/vscode/src/vs/sessions/contrib/chat/browser/newSessionOnboardingTargets.d.ts +7 -0
  92. package/vscode/src/vs/sessions/contrib/chat/browser/newSessionOnboardingTargets.js +36 -0
  93. package/vscode/src/vs/sessions/contrib/chat/browser/newSessionPickerTryout.d.ts +26 -0
  94. package/vscode/src/vs/sessions/contrib/chat/browser/newSessionPickerTryout.js +145 -0
  95. package/vscode/src/vs/sessions/contrib/chat/browser/openSessionLinkOpener.contribution.d.ts +1 -1
  96. package/vscode/src/vs/sessions/contrib/chat/browser/openSessionLinkOpener.contribution.js +24 -6
  97. package/vscode/src/vs/sessions/contrib/chat/browser/runScriptAction.js +94 -89
  98. package/vscode/src/vs/sessions/contrib/chat/browser/runScriptCustomTaskWidget.js +21 -21
  99. package/vscode/src/vs/sessions/contrib/chat/browser/sessionTurnChanges.d.ts +0 -1
  100. package/vscode/src/vs/sessions/contrib/chat/browser/sessionTurnChanges.js +28 -29
  101. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.d.ts +7 -0
  102. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.js +501 -107
  103. package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.js +5 -1
  104. package/vscode/src/vs/sessions/contrib/chat/browser/workbenchSessionTaskRunner.d.ts +3 -3
  105. package/vscode/src/vs/sessions/contrib/chat/browser/workbenchSessionTaskRunner.js +4 -4
  106. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostAgentPicker.d.ts +8 -1
  107. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostAgentPicker.js +214 -17
  108. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSettings.contribution.js +16 -9
  109. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSettingsFileSystemProvider.js +4 -4
  110. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentSessionSettings.contribution.js +7 -6
  111. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentSessionSettingsFileSystemProvider.js +4 -4
  112. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/mobile/mobileChatPhoneInputPresenter.js +226 -0
  113. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/openAgentHostStateFileAction.js +1 -1
  114. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/openSubagentChat.d.ts +11 -0
  115. package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/openSubagentChat.js +122 -0
  116. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.d.ts +67 -0
  117. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.js +695 -0
  118. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.d.ts +4 -0
  119. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.js +39 -0
  120. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.js +39 -22
  121. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.d.ts +1 -19
  122. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.js +42 -158
  123. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.d.ts +87 -0
  124. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.js +176 -0
  125. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.d.ts +422 -0
  126. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.js +2444 -0
  127. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.d.ts +91 -0
  128. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.js +620 -0
  129. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/modePicker.d.ts +5 -4
  130. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/modePicker.js +21 -12
  131. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.js +2 -11
  132. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.d.ts +46 -0
  133. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.js +321 -0
  134. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.d.ts +104 -0
  135. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.js +345 -0
  136. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/entryDrivenProviderContribution.d.ts +14 -1
  137. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/entryDrivenProviderContribution.js +20 -3
  138. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/hostFilter.contribution.d.ts +7 -1
  139. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/hostFilter.contribution.js +8 -12
  140. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/hostFilterActionViewItem.d.ts +8 -4
  141. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/hostFilterActionViewItem.js +88 -84
  142. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/manageRemoteAgentHosts.js +74 -20
  143. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/managedReconnectAgentHostContribution.js +2 -2
  144. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/media/hostFilter.css +34 -19
  145. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/media/hostPickerSheet.css +35 -3
  146. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHostContribution.d.ts +37 -0
  147. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHostContribution.js +305 -0
  148. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/mobileHostFilterActionViewItem.d.ts +4 -1
  149. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/mobileHostFilterActionViewItem.js +75 -20
  150. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHost.contribution.d.ts +1 -80
  151. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHost.contribution.js +19 -548
  152. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.d.ts +4 -0
  153. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js +218 -122
  154. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/tunnelAgentHost.contribution.d.ts +5 -4
  155. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/tunnelAgentHost.contribution.js +43 -8
  156. package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/wslAgentHost.contribution.js +1 -1
  157. package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/media/sessionWorktreeCleanupEditor.css +223 -0
  158. package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionStorageCleanupConfiguration.d.ts +2 -0
  159. package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionStorageCleanupConfiguration.js +16 -0
  160. package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupAccessibilityHelp.d.ts +15 -0
  161. package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupAccessibilityHelp.js +49 -0
  162. package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupEditor.d.ts +66 -0
  163. package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupEditor.js +458 -0
  164. package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupEditorInput.d.ts +13 -0
  165. package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupEditorInput.js +35 -0
  166. package/vscode/src/vs/sessions/contrib/sessions/browser/customizationMcpServerCount.d.ts +15 -0
  167. package/vscode/src/vs/sessions/contrib/sessions/browser/customizationMcpServerCount.js +37 -0
  168. package/vscode/src/vs/sessions/contrib/sessions/browser/mobile/mobileOverlayContribution.js +4 -4
  169. package/vscode/src/vs/sessions/services/agentHost/browser/agentHostCustomizationService.d.ts +1 -1
  170. package/vscode/src/vs/sessions/services/agentHost/browser/agentHostCustomizationService.js +5 -1
  171. package/vscode/src/vs/sessions/skills/create-draft-pr/SKILL.md +1 -1
  172. package/vscode/src/vs/sessions/skills/create-pr/SKILL.md +1 -1
  173. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +1 -0
  174. package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +2 -2
  175. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +2 -2
  176. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +56 -31
  177. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +2 -2
  178. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +21 -21
  179. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +3 -3
  180. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +3 -3
  181. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +6 -6
  182. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +14 -14
  183. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +11 -11
  184. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +9 -9
  185. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +5 -5
  186. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +2 -2
  187. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +13 -13
  188. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +7 -7
  189. package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +30 -29
  190. package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +1 -1
  191. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +3 -1
  192. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +44 -8
  193. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatBackgroundShellOutputAccessibleView.d.ts +11 -0
  194. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatBackgroundShellOutputAccessibleView.js +34 -0
  195. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +1 -1
  196. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +85 -29
  197. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatTerminalOutputAccessibleView.js +33 -1
  198. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
  199. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +1 -1
  200. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +318 -103
  201. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  202. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +60 -28
  203. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +41 -16
  204. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +49 -10
  205. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +7 -7
  206. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  207. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.js +7 -7
  208. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +5 -10
  209. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  210. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +15 -21
  211. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +16 -15
  212. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
  213. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  214. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +24 -23
  215. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  216. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +5 -1
  217. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +44 -31
  218. package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +32 -32
  219. package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.js +6 -6
  220. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.js +7 -7
  221. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +3 -1
  222. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +22 -26
  223. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
  224. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +9 -0
  225. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +180 -26
  226. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +6 -2
  227. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +82 -69
  228. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.d.ts +4 -1
  229. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.js +32 -10
  230. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.js +12 -0
  231. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +5 -1
  232. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.js +37 -12
  233. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.d.ts +6 -1
  234. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +53 -7
  235. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputState.d.ts +25 -0
  236. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputState.js +144 -0
  237. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.d.ts +6 -1
  238. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.js +88 -12
  239. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationMarketplaceInstallProvider.d.ts +51 -0
  240. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationMarketplaceInstallProvider.js +642 -0
  241. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostFirstResponseTelemetry.d.ts +118 -0
  242. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostFirstResponseTelemetry.js +35 -0
  243. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +9 -1
  244. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +49 -7
  245. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +21 -17
  246. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.js +38 -10
  247. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerMigrationProvider.d.ts +50 -0
  248. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerMigrationProvider.js +415 -0
  249. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupport.d.ts +12 -2
  250. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupport.js +124 -31
  251. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupportScope.d.ts +7 -2
  252. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupportScope.js +116 -5
  253. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.d.ts +3 -1
  254. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.js +6 -6
  255. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +5 -5
  256. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.js +4 -4
  257. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRemoteByokNotification.d.ts +23 -0
  258. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRemoteByokNotification.js +134 -0
  259. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.d.ts +14 -36
  260. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.js +286 -126
  261. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.d.ts +1 -1
  262. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.js +3 -2
  263. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSandboxNotification.d.ts +17 -0
  264. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSandboxNotification.js +94 -0
  265. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSandboxNotifications.d.ts +14 -0
  266. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSandboxNotifications.js +63 -0
  267. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.d.ts +52 -88
  268. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.js +1030 -349
  269. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.d.ts +20 -4
  270. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.js +722 -114
  271. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.js +1 -1
  272. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.d.ts +3 -2
  273. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.js +88 -9
  274. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.d.ts +16 -1
  275. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.js +87 -10
  276. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.js +1 -1
  277. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.js +2 -2
  278. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.js +4 -4
  279. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.js +4 -4
  280. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.js +4 -3
  281. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolUtils.js +2 -1
  282. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +12 -4
  283. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +191 -60
  284. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.js +4 -3
  285. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.js +6 -6
  286. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSessionConfig.d.ts +4 -0
  287. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSessionConfig.js +27 -17
  288. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.d.ts +2 -0
  289. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.js +2 -2
  290. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/codexContinuation.contribution.d.ts +1 -0
  291. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/codexContinuation.contribution.js +127 -0
  292. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/codexContinuationGuide.d.ts +44 -0
  293. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/codexContinuationGuide.js +415 -0
  294. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/codexContinuationPresenter.d.ts +25 -0
  295. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/codexContinuationPresenter.js +160 -0
  296. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.d.ts +3 -1
  297. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.js +5 -1
  298. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.d.ts +7 -2
  299. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.js +122 -34
  300. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.d.ts +22 -4
  301. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.js +74 -39
  302. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +1 -1
  303. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +4 -0
  304. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +89 -68
  305. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +3 -3
  306. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  307. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
  308. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
  309. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
  310. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +25 -25
  311. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  312. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  313. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.d.ts +4 -2
  314. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +50 -22
  315. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.d.ts +21 -0
  316. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.js +122 -0
  317. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessionsConfiguration.d.ts +81 -1
  318. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessionsConfiguration.js +213 -13
  319. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +136 -100
  320. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationUrlHandler.d.ts +16 -0
  321. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationUrlHandler.js +76 -0
  322. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -1
  323. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +2 -2
  324. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/copilotConnectorsService.d.ts +139 -0
  325. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/copilotConnectorsService.js +944 -0
  326. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplace.contribution.d.ts +1 -0
  327. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplace.contribution.js +119 -0
  328. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceInstallService.d.ts +110 -0
  329. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceInstallService.js +1485 -0
  330. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceInstallationAssociation.d.ts +38 -0
  331. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceInstallationAssociation.js +48 -0
  332. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceWorkbenchService.d.ts +50 -0
  333. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceWorkbenchService.js +213 -0
  334. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.js +19 -12
  335. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.d.ts +6 -22
  336. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.js +87 -263
  337. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationsTelemetryService.d.ts +25 -0
  338. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationsTelemetryService.js +217 -0
  339. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/githubMcpRegistryIcons.d.ts +4 -0
  340. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/githubMcpRegistryIcons.js +605 -0
  341. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCustomizationMigration.d.ts +11 -4
  342. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCustomizationMigration.js +377 -184
  343. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
  344. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +2 -0
  345. package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +753 -617
  346. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +1 -1
  347. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +118 -40
  348. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
  349. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +124 -124
  350. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +72 -72
  351. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
  352. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  353. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.js +3 -3
  354. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
  355. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
  356. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
  357. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
  358. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +22 -22
  359. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +12 -12
  360. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
  361. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
  362. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
  363. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
  364. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +35 -35
  365. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
  366. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.d.ts +4 -2
  367. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.js +47 -42
  368. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +29 -6
  369. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
  370. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.d.ts +2 -1
  371. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +6 -3
  372. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
  373. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
  374. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
  375. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
  376. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -3
  377. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +10 -7
  378. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +5 -3
  379. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +11 -5
  380. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +4 -3
  381. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +10 -7
  382. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +10 -10
  383. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +24 -11
  384. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +2 -2
  385. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +16 -20
  386. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +2 -2
  387. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +2 -2
  388. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  389. package/vscode/src/vs/workbench/contrib/chat/browser/chatGoalSummaryService.js +1 -1
  390. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +12 -4
  391. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +52 -61
  392. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +17 -11
  393. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +2 -0
  394. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +3 -0
  395. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
  396. package/vscode/src/vs/workbench/contrib/chat/browser/chatNetworkConfiguration.d.ts +4 -0
  397. package/vscode/src/vs/workbench/contrib/chat/browser/chatNetworkConfiguration.js +136 -0
  398. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
  399. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +52 -30
  400. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.js +71 -17
  401. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.d.ts +12 -5
  402. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.js +104 -16
  403. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.d.ts +5 -1
  404. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.js +1 -1
  405. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.d.ts +3 -1
  406. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.js +84 -64
  407. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetColorsWidget.d.ts +29 -0
  408. package/vscode/src/vs/workbench/contrib/chat/browser/chatPetColorsWidget.js +221 -0
  409. package/vscode/src/vs/workbench/contrib/chat/browser/chatProgressConfiguration.d.ts +27 -0
  410. package/vscode/src/vs/workbench/contrib/chat/browser/chatProgressConfiguration.js +72 -0
  411. package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.d.ts +4 -0
  412. package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.js +4 -2
  413. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +25 -25
  414. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  415. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +2 -2
  416. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +1 -0
  417. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +52 -32
  418. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +3 -1
  419. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +65 -57
  420. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
  421. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.d.ts +82 -0
  422. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.js +213 -0
  423. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -27
  424. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +5 -12
  425. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +93 -45
  426. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +2 -1
  427. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +54 -55
  428. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +5 -1
  429. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +51 -15
  430. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusPromo.d.ts +43 -0
  431. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusPromo.js +230 -0
  432. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/codexStatusEntry.d.ts +20 -0
  433. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/codexStatusEntry.js +101 -0
  434. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +30 -19
  435. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +4 -2
  436. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.d.ts +2 -0
  437. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.js +1 -0
  438. package/vscode/src/vs/workbench/contrib/chat/browser/chatUserInteractionOTel.d.ts +27 -0
  439. package/vscode/src/vs/workbench/contrib/chat/browser/chatUserInteractionOTel.js +88 -0
  440. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +7 -7
  441. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
  442. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +5 -5
  443. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +5 -5
  444. package/vscode/src/vs/workbench/contrib/chat/browser/editorChatUsage.contribution.d.ts +34 -0
  445. package/vscode/src/vs/workbench/contrib/chat/browser/editorChatUsage.contribution.js +121 -0
  446. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
  447. package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatHarnessSwitchFeedbackSurveyService.d.ts +34 -0
  448. package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatHarnessSwitchFeedbackSurveyService.js +192 -0
  449. package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatModelFeedbackSurveyPromptContribution.js +11 -24
  450. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +3 -3
  451. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatPetAchievements.css +232 -1
  452. package/vscode/src/vs/workbench/contrib/chat/browser/onboarding/modelPickerTryout.contribution.d.ts +3 -0
  453. package/vscode/src/vs/workbench/contrib/chat/browser/onboarding/modelPickerTryout.contribution.js +85 -0
  454. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.js +6 -6
  455. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +0 -7
  456. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +11 -28
  457. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitHubAuthentication.d.ts +6 -0
  458. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitHubAuthentication.js +18 -0
  459. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +13 -6
  460. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +250 -92
  461. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +2 -1
  462. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +39 -47
  463. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
  464. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +2 -2
  465. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  466. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.js +2 -2
  467. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  468. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  469. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  470. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  471. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  472. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimeline.contribution.js +5 -5
  473. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.js +4 -4
  474. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.js +4 -4
  475. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.js +3 -3
  476. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.js +1 -1
  477. package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.js +3 -3
  478. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
  479. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.d.ts +40 -0
  480. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.js +561 -0
  481. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.d.ts +133 -0
  482. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.js +1176 -0
  483. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.d.ts +17 -0
  484. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.js +76 -0
  485. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.d.ts +54 -0
  486. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.js +220 -0
  487. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.d.ts +21 -0
  488. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.js +184 -0
  489. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.d.ts +8 -0
  490. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.js +165 -0
  491. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.d.ts +43 -0
  492. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.js +162 -0
  493. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.d.ts +40 -0
  494. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.js +129 -0
  495. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.d.ts +166 -0
  496. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.js +838 -0
  497. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.d.ts +40 -0
  498. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.js +604 -0
  499. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.d.ts +45 -0
  500. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.js +251 -0
  501. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.d.ts +289 -0
  502. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.js +497 -0
  503. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.d.ts +46 -0
  504. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.js +277 -0
  505. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.d.ts +6 -0
  506. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.js +41 -0
  507. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentActions.d.ts +1 -0
  508. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentActions.js +178 -0
  509. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.d.ts +73 -0
  510. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.js +398 -0
  511. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.d.ts +45 -0
  512. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.js +296 -0
  513. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHost.contribution.d.ts +1 -0
  514. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHost.contribution.js +96 -0
  515. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostAuthentication.d.ts +8 -0
  516. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostAuthentication.js +15 -0
  517. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostChatContribution.d.ts +75 -0
  518. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostChatContribution.js +559 -0
  519. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostConnectionCustomization.d.ts +43 -0
  520. package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostConnectionCustomization.js +26 -0
  521. package/vscode/src/vs/{sessions/contrib/providers/remoteAgentHost/browser → workbench/contrib/chat/browser/remoteAgentHost}/remoteAgentHostCustomizationHarness.d.ts +1 -1
  522. package/vscode/src/vs/{sessions/contrib/providers/remoteAgentHost/browser → workbench/contrib/chat/browser/remoteAgentHost}/remoteAgentHostCustomizationHarness.js +8 -8
  523. package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +26 -10
  524. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
  525. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +45 -31
  526. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +8 -8
  527. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +1 -1
  528. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +7 -7
  529. package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +2 -2
  530. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatUpdateRequiredView.d.ts +22 -0
  531. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatUpdateRequiredView.js +110 -0
  532. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  533. package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +1 -1
  534. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.js +15 -15
  535. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +39 -35
  536. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +11 -11
  537. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +5 -1
  538. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +68 -16
  539. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCommandArgumentHint.js +1 -1
  540. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +16 -1
  541. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +23 -18
  542. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +1 -1
  543. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +7 -5
  544. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatPet/all_/_.png.js +4 -0
  545. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatPet/buddy-painting-insiders-96.png +0 -0
  546. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatPet/buddy-painting-insiders-96.spritesheet.png +0 -0
  547. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatPet/buddy-painting-stable-96.png +0 -0
  548. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatPet/buddy-painting-stable-96.spritesheet.png +0 -0
  549. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
  550. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +15 -18
  551. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +17 -1
  552. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +122 -21
  553. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.d.ts +7 -1
  554. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +46 -11
  555. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +16 -0
  556. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +18 -3
  557. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +24 -7
  558. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +406 -193
  559. package/vscode/src/vs/workbench/contrib/chat/common/customizationMarketplaceInstallService.d.ts +58 -0
  560. package/vscode/src/vs/workbench/contrib/chat/common/customizationMarketplaceInstallService.js +60 -0
  561. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +6 -0
  562. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +5 -1
  563. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
  564. package/vscode/src/vs/workbench/contrib/chat/common/onboarding/modelPickerTryout.d.ts +4 -0
  565. package/vscode/src/vs/workbench/contrib/chat/common/onboarding/modelPickerTryout.js +8 -0
  566. package/vscode/src/vs/workbench/contrib/chat/common/onboarding/newSessionPickerTryout.d.ts +3 -0
  567. package/vscode/src/vs/workbench/contrib/chat/common/onboarding/newSessionPickerTryout.js +8 -0
  568. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +17 -22
  569. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +455 -237
  570. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
  571. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +4 -2
  572. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +25 -17
  573. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +12 -12
  574. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
  575. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +11 -14
  576. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.d.ts +1 -1
  577. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +2 -1
  578. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +1 -1
  579. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +156 -155
  580. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationTelemetryService.d.ts +43 -0
  581. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationTelemetryService.js +225 -0
  582. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
  583. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +7 -7
  584. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +6 -0
  585. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +65 -9
  586. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +3 -3
  587. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +4 -4
  588. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +4 -0
  589. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +11 -3
  590. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
  591. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  592. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +4 -3
  593. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +46 -24
  594. package/vscode/src/vs/workbench/contrib/github/browser/githubCommitResolver.d.ts +15 -0
  595. package/vscode/src/vs/workbench/contrib/github/browser/githubCommitResolver.js +92 -0
  596. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +10 -10
  597. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.d.ts +1 -0
  598. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +22 -15
  599. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +1 -1
  600. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
  601. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
  602. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.js +1 -1
  603. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionResolver.js +1 -1
  604. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
  605. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  606. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  607. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
  608. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
  609. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  610. package/vscode/src/vs/workbench/contrib/onboarding/browser/onboarding.d.ts +4 -0
  611. package/vscode/src/vs/workbench/contrib/onboarding/browser/spotlight/spotlightStep.d.ts +10 -0
  612. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  613. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +10 -10
  614. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  615. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
  616. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatSessionResolver.js +1 -1
  617. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
  618. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.d.ts +0 -1
  619. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.js +3 -25
  620. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
  621. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +4 -5
  622. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
  623. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
  624. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
  625. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +1 -1
  626. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  627. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
  628. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  629. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
  630. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +4 -4
  631. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +4 -4
  632. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +0 -1
  633. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +79 -82
  634. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +3 -3
  635. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +10 -10
  636. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.d.ts +9 -1
  637. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +103 -26
  638. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
  639. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
  640. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  641. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +1 -1
  642. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.d.ts +2 -2
  643. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.js +8 -4
  644. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +1 -5
  645. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +16 -60
  646. package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.js +3 -3
  647. package/vscode/src/vs/workbench/services/agentHost/browser/agentSdkSetupService.d.ts +1 -1
  648. package/vscode/src/vs/workbench/services/agentHost/browser/agentSdkSetupService.js +1 -1
  649. package/vscode/src/vs/workbench/services/agentHost/browser/codexContinuation.d.ts +31 -0
  650. package/vscode/src/vs/workbench/services/agentHost/browser/codexContinuation.js +86 -0
  651. package/vscode/src/vs/workbench/services/agentHost/browser/codexContinuationService.d.ts +76 -0
  652. package/vscode/src/vs/workbench/services/agentHost/browser/codexContinuationService.js +409 -0
  653. package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.d.ts +14 -2
  654. package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.js +56 -7
  655. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemService.d.ts +0 -8
  656. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemService.js +0 -19
  657. package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.d.ts +0 -24
  658. package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.js +0 -13
  659. package/vscode/src/vs/platform/agentHost/common/agentModelPricing.js +0 -53
  660. package/vscode/src/vs/platform/agentHost/common/agentSdkSetup.d.ts +0 -53
  661. package/vscode/src/vs/platform/agentHost/common/agentSdkSetup.js +0 -45
  662. package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +0 -108
  663. package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +0 -15
  664. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/branchPicker.d.ts +0 -31
  665. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/branchPicker.js +0 -150
  666. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/mobilePermissionPicker.contribution.js +0 -37
  667. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/sandboxPicker.d.ts +0 -26
  668. package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/sandboxPicker.js +0 -86
  669. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +0 -8
  670. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +0 -241
  671. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.d.ts +0 -142
  672. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.js +0 -746
  673. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.d.ts +0 -164
  674. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +0 -485
  675. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.d.ts +0 -137
  676. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.js +0 -714
  677. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentOpenChat.css +0 -379
  678. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +0 -219
  679. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +0 -222
  680. package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.d.ts +0 -16
  681. package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.js +0 -39
  682. /package/vscode/src/vs/platform/agentHost/common/meta/{agentChatSurfaceMeta.d.ts → vscode/agentChatSurfaceMeta.d.ts} +0 -0
  683. /package/vscode/src/vs/platform/agentHost/common/meta/{agentChatSurfaceMeta.js → vscode/agentChatSurfaceMeta.js} +0 -0
  684. /package/vscode/src/vs/platform/agentHost/common/meta/{agentCustomizationMeta.d.ts → vscode/agentCustomizationMeta.d.ts} +0 -0
  685. /package/vscode/src/vs/platform/agentHost/common/meta/{agentEphemeralSessionMeta.d.ts → vscode/agentEphemeralSessionMeta.d.ts} +0 -0
  686. /package/vscode/src/vs/platform/agentHost/common/meta/{agentEphemeralSessionMeta.js → vscode/agentEphemeralSessionMeta.js} +0 -0
  687. /package/vscode/src/vs/platform/agentHost/common/{agentModelPricing.d.ts → meta/vscode/agentModelPricing.d.ts} +0 -0
  688. /package/vscode/src/vs/sessions/contrib/providers/{copilotChatSessions/browser/mobilePermissionPicker.contribution.d.ts → agentHost/browser/mobile/mobileChatPhoneInputPresenter.d.ts} +0 -0
  689. /package/vscode/src/vs/{sessions/contrib/providers/remoteAgentHost/browser → workbench/contrib/chat/browser/remoteAgentHost}/remoteAgentHostLogForwarder.d.ts +0 -0
  690. /package/vscode/src/vs/{sessions/contrib/providers/remoteAgentHost/browser → workbench/contrib/chat/browser/remoteAgentHost}/remoteAgentHostLogForwarder.js +0 -0
@@ -0,0 +1,94 @@
1
+
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { distinct, equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
4
+ import { MarkdownString, MarkdownStringTextNewlineStyle } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
5
+ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
6
+ import { ResourceSet } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
7
+ import { LinkComputer } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/linkComputer';
8
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
9
+ import { readAgentSandboxDiagnostics } from '../../../../../../platform/agentHost/common/meta/vscode/agentSandboxDiagnostics.js';
10
+ import { ChatInputNotificationSeverity } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService';
11
+ import { IChatInputNotificationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.service';
12
+
13
+ var AgentHostSandboxNotification_1;
14
+ let AgentHostSandboxNotification = class AgentHostSandboxNotification extends Disposable {
15
+ static {
16
+ AgentHostSandboxNotification_1 = this;
17
+ }
18
+ static {
19
+ this._dismissedSessions = ( new WeakMap());
20
+ }
21
+ constructor(_sessionResource, subscription, _notificationService) {
22
+ super();
23
+ this._sessionResource = _sessionResource;
24
+ this._notificationService = _notificationService;
25
+ this._id = `agentHost.sandboxUnsupported.${( _sessionResource.toString())}`;
26
+ let dismissedSessions = AgentHostSandboxNotification_1._dismissedSessions.get(this._notificationService);
27
+ if (!dismissedSessions) {
28
+ dismissedSessions = ( new ResourceSet());
29
+ AgentHostSandboxNotification_1._dismissedSessions.set(this._notificationService, dismissedSessions);
30
+ }
31
+ this._dismissedSessions = dismissedSessions;
32
+ this._register(subscription.onDidChange(state => this._update(state)));
33
+ if (subscription.onDidError) {
34
+ this._register(subscription.onDidError(error => this._update(error)));
35
+ }
36
+ this._update(subscription.value);
37
+ }
38
+ _update(state) {
39
+ if (( this._dismissedSessions.has(this._sessionResource))) {
40
+ return;
41
+ }
42
+ const diagnostics = state && !(state instanceof Error) ? readAgentSandboxDiagnostics(state) : undefined;
43
+ const reasons = diagnostics ? distinct(diagnostics) : undefined;
44
+ if (equals(this._reasons ?? [], reasons ?? [])) {
45
+ return;
46
+ }
47
+ this._reasons = reasons;
48
+ if (!reasons) {
49
+ this._notificationService.deleteNotification(this._id);
50
+ return;
51
+ }
52
+ const description = ( new MarkdownString());
53
+ for (const [index, line] of reasons.join("\n").split("\n").entries()) {
54
+ if (index > 0) {
55
+ description.appendText("\n", MarkdownStringTextNewlineStyle.Break);
56
+ }
57
+ let offset = 0;
58
+ for (const link of LinkComputer.computeLinks({
59
+ getLineCount: () => 1,
60
+ getLineContent: () => line
61
+ })) {
62
+ const url = line.slice(link.range.startColumn - 1, link.range.endColumn - 1);
63
+ if (!/^https?:\/\//i.test(url)) {
64
+ continue;
65
+ }
66
+ description.appendText(line.slice(offset, link.range.startColumn - 1));
67
+ description.appendLink(url, url);
68
+ offset = link.range.endColumn - 1;
69
+ }
70
+ description.appendText(line.slice(offset));
71
+ }
72
+ this._notificationService.setNotification({
73
+ id: this._id,
74
+ severity: ChatInputNotificationSeverity.Warning,
75
+ message: ( localize(9745, "Sandboxing is unavailable in this environment")),
76
+ description,
77
+ actions: [],
78
+ dismissible: true,
79
+ onDismiss: () => {
80
+ this._dismissedSessions.add(this._sessionResource);
81
+ this._notificationService.deleteNotification(this._id);
82
+ },
83
+ autoDismissOnMessage: false,
84
+ sessionResources: [this._sessionResource]
85
+ });
86
+ }
87
+ dispose() {
88
+ this._notificationService.deleteNotification(this._id);
89
+ super.dispose();
90
+ }
91
+ };
92
+ AgentHostSandboxNotification = AgentHostSandboxNotification_1 = ( __decorate([( __param(2, IChatInputNotificationService))], AgentHostSandboxNotification));
93
+
94
+ export { AgentHostSandboxNotification };
@@ -0,0 +1,14 @@
1
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { IAgentHostConnectionsService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentHostConnectionsService.service";
3
+ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
4
+ import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
5
+ import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
6
+ export declare class AgentHostSandboxNotifications extends Disposable implements IWorkbenchContribution {
7
+ private readonly _connectionsService;
8
+ private readonly _logService;
9
+ private readonly _notificationService;
10
+ static readonly ID = "workbench.contrib.agentHostSandboxNotifications";
11
+ private readonly _listeners;
12
+ constructor(_connectionsService: IAgentHostConnectionsService, _logService: ILogService, _notificationService: INotificationService);
13
+ private _watchConnections;
14
+ }
@@ -0,0 +1,63 @@
1
+
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { Disposable, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
+ import { LRUCache } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
5
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
6
+ import { IAgentHostConnectionsService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentHostConnectionsService.service';
7
+ import { readSessionSandboxState } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/meta/vscode/agentSandboxStateMeta';
8
+ import { ActionType } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/common/actions';
9
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/common/notifications';
10
+ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
11
+ import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
12
+
13
+ let AgentHostSandboxNotifications = class AgentHostSandboxNotifications extends Disposable {
14
+ static {
15
+ this.ID = "workbench.contrib.agentHostSandboxNotifications";
16
+ }
17
+ constructor(_connectionsService, _logService, _notificationService) {
18
+ super();
19
+ this._connectionsService = _connectionsService;
20
+ this._logService = _logService;
21
+ this._notificationService = _notificationService;
22
+ this._listeners = this._register(( new DisposableMap()));
23
+ this._register(
24
+ this._connectionsService.onDidChangeConnections(() => this._watchConnections())
25
+ );
26
+ this._watchConnections();
27
+ }
28
+ _watchConnections() {
29
+ const connections = ( new Set(
30
+ this._connectionsService.connections.flatMap(info => info.connection ? [info.connection] : [])
31
+ ));
32
+ for (const connection of ( this._listeners.keys())) {
33
+ if (!( connections.has(connection))) {
34
+ this._listeners.deleteAndDispose(connection);
35
+ }
36
+ }
37
+ for (const connection of connections) {
38
+ if (( this._listeners.has(connection))) {
39
+ continue;
40
+ }
41
+ const reported = ( new LRUCache(100));
42
+ this._listeners.set(connection, connection.onDidAction(envelope => {
43
+ if (envelope.action.type !== ActionType.SessionMetaChanged) {
44
+ return;
45
+ }
46
+ const error = readSessionSandboxState(envelope.action)?.error;
47
+ if (!error || error.clientId !== connection.clientId || reported.get(envelope.channel) === error.clientSeq) {
48
+ return;
49
+ }
50
+ reported.set(envelope.channel, error.clientSeq);
51
+ this._logService.error("Failed to update session sandbox configuration", error.message);
52
+ this._notificationService.error(( localize(
53
+ 9746,
54
+ "Could not change terminal sandboxing. Try the action again. {0}",
55
+ error.message
56
+ )));
57
+ }));
58
+ }
59
+ }
60
+ };
61
+ AgentHostSandboxNotifications = ( __decorate([( __param(0, IAgentHostConnectionsService)), ( __param(1, ILogService)), ( __param(2, INotificationService))], AgentHostSandboxNotifications));
62
+
63
+ export { AgentHostSandboxNotifications };
@@ -1,6 +1,7 @@
1
1
  import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
2
2
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
3
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
+ import { IAgentHostConnectionsService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentHostConnectionsService.service";
4
5
  import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
5
6
  import { AgentProvider, type IAgentConnection } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService";
6
7
  import { IRemoteAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService.service";
@@ -12,7 +13,8 @@ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log
12
13
  import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
13
14
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
14
15
  import { IWorkbenchAssignmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service";
15
- import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
16
+ import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService";
17
+ import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
16
18
  import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
17
19
  import { IWorkspaceTrustRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
18
20
  import { IWorkspaceTrustManagementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
@@ -93,6 +95,9 @@ export interface IAgentHostSessionHandlerConfig {
93
95
  readonly connection: IAgentConnection;
94
96
  /** Sanitized connection authority for constructing vscode-agent-host:// URIs. */
95
97
  readonly connectionAuthority: string;
98
+ readonly supportsCanvasPresentation?: boolean;
99
+ /** Whether sending a message requires workspace trust. Defaults to true. */
100
+ readonly requiresWorkspaceTrust?: boolean;
96
101
  /** Extension identifier for the registered agent. Defaults to 'vscode.agent-host'. */
97
102
  readonly extensionId?: string;
98
103
  /** Extension display name for the registered agent. Defaults to 'Agent Host'. */
@@ -103,6 +108,8 @@ export interface IAgentHostSessionHandlerConfig {
103
108
  * falling back to the first workspace folder.
104
109
  */
105
110
  readonly resolveWorkingDirectory?: (sessionResource: URI) => URI | undefined;
111
+ /** Prepares a new session's directory before resolving its customization scope and creating it. */
112
+ readonly prepareSession?: (sessionResource: URI, token: CancellationToken) => Promise<void>;
106
113
  /** Whether a final-looking chat resource is still a client-side draft. */
107
114
  readonly isNewSession?: (sessionResource: URI) => boolean;
108
115
  /** Called after a locally-created session has been accepted by the backend. */
@@ -137,6 +144,7 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
137
144
  private readonly _chatWidgetService;
138
145
  private readonly _languageModelsService;
139
146
  private readonly _openerService;
147
+ private readonly _editorService;
140
148
  private readonly _activeClientService;
141
149
  private readonly _chatEntitlementService;
142
150
  private readonly _workspaceTrustRequestService;
@@ -149,6 +157,7 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
149
157
  private readonly _remoteAgentHostService;
150
158
  private readonly _customizationService;
151
159
  private readonly _telemetryService;
160
+ private readonly _connectionsService;
152
161
  private static readonly DRAFT_SYNC_DEBOUNCE_MS;
153
162
  private static readonly ACTIVE_CLIENT_RECONCILIATION_DEBOUNCE_MS;
154
163
  private readonly _activeSessions;
@@ -213,19 +222,17 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
213
222
  * above is only released when the last of them goes away.
214
223
  */
215
224
  private readonly _clientToolRetainCounts;
216
- /**
217
- * Per-session set of MCP server ids that already had an authentication
218
- * prompt surfaced in the current conversation. A server is removed from the
219
- * set once it reaches the running state ({@link McpServerStatus.Ready}), so
220
- * that a later auth requirement for the same server prompts again instead of
221
- * the prompt repeating on every message.
222
- */
223
225
  private readonly _surfacedMcpAuthServers;
224
226
  private readonly _pendingMcpAutoAuthentication;
225
227
  /** Turn IDs dispatched by this client, used to distinguish server-originated turns. */
226
228
  private readonly _clientDispatchedTurnIds;
229
+ /** Observations of turns awaited by {@link _invokeAgent}; see {@link _createTurnObservation}. */
230
+ private readonly _turnObservations;
231
+ /** Cancelled when this handler is disposed, so waits that outlive a replaced connection settle. */
232
+ private readonly _lifetime;
227
233
  private readonly _turnStopWatches;
228
234
  private readonly _config;
235
+ private readonly _canvasProvider;
229
236
  /** Active session subscriptions, keyed by backend session URI string. */
230
237
  private readonly _sessionSubscriptions;
231
238
  /**
@@ -264,6 +271,7 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
264
271
  * it (see {@link _releaseChatSessionSubscriptions} / {@link _hasOtherSessionHold}).
265
272
  */
266
273
  private readonly _hydratingChatSessions;
274
+ private _sessionIdentityRefresh;
267
275
  /**
268
276
  * Whether the `hideAutoExplainability` experiment suppresses Auto's routing
269
277
  * row. `undefined` until the treatment resolves — emitting on a guess would
@@ -272,7 +280,7 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
272
280
  private readonly _hideAutoExplainability;
273
281
  /** Settles once {@link _hideAutoExplainability} is known. */
274
282
  private readonly _hideAutoExplainabilityReady;
275
- constructor(config: IAgentHostSessionHandlerConfig, _chatAgentService: IChatAgentService, _chatService: IChatService, _chatEditingService: IChatEditingService, _logService: ILogService, _workspaceContextService: IWorkspaceContextService, _instantiationService: IInstantiationService, _terminalChatService: ITerminalChatService, _agentHostTerminalService: IAgentHostTerminalService, _workingDirectoryResolver: IAgentHostSessionWorkingDirectoryResolver, _workingDirectorySynchronizer: IAgentHostSessionWorkingDirectorySynchronizer, _shellInitSynchronizer: IAgentHostShellInitSynchronizer, _newSessionFolderService: IAgentHostNewSessionFolderService, _provisionalService: IAgentHostUntitledProvisionalSessionService, _importConversationStore: IAgentHostImportConversationStore, _toolsService: ILanguageModelToolsService, _chatWidgetService: IChatWidgetService, _languageModelsService: ILanguageModelsService, _openerService: IOpenerService, _activeClientService: IAgentHostActiveClientService, _chatEntitlementService: IChatEntitlementService, _workspaceTrustRequestService: IWorkspaceTrustRequestService, _workspaceTrustManagementService: IWorkspaceTrustManagementService, _modelService: IModelService, _workingCopyService: IWorkingCopyService, _configurationService: IConfigurationService, _chatResponseFileChangesService: IChatResponseFileChangesService, _pathService: IPathService, _remoteAgentHostService: IRemoteAgentHostService, _customizationService: IAgentHostCustomizationService, _telemetryService: ITelemetryService, assignmentService: IWorkbenchAssignmentService);
283
+ constructor(config: IAgentHostSessionHandlerConfig, _chatAgentService: IChatAgentService, _chatService: IChatService, _chatEditingService: IChatEditingService, _logService: ILogService, _workspaceContextService: IWorkspaceContextService, _instantiationService: IInstantiationService, _terminalChatService: ITerminalChatService, _agentHostTerminalService: IAgentHostTerminalService, _workingDirectoryResolver: IAgentHostSessionWorkingDirectoryResolver, _workingDirectorySynchronizer: IAgentHostSessionWorkingDirectorySynchronizer, _shellInitSynchronizer: IAgentHostShellInitSynchronizer, _newSessionFolderService: IAgentHostNewSessionFolderService, _provisionalService: IAgentHostUntitledProvisionalSessionService, _importConversationStore: IAgentHostImportConversationStore, _toolsService: ILanguageModelToolsService, _chatWidgetService: IChatWidgetService, _languageModelsService: ILanguageModelsService, _openerService: IOpenerService, _editorService: IEditorService, _activeClientService: IAgentHostActiveClientService, _chatEntitlementService: IChatEntitlementService, _workspaceTrustRequestService: IWorkspaceTrustRequestService, _workspaceTrustManagementService: IWorkspaceTrustManagementService, _modelService: IModelService, _workingCopyService: IWorkingCopyService, _configurationService: IConfigurationService, _chatResponseFileChangesService: IChatResponseFileChangesService, _pathService: IPathService, _remoteAgentHostService: IRemoteAgentHostService, _customizationService: IAgentHostCustomizationService, _telemetryService: ITelemetryService, assignmentService: IWorkbenchAssignmentService, _connectionsService: IAgentHostConnectionsService);
276
284
  /**
277
285
  * Resolves the signed-in user's plan context for chat error formatting.
278
286
  * The agent host does not know the user's plan, so quota/rate-limit
@@ -325,7 +333,7 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
325
333
  private _resolveChatUriFromState;
326
334
  private _setChatURI;
327
335
  private _getChatURI;
328
- private _getRenameChatURI;
336
+ private _getChatURIOrDefault;
329
337
  private _getCurrentActiveClient;
330
338
  /**
331
339
  * Drop client-published customizations for a host older than list-shaped enablement, which
@@ -413,6 +421,25 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
413
421
  */
414
422
  private _trackServerTurnProgress;
415
423
  private _completeSessionTurn;
424
+ /**
425
+ * Creates the store that observes a turn awaited by {@link _invokeAgent}.
426
+ * Disposing it resolves the invocation with no turn, so callers must
427
+ * settle the invocation before disposing the store when the turn ends.
428
+ *
429
+ * If this handler is disposed first (e.g. the remote connection was
430
+ * replaced), the invocation settles without cancelling the turn on the
431
+ * host. The old connection's state can no longer report the turn's end,
432
+ * and an unsettled invocation would keep its chat request, and therefore
433
+ * its ChatModel, in progress indefinitely.
434
+ */
435
+ private _createTurnObservation;
436
+ /**
437
+ * Whether an invocation that is still preparing its turn should stop:
438
+ * either the request was cancelled, or this handler was disposed (e.g. the
439
+ * remote connection was replaced) and must not create a session or
440
+ * dispatch the turn on a connection that is going away.
441
+ */
442
+ private _isInvocationAbandoned;
416
443
  private _turnStopWatchKey;
417
444
  private _ensureTurnStopWatch;
418
445
  private _turnDuration;
@@ -440,34 +467,8 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
440
467
  * retained by the chat session or their root subagent.
441
468
  */
442
469
  private _observeTurn;
443
- /**
444
- * Surfaces the "MCP server … requires authentication" prompt for a turn.
445
- *
446
- * Each server is prompted at most once per conversation: {@link mcpAuthRequired$}
447
- * is session-wide, so without this guard the prompt would repeat on every
448
- * message. The per-session {@link _surfacedMcpAuthServers surfaced set} tracks
449
- * which servers were already prompted; it is pruned by
450
- * {@link _reconcileSurfacedMcpAuthServers} once a server reaches the running
451
- * state, so a server that is re-required after being authenticated (e.g.
452
- * after a restart) prompts again.
453
- *
454
- * The emitted part lists only the servers it introduced and shrinks as they
455
- * authenticate.
456
- */
457
470
  private _setupMcpAuthPrompt;
458
- /**
459
- * Returns the mutable set of MCP server ids already surfaced for
460
- * authentication in the given session, creating it on first use.
461
- */
462
471
  private _getSurfacedMcpAuthServers;
463
- /**
464
- * Prunes servers that reached the running ({@link McpServerStatus.Ready})
465
- * state from every session's {@link _surfacedMcpAuthServers surfaced set} so
466
- * a subsequent auth requirement surfaces a fresh prompt instead of being
467
- * suppressed. Only the running state counts as actioned — a server that
468
- * merely left {@link McpServerStatus.AuthRequired} for an error/stopped
469
- * state was not authenticated and stays suppressed.
470
- */
471
472
  private _reconcileSurfacedMcpAuthServers;
472
473
  private _filterAutoGrantedMcpAuthentication;
473
474
  private _autoAuthenticateMcpServer;
@@ -512,6 +513,8 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
512
513
  * the snapshot's part is the one on screen.
513
514
  */
514
515
  private _setupServerToolCall;
516
+ private _refreshToolAuthenticationServerName;
517
+ private _toolAuthenticationServerName;
515
518
  /** Transitions an invocation from streaming once its AHP tool call is ready. */
516
519
  private _ensureLeftStreaming;
517
520
  private _createSubagentContext;
@@ -544,20 +547,10 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
544
547
  * Synchronizes PTY and non-PTY terminal content, including the live-to-retained output handoff, and updates invocation metadata.
545
548
  */
546
549
  private _reviveTerminalIfNeeded;
547
- /**
548
- * Enriches serialized history with inner tool calls from subagent child
549
- * sessions. For each subagent tool call found in the history, subscribes
550
- * to the corresponding child session and appends its inner tool calls
551
- * (with `subAgentInvocationId` set) to the response parts.
552
- */
550
+ /** Restores live inline subagent pills while deferring settled child history until activity resumes. */
553
551
  private _enrichHistoryWithSubagentCalls;
554
552
  private _loadSubagentState;
555
- /**
556
- * Writes a subagent's accumulated cost (AIC) and model — summed across its
557
- * child session's turns — onto its serialized subagent tool call so the
558
- * hover survives a reload. Mirrors the live observers in
559
- * {@link _setupServerToolCall}.
560
- */
553
+ /** Restores accumulated credits and the latest known child model, including selected models before usage arrives. */
561
554
  private _applySubagentUsageToHistoryPart;
562
555
  private _refreshRestoredSubagentParts;
563
556
  private _getSubagentInnerParts;
@@ -589,11 +582,9 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
589
582
  * Hydrates the controller from any pending history turns on first access.
590
583
  */
591
584
  private _ensureSnapshotController;
592
- /**
593
- * Records snapshot data for a completed tool call (so restore-snapshot
594
- * works) and returns the {@link IChatExternalEdit} progress parts to
595
- * render the per-file edit pills.
596
- */
585
+ /** Completes a live invocation and publishes its edit results on every observation path. */
586
+ private _finalizeToolInvocation;
587
+ /** Records snapshot data and returns the per-file edit pills for a completed tool call. */
597
588
  private _hydrateFileEdits;
598
589
  /**
599
590
  * Attaches to an existing server-side terminal via the agent host
@@ -602,8 +593,11 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
602
593
  * Returns the terminal instance created or reused by the terminal service.
603
594
  */
604
595
  private _ensureTerminalInstance;
605
- /** Maps a UI session resource to a backend provider URI. */
596
+ private _discoverSessionIdentity;
597
+ private _loadSessionIdentities;
598
+ /** Resolves a known backend identity or a not-yet-created session address. */
606
599
  private _resolveSessionUri;
600
+ private _resolveAdvertisedSessionUri;
607
601
  private _isNewSessionResource;
608
602
  /**
609
603
  * Forks the conversation at the given request point into a new peer chat
@@ -655,6 +649,7 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
655
649
  */
656
650
  private _createTurnModelLookup;
657
651
  private _resolveRequestedWorkingDirectory;
652
+ private _getSensitiveEditLocationsConfig;
658
653
  /** `undefined` is preserved for createSession to let the host choose its working directories. */
659
654
  private _resolveRequestedWorkingDirectories;
660
655
  /**
@@ -688,36 +683,10 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
688
683
  */
689
684
  private _existingSessionWorkingDirectories;
690
685
  /**
691
- * Resolves the local folders the agent will run in, for the workspace-trust
692
- * gate: an existing session's persisted working directories, or a new session's
693
- * requested ones.
694
- *
695
- * Returns `undefined` for a workspace-less session (a quick chat) to signal the
696
- * caller to skip the folder-trust gate entirely: its only working directory is
697
- * an internal scratch dir (`~/.copilot/chats/<id>`), an implementation detail
698
- * rather than a user workspace, so it must not be treated as a trust root.
699
- * Otherwise an explicit empty set is honored and only a genuinely unresolved set
700
- * falls back to the requested/workspace folders.
686
+ * Resolves persisted workspace-trust roots, excluding a quick chat's internal scratch directory but not any added folders.
687
+ * New sessions and unresolved persisted roots fall back to the requested/workspace folders.
701
688
  */
702
689
  private _resolveSessionTrustFolders;
703
- /**
704
- * Grants (and persists) trust for a worktree-isolated session's VS Code-created
705
- * worktree when the base repository the user already trusts is trusted, so the
706
- * trust gate does not prompt for the worktree.
707
- *
708
- * This lives in the handler because `_invokeAgent` is the only universal
709
- * chokepoint every turn passes through — follow-up turns bypass the sessions
710
- * open gate ({@link ISessionsService.canOpenSession}). Protocol `SessionState`
711
- * does not carry the sessions layer's `gitRepository.workTreeUri`, so
712
- * eligibility uses the isolation config plus a structural guard: only a strict
713
- * descendant of the repository's `.worktrees` sibling
714
- * ({@link isWorktreeUnderRepository}) can inherit trust — a trusted base URI is
715
- * never enough on its own, and the shared `<repo>.worktrees` container is
716
- * excluded so a grant can never cascade to every worktree. Mirrors the
717
- * sessions-layer `ensureSessionWorktreesTrusted`; kept separate because
718
- * `workbench` must not import `sessions`.
719
- */
720
- private _inheritWorktreeTrust;
721
690
  /**
722
691
  * Ensures every local (file-scheme) folder the agent will run in is trusted
723
692
  * before a session is spawned; returns `false` if the user declines any. Trust
@@ -741,12 +710,7 @@ export declare class AgentHostSessionHandler extends Disposable implements IChat
741
710
  private _entrySelection;
742
711
  /** Dedupe identity: the bare URI for a whole document, suffixed with the range for a selection. */
743
712
  private _attachmentDedupeKey;
744
- /**
745
- * Whether this backend reads referenced files from disk (rather than seeing the editor's
746
- * in-memory buffer) and therefore needs the live text of an unsaved / dirty editor inlined as
747
- * an embedded resource. Copilot CLI and Codex both run as separate processes with only disk
748
- * access, so a `@path` mention (or an `untitled:` URI) would give them stale or missing content.
749
- */
713
+ /** Backends that read files from disk need unsaved editor content embedded in attachments. */
750
714
  private _backendInlinesUnsavedEditors;
751
715
  /** A resource is unsaved when it's untitled or a saved file with in-memory (dirty) changes. */
752
716
  private _isUnsavedResource;