@codingame/monaco-vscode-chat-service-override 32.0.1 → 33.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +15 -5
  3. package/package.json +5 -5
  4. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +170 -24
  5. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +372 -66
  6. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +18 -1
  7. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +160 -31
  8. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemService.d.ts +8 -0
  9. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemService.js +19 -0
  10. package/vscode/src/vs/platform/agentHost/common/agentHostSchema.d.ts +134 -0
  11. package/vscode/src/vs/platform/agentHost/common/agentHostSchema.js +257 -0
  12. package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +84 -3
  13. package/vscode/src/vs/platform/agentHost/common/agentService.js +9 -1
  14. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +61 -1
  15. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +61 -1
  16. package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.js +3 -1
  17. package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.js +1 -1
  18. package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +1 -1
  19. package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +1 -1
  20. package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +4 -4
  21. package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +1 -1
  22. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +2 -7
  23. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +8 -29
  24. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
  25. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +16 -16
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +60 -60
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +7 -7
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +10 -6
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +10 -1
  35. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +180 -174
  36. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
  37. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  38. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
  39. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +12 -12
  40. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
  41. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +12 -12
  42. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  43. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +11 -11
  44. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  45. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
  46. package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +20 -20
  47. package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.d.ts +64 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +330 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.d.ts +24 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.js +77 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +8 -8
  52. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +2 -2
  53. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
  54. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +6 -6
  55. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +13 -13
  56. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +5 -5
  57. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +51 -0
  58. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +267 -0
  59. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +4 -3
  60. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +53 -53
  61. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
  62. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
  63. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
  65. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
  66. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
  67. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +5 -4
  68. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +30 -28
  69. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  70. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  71. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +26 -0
  72. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +14 -14
  73. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +7 -6
  74. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +150 -119
  75. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +45 -44
  76. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +0 -1
  77. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +58 -76
  78. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
  79. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +25 -25
  80. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +2 -2
  81. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +2 -2
  82. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +3 -3
  83. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +2 -6
  84. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +88 -70
  85. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +82 -56
  86. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +10 -8
  87. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +2 -6
  88. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +89 -71
  89. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
  90. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.d.ts +1 -1
  91. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +2 -2843
  92. package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.d.ts +1 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +2934 -0
  94. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
  95. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +99 -99
  96. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
  97. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
  99. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
  100. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +22 -22
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +33 -33
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +4 -4
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +53 -20
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +4 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +131 -61
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +22 -0
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +23 -3
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +91 -15
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +23 -21
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -28
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +14 -14
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +19 -19
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +15 -4
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +203 -163
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +1 -3
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +31 -54
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.d.ts +1 -0
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +88 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -2
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
  146. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +17 -4
  147. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.d.ts +8 -0
  148. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +91 -0
  149. package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.d.ts +52 -0
  150. package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.js +82 -0
  151. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.d.ts +21 -1
  152. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +55 -18
  153. package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
  154. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
  155. package/vscode/src/vs/workbench/contrib/chat/browser/hasByokModelsContribution.d.ts +51 -0
  156. package/vscode/src/vs/workbench/contrib/chat/browser/hasByokModelsContribution.js +106 -0
  157. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +4 -2
  158. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +4 -4
  159. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +5 -5
  160. package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.d.ts +38 -0
  161. package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.js +59 -0
  162. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +3 -3
  163. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +25 -25
  164. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
  165. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
  166. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
  167. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +27 -27
  168. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
  169. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  170. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileContributions.js +4 -6
  171. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  172. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  173. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  174. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  175. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  176. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
  177. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
  178. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +1 -0
  179. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +38 -28
  180. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +5 -7
  181. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.d.ts +5 -1
  182. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.js +106 -7
  183. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +6 -8
  184. package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.d.ts +28 -0
  185. package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +75 -0
  186. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  187. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/{toolInvocationParts/chatToolOutputStateCache.d.ts → chatOutputPartStateCache.d.ts} +5 -6
  188. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/{toolInvocationParts/chatToolOutputStateCache.js → chatOutputPartStateCache.js} +19 -11
  189. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
  190. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +58 -26
  191. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +9 -9
  192. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +1 -1
  193. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
  194. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
  195. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
  196. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +18 -9
  197. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
  198. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +13 -5
  199. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +6 -2
  200. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
  201. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +19 -18
  202. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
  203. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +1 -2
  204. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
  205. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +6 -7
  206. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +14 -15
  207. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +155 -156
  208. package/vscode/src/vs/workbench/contrib/chat/common/tools/copilotToolIds.d.ts +6 -0
  209. package/vscode/src/vs/workbench/contrib/chat/common/tools/copilotToolIds.js +12 -0
  210. package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.d.ts +88 -0
  211. package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.js +25 -0
  212. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  213. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.d.ts +1 -0
  214. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +237 -0
  215. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.d.ts +66 -0
  216. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +600 -0
  217. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.d.ts +18 -0
  218. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +47 -0
  219. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselTypes.d.ts +22 -0
  220. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselTypes.js +7 -0
  221. package/vscode/src/vs/workbench/contrib/imageCarousel/browser/media/imageCarousel.css +298 -0
  222. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
  223. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
  224. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
  225. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  226. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  227. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
  228. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
  229. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  230. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  231. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  232. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
  233. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
  234. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
  235. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  236. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +12 -1
  237. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +78 -7
  238. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  239. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
  240. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
  241. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +15 -11
  242. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
  243. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -9
  244. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -16
  245. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  246. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandParser.d.ts +60 -0
  247. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandParser.js +286 -0
  248. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCache.d.ts +24 -0
  249. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCache.js +285 -0
  250. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.d.ts +19 -12
  251. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +415 -47
  252. package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.d.ts +2 -7
  253. package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.js +1 -1
  254. package/vscode/src/vs/base/common/defaultAccount.d.ts +0 -69
  255. package/vscode/src/vs/base/common/defaultAccount.js +0 -12
  256. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +0 -15
  257. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +0 -85
