@codingame/monaco-vscode-chat-service-override 26.2.2 → 27.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 (316) hide show
  1. package/index.js +31 -1
  2. package/package.json +5 -5
  3. package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +15 -0
  4. package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +53 -0
  5. package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +219 -0
  6. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +39 -0
  7. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +83 -0
  8. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +123 -0
  9. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +274 -0
  10. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +71 -0
  11. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +284 -0
  12. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +79 -0
  13. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +378 -0
  14. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -2
  15. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +27 -40
  16. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +9 -3
  17. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +74 -18
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +1 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +54 -8
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +87 -53
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +71 -15
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +43 -21
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +22 -3
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +1 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +154 -0
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -8
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +53 -43
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +4 -0
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +84 -0
  35. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +1 -0
  36. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +33 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  38. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +15 -29
  39. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  40. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +13 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +16 -16
  42. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +12 -12
  43. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
  44. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +33 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +204 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +77 -0
  47. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +541 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +10 -11
  49. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +70 -65
  50. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +7 -1
  51. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +27 -18
  52. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +1 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +4 -2
  54. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  55. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -5
  56. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +2 -0
  57. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +90 -51
  58. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +20 -5
  59. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +3 -1
  60. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +43 -27
  61. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +7 -2
  62. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +3 -1
  63. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +84 -22
  64. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  65. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.d.ts → localAgentSessionsController.d.ts} +7 -4
  66. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.js → localAgentSessionsController.js} +24 -17
  67. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +23 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +171 -0
  69. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +48 -0
  70. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +19 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +181 -0
  72. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +943 -0
  73. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.d.ts +1 -0
  74. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +248 -0
  75. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +57 -0
  76. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +27 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +118 -0
  78. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +727 -0
  79. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +22 -0
  80. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +38 -0
  81. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -0
  82. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +72 -0
  83. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +45 -0
  84. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +165 -0
  85. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +75 -0
  86. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +623 -0
  87. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +858 -0
  88. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +2 -0
  89. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +30 -1
  90. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.d.ts +32 -0
  91. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js +26 -0
  92. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +19 -3
  93. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +36 -26
  94. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +529 -363
  95. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +18 -0
  96. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +419 -0
  97. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +12 -0
  98. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +46 -0
  99. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +34 -0
  100. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +198 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +55 -0
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +305 -0
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.d.ts +23 -0
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +64 -0
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +5 -0
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +84 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +27 -0
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +110 -0
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +34 -0
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +111 -0
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +71 -0
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +611 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +125 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +504 -0
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.d.ts +10 -0
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +914 -0
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +19 -0
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +128 -0
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +58 -0
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +429 -0
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +31 -0
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +113 -0
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +14 -0
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +126 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +38 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +279 -0
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +18 -0
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +122 -0
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +45 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +85 -0
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +781 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +5 -22
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -3
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +2 -1
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +12 -12
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +16 -15
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -76
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +26 -15
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +2 -2
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +15 -7
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +40 -413
  153. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +10 -0
  154. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +38 -6
  155. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +5 -1
  156. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +56 -46
  157. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +15 -11
  158. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +52 -0
  159. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +138 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +11 -1
  161. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +166 -41
  162. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +6 -0
  163. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +37 -23
  164. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +15 -0
  165. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +351 -0
  166. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
  167. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +118 -63
  168. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +28 -0
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +182 -13
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +892 -41
  172. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +5 -1
  173. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +55 -25
  174. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +28 -19
  175. package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.d.ts +14 -0
  176. package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.js +62 -0
  177. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.d.ts +36 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +110 -0
  179. package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.d.ts +10 -0
  180. package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.js +39 -0
  181. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +3 -3
  182. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +6 -6
  183. package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.d.ts +10 -0
  184. package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.js +39 -0
  185. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +27 -0
  186. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +102 -0
  187. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
  188. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +16 -1
  189. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +69 -47
  190. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +2 -41
  191. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  192. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +7 -7
  193. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  194. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.d.ts +4 -0
  195. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +8 -8
  196. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  197. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
  198. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +4 -4
  199. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +22 -0
  200. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +76 -0
  201. package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +5 -0
  202. package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +30 -0
  203. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +43 -31
  204. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +67 -42
  205. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +31 -0
  206. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +242 -0
  207. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +34 -0
  208. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +45 -0
  209. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
  210. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +33 -0
  211. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +311 -0
  212. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  213. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +4 -0
  214. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +10 -1
  215. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +10 -10
  216. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +8 -9
  217. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +64 -26
  218. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +4 -2
  219. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
  220. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +2 -2
  221. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +15 -4
  222. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +42 -8
  223. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +8 -1
  224. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +58 -31
  225. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +6 -5
  226. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +8 -20
  227. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +15 -6
  228. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +39 -0
  229. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +27 -0
  230. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +190 -0
  231. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +11 -0
  232. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +36 -0
  233. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +188 -0
  234. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +18 -8
  235. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +192 -85
  236. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +2 -1
  237. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +2 -1
  238. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -6
  239. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +16 -8
  240. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +8 -4
  241. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +111 -7
  242. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +2 -0
  243. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +52 -0
  244. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +29 -0
  245. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +73 -0
  246. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +622 -0
  247. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +64 -0
  248. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +478 -0
  249. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +35 -16
  250. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +1 -30
  251. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -5
  252. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +2 -8
  253. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +1 -1
  254. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +8 -8
  255. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +9 -9
  256. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +23 -22
  257. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +44 -14
  258. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +345 -113
  259. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +14 -1
  260. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +34 -24
  261. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +3 -0
  262. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +13 -0
  263. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  264. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +11 -5
  265. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +23 -0
  266. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +248 -24
  267. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +6 -11
  268. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +18 -81
  269. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +2 -3
  270. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +10 -10
  271. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  272. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  273. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
  274. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +6 -6
  275. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  276. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  277. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css +6 -2
  278. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  279. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +35 -26
  280. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +0 -1
  281. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +1 -5
  282. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +3 -3
  283. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
  284. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +4 -1
  285. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +13 -11
  286. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
  287. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +3 -1
  288. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
  289. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
  290. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
  291. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
  292. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  293. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
  294. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  295. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
  296. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +9 -0
  297. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +280 -65
  298. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +3 -1
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +8 -0
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -10
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +1 -0
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +47 -19
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +8 -0
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +31 -0
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +6 -1
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +38 -16
  311. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +0 -72
  312. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +0 -587
  313. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +0 -71
  314. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +0 -293
  315. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.d.ts +0 -2
  316. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.js +0 -31
