@codingame/monaco-vscode-chat-service-override 26.2.1 → 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 +5 -6
  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
package/index.js CHANGED
@@ -82,6 +82,26 @@ import { ChatEditingExplanationModelManager } from './vscode/src/vs/workbench/co
82
82
  import { ChatToolOutputStateCache } from './vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.js';
83
83
  import { ITerminalSandboxService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.service';
84
84
  import { TerminalSandboxService } from './vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js';
85
+ import { IAgentFeedbackService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.service';
86
+ import { AgentFeedbackService } from './vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js';
87
+ import { ISessionsConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service';
88
+ import { SessionsConfigurationService } from './vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js';
89
+ import { IAICustomizationWorkspaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service';
90
+ import { SessionsAICustomizationWorkspaceService } from './vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js';
91
+ import { ISessionsManagementService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/sessions/browser/sessionsManagementService.service';
92
+ import { SessionsManagementService } from './vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js';
93
+ import { IAgentPluginService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService.service';
94
+ import { AgentPluginService } from './vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js';
95
+ import { PluginMarketplaceService } from './vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js';
96
+ import { IPluginMarketplaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service';
97
+ import { IAgentPluginRepositoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service';
98
+ import { AgentPluginRepositoryService } from './vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js';
99
+ import { IPluginInstallService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service';
100
+ import { PluginInstallService } from './vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js';
101
+ import { IChatAttachmentWidgetRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service';
102
+ import { ChatAttachmentWidgetRegistry } from './vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js';
103
+ import { IChatDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service';
104
+ import { ChatDebugServiceImpl } from './vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js';
85
105
  import './vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js';
86
106
  import './vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js';
87
107
  import './vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js';
@@ -132,7 +152,17 @@ function getServiceOverride() {
132
152
  [IChatTipService.toString()]: new SyncDescriptor(ChatTipService, [], true),
133
153
  [IChatEditingExplanationModelManager.toString()]: new SyncDescriptor(ChatEditingExplanationModelManager, [], true),
134
154
  [IChatToolOutputStateCache.toString()]: new SyncDescriptor(ChatToolOutputStateCache, [], true),
135
- [ITerminalSandboxService.toString()]: new SyncDescriptor(TerminalSandboxService, [], true)
155
+ [ITerminalSandboxService.toString()]: new SyncDescriptor(TerminalSandboxService, [], true),
156
+ [IAgentFeedbackService.toString()]: new SyncDescriptor(AgentFeedbackService, [], true),
157
+ [ISessionsConfigurationService.toString()]: new SyncDescriptor(SessionsConfigurationService, [], true),
158
+ [IAICustomizationWorkspaceService.toString()]: new SyncDescriptor(SessionsAICustomizationWorkspaceService, [], true),
159
+ [ISessionsManagementService.toString()]: new SyncDescriptor(SessionsManagementService, [], true),
160
+ [IAgentPluginService.toString()]: new SyncDescriptor(AgentPluginService, [], true),
161
+ [IPluginMarketplaceService.toString()]: new SyncDescriptor(PluginMarketplaceService, [], true),
162
+ [IAgentPluginRepositoryService.toString()]: new SyncDescriptor(AgentPluginRepositoryService, [], true),
163
+ [IPluginInstallService.toString()]: new SyncDescriptor(PluginInstallService, [], true),
164
+ [IChatAttachmentWidgetRegistry.toString()]: new SyncDescriptor(ChatAttachmentWidgetRegistry, [], true),
165
+ [IChatDebugService.toString()]: new SyncDescriptor(ChatDebugServiceImpl, [], true)
136
166
  };
137
167
  }
138
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-chat-service-override",
3
- "version": "26.2.1",
3
+ "version": "27.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - chat service-override",
6
6
  "keywords": [],
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "26.2.1",
19
- "@codingame/monaco-vscode-katex-common": "26.2.1",
20
- "@codingame/monaco-vscode-xterm-addons-common": "26.2.1",
21
- "@codingame/monaco-vscode-xterm-common": "26.2.1"
18
+ "@codingame/monaco-vscode-api": "27.0.0",
19
+ "@codingame/monaco-vscode-katex-common": "27.0.0",
20
+ "@codingame/monaco-vscode-xterm-addons-common": "27.0.0",
21
+ "@codingame/monaco-vscode-xterm-common": "27.0.0"
22
22
  },
23
23
  "main": "index.js",
24
24
  "module": "index.js",
@@ -1,8 +1,23 @@
1
1
  import { IRectangle } from "@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window";
2
+ export interface IElementAncestor {
3
+ readonly tagName: string;
4
+ readonly id?: string;
5
+ readonly classNames?: string[];
6
+ }
2
7
  export interface IElementData {
3
8
  readonly outerHTML: string;
4
9
  readonly computedStyle: string;
5
10
  readonly bounds: IRectangle;
11
+ readonly ancestors?: IElementAncestor[];
12
+ readonly attributes?: Record<string, string>;
13
+ readonly computedStyles?: Record<string, string>;
14
+ readonly dimensions?: {
15
+ readonly top: number;
16
+ readonly left: number;
17
+ readonly width: number;
18
+ readonly height: number;
19
+ };
20
+ readonly innerText?: string;
6
21
  }
7
22
  /**
8
23
  * Locator for identifying a browser target/webview.
@@ -0,0 +1,53 @@
1
+ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
+ import { IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range";
5
+ import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service";
6
+ import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
7
+ import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
8
+ import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
9
+ import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
10
+ import { IAgentFeedbackService } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.service";
11
+ export interface IAgentFeedback {
12
+ readonly id: string;
13
+ readonly text: string;
14
+ readonly resourceUri: URI;
15
+ readonly range: IRange;
16
+ readonly sessionResource: URI;
17
+ }
18
+ export interface IAgentFeedbackChangeEvent {
19
+ readonly sessionResource: URI;
20
+ readonly feedbackItems: readonly IAgentFeedback[];
21
+ }
22
+ export interface IAgentFeedbackNavigationBearing {
23
+ readonly activeIdx: number;
24
+ readonly totalCount: number;
25
+ }
26
+ export declare class AgentFeedbackService extends Disposable implements IAgentFeedbackService {
27
+ private readonly _chatEditingService;
28
+ private readonly _agentSessionsService;
29
+ private readonly _editorService;
30
+ private readonly _chatWidgetService;
31
+ private readonly _commandService;
32
+ readonly _serviceBrand: undefined;
33
+ private readonly _onDidChangeFeedback;
34
+ readonly onDidChangeFeedback: Event<IAgentFeedbackChangeEvent>;
35
+ private readonly _onDidChangeNavigation;
36
+ readonly onDidChangeNavigation: Event<URI>;
37
+ /** sessionResource → feedback items */
38
+ private readonly _feedbackBySession;
39
+ private readonly _sessionUpdatedOrder;
40
+ private _sessionUpdatedSequence;
41
+ private readonly _navigationAnchorBySession;
42
+ constructor(_chatEditingService: IChatEditingService, _agentSessionsService: IAgentSessionsService, _editorService: IEditorService, _chatWidgetService: IChatWidgetService, _commandService: ICommandService);
43
+ addFeedback(sessionResource: URI, resourceUri: URI, range: IRange, text: string): IAgentFeedback;
44
+ removeFeedback(sessionResource: URI, feedbackId: string): void;
45
+ getFeedback(sessionResource: URI): readonly IAgentFeedback[];
46
+ getMostRecentSessionForResource(resourceUri: URI): URI | undefined;
47
+ private _sessionContainsResource;
48
+ revealFeedback(sessionResource: URI, feedbackId: string): Promise<void>;
49
+ getNextFeedback(sessionResource: URI, next: boolean): IAgentFeedback | undefined;
50
+ getNavigationBearing(sessionResource: URI): IAgentFeedbackNavigationBearing;
51
+ clearFeedback(sessionResource: URI): void;
52
+ addFeedbackAndSubmit(sessionResource: URI, resourceUri: URI, range: IRange, text: string): Promise<void>;
53
+ }
@@ -0,0 +1,219 @@
1
+
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
4
+ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
+ import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
6
+ import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
7
+ import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
8
+ import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
9
+ import { editingEntriesContainResource, agentSessionContainsResource } from '../../../../workbench/contrib/chat/browser/sessionResourceMatching.js';
10
+ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
11
+ import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
12
+ import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
13
+
14
+ let AgentFeedbackService = class AgentFeedbackService extends Disposable {
15
+ constructor(
16
+ _chatEditingService,
17
+ _agentSessionsService,
18
+ _editorService,
19
+ _chatWidgetService,
20
+ _commandService
21
+ ) {
22
+ super();
23
+ this._chatEditingService = _chatEditingService;
24
+ this._agentSessionsService = _agentSessionsService;
25
+ this._editorService = _editorService;
26
+ this._chatWidgetService = _chatWidgetService;
27
+ this._commandService = _commandService;
28
+ this._onDidChangeFeedback = this._store.add(( new Emitter()));
29
+ this.onDidChangeFeedback = this._onDidChangeFeedback.event;
30
+ this._onDidChangeNavigation = this._store.add(( new Emitter()));
31
+ this.onDidChangeNavigation = this._onDidChangeNavigation.event;
32
+ this._feedbackBySession = ( new Map());
33
+ this._sessionUpdatedOrder = ( new Map());
34
+ this._sessionUpdatedSequence = 0;
35
+ this._navigationAnchorBySession = ( new Map());
36
+ }
37
+ addFeedback(sessionResource, resourceUri, range, text) {
38
+ const key = ( sessionResource.toString());
39
+ let feedbackItems = this._feedbackBySession.get(key);
40
+ if (!feedbackItems) {
41
+ feedbackItems = [];
42
+ this._feedbackBySession.set(key, feedbackItems);
43
+ }
44
+ const feedback = {
45
+ id: generateUuid(),
46
+ text,
47
+ resourceUri,
48
+ range,
49
+ sessionResource
50
+ };
51
+ const resourceStr = ( resourceUri.toString());
52
+ const hasExistingForFile = ( feedbackItems.some(f => ( f.resourceUri.toString()) === resourceStr));
53
+ if (!hasExistingForFile) {
54
+ feedbackItems.push(feedback);
55
+ } else {
56
+ let insertIdx = feedbackItems.length;
57
+ for (let i = 0; i < feedbackItems.length; i++) {
58
+ if (( feedbackItems[i].resourceUri.toString()) === resourceStr && feedbackItems[i].range.startLineNumber > range.startLineNumber) {
59
+ insertIdx = i;
60
+ break;
61
+ }
62
+ if (( feedbackItems[i].resourceUri.toString()) === resourceStr) {
63
+ insertIdx = i + 1;
64
+ }
65
+ }
66
+ feedbackItems.splice(insertIdx, 0, feedback);
67
+ }
68
+ this._sessionUpdatedOrder.set(key, ++this._sessionUpdatedSequence);
69
+ this._onDidChangeNavigation.fire(sessionResource);
70
+ this._onDidChangeFeedback.fire({
71
+ sessionResource,
72
+ feedbackItems
73
+ });
74
+ return feedback;
75
+ }
76
+ removeFeedback(sessionResource, feedbackId) {
77
+ const key = ( sessionResource.toString());
78
+ const feedbackItems = this._feedbackBySession.get(key);
79
+ if (!feedbackItems) {
80
+ return;
81
+ }
82
+ const idx = feedbackItems.findIndex(f => f.id === feedbackId);
83
+ if (idx >= 0) {
84
+ feedbackItems.splice(idx, 1);
85
+ if (this._navigationAnchorBySession.get(key) === feedbackId) {
86
+ this._navigationAnchorBySession.delete(key);
87
+ this._onDidChangeNavigation.fire(sessionResource);
88
+ }
89
+ if (feedbackItems.length > 0) {
90
+ this._sessionUpdatedOrder.set(key, ++this._sessionUpdatedSequence);
91
+ } else {
92
+ this._sessionUpdatedOrder.delete(key);
93
+ }
94
+ this._onDidChangeFeedback.fire({
95
+ sessionResource,
96
+ feedbackItems
97
+ });
98
+ }
99
+ }
100
+ getFeedback(sessionResource) {
101
+ return this._feedbackBySession.get(( sessionResource.toString())) ?? [];
102
+ }
103
+ getMostRecentSessionForResource(resourceUri) {
104
+ let bestSession;
105
+ let bestSequence = -1;
106
+ for (const [, feedbackItems] of this._feedbackBySession) {
107
+ if (!feedbackItems.length) {
108
+ continue;
109
+ }
110
+ const candidate = feedbackItems[0].sessionResource;
111
+ if (!this._sessionContainsResource(candidate, resourceUri, feedbackItems)) {
112
+ continue;
113
+ }
114
+ const sequence = this._sessionUpdatedOrder.get(( candidate.toString())) ?? 0;
115
+ if (sequence > bestSequence) {
116
+ bestSession = candidate;
117
+ bestSequence = sequence;
118
+ }
119
+ }
120
+ return bestSession;
121
+ }
122
+ _sessionContainsResource(sessionResource, resourceUri, feedbackItems) {
123
+ if (( feedbackItems.some(item => isEqual(item.resourceUri, resourceUri)))) {
124
+ return true;
125
+ }
126
+ for (const editingSession of this._chatEditingService.editingSessionsObs.get()) {
127
+ if (!isEqual(editingSession.chatSessionResource, sessionResource)) {
128
+ continue;
129
+ }
130
+ if (editingEntriesContainResource(editingSession.entries.get(), resourceUri)) {
131
+ return true;
132
+ }
133
+ }
134
+ for (const session of this._agentSessionsService.model.sessions) {
135
+ if (!isEqual(session.resource, sessionResource)) {
136
+ continue;
137
+ }
138
+ if (agentSessionContainsResource(session, resourceUri)) {
139
+ return true;
140
+ }
141
+ }
142
+ return false;
143
+ }
144
+ async revealFeedback(sessionResource, feedbackId) {
145
+ const key = ( sessionResource.toString());
146
+ const feedbackItems = this._feedbackBySession.get(key);
147
+ const feedback = feedbackItems?.find(f => f.id === feedbackId);
148
+ if (!feedback) {
149
+ return;
150
+ }
151
+ await this._editorService.openEditor({
152
+ resource: feedback.resourceUri,
153
+ options: {
154
+ preserveFocus: false,
155
+ revealIfVisible: true
156
+ }
157
+ });
158
+ setTimeout(() => {
159
+ this._navigationAnchorBySession.set(key, feedbackId);
160
+ this._onDidChangeNavigation.fire(sessionResource);
161
+ }, 50);
162
+ }
163
+ getNextFeedback(sessionResource, next) {
164
+ const key = ( sessionResource.toString());
165
+ const feedbackItems = this._feedbackBySession.get(key);
166
+ if (!feedbackItems?.length) {
167
+ this._navigationAnchorBySession.delete(key);
168
+ return undefined;
169
+ }
170
+ const anchorId = this._navigationAnchorBySession.get(key);
171
+ let anchorIndex = anchorId ? feedbackItems.findIndex(item => item.id === anchorId) : -1;
172
+ if (anchorIndex < 0 && !next) {
173
+ anchorIndex = 0;
174
+ }
175
+ const nextIndex = next ? (anchorIndex + 1) % feedbackItems.length : (anchorIndex - 1 + feedbackItems.length) % feedbackItems.length;
176
+ const feedback = feedbackItems[nextIndex];
177
+ this._navigationAnchorBySession.set(key, feedback.id);
178
+ this._onDidChangeNavigation.fire(sessionResource);
179
+ return feedback;
180
+ }
181
+ getNavigationBearing(sessionResource) {
182
+ const key = ( sessionResource.toString());
183
+ const feedbackItems = this._feedbackBySession.get(key) ?? [];
184
+ const anchorId = this._navigationAnchorBySession.get(key);
185
+ const activeIdx = anchorId ? feedbackItems.findIndex(item => item.id === anchorId) : -1;
186
+ return {
187
+ activeIdx,
188
+ totalCount: feedbackItems.length
189
+ };
190
+ }
191
+ clearFeedback(sessionResource) {
192
+ const key = ( sessionResource.toString());
193
+ this._feedbackBySession.delete(key);
194
+ this._sessionUpdatedOrder.delete(key);
195
+ this._navigationAnchorBySession.delete(key);
196
+ this._onDidChangeNavigation.fire(sessionResource);
197
+ this._onDidChangeFeedback.fire({
198
+ sessionResource,
199
+ feedbackItems: []
200
+ });
201
+ }
202
+ async addFeedbackAndSubmit(sessionResource, resourceUri, range, text) {
203
+ this.addFeedback(sessionResource, resourceUri, range, text);
204
+ const widget = this._chatWidgetService.getWidgetBySessionResource(sessionResource);
205
+ if (widget) {
206
+ const attachmentId = "agentFeedback:" + ( sessionResource.toString());
207
+ const hasAttachment = () => ( widget.attachmentModel.attachments.some(a => a.id === attachmentId));
208
+ if (!hasAttachment()) {
209
+ await Event.toPromise(Event.filter(widget.attachmentModel.onDidChange, () => hasAttachment()));
210
+ }
211
+ } else {
212
+ await ( new Promise(resolve => setTimeout(resolve, 100)));
213
+ }
214
+ await this._commandService.executeCommand("agentFeedbackEditor.action.submit");
215
+ }
216
+ };
217
+ AgentFeedbackService = ( __decorate([( __param(0, IChatEditingService)), ( __param(1, IAgentSessionsService)), ( __param(2, IEditorService)), ( __param(3, IChatWidgetService)), ( __param(4, ICommandService))], AgentFeedbackService));
218
+
219
+ export { AgentFeedbackService };
@@ -0,0 +1,39 @@
1
+ import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
2
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
+ import { AICustomizationManagementSection, IStorageSourceFilter } from "../../../../workbench/contrib/chat/common/aiCustomizationWorkspaceService.js";
4
+ import { IAICustomizationWorkspaceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service";
5
+ import { ISessionsManagementService } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/sessions/browser/sessionsManagementService.service";
6
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
7
+ import { PromptsType } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes";
8
+ import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
9
+ /**
10
+ * Agent Sessions override of IAICustomizationWorkspaceService.
11
+ * Delegates to ISessionsManagementService to provide the active session's
12
+ * worktree/repository as the project root, and supports worktree commit.
13
+ */
14
+ export declare class SessionsAICustomizationWorkspaceService implements IAICustomizationWorkspaceService {
15
+ private readonly sessionsService;
16
+ private readonly instantiationService;
17
+ readonly _serviceBrand: undefined;
18
+ readonly activeProjectRoot: IObservable<URI | undefined>;
19
+ /**
20
+ * CLI-accessible user directories for customization file filtering and creation.
21
+ */
22
+ private readonly _cliUserRoots;
23
+ /**
24
+ * Pre-built filter for types that should only show CLI-accessible user roots.
25
+ */
26
+ private readonly _cliUserFilter;
27
+ constructor(sessionsService: ISessionsManagementService, instantiationService: IInstantiationService, pathService: IPathService);
28
+ getActiveProjectRoot(): URI | undefined;
29
+ readonly managementSections: readonly AICustomizationManagementSection[];
30
+ private static readonly _hooksFilter;
31
+ private static readonly _allUserRootsFilter;
32
+ getStorageSourceFilter(type: PromptsType): IStorageSourceFilter;
33
+ /**
34
+ * Returns the CLI-accessible user directories (~/.copilot, ~/.claude, ~/.agents).
35
+ */
36
+ readonly isSessionsWindow = true;
37
+ commitFiles(projectRoot: URI, fileUris: URI[]): Promise<void>;
38
+ generateCustomization(type: PromptsType): Promise<void>;
39
+ }
@@ -0,0 +1,83 @@
1
+
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
4
+ import { joinPath } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
5
+ import { AICustomizationManagementSection } from '../../../../workbench/contrib/chat/common/aiCustomizationWorkspaceService.js';
6
+ import { PromptsStorage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService';
7
+ import { ISessionsManagementService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/sessions/browser/sessionsManagementService.service';
8
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
9
+ import { CustomizationCreatorService } from '../../../../workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js';
10
+ import { PromptsType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
11
+ import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
12
+ import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
13
+
14
+ var SessionsAICustomizationWorkspaceService_1;
15
+ let SessionsAICustomizationWorkspaceService = class SessionsAICustomizationWorkspaceService {
16
+ static {
17
+ SessionsAICustomizationWorkspaceService_1 = this;
18
+ }
19
+ constructor(sessionsService, instantiationService, pathService) {
20
+ this.sessionsService = sessionsService;
21
+ this.instantiationService = instantiationService;
22
+ this.managementSections = [
23
+ AICustomizationManagementSection.Agents,
24
+ AICustomizationManagementSection.Skills,
25
+ AICustomizationManagementSection.Instructions,
26
+ AICustomizationManagementSection.Prompts,
27
+ AICustomizationManagementSection.Hooks
28
+ ];
29
+ this.isSessionsWindow = true;
30
+ const userHome = pathService.userHome({
31
+ preferLocal: true
32
+ });
33
+ this._cliUserRoots = [
34
+ joinPath(userHome, ".copilot"),
35
+ joinPath(userHome, ".claude"),
36
+ joinPath(userHome, ".agents")
37
+ ];
38
+ this._cliUserFilter = {
39
+ sources: [PromptsStorage.local, PromptsStorage.user],
40
+ includedUserFileRoots: this._cliUserRoots
41
+ };
42
+ this.activeProjectRoot = derived(reader => {
43
+ const session = this.sessionsService.activeSession.read(reader);
44
+ return session?.worktree ?? session?.repository;
45
+ });
46
+ }
47
+ getActiveProjectRoot() {
48
+ const session = this.sessionsService.getActiveSession();
49
+ return session?.worktree ?? session?.repository;
50
+ }
51
+ static {
52
+ this._hooksFilter = {
53
+ sources: [PromptsStorage.local]
54
+ };
55
+ }
56
+ static {
57
+ this._allUserRootsFilter = {
58
+ sources: [PromptsStorage.local, PromptsStorage.user]
59
+ };
60
+ }
61
+ getStorageSourceFilter(type) {
62
+ if (type === PromptsType.hook) {
63
+ return SessionsAICustomizationWorkspaceService_1._hooksFilter;
64
+ }
65
+ if (type === PromptsType.prompt) {
66
+ return SessionsAICustomizationWorkspaceService_1._allUserRootsFilter;
67
+ }
68
+ return this._cliUserFilter;
69
+ }
70
+ async commitFiles(projectRoot, fileUris) {
71
+ const session = this.sessionsService.getActiveSession();
72
+ if (session) {
73
+ await this.sessionsService.commitWorktreeFiles(session, fileUris);
74
+ }
75
+ }
76
+ async generateCustomization(type) {
77
+ const creator = this.instantiationService.createInstance(CustomizationCreatorService);
78
+ await creator.createWithAI(type);
79
+ }
80
+ };
81
+ SessionsAICustomizationWorkspaceService = SessionsAICustomizationWorkspaceService_1 = ( __decorate([( __param(0, ISessionsManagementService)), ( __param(1, IInstantiationService)), ( __param(2, IPathService))], SessionsAICustomizationWorkspaceService));
82
+
83
+ export { SessionsAICustomizationWorkspaceService };
@@ -0,0 +1,123 @@
1
+ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
+ import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
+ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
5
+ import { IChatSessionProviderOptionGroup, IChatSessionProviderOptionItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
6
+ import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
7
+ import { IsolationMode } from "@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/chat/browser/sessionTargetPicker";
8
+ import { AgentSessionProviders } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions";
9
+ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
10
+ import { IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries";
11
+ export type NewSessionChangeType = "repoUri" | "isolationMode" | "branch" | "options" | "disabled";
12
+ /**
13
+ * Represents a resolved option group with its current selected value.
14
+ */
15
+ export interface ISessionOptionGroup {
16
+ readonly group: IChatSessionProviderOptionGroup;
17
+ readonly value: IChatSessionProviderOptionItem | undefined;
18
+ }
19
+ /**
20
+ * A new session represents a session being configured before the first
21
+ * request is sent. It holds the user's selections (repoUri, isolationMode)
22
+ * and fires a single event when any property changes.
23
+ */
24
+ export interface INewSession extends IDisposable {
25
+ readonly resource: URI;
26
+ readonly target: AgentSessionProviders;
27
+ readonly repoUri: URI | undefined;
28
+ readonly isolationMode: IsolationMode;
29
+ readonly branch: string | undefined;
30
+ readonly modelId: string | undefined;
31
+ readonly query: string | undefined;
32
+ readonly attachedContext: IChatRequestVariableEntry[] | undefined;
33
+ readonly selectedOptions: ReadonlyMap<string, IChatSessionProviderOptionItem>;
34
+ readonly disabled: boolean;
35
+ readonly onDidChange: Event<NewSessionChangeType>;
36
+ setRepoUri(uri: URI): void;
37
+ setIsolationMode(mode: IsolationMode): void;
38
+ setBranch(branch: string | undefined): void;
39
+ setModelId(modelId: string | undefined): void;
40
+ setQuery(query: string): void;
41
+ setAttachedContext(context: IChatRequestVariableEntry[] | undefined): void;
42
+ setOption(optionId: string, value: IChatSessionProviderOptionItem | string): void;
43
+ }
44
+ /**
45
+ * Local new session for Background agent sessions.
46
+ * Fires `onDidChange` for both `repoUri` and `isolationMode` changes.
47
+ * Notifies the extension service with session options for each property change.
48
+ */
49
+ export declare class LocalNewSession extends Disposable implements INewSession {
50
+ readonly resource: URI;
51
+ private readonly chatSessionsService;
52
+ private readonly logService;
53
+ private _repoUri;
54
+ private _isolationMode;
55
+ private _branch;
56
+ private _modelId;
57
+ private _query;
58
+ private _attachedContext;
59
+ private readonly _onDidChange;
60
+ readonly onDidChange: Event<NewSessionChangeType>;
61
+ readonly target = AgentSessionProviders.Background;
62
+ readonly selectedOptions: Map<string, IChatSessionProviderOptionItem>;
63
+ get repoUri(): URI | undefined;
64
+ get isolationMode(): IsolationMode;
65
+ get branch(): string | undefined;
66
+ get modelId(): string | undefined;
67
+ get query(): string | undefined;
68
+ get attachedContext(): IChatRequestVariableEntry[] | undefined;
69
+ get disabled(): boolean;
70
+ constructor(resource: URI, defaultRepoUri: URI | undefined, chatSessionsService: IChatSessionsService, logService: ILogService);
71
+ setRepoUri(uri: URI): void;
72
+ setIsolationMode(mode: IsolationMode): void;
73
+ setBranch(branch: string | undefined): void;
74
+ setModelId(modelId: string | undefined): void;
75
+ setQuery(query: string): void;
76
+ setAttachedContext(context: IChatRequestVariableEntry[] | undefined): void;
77
+ setOption(optionId: string, value: IChatSessionProviderOptionItem | string): void;
78
+ }
79
+ /**
80
+ * Remote new session for Cloud agent sessions.
81
+ * Manages extension-driven option groups (models, etc.) and their values.
82
+ * Fires events for option group changes.
83
+ */
84
+ export declare class RemoteNewSession extends Disposable implements INewSession {
85
+ readonly resource: URI;
86
+ readonly target: AgentSessionProviders;
87
+ private readonly chatSessionsService;
88
+ private readonly contextKeyService;
89
+ private readonly logService;
90
+ private _repoUri;
91
+ private _modelId;
92
+ private _query;
93
+ private _attachedContext;
94
+ private readonly _onDidChange;
95
+ readonly onDidChange: Event<NewSessionChangeType>;
96
+ private readonly _onDidChangeOptionGroups;
97
+ readonly onDidChangeOptionGroups: Event<void>;
98
+ readonly selectedOptions: Map<string, IChatSessionProviderOptionItem>;
99
+ get repoUri(): URI | undefined;
100
+ get isolationMode(): IsolationMode;
101
+ get branch(): string | undefined;
102
+ get modelId(): string | undefined;
103
+ get query(): string | undefined;
104
+ get attachedContext(): IChatRequestVariableEntry[] | undefined;
105
+ get disabled(): boolean;
106
+ private readonly _whenClauseKeys;
107
+ constructor(resource: URI, target: AgentSessionProviders, chatSessionsService: IChatSessionsService, contextKeyService: IContextKeyService, logService: ILogService);
108
+ setRepoUri(uri: URI): void;
109
+ setIsolationMode(_mode: IsolationMode): void;
110
+ setBranch(_branch: string | undefined): void;
111
+ setModelId(modelId: string | undefined): void;
112
+ setQuery(query: string): void;
113
+ setAttachedContext(context: IChatRequestVariableEntry[] | undefined): void;
114
+ setOption(optionId: string, value: IChatSessionProviderOptionItem | string): void;
115
+ getModelOptionGroup(): ISessionOptionGroup | undefined;
116
+ getOtherOptionGroups(): ISessionOptionGroup[];
117
+ getOptionValue(groupId: string): IChatSessionProviderOptionItem | undefined;
118
+ setOptionValue(groupId: string, value: IChatSessionProviderOptionItem): void;
119
+ private _getOptionGroups;
120
+ private _isOptionGroupVisible;
121
+ private _updateWhenClauseKeys;
122
+ private _getValueForGroup;
123
+ }