@@ -92,7 +92,7 @@ let UpdatePluginAction = class UpdatePluginAction extends Action {
92
92
  pluginInstallService,
93
93
  pluginMarketplaceService
94
94
  ) {
95
- super(UpdatePluginAction_1.ID, ( localize(5158, "Update")), "extension-action label prominent install");
95
+ super(UpdatePluginAction_1.ID, ( localize(5191, "Update")), "extension-action label prominent install");
96
96
  this.plugin = plugin;
97
97
  this.liveMarketplacePlugin = liveMarketplacePlugin;
98
98
  this.pluginInstallService = pluginInstallService;
@@ -120,7 +120,7 @@ let ManagePluginAction = class ManagePluginAction extends Action {
120
120
  this.getActionGroups = getActionGroups;
121
121
  this.instantiationService = instantiationService;
122
122
  this._actionViewItem = null;
123
- this.tooltip = ( localize(5159, "Manage"));
123
+ this.tooltip = ( localize(5192, "Manage"));
124
124
  }
125
125
  createActionViewItem(options) {
126
126
  this._actionViewItem = this.instantiationService.createInstance(DropDownActionViewItem, this, options);
@@ -357,7 +357,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
357
357
  return item?.name ?? "";
358
358
  },
359
359
  getWidgetAriaLabel() {
360
- return localize(5160, "Agent Plugins");
360
+ return localize(5193, "Agent Plugins");
361
361
  }
362
362
  },
363
363
  overrideStyles: getLocationBasedViewColors(this.viewDescriptorService.getViewLocationById(this.id)).listOverrideStyles
@@ -532,7 +532,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
532
532
  this.bodyTemplate.pluginsList.classList.toggle("hidden", count === 0);
533
533
  this.bodyTemplate.messageContainer.classList.toggle("hidden", count > 0);
534
534
  if (count === 0 && this.isBodyVisible()) {
535
- this.bodyTemplate.messageBox.textContent = ( localize(5161, "No agent plugins found."));
535
+ this.bodyTemplate.messageBox.textContent = ( localize(5194, "No agent plugins found."));
536
536
  }
537
537
  }
538
538
  }