@@ -23,6 +23,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
23
23
  import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
24
24
  import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
25
25
  import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
26
+ import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
26
27
  import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
27
28
  import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
28
29
  import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
@@ -72,6 +73,9 @@ import { AgentSessionsFilter, AgentSessionsGrouping } from '@codingame/monaco-vs
72
73
  import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
73
74
  import { HoverPosition } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverWidget';
74
75
  import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
76
+ import { toErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errorMessage';
77
+ import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
78
+ import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
75
79
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
76
80
 
77
81
  var ChatViewPane_1;
@@ -95,6 +99,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
95
99
  chatService,
96
100
  chatAgentService,
97
101
  logService,
102
+ notificationService,
98
103
  layoutService,
99
104
  chatSessionsService,
100
105
  telemetryService,
@@ -103,7 +108,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
103
108
  agentSessionsService,
104
109
  chatEntitlementService,
105
110
  commandService,
106
- activityService
111
+ activityService,
112
+ workbenchEnvironmentService,
113
+ hostService
107
114
  ) {
108
115
  super(
109
116
  options,
@@ -121,6 +128,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
121
128
  this.chatService = chatService;
122
129
  this.chatAgentService = chatAgentService;
123
130
  this.logService = logService;
131
+ this.notificationService = notificationService;
124
132
  this.layoutService = layoutService;
125
133
  this.chatSessionsService = chatSessionsService;
126
134
  this.telemetryService = telemetryService;
@@ -129,6 +137,8 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
129
137
  this.chatEntitlementService = chatEntitlementService;
130
138
  this.commandService = commandService;
131
139
  this.activityService = activityService;
140
+ this.workbenchEnvironmentService = workbenchEnvironmentService;
141
+ this.hostService = hostService;
132
142
  this.lastDimensionsPerOrientation = ( new Map());
133
143
  this.modelRef = this._register(( new MutableDisposable()));
134
144
  this.activityBadge = this._register(( new MutableDisposable()));
@@ -140,6 +150,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
140
150
  this.viewState = this.memento.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE);
141
151
  if (lifecycleService.startupKind !== StartupKind.ReloadedWindow && this.configurationService.getValue(ChatConfiguration.RestoreLastPanelSession) === false) {
142
152
  this.viewState.sessionId = undefined;
153
+ this.viewState.sessionResource = undefined;
143
154
  }
144
155
  this.sessionsViewerVisible = false;
145
156
  this.sessionsViewerSidebarWidth = Math.max(
@@ -199,8 +210,6 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
199
210
  }[viewLocation === ViewContainerLocation.Panel ? this.layoutService.getPanelPosition() : sideBarPosition];
200
211
  }