@@ -542,8 +542,8 @@ class AgentPluginsBrowseCommand extends Action2 {
542
542
  constructor() {
543
543
  super({
544
544
  id: "workbench.agentPlugins.browse",
545
- title: ( localize2(5162, "Agent Plugins")),
546
- tooltip: ( localize2(5163, "Browse Agent Plugins")),
545
+ title: ( localize2(5195, "Agent Plugins")),
546
+ tooltip: ( localize2(5196, "Browse Agent Plugins")),
547
547
  icon: Codicon.search,
548
548
  precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))),
549
549
  menu: [{
@@ -566,8 +566,8 @@ class CheckForPluginUpdatesCommand extends Action2 {
566
566
  constructor() {
567
567
  super({
568
568
  id: "workbench.agentPlugins.checkForUpdates",
569
- title: ( localize2(5164, "Update Plugins")),
570
- category: ( localize2(5165, "Chat")),
569
+ title: ( localize2(5197, "Update Plugins")),
570
+ category: ( localize2(5198, "Chat")),
571
571
  precondition: ChatContextKeys.enabled,
572
572
  f1: true
573
573
  });
@@ -580,8 +580,8 @@ class ForceUpdatePluginsCommand extends Action2 {
580
580
  constructor() {
581
581
  super({
582
582
  id: "workbench.agentPlugins.forceUpdate",
583
- title: ( localize2(5166, "Update Plugins (Force)")),
584
- category: ( localize2(5165, "Chat")),
583
+ title: ( localize2(5199, "Update Plugins (Force)")),
584
+ category: ( localize2(5198, "Chat")),
585
585
  precondition: ChatContextKeys.enabled,
586
586
  f1: true
587
587
  });
@@ -607,7 +607,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
607
607
  registerAction2(ForceUpdatePluginsCommand);
608
608
  ( Registry.as(Extensions.ViewsRegistry)).registerViews([{
609
609
  id: InstalledAgentPluginsViewId,
610
- name: ( localize2(5167, "Agent Plugins - Installed")),
610
+ name: ( localize2(5200, "Agent Plugins - Installed")),
611
611
  ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{
612
612
  installedOnly: true
613
613
  }])),
@@ -617,7 +617,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
617
617
  canToggleVisibility: true
618
618
  }, {
619
619
  id: "workbench.views.agentPlugins.default.marketplace",
620
- name: ( localize2(5168, "Agent Plugins")),
620
+ name: ( localize2(5201, "Agent Plugins")),
621
621
  ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
622
622
  when: ( ContextKeyExpr.and(DefaultViewsContext, ( HasInstalledAgentPluginsContext.toNegated()), ( ChatContextKeys.Setup.hidden.negate()))),
623
623
  weight: 30,
@@ -626,7 +626,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
626
626
  hideByDefault: true
627
627
  }, {
628
628
  id: "workbench.views.agentPlugins.marketplace",
629
- name: ( localize2(5168, "Agent Plugins")),
629
+ name: ( localize2(5201, "Agent Plugins")),
630
630
  ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
631
631
  when: ( ContextKeyExpr.and(SearchAgentPluginsContext, ( ChatContextKeys.Setup.hidden.negate())))
632
632
  }], VIEW_CONTAINER);
@@ -64,23 +64,23 @@ let AgentHostPermissionUiContribution = class AgentHostPermissionUiContribution
64
64
  const path = request.uri.scheme === Schemas.file ? request.uri.fsPath : ( request.uri.toString());
65
65
  const fence = "`".repeat((path.match(/`+/g)?.reduce((m, s) => Math.max(m, s.length), 0) ?? 0) + 1);
66
66
  const codePath = `${fence}${path}${fence}`;
67
- const message = ( new MarkdownString(request.mode === AgentHostPermissionMode.Write ? ( localize(5169, "Remote agent host \"{0}\" wants to write {1}", hostName, codePath)) : ( localize(5170, "Remote agent host \"{0}\" wants to read {1}", hostName, codePath))));
68
- const description = totalPending > 1 ? totalPending === 2 ? ( localize(5171, "+1 more request waiting")) : ( localize(5172, "+{0} more requests waiting", totalPending - 1)) : undefined;
67
+ const message = ( new MarkdownString(request.mode === AgentHostPermissionMode.Write ? ( localize(5213, "Remote agent host \"{0}\" wants to write {1}", hostName, codePath)) : ( localize(5214, "Remote agent host \"{0}\" wants to read {1}", hostName, codePath))));
68
+ const description = totalPending > 1 ? totalPending === 2 ? ( localize(5215, "+1 more request waiting")) : ( localize(5216, "+{0} more requests waiting", totalPending - 1)) : undefined;
69
69
  return {
70
70
  id: AgentHostPermissionUiContribution_1.NOTIFICATION_ID,
71
71
  severity: ChatInputNotificationSeverity.Warning,
72
72
  message,
73
73
  description,
74
74
  actions: [{
75
- label: ( localize(5173, "Deny")),
75
+ label: ( localize(5217, "Deny")),
76
76
  commandId: DENY_COMMAND,
77
77
  commandArgs: [request.id]
78
78
  }, {
79
- label: ( localize(5174, "Allow")),
79
+ label: ( localize(5218, "Allow")),
80
80
  commandId: ALLOW_COMMAND,
81
81
  commandArgs: [request.id]
82
82
  }, {
83
- label: ( localize(5175, "Always Allow")),
83
+ label: ( localize(5219, "Always Allow")),
84
84
  commandId: ALLOW_ALWAYS_COMMAND,
85
85
  commandArgs: [request.id]
86
86
  }],
@@ -0,0 +1,51 @@
1
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
+ import { IAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service";
4
+ import type { ResolveSessionConfigResult } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/commands";
5
+ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
6
+ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
7
+ import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
8
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
9
+ import { IAgentHostUntitledProvisionalSessionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service";
10
+ export declare class AgentHostUntitledProvisionalSessionService extends Disposable implements IAgentHostUntitledProvisionalSessionService {
11
+ private readonly _agentHostService;
12
+ private readonly _logService;
13
+ private readonly _configurationService;
14
+ private readonly _environmentService;
15
+ readonly _serviceBrand: undefined;
16
+ private readonly _entries;
17
+ private readonly _pending;
18
+ private readonly _rebound;
19
+ private readonly _sequencer;
20
+ private readonly _onDidChange;
21
+ readonly onDidChange: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<URI>;
22
+ constructor(_agentHostService: IAgentHostService, _logService: ILogService, chatService: IChatService, _configurationService: IConfigurationService, _environmentService: IWorkbenchEnvironmentService);
23
+ get(sessionResource: URI): URI | undefined;
24
+ waitForPending(sessionResource: URI): Promise<URI | undefined>;
25
+ getOrCreate(sessionResource: URI, provider: string, workingDirectory: URI | undefined): Promise<URI | undefined>;
26
+ tryRebind(oldSessionResource: URI, newSessionResource: URI, provider: string, workingDirectory: URI | undefined): Promise<URI | undefined>;
27
+ disposeSession(sessionResource: URI): Promise<void>;
28
+ dispose(): void;
29
+ /**
30
+ * Convert the chat-input UI session URI (`agent-host-PROVIDER:/<id>`)
31
+ * to the agent-host backend URI (`PROVIDER:/<id>`).
32
+ */
33
+ private _toBackendUri;
34
+ getResolvedConfig(sessionResource: URI): ResolveSessionConfigResult | undefined;
35
+ applyConfigChange(sessionResource: URI, provider: string, workingDirectory: URI | undefined, partial: Record<string, unknown>): Promise<URI | undefined>;
36
+ /**
37
+ * Workbench-side initial config seed sent at `createSession` time so the
38
+ * agent's own server-side defaults don't fill `state.config.values` for
39
+ * keys the workbench wants to control. Without this, the merge filter in
40
+ * `agentHostSessionHandler` sees those agent defaults as "user-set" and
41
+ * drops the workbench defaults.
42
+ *
43
+ * - `isolation`: workbench has no isolation picker, so always `'folder'`.
44
+ * - `autoApprove`: seeded from `chat.permissions.default`, clamped to
45
+ * `'default'` when the `chat.tools.global.autoApprove` policy is off.
46
+ *
47
+ * Skipped entirely in the Agents window, where the sessions provider
48
+ * supplies config via `request.agentHostSessionConfig` instead.
49
+ */
50
+ private _getInitialConfig;
51
+ }
@@ -0,0 +1,267 @@
1
+
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { SequencerByKey } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
4
+ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
5
+ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
6
+ import { ResourceMap, ResourceSet } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
7
+ import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
8
+ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
9
+ import { IAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service';
10
+ import { SessionConfigKey, KNOWN_AUTO_APPROVE_VALUES } from '@codingame/monaco-vscode-katex-common/vscode/vs/platform/agentHost/common/sessionConfigKeys';
11
+ import { ActionType } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/actions';
12
+ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
13
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
14
+ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
15
+ import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
16
+ import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
17
+ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
18
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
19
+
20
+ let AgentHostUntitledProvisionalSessionService = class AgentHostUntitledProvisionalSessionService extends Disposable {
21
+ constructor(
22
+ _agentHostService,
23
+ _logService,
24
+ chatService,
25
+ _configurationService,
26
+ _environmentService
27
+ ) {
28
+ super();
29
+ this._agentHostService = _agentHostService;
30
+ this._logService = _logService;
31
+ this._configurationService = _configurationService;
32
+ this._environmentService = _environmentService;
33
+ this._entries = ( new ResourceMap());
34
+ this._pending = ( new ResourceMap());
35
+ this._rebound = ( new ResourceSet());
36
+ this._sequencer = ( new SequencerByKey());
37
+ this._onDidChange = this._register(( new Emitter()));
38
+ this.onDidChange = this._onDidChange.event;
39
+ this._register(chatService.onDidDisposeSession(e => {
40
+ for (const sessionResource of e.sessionResources) {
41
+ if (( this._entries.has(sessionResource))) {
42
+ void this.disposeSession(sessionResource);
43
+ }
44
+ this._rebound.delete(sessionResource);
45
+ }
46
+ }));
47
+ }
48
+ get(sessionResource) {
49
+ return this._entries.get(sessionResource)?.backendSession;
50
+ }
51
+ async waitForPending(sessionResource) {
52
+ const inflight = this._pending.get(sessionResource);
53
+ if (inflight) {
54
+ await inflight;
55
+ }
56
+ return this.get(sessionResource);
57
+ }
58
+ getOrCreate(sessionResource, provider, workingDirectory) {
59
+ const existing = this.get(sessionResource);
60
+ if (existing) {
61
+ return Promise.resolve(existing);
62
+ }
63
+ if (( this._rebound.has(sessionResource))) {
64
+ return Promise.resolve(undefined);
65
+ }
66
+ const inflight = this._pending.get(sessionResource);
67
+ if (inflight) {
68
+ return inflight;
69
+ }
70
+ const work = this._sequencer.queue(( sessionResource.toString()), async () => {
71
+ const settled = this.get(sessionResource);
72
+ if (settled) {
73
+ return settled;
74
+ }
75
+ const backendSession = this._toBackendUri(sessionResource, provider);
76
+ const initialConfig = this._getInitialConfig();
77
+ try {
78
+ const created = await this._agentHostService.createSession({
79
+ provider,
80
+ session: backendSession,
81
+ workingDirectory,
82
+ config: initialConfig
83
+ });
84
+ this._entries.set(sessionResource, {
85
+ backendSession: created,
86
+ config: {
87
+ ...(initialConfig ?? {})
88
+ }
89
+ });
90
+ this._onDidChange.fire(sessionResource);
91
+ return created;
92
+ } catch (err) {
93
+ this._logService.warn(
94
+ `[AgentHostProvisional] Failed to create provisional session for ${( sessionResource.toString())}: ${err instanceof Error ? err.message : String(err)}`
95
+ );
96
+ return undefined;
97
+ }
98
+ });
99
+ this._pending.set(sessionResource, work);
100
+ work.finally(() => {
101
+ if (this._pending.get(sessionResource) === work) {
102
+ this._pending.delete(sessionResource);
103
+ }
104
+ });
105
+ return work;
106
+ }
107
+ async tryRebind(oldSessionResource, newSessionResource, provider, workingDirectory) {
108
+ const alreadyBound = this.get(newSessionResource);
109
+ if (alreadyBound) {
110
+ return alreadyBound;
111
+ }
112
+ await this.waitForPending(oldSessionResource);
113
+ const oldEntry = this._entries.get(oldSessionResource);
114
+ if (!oldEntry) {
115
+ return undefined;
116
+ }
117
+ const config = oldEntry.config;
118
+ const newBackendSession = this._toBackendUri(newSessionResource, provider);
119
+ let created;
120
+ try {
121
+ created = await this._agentHostService.createSession({
122
+ provider,
123
+ session: newBackendSession,
124
+ workingDirectory,
125
+ config
126
+ });
127
+ } catch (err) {
128
+ this._logService.warn(
129
+ `[AgentHostProvisional] Failed to create rebound provisional: ${err instanceof Error ? err.message : String(err)}`
130
+ );
131
+ return undefined;
132
+ }
133
+ this._entries.set(newSessionResource, {
134
+ backendSession: created,
135
+ config: {
136
+ ...config
137
+ }
138
+ });
139
+ this._entries.delete(oldSessionResource);
140
+ this._rebound.add(oldSessionResource);
141
+ this._onDidChange.fire(newSessionResource);
142
+ this._agentHostService.disposeSession(oldEntry.backendSession).catch(err => {
143
+ this._logService.warn(
144
+ `[AgentHostProvisional] Failed to dispose temporary provisional ${( oldEntry.backendSession.toString())}: ${err instanceof Error ? err.message : String(err)}`
145
+ );
146
+ });
147
+ return created;
148
+ }
149
+ async disposeSession(sessionResource) {
150
+ await this.waitForPending(sessionResource);
151
+ const entry = this._entries.get(sessionResource);
152
+ if (!entry) {
153
+ return;
154
+ }
155
+ this._entries.delete(sessionResource);
156
+ this._onDidChange.fire(sessionResource);
157
+ try {
158
+ await this._agentHostService.disposeSession(entry.backendSession);
159
+ } catch (err) {
160
+ this._logService.warn(`[AgentHostProvisional] Failed to dispose provisional ${( entry.backendSession.toString())}: ${err instanceof Error ? err.message : String(err)}`);
161
+ }
162
+ }
163
+ dispose() {
164
+ for (const [, entry] of this._entries) {
165
+ this._agentHostService.disposeSession(entry.backendSession).catch(() => {});
166
+ }
167
+ this._entries.clear();
168
+ this._pending.clear();
169
+ this._rebound.clear();
170
+ super.dispose();
171
+ }
172
+ _toBackendUri(sessionResource, provider) {
173
+ const rawId = sessionResource.path.replace(/^\//, "");
174
+ return ( URI.from({
175
+ scheme: provider,
176
+ path: `/${rawId}`
177
+ }));
178
+ }
179
+ getResolvedConfig(sessionResource) {
180
+ return this._entries.get(sessionResource)?.resolvedConfig;
181
+ }
182
+ async applyConfigChange(sessionResource, provider, workingDirectory, partial) {
183
+ const preExisting = this._entries.get(sessionResource);
184
+ if (preExisting) {
185
+ Object.assign(preExisting.config, partial);
186
+ if (preExisting.resolvedConfig) {
187
+ preExisting.resolvedConfig = {
188
+ ...preExisting.resolvedConfig,
189
+ values: {
190
+ ...preExisting.resolvedConfig.values,
191
+ ...partial
192
+ }
193
+ };
194
+ }
195
+ }
196
+ const backend = await this.getOrCreate(sessionResource, provider, workingDirectory);
197
+ if (!backend) {
198
+ return undefined;
199
+ }
200
+ if (!preExisting) {
201
+ const entry = this._entries.get(sessionResource);
202
+ if (entry) {
203
+ Object.assign(entry.config, partial);
204
+ }
205
+ }
206
+ this._agentHostService.dispatch({
207
+ type: ActionType.SessionConfigChanged,
208
+ session: ( backend.toString()),
209
+ config: partial
210
+ });
211
+ return this._sequencer.queue(( sessionResource.toString()), async () => {
212
+ const current = this._entries.get(sessionResource);
213
+ if (!current) {
214
+ return backend;
215
+ }
216
+ try {
217
+ const resolved = await this._agentHostService.resolveSessionConfig({
218
+ provider,
219
+ workingDirectory,
220
+ config: {
221
+ ...current.config
222
+ }
223
+ });
224
+ const stillCurrent = this._entries.get(sessionResource);
225
+ if (stillCurrent === current) {
226
+ const resolvedValues = {
227
+ ...resolved.values
228
+ };
229
+ const mergedConfig = {
230
+ ...stillCurrent.config,
231
+ ...resolvedValues
232
+ };
233
+ const configChanged = !equals(stillCurrent.config, mergedConfig);
234
+ const resolvedChanged = !equals(stillCurrent.resolvedConfig, resolved);
235
+ if (configChanged || resolvedChanged) {
236
+ stillCurrent.config = mergedConfig;
237
+ stillCurrent.resolvedConfig = resolved;
238
+ this._onDidChange.fire(sessionResource);
239
+ }
240
+ }
241
+ } catch (err) {
242
+ this._logService.warn(
243
+ `[AgentHostProvisional] schema re-resolve failed: ${err instanceof Error ? err.message : String(err)}`
244
+ );
245
+ }
246
+ return backend;
247
+ });
248
+ }
249
+ _getInitialConfig() {
250
+ if (this._environmentService.isSessionsWindow) {
251
+ return undefined;
252
+ }
253
+ const config = {
254
+ [SessionConfigKey.Isolation]: "folder"
255
+ };
256
+ const configured = this._configurationService.getValue(ChatConfiguration.DefaultPermissionLevel);
257
+ const policyValue = this._configurationService.inspect(ChatConfiguration.GlobalAutoApprove).policyValue;
258
+ if (typeof configured === "string" && ( KNOWN_AUTO_APPROVE_VALUES.has(configured))) {
259
+ const policyRestricted = policyValue === false;
260
+ config[SessionConfigKey.AutoApprove] = policyRestricted ? "default" : configured;
261
+ }
262
+ return config;
263
+ }
264
+ };
265
+ AgentHostUntitledProvisionalSessionService = ( __decorate([( __param(0, IAgentHostService)), ( __param(1, ILogService)), ( __param(2, IChatService)), ( __param(3, IConfigurationService)), ( __param(4, IWorkbenchEnvironmentService))], AgentHostUntitledProvisionalSessionService));
266
+
267
+ export { AgentHostUntitledProvisionalSessionService };
@@ -16,6 +16,7 @@ import { registerAction2, MenuRegistry, MenuId } from '@codingame/monaco-vscode-
16
16
  import { FocusAgentSessionsAction, PickAgentSessionAction, ArchiveAllAgentSessionsAction, MarkAllAgentSessionsReadAction, ArchiveAgentSessionSectionAction, UnarchiveAgentSessionSectionAction, MarkAgentSessionSectionReadAction, CollapseAllAgentSessionSectionsAction, ArchiveAgentSessionAction, UnarchiveAgentSessionAction, PinAgentSessionAction, UnpinAgentSessionAction, RenameAgentSessionAction, DeleteAgentSessionAction, DeleteAllLocalSessionsAction, MarkAgentSessionUnreadAction, MarkAgentSessionReadAction, OpenAgentSessionInNewWindowAction, OpenAgentSessionInEditorGroupAction, OpenAgentSessionInNewEditorGroupAction, RefreshAgentSessionsViewerAction, FindAgentSessionInViewerAction, ShowAgentSessionsSidebar, HideAgentSessionsSidebar, ToggleAgentSessionsSidebar, ToggleShowAgentSessionsAction, SetAgentSessionsOrientationStackedAction, SetAgentSessionsOrientationSideBySideAction } from './agentSessionsActions.js';
17
17
  import { AGENT_SESSIONS_QUICK_ACCESS_PREFIX, AgentSessionsQuickAccessProvider } from './agentSessionsQuickAccess.js';
18
18
  import { AgentHostPermissionUiContribution } from './agentHost/agentHostPermissionUiContribution.js';
19
+ import '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution';
19
20
 
20
21
  registerAction2(FocusAgentSessionsAction);
21
22
  registerAction2(PickAgentSessionAction);
@@ -47,7 +48,7 @@ registerAction2(SetAgentSessionsOrientationStackedAction);
47
48
  registerAction2(SetAgentSessionsOrientationSideBySideAction);
48
49
  MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
49
50
  submenu: MenuId.AgentSessionsViewerFilterSubMenu,
50
- title: ( localize2(5183, "Filter Agent Sessions")),
51
+ title: ( localize2(5227, "Filter Agent Sessions")),
51
52
  group: "navigation",
52
53
  order: 3,
53
54
  icon: Codicon.filter
@@ -117,9 +118,9 @@ MenuRegistry.appendMenuItem(MenuId.ChatViewSessionTitleToolbar, {
117
118
  prefix: AGENT_SESSIONS_QUICK_ACCESS_PREFIX,
118
119
  contextKey: "inAgentSessionsPicker",
119
120
  when: ChatContextKeys.enabled,
120
- placeholder: ( localize(5184, "Search agent sessions by name")),
121
+ placeholder: ( localize(5228, "Search agent sessions by name")),
121
122
  helpEntries: [{
122
- description: ( localize(5185, "Show All Agent Sessions")),
123
+ description: ( localize(5229, "Show All Agent Sessions")),
123
124
  commandId: "workbench.action.chat.history"
124
125
  }]
125
126
  });