201
212
  updateViewPaneClasses(fromEvent) {
202
- const welcomeEnabled = !this.chatEntitlementService.sentiment.installed;
203
- this.viewPaneContainer?.classList.toggle("chat-view-welcome-enabled", welcomeEnabled);
204
213
  const activityBarLocationDefault = this.configurationService.getValue(LayoutSettings.ACTIVITY_BAR_LOCATION) === "default";
205
214
  this.viewPaneContainer?.classList.toggle("activity-bar-location-default", activityBarLocationDefault);
206
215
  this.viewPaneContainer?.classList.toggle("activity-bar-location-other", !activityBarLocationDefault);
@@ -235,15 +244,12 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
235
244
  this._register(Event.filter(this.configurationService.onDidChangeConfiguration, e => {
236
245
  return e.affectsConfiguration(LayoutSettings.ACTIVITY_BAR_LOCATION);
237
246
  })(() => this.updateViewPaneClasses(true)));
238
- this._register(this.chatEntitlementService.onDidChangeSentiment(() => {
239
- this.updateViewPaneClasses(true);
240
- }));
241
247
  }
242
248
  onDidChangeAgents() {
243
249
  if (this.chatAgentService.getDefaultAgent(ChatAgentLocation.Chat)) {
244
250
  if (!this._widget?.viewModel && !this.restoringSession) {
245
251
  const sessionResource = this.getTransferredOrPersistedSessionInfo();
246
- this.restoringSession = (sessionResource ? this.chatService.getOrRestoreSession(sessionResource) : Promise.resolve(undefined)).then(async modelRef => {
252
+ this.restoringSession = (sessionResource ? this.chatService.acquireOrLoadSession(sessionResource, ChatAgentLocation.Chat, CancellationToken.None) : Promise.resolve(undefined)).then(async modelRef => {
247
253
  if (!this._widget) {
248
254
  return;
249
255
  }
@@ -264,6 +270,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
264
270
  if (this.chatService.transferredSessionResource) {
265
271
  return this.chatService.transferredSessionResource;
266
272
  }
273
+ if (this.viewState.sessionResource) {
274
+ return this.viewState.sessionResource;
275
+ }
267
276
  return this.viewState.sessionId ? LocalChatSessionUri.forSession(this.viewState.sessionId) : undefined;
268
277
  }
269
278
  renderBody(parent) {
@@ -304,7 +313,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
304
313
  const sessionsContainer = this.sessionsContainer = parent.appendChild($(".agent-sessions-container"));
305
314
  const sessionsTitleContainer = this.sessionsTitleContainer = append(sessionsContainer, $(".agent-sessions-title-container"));
306
315
  const sessionsTitle = this.sessionsTitle = append(sessionsTitleContainer, $("span.agent-sessions-title"));
307
- sessionsTitle.textContent = ( localize(6242, "Sessions"));
316
+ sessionsTitle.textContent = ( localize(6781, "Sessions"));
308
317
  this._register(addDisposableListener(sessionsTitle, EventType.CLICK, () => {
309
318
  this.sessionsControl?.scrollToTop();
310
319
  this.sessionsControl?.focus();
@@ -332,7 +341,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
332
341
  ...defaultButtonStyles,
333
342
  secondary: true
334
343
  })));
335
- newSessionButton.label = ( localize(6243, "New Session"));
344
+ newSessionButton.label = ( localize(6782, "New Session"));
336
345
  this._register(
337
346
  newSessionButton.onDidClick(() => this.commandService.executeCommand(ACTION_ID_NEW_CHAT))
338
347
  );
@@ -364,6 +373,11 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
364
373
  this.onDidChangeBodyVisibility(visible => sessionsControl.setVisible(visible))
365
374
  );
366
375
  sessionsToolbar.context = sessionsControl;
376
+ this._register(this.hostService.onDidChangeFocus(hasFocus => {
377
+ if (hasFocus) {
378
+ sessionsControl.refresh();
379
+ }
380
+ }));
367
381
  this._register(Event.runAndSubscribe(Event.filter(
368
382
  this.configurationService.onDidChangeConfiguration,
369
383
  e => e.affectsConfiguration(ChatConfiguration.ChatViewSessionsOrientation)
@@ -417,7 +431,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
417
431
  } else {
418
432
  if (this.sessionsViewerOrientation === AgentSessionsViewerOrientation.Stacked) {
419
433
  newSessionsContainerVisible =
420
- !!this.chatEntitlementService.sentiment.installed && (!this._widget || (this._widget.isEmpty() && !!this._widget.viewModel)) && !this.welcomeController?.isShowingWelcome.get();
434
+ !!this.chatEntitlementService.sentiment.installed && (!this._widget || (this._widget.isEmpty() && !!this._widget.viewModel && !this._widget.viewModel.model.title)) && !this.welcomeController?.isShowingWelcome.get();
421
435
  }
422
436
  else {
423
437
  newSessionsContainerVisible =
@@ -448,7 +462,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
448
462
  const locationBasedColors = this.getLocationBasedColors();
449
463
  const editorOverflowWidgetsDomNode = this.layoutService.getContainer(getWindow(chatControlsContainer)).appendChild($(".chat-editor-overflow.monaco-editor"));
450
464
  this._register(toDisposable(() => editorOverflowWidgetsDomNode.remove()));
451
- this.createChatTitleControl(chatControlsContainer);
465
+ if (this.viewDescriptorService.getViewLocationById(this.id) !== ViewContainerLocation.ChatBar) {
466
+ this.createChatTitleControl(chatControlsContainer);
467
+ }
452
468
  const scopedInstantiationService = this._register(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, this.scopedContextKeyService]))));
453
469
  this._widget = this._register(
454
470
  scopedInstantiationService.createInstance(ChatWidget, ChatAgentLocation.Chat, {
@@ -467,7 +483,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
467
483
  },
468
484
  editorOverflowWidgetsDomNode,
469
485
  enableImplicitContext: true,
470
- enableWorkingSet: "explicit",
486
+ enableWorkingSet: this.workbenchEnvironmentService.isSessionsWindow ? "implicit" : "explicit",
471
487
  supportsChangingModes: true,
472
488
  dndContainer: parent
473
489
  }, {
@@ -555,7 +571,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
555
571
  progressBadgeDisposables.value.add(autorun(reader => {
556
572
  if (model.requestInProgress.read(reader)) {
557
573
  this.activityBadge.value = this.activityService.showViewActivity(this.id, {
558
- badge: ( new ProgressBadge(() => ( localize(6244, "Agent Session in Progress"))))
574
+ badge: ( new ProgressBadge(() => ( localize(6783, "Agent Session in Progress"))))
559
575
  });
560
576
  } else {
561
577
  this.activityBadge.clear();
@@ -582,9 +598,13 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
582
598
  });
583
599
  }));
584
600
  }
585
- async applyModel() {
601
+ applyModel() {
602
+ this.restoringSession = this._applyModel();
603
+ this.restoringSession.finally(() => this.restoringSession = undefined);
604
+ }
605
+ async _applyModel() {
586
606
  const sessionResource = this.getTransferredOrPersistedSessionInfo();
587
- const modelRef = sessionResource ? await this.chatService.getOrRestoreSession(sessionResource) : undefined;
607
+ const modelRef = sessionResource ? await this.chatService.acquireOrLoadSession(sessionResource, ChatAgentLocation.Chat, CancellationToken.None) : undefined;
588
608
  await this.showModel(modelRef);
589
609
  }
590
610
  async showModel(modelRef, startNewSession = true) {
@@ -592,7 +612,11 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
592
612
  this.modelRef.value = undefined;
593
613
  let ref;
594
614
  if (startNewSession) {
595
- ref = modelRef ?? (this.chatService.transferredSessionResource ? await this.chatService.getOrRestoreSession(this.chatService.transferredSessionResource) : this.chatService.startSession(ChatAgentLocation.Chat));
615
+ ref = modelRef ?? (this.chatService.transferredSessionResource ? await this.chatService.acquireOrLoadSession(
616
+ this.chatService.transferredSessionResource,
617
+ ChatAgentLocation.Chat,
618
+ CancellationToken.None
619
+ ) : this.chatService.startNewLocalSession(ChatAgentLocation.Chat));
596
620
  if (!ref) {
597
621
  throw ( new Error("Could not start chat session"));
598
622
  }
@@ -601,7 +625,7 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
601
625
  const model = ref?.object;
602
626
  if (model) {
603
627
  await this.updateWidgetLockState(model.sessionResource);
604
- this.viewState.sessionId = model.sessionId;
628
+ this.viewState.sessionResource = model.sessionResource;
605
629
  }
606
630
  this._widget.setModel(model);
607
631
  this.titleControl?.update(model);
@@ -640,6 +664,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
640
664
  this.updateActions();
641
665
  }
642
666
  async loadSession(sessionResource) {
667
+ if (this.restoringSession) {
668
+ await this.restoringSession;
669
+ }
643
670
  return this.progressService.withProgress({
644
671
  location: ChatViewId,
645
672
  delay: 200
@@ -648,14 +675,18 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
648
675
  const clearWidget = disposableTimeout(() => {
649
676
  queue = this.showModel(undefined, false).then(() => {});
650
677
  }, 100);
651
- const sessionType = getChatSessionType(sessionResource);
652
- if (sessionType !== localChatSessionType) {
653
- await this.chatSessionsService.canResolveChatSession(sessionResource);
678
+ try {
679
+ const newModelRef = await this.chatService.acquireOrLoadSession(sessionResource, ChatAgentLocation.Chat, CancellationToken.None);
680
+ clearWidget.dispose();
681
+ await queue;
682
+ return this.showModel(newModelRef);
683
+ } catch (err) {
684
+ clearWidget.dispose();
685
+ await queue;
686
+ this.logService.error(`Failed to load chat session '${( sessionResource.toString())}'`, err);
687
+ this.notificationService.error(( localize(6784, "Failed to open chat session: {0}", toErrorMessage(err))));
688
+ return this.showModel(undefined);
654
689
  }
655
- const newModelRef = await this.chatService.loadSessionForResource(sessionResource, ChatAgentLocation.Chat, CancellationToken.None);
656
- clearWidget.dispose();
657
- await queue;
658
- return this.showModel(newModelRef);
659
690
  });
660
691
  }
661
692
  focus() {
@@ -727,9 +758,6 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
727
758
  default:
728
759
  newSessionsViewerOrientation = width >= ChatViewPane_1.SESSIONS_SIDEBAR_VIEW_MIN_WIDTH ? AgentSessionsViewerOrientation.SideBySide : AgentSessionsViewerOrientation.Stacked;
729
760
  }
730
- if (newSessionsViewerOrientation === AgentSessionsViewerOrientation.Stacked && width >= ChatViewPane_1.SESSIONS_SIDEBAR_VIEW_MIN_WIDTH && this.getViewPositionAndLocation().location === ViewContainerLocation.AuxiliaryBar && this.layoutService.isAuxiliaryBarMaximized()) {
731
- newSessionsViewerOrientation = AgentSessionsViewerOrientation.SideBySide;
732
- }
733
761
  this.sessionsViewerOrientation = newSessionsViewerOrientation;
734
762
  if (newSessionsViewerOrientation === AgentSessionsViewerOrientation.SideBySide) {
735
763
  this.viewPaneContainer.classList.toggle("sessions-control-orientation-sidebyside", true);
@@ -787,10 +815,9 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
787
815
  widthReduction = this.sessionsContainer.offsetWidth;
788
816
  }
789
817
  else {
790
- const sessionsHeight = availableSessionsHeight - 1 ;
791
- this.sessionsControlContainer.style.height = `${sessionsHeight}px`;
818
+ this.sessionsControlContainer.style.height = `${availableSessionsHeight}px`;
792
819
  this.sessionsControlContainer.style.width = ``;
793
- this.sessionsControl.layout(sessionsHeight, width);
820
+ this.sessionsControl.layout(availableSessionsHeight, width);
794
821
  heightReduction = this.sessionsContainer.offsetHeight;
795
822
  widthReduction = 0;
796
823
  }
@@ -889,6 +916,6 @@ let ChatViewPane = class ChatViewPane extends ViewPane {
889
916
  } : undefined;
890
917
  }
891
918
  };
892
- ChatViewPane = ChatViewPane_1 = ( __decorate([( __param(1, IKeybindingService)), ( __param(2, IContextMenuService)), ( __param(3, IConfigurationService)), ( __param(4, IContextKeyService)), ( __param(5, IViewDescriptorService)), ( __param(6, IInstantiationService)), ( __param(7, IOpenerService)), ( __param(8, IThemeService)), ( __param(9, IHoverService)), ( __param(10, IStorageService)), ( __param(11, IChatService)), ( __param(12, IChatAgentService)), ( __param(13, ILogService)), ( __param(14, IWorkbenchLayoutService)), ( __param(15, IChatSessionsService)), ( __param(16, ITelemetryService)), ( __param(17, ILifecycleService)), ( __param(18, IProgressService)), ( __param(19, IAgentSessionsService)), ( __param(20, IChatEntitlementService)), ( __param(21, ICommandService)), ( __param(22, IActivityService))], ChatViewPane));
919
+ ChatViewPane = ChatViewPane_1 = ( __decorate([( __param(1, IKeybindingService)), ( __param(2, IContextMenuService)), ( __param(3, IConfigurationService)), ( __param(4, IContextKeyService)), ( __param(5, IViewDescriptorService)), ( __param(6, IInstantiationService)), ( __param(7, IOpenerService)), ( __param(8, IThemeService)), ( __param(9, IHoverService)), ( __param(10, IStorageService)), ( __param(11, IChatService)), ( __param(12, IChatAgentService)), ( __param(13, ILogService)), ( __param(14, INotificationService)), ( __param(15, IWorkbenchLayoutService)), ( __param(16, IChatSessionsService)), ( __param(17, ITelemetryService)), ( __param(18, ILifecycleService)), ( __param(19, IProgressService)), ( __param(20, IAgentSessionsService)), ( __param(21, IChatEntitlementService)), ( __param(22, ICommandService)), ( __param(23, IActivityService)), ( __param(24, IWorkbenchEnvironmentService)), ( __param(25, IHostService))], ChatViewPane));
893
920
 
894
921
  export { ChatViewPane };
@@ -23,7 +23,7 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
23
23
  ChatViewTitleControl_1 = this;
24
24
  }
25
25
  static {
26
- this.DEFAULT_TITLE = ( localize(6245, "Chat"));
26
+ this.DEFAULT_TITLE = ( localize(6785, "Chat"));
27
27
  }
28
28
  static {
29
29
  this.PICK_AGENT_SESSION_ACTION_ID = "workbench.action.chat.pickAgentSession";
@@ -43,11 +43,12 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
43
43
  this.registerActions();
44
44
  }
45
45
  registerActions() {
46
+ const that = this;
46
47
  this._register(registerAction2(class extends Action2 {
47
48
  constructor() {
48
49
  super({
49
50
  id: ChatViewTitleControl_1.PICK_AGENT_SESSION_ACTION_ID,
50
- title: ( localize(6246, "Pick Agent Session")),
51
+ title: ( localize(6786, "Pick Agent Session")),
51
52
  f1: false,
52
53
  menu: [{
53
54
  id: MenuId.ChatViewSessionTitleNavigationToolbar,
@@ -58,16 +59,16 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
58
59
  }
59
60
  async run(accessor) {
60
61
  const instantiationService = accessor.get(IInstantiationService);
61
- const agentSessionsPicker = instantiationService.createInstance(AgentSessionsPicker);
62
+ const agentSessionsPicker = instantiationService.createInstance(AgentSessionsPicker, that.titleLabel.value?.element, undefined);
62
63
  await agentSessionsPicker.pickAgentSession();
63
64
  }
64
65
  }));
65
66
  }
66
67
  render(parent) {
67
- const elements = h("div.chat-view-title-container", [
68
+ const elements = h("div.chat-view-title-container", [h("div.chat-view-title-inner", [
68
69
  h("div.chat-view-title-navigation-toolbar@navigationToolbar"),
69
70
  h("div.chat-view-title-actions-toolbar@actionsToolbar")
70
- ]);
71
+ ])]);
71
72
  this.navigationToolbar = this._register(this.instantiationService.createInstance(
72
73
  MenuWorkbenchToolBar,
73
74
  elements.navigationToolbar,
@@ -18,27 +18,12 @@
18
18
 
19
19
  .interactive-session {
20
20
 
21
- /* needed so that the chat welcome and chat input does not overflow and input grows over welcome */
21
+ /* needed so that the chat input does not overflow and input grows over content above */
22
22
  width: 100%;
23
23
  min-height: 0;
24
24
  min-width: 0;
25
25
  }
26
26
  }
27
-
28
- &:not(.chat-view-welcome-enabled) {
29
-
30
- .interactive-session {
31
-
32
- /* hide most welcome pieces (except suggested actions) when we show recent sessions to make some space */
33
- .chat-welcome-view .chat-welcome-view-icon,
34
- .chat-welcome-view .chat-welcome-view-title,
35
- .chat-welcome-view .chat-welcome-view-message,
36
- .chat-welcome-view .chat-welcome-view-disclaimer,
37
- .chat-welcome-view .chat-welcome-view-tips {
38
- visibility: hidden;
39
- }
40
- }
41
- }
42
27
  }
43
28
 
44
29
  /* Sessions control: either sidebar or stacked */
@@ -83,7 +68,10 @@
83
68
  .chat-viewpane.has-sessions-control.sessions-control-orientation-stacked {
84
69
 
85
70
  .agent-sessions-container {
86
- border-bottom: 1px solid var(--vscode-panel-border);
71
+ /* center it above the chat which has this max-width restriction */
72
+ max-width: 950px;
73
+ margin: 0 auto;
74
+ width: 100%;
87
75
  }
88
76
 
89
77
  .agent-sessions-new-button-container {
@@ -112,7 +100,7 @@
112
100
  }
113
101
 
114
102
  .agent-sessions-new-button-container {
115
- padding: 8px 12px;
103
+ padding: 8px;
116
104
  }
117
105
  }
118
106
 
@@ -139,7 +127,7 @@
139
127
  }
140
128
 
141
129
  .agent-session-section {
142
- padding: 0 12px 0 20px;
130
+ padding: 0 6px 0 14px;
143
131
  }
144
132
 
145
133
  /* Right position: symmetric padding */
@@ -150,7 +138,7 @@
150
138
  }
151
139
 
152
140
  .agent-session-section {
153
- padding: 0 12px 0 8px;
141
+ padding: 0 6px 0 8px;
154
142
  }
155
143
  }
156
144
 
@@ -7,9 +7,18 @@
7
7
 
8
8
  .chat-view-title-container {
9
9
  display: none;
10
- align-items: center;
11
10
  cursor: pointer;
12
11
 
12
+ .chat-view-title-inner {
13
+ display: flex;
14
+ align-items: center;
15
+ /* center it above the chat which has this max-width restriction */
16
+ max-width: 950px;
17
+ margin: 0 auto;
18
+ width: 100%;
19
+ box-sizing: border-box;
20
+ }
21
+
13
22
  .chat-view-title-navigation-toolbar {
14
23
  overflow: hidden;
15
24
 
@@ -44,7 +53,7 @@
44
53
  }
45
54
 
46
55
  .chat-view-title-container.visible {
47
- display: flex;
56
+ display: block;
48
57
  }
49
58
  }
50
59
 
@@ -62,28 +71,28 @@
62
71
  &.chat-view-location-sidebar,
63
72
  &.chat-view-location-panel,
64
73
  &.chat-view-location-auxiliarybar {
65
- .chat-view-title-container {
74
+ .chat-view-title-inner {
66
75
  padding: 0 12px 0 16px;
67
76
  }
68
77
  }
69
78
 
70
79
  /* Auxiliarybar with non-default activity bar position */
71
80
  &.activity-bar-location-other.chat-view-location-auxiliarybar {
72
- .chat-view-title-container {
81
+ .chat-view-title-inner {
73
82
  padding: 0 8px 0 16px;
74
83
  }
75
84
  }
76
85
 
77
86
  /* Side-by-side sessions: left position (any activity bar) */
78
87
  &.has-sessions-control.sessions-control-orientation-sidebyside.chat-view-position-left {
79
- .chat-view-title-container {
88
+ .chat-view-title-inner {
80
89
  padding: 0 8px;
81
90
  }
82
91
  }
83
92
 
84
93
  /* Side-by-side sessions: right position (default activity bar only) */
85
94
  &.activity-bar-location-default.has-sessions-control.sessions-control-orientation-sidebyside.chat-view-position-right {
86
- .chat-view-title-container {
95
+ .chat-view-title-inner {
87
96
  padding: 0 8px 0 16px;
88
97
  }
89
98
  }
@@ -0,0 +1,39 @@
1
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
2
+ import { PromptsStorage } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService";
3
+ /**
4
+ * Possible section IDs for the AI Customization Management Editor sidebar.
5
+ */
6
+ export declare const AICustomizationManagementSection: {
7
+ readonly Agents: "agents";
8
+ readonly Skills: "skills";
9
+ readonly Instructions: "instructions";
10
+ readonly Prompts: "prompts";
11
+ readonly Hooks: "hooks";
12
+ readonly McpServers: "mcpServers";
13
+ readonly Models: "models";
14
+ };
15
+ export type AICustomizationManagementSection = typeof AICustomizationManagementSection[keyof typeof AICustomizationManagementSection];
16
+ /**
17
+ * Per-type filter policy controlling which storage sources and user file
18
+ * roots are visible for a given customization type.
19
+ */
20
+ export interface IStorageSourceFilter {
21
+ /**
22
+ * Which storage groups to display (e.g. workspace, user, extension).
23
+ */
24
+ readonly sources: readonly PromptsStorage[];
25
+ /**
26
+ * If set, only user files under these roots are shown (allowlist).
27
+ * If `undefined`, all user file roots are included.
28
+ */
29
+ readonly includedUserFileRoots?: readonly URI[];
30
+ }
31
+ /**
32
+ * Applies a storage source filter to an array of items that have uri and storage.
33
+ * Removes items whose storage is not in the filter's source list,
34
+ * and for user-storage items, removes those not under an allowed root.
35
+ */
36
+ export declare function applyStorageSourceFilter<T extends {
37
+ readonly uri: URI;
38
+ readonly storage: PromptsStorage;
39
+ }>(items: readonly T[], filter: IStorageSourceFilter): readonly T[];
@@ -0,0 +1,27 @@
1
+
2
+ import { isEqualOrParent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
3
+ import { PromptsStorage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService';
4
+
5
+ const AICustomizationManagementSection = {
6
+ Agents: "agents",
7
+ Skills: "skills",
8
+ Instructions: "instructions",
9
+ Prompts: "prompts",
10
+ Hooks: "hooks",
11
+ McpServers: "mcpServers",
12
+ Models: "models"
13
+ };
14
+ function applyStorageSourceFilter(items, filter) {
15
+ const sourceSet = ( new Set(filter.sources));
16
+ return items.filter(item => {
17
+ if (!( sourceSet.has(item.storage))) {
18
+ return false;
19
+ }
20
+ if (item.storage === PromptsStorage.user && filter.includedUserFileRoots) {
21
+ return ( filter.includedUserFileRoots.some(root => isEqualOrParent(item.uri, root)));
22
+ }
23
+ return true;
24
+ });
25
+ }
26
+
27
+ export { AICustomizationManagementSection, applyStorageSourceFilter };