@codingame/monaco-vscode-chat-service-override 26.2.2 → 28.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 (356) hide show
  1. package/index.js +35 -2
  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 +89 -0
  7. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +251 -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 +278 -0
  10. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +76 -0
  11. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +299 -0
  12. package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +67 -0
  13. package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +263 -0
  14. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +85 -0
  15. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +397 -0
  16. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -2
  17. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +27 -40
  18. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +9 -3
  19. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +74 -18
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +1 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +54 -8
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +87 -53
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +71 -15
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +43 -21
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +13 -5
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +22 -3
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +1 -0
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +154 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -8
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +53 -43
  35. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +4 -0
  36. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +85 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +8 -0
  38. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +33 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  40. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +18 -32
  41. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  42. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +13 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -17
  44. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +49 -13
  45. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
  46. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +58 -0
  47. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +537 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.d.ts +17 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +55 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +26 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.js +9 -0
  52. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/media/agentPluginEditor.css +32 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +48 -0
  54. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +282 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +55 -0
  56. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +634 -0
  57. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +10 -11
  58. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +74 -67
  59. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +7 -1
  60. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +27 -18
  61. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +1 -0
  62. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +4 -2
  63. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -5
  65. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +2 -0
  66. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +90 -51
  67. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +20 -5
  68. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +3 -1
  69. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +43 -27
  70. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +7 -2
  71. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +3 -1
  72. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +84 -22
  73. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  74. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.d.ts → localAgentSessionsController.d.ts} +7 -4
  75. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.js → localAgentSessionsController.js} +24 -17
  76. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +23 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +171 -0
  78. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +52 -0
  79. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +20 -0
  80. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +179 -0
  81. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +987 -0
  82. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.d.ts +1 -0
  83. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +246 -0
  84. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +56 -0
  85. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +26 -0
  86. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +130 -0
  87. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +878 -0
  88. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +22 -0
  89. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +38 -0
  90. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -0
  91. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +83 -0
  92. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +45 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +165 -0
  94. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +75 -0
  95. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +692 -0
  96. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +936 -0
  97. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +62 -0
  98. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +702 -0
  99. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +2 -0
  100. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +30 -1
  101. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.d.ts +32 -0
  102. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js +26 -0
  103. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +36 -26
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +622 -391
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +18 -0
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +419 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +12 -0
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +46 -0
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +34 -0
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +198 -0
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +55 -0
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +314 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.d.ts +23 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +64 -0
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +5 -0
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +84 -0
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +27 -0
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +110 -0
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +46 -0
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +170 -0
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +71 -0
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +611 -0
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +125 -0
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +504 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.d.ts +10 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +914 -0
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +19 -0
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +128 -0
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +61 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +467 -0
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +31 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +113 -0
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +14 -0
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +126 -0
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +38 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +279 -0
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +18 -0
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +122 -0
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +47 -0
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +85 -0
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +788 -0
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +2 -5
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +32 -36
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +6 -24
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -3
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +2 -1
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +2 -2
  153. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  154. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +12 -12
  155. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
  156. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +16 -15
  157. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
  158. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
  159. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -76
  160. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +26 -15
  161. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +2 -2
  162. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
  163. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
  164. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +24 -7
  165. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +40 -413
  166. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +10 -0
  167. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +38 -6
  168. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +5 -1
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +56 -46
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +15 -11
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +52 -0
  172. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +138 -0
  173. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +11 -1
  174. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +166 -41
  175. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +6 -0
  176. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +37 -23
  177. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +17 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +394 -0
  179. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
  180. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +118 -63
  181. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
  182. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +28 -0
  183. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.d.ts +66 -0
  184. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +245 -0
  185. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.d.ts +78 -0
  186. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.js +234 -0
  187. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +88 -14
  188. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +624 -68
  189. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.d.ts +41 -0
  190. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.js +22 -0
  191. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +5 -0
  192. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +88 -24
  193. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +28 -19
  194. package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.d.ts +14 -0
  195. package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.js +62 -0
  196. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.d.ts +36 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +110 -0
  198. package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.d.ts +10 -0
  199. package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.js +39 -0
  200. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +3 -3
  201. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +6 -6
  202. package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.d.ts +10 -0
  203. package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.js +39 -0
  204. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +26 -0
  205. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +175 -0
  206. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +99 -0
  207. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +489 -0
  208. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
  209. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +19 -1
  210. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +364 -279
  211. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +18 -1
  212. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +69 -6
  213. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  214. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +9 -9
  215. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  216. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.d.ts +4 -0
  217. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +8 -8
  218. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  219. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
  220. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +4 -4
  221. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +22 -0
  222. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +76 -0
  223. package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +5 -0
  224. package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +30 -0
  225. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +2 -0
  226. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +67 -38
  227. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +20 -1
  228. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +187 -74
  229. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +31 -0
  230. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +242 -0
  231. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +34 -0
  232. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +45 -0
  233. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
  234. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +33 -0
  235. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +311 -0
  236. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  237. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +4 -0
  238. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +10 -1
  239. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
  240. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +29 -14
  241. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +8 -9
  242. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +126 -30
  243. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +9 -5
  244. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
  245. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +2 -2
  246. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +15 -4
  247. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +46 -9
  248. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +8 -1
  249. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +65 -37
  250. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +6 -5
  251. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +16 -20
  252. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +15 -6
  253. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +40 -0
  254. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +28 -0
  255. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +190 -0
  256. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +11 -0
  257. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +44 -0
  258. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +208 -0
  259. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +19 -9
  260. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +261 -105
  261. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +21 -2
  262. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -2
  263. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -6
  264. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +16 -8
  265. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +13 -4
  266. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +144 -11
  267. package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +36 -3
  268. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
  269. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +2 -2
  270. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +57 -0
  271. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +29 -0
  272. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +119 -0
  273. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +748 -0
  274. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +146 -0
  275. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +672 -0
  276. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +35 -16
  277. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +3 -16
  278. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +7 -50
  279. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +2 -1
  280. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +2 -2
  281. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +1 -6
  282. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +4 -8
  283. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -2
  284. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +10 -9
  285. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
  286. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +26 -1
  287. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +293 -94
  288. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +10 -1
  289. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +86 -30
  290. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +121 -0
  291. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +1422 -0
  292. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
  293. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +48 -14
  294. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +404 -132
  295. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +17 -2
  296. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +40 -28
  297. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +3 -0
  298. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +13 -0
  299. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  300. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +14 -2
  301. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +54 -5
  302. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +12 -5
  303. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +27 -4
  304. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +265 -25
  305. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +6 -11
  306. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +18 -81
  307. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +2 -3
  308. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +10 -10
  309. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  310. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  311. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
  312. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +6 -6
  313. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  314. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  315. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css +6 -2
  316. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  317. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +35 -26
  318. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +0 -1
  319. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +1 -5
  320. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +3 -3
  321. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
  322. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +4 -1
  323. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +13 -11
  324. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
  325. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +3 -1
  326. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
  327. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
  328. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
  329. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
  330. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  331. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
  332. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  333. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
  334. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +17 -0
  335. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +302 -69
  336. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +3 -1
  337. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +8 -0
  338. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -10
  339. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +7 -0
  340. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +63 -21
  341. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +8 -0
  342. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +31 -0
  343. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
  344. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
  345. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
  346. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  347. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +7 -1
  348. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +46 -17
  349. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +0 -72
  350. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +0 -587
  351. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -12
  352. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -51
  353. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +0 -71
  354. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +0 -293
  355. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.d.ts +0 -2
  356. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.js +0 -31
@@ -0,0 +1,198 @@
1
+
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { $ as $$1, append, hide, addDisposableListener, EventType, getWindow, show, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
+ import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
5
+ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
6
+ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
7
+ import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
8
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
9
+ import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
10
+ import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
11
+ import { IClipboardService } from '@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service';
12
+ import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
13
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
14
+ import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
15
+ import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
16
+ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
17
+ import { IChatDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service';
18
+ import { formatEventDetail } from './chatDebugEventDetailRenderer.js';
19
+ import { fileListToPlainText, renderCustomizationDiscoveryContent } from './chatCustomizationDiscoveryRenderer.js';
20
+ import { resolvedMessageToPlainText, renderResolvedMessageContent, messageEventToPlainText, renderUserMessageContent, renderAgentResponseContent } from './chatDebugMessageContentRenderer.js';
21
+ import { toolCallContentToPlainText, renderToolCallContent } from './chatDebugToolCallContentRenderer.js';
22
+ import { modelTurnContentToPlainText, renderModelTurnContent } from './chatDebugModelTurnContentRenderer.js';
23
+
24
+ const $ = $$1;
25
+ let ChatDebugDetailPanel = class ChatDebugDetailPanel extends Disposable {
26
+ constructor(
27
+ parent,
28
+ chatDebugService,
29
+ instantiationService,
30
+ editorService,
31
+ clipboardService,
32
+ hoverService,
33
+ openerService
34
+ ) {
35
+ super();
36
+ this.chatDebugService = chatDebugService;
37
+ this.instantiationService = instantiationService;
38
+ this.editorService = editorService;
39
+ this.clipboardService = clipboardService;
40
+ this.hoverService = hoverService;
41
+ this.openerService = openerService;
42
+ this._onDidHide = this._register(( new Emitter()));
43
+ this.onDidHide = this._onDidHide.event;
44
+ this.detailDisposables = this._register(( new DisposableStore()));
45
+ this.currentDetailText = "";
46
+ this.element = append(parent, $(".chat-debug-detail-panel"));
47
+ this.contentContainer = $(".chat-debug-detail-content");
48
+ hide(this.element);
49
+ this._register(addDisposableListener(this.element, EventType.KEY_DOWN, e => {
50
+ if ((e.ctrlKey || e.metaKey) && e.key === "a") {
51
+ const target = e.target;
52
+ if (target && this.element.contains(target)) {
53
+ e.preventDefault();
54
+ const targetWindow = getWindow(target);
55
+ const selection = targetWindow.getSelection();
56
+ if (selection) {
57
+ const range = targetWindow.document.createRange();
58
+ range.selectNodeContents(target);
59
+ selection.removeAllRanges();
60
+ selection.addRange(range);
61
+ }
62
+ }
63
+ }
64
+ }));
65
+ }
66
+ async show(event) {
67
+ if (event.id && event.id === this.currentDetailEventId) {
68
+ return;
69
+ }
70
+ this.currentDetailEventId = event.id;
71
+ const resolved = event.id ? await this.chatDebugService.resolveEvent(event.id) : undefined;
72
+ show(this.element);
73
+ clearNode(this.element);
74
+ clearNode(this.contentContainer);
75
+ this.detailDisposables.clear();
76
+ const header = append(this.element, $(".chat-debug-detail-header"));
77
+ this.element.appendChild(this.contentContainer);
78
+ const fullScreenButton = this.detailDisposables.add(( new Button(header, {
79
+ ariaLabel: ( localize(5643, "Open in Editor")),
80
+ title: ( localize(5643, "Open in Editor"))
81
+ })));
82
+ fullScreenButton.element.classList.add("chat-debug-detail-button");
83
+ fullScreenButton.icon = Codicon.goToFile;
84
+ this.firstFocusableElement = fullScreenButton.element;
85
+ this.detailDisposables.add(fullScreenButton.onDidClick(() => {
86
+ this.editorService.openEditor({
87
+ contents: this.currentDetailText,
88
+ resource: undefined
89
+ });
90
+ }));
91
+ const copyButton = this.detailDisposables.add(( new Button(header, {
92
+ ariaLabel: ( localize(5644, "Copy")),
93
+ title: ( localize(5644, "Copy"))
94
+ })));
95
+ copyButton.element.classList.add("chat-debug-detail-button");
96
+ copyButton.icon = Codicon.copy;
97
+ this.detailDisposables.add(copyButton.onDidClick(() => {
98
+ this.clipboardService.writeText(this.currentDetailText);
99
+ }));
100
+ const closeButton = this.detailDisposables.add(( new Button(header, {
101
+ ariaLabel: ( localize(5645, "Close")),
102
+ title: ( localize(5645, "Close"))
103
+ })));
104
+ closeButton.element.classList.add("chat-debug-detail-button");
105
+ closeButton.icon = Codicon.close;
106
+ this.detailDisposables.add(closeButton.onDidClick(() => {
107
+ this.hide();
108
+ }));
109
+ if (resolved && resolved.kind === "fileList") {
110
+ this.currentDetailText = fileListToPlainText(resolved);
111
+ const {
112
+ element: contentEl,
113
+ disposables: contentDisposables
114
+ } = this.instantiationService.invokeFunction(accessor => renderCustomizationDiscoveryContent(
115
+ resolved,
116
+ this.openerService,
117
+ accessor.get(IModelService),
118
+ accessor.get(ILanguageService),
119
+ this.hoverService,
120
+ accessor.get(ILabelService)
121
+ ));
122
+ this.detailDisposables.add(contentDisposables);
123
+ this.contentContainer.appendChild(contentEl);
124
+ } else if (resolved && resolved.kind === "toolCall") {
125
+ this.currentDetailText = toolCallContentToPlainText(resolved);
126
+ const languageService = this.instantiationService.invokeFunction(accessor => accessor.get(ILanguageService));
127
+ const {
128
+ element: contentEl,
129
+ disposables: contentDisposables
130
+ } = await renderToolCallContent(resolved, languageService);
131
+ if (this.currentDetailEventId !== event.id) {
132
+ contentDisposables.dispose();
133
+ return;
134
+ }
135
+ this.detailDisposables.add(contentDisposables);
136
+ this.contentContainer.appendChild(contentEl);
137
+ } else if (resolved && resolved.kind === "message") {
138
+ this.currentDetailText = resolvedMessageToPlainText(resolved);
139
+ const {
140
+ element: contentEl,
141
+ disposables: contentDisposables
142
+ } = renderResolvedMessageContent(resolved);
143
+ this.detailDisposables.add(contentDisposables);
144
+ this.contentContainer.appendChild(contentEl);
145
+ } else if (resolved && resolved.kind === "modelTurn") {
146
+ this.currentDetailText = modelTurnContentToPlainText(resolved);
147
+ const {
148
+ element: contentEl,
149
+ disposables: contentDisposables
150
+ } = renderModelTurnContent(resolved);
151
+ this.detailDisposables.add(contentDisposables);
152
+ this.contentContainer.appendChild(contentEl);
153
+ } else if (event.kind === "userMessage") {
154
+ this.currentDetailText = messageEventToPlainText(event);
155
+ const {
156
+ element: contentEl,
157
+ disposables: contentDisposables
158
+ } = renderUserMessageContent(event);
159
+ this.detailDisposables.add(contentDisposables);
160
+ this.contentContainer.appendChild(contentEl);
161
+ } else if (event.kind === "agentResponse") {
162
+ this.currentDetailText = messageEventToPlainText(event);
163
+ const {
164
+ element: contentEl,
165
+ disposables: contentDisposables
166
+ } = renderAgentResponseContent(event);
167
+ this.detailDisposables.add(contentDisposables);
168
+ this.contentContainer.appendChild(contentEl);
169
+ } else {
170
+ const pre = append(this.contentContainer, $("pre"));
171
+ pre.tabIndex = 0;
172
+ if (resolved) {
173
+ this.currentDetailText = resolved.value;
174
+ } else {
175
+ this.currentDetailText = formatEventDetail(event);
176
+ }
177
+ pre.textContent = this.currentDetailText;
178
+ }
179
+ }
180
+ get isVisible() {
181
+ return this.element.style.display !== "none";
182
+ }
183
+ focus() {
184
+ this.firstFocusableElement?.focus();
185
+ }
186
+ hide() {
187
+ this.currentDetailEventId = undefined;
188
+ this.firstFocusableElement = undefined;
189
+ hide(this.element);
190
+ clearNode(this.element);
191
+ clearNode(this.contentContainer);
192
+ this.detailDisposables.clear();
193
+ this._onDidHide.fire();
194
+ }
195
+ };
196
+ ChatDebugDetailPanel = ( __decorate([( __param(1, IChatDebugService)), ( __param(2, IInstantiationService)), ( __param(3, IEditorService)), ( __param(4, IClipboardService)), ( __param(5, IHoverService)), ( __param(6, IOpenerService))], ChatDebugDetailPanel));
197
+
198
+ export { ChatDebugDetailPanel };
@@ -0,0 +1,55 @@
1
+ import { Dimension } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom";
2
+ import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
3
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
+ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
5
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
6
+ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
7
+ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
8
+ import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
9
+ import { IEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
10
+ import { EditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane";
11
+ import { IEditorOpenContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
12
+ import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
13
+ import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
14
+ import { IChatDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service";
15
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
16
+ import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
17
+ import { IChatDebugEditorOptions } from "./chatDebugTypes.js";
18
+ export declare class ChatDebugEditor extends EditorPane {
19
+ private readonly instantiationService;
20
+ private readonly chatDebugService;
21
+ private readonly chatWidgetService;
22
+ private readonly chatService;
23
+ private readonly contextKeyService;
24
+ static readonly ID: string;
25
+ private container;
26
+ private currentDimension;
27
+ private viewState;
28
+ private homeView;
29
+ private overviewView;
30
+ private logsView;
31
+ private flowChartView;
32
+ private filterState;
33
+ private readonly sessionModelListener;
34
+ private readonly modelChangeListeners;
35
+ /** Saved session resource so we can restore it after the editor is re-shown. */
36
+ private savedSessionResource;
37
+ /**
38
+ * Stops the streaming pipeline and clears cached events for the
39
+ * active session. Called when navigating away from a session or
40
+ * when the editor becomes hidden.
41
+ */
42
+ private endActiveSession;
43
+ constructor(group: IEditorGroup, telemetryService: ITelemetryService, themeService: IThemeService, storageService: IStorageService, instantiationService: IInstantiationService, chatDebugService: IChatDebugService, chatWidgetService: IChatWidgetService, chatService: IChatService, contextKeyService: IContextKeyService);
44
+ protected createEditor(parent: HTMLElement): void;
45
+ private showView;
46
+ navigateToSession(sessionResource: URI, view?: "logs" | "overview" | "flowchart"): void;
47
+ private trackSessionModelChanges;
48
+ focus(): void;
49
+ setInput(input: EditorInput, options: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
50
+ setOptions(options: IChatDebugEditorOptions | undefined): void;
51
+ setEditorVisible(visible: boolean): void;
52
+ private _applyNavigationOptions;
53
+ layout(dimension: Dimension): void;
54
+ private doLayout;
55
+ }
@@ -0,0 +1,314 @@
1
+
2
+ import { registerCss } from '@codingame/monaco-vscode-api/css';
3
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
4
+ import * as chatDebug from './media/chatDebug.css';
5
+ import { $ as $$1, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
6
+ import { MutableDisposable, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
+ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
8
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
9
+ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
10
+ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
11
+ import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
12
+ import { EditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane';
13
+ import { IChatDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service';
14
+ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
15
+ import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
16
+ import { ViewState } from './chatDebugTypes.js';
17
+ import { ChatDebugFilterState, registerFilterMenuItems } from './chatDebugFilters.js';
18
+ import { ChatDebugHomeView } from './chatDebugHomeView.js';
19
+ import { ChatDebugOverviewView, OverviewNavigation } from './chatDebugOverviewView.js';
20
+ import { ChatDebugLogsView, LogsNavigation } from './chatDebugLogsView.js';
21
+ import { ChatDebugFlowChartView, FlowChartNavigation } from './chatDebugFlowChartView.js';
22
+
23
+ var ChatDebugEditor_1;
24
+ registerCss(chatDebug);
25
+ const $ = $$1;
26
+ let ChatDebugEditor = class ChatDebugEditor extends EditorPane {
27
+ static {
28
+ ChatDebugEditor_1 = this;
29
+ }
30
+ static {
31
+ this.ID = "workbench.editor.chatDebug";
32
+ }
33
+ endActiveSession() {
34
+ const sessionResource = this.chatDebugService.activeSessionResource;
35
+ if (sessionResource) {
36
+ this.chatDebugService.endSession(sessionResource);
37
+ }
38
+ this.chatDebugService.activeSessionResource = undefined;
39
+ }
40
+ constructor(
41
+ group,
42
+ telemetryService,
43
+ themeService,
44
+ storageService,
45
+ instantiationService,
46
+ chatDebugService,
47
+ chatWidgetService,
48
+ chatService,
49
+ contextKeyService
50
+ ) {
51
+ super(
52
+ ChatDebugEditor_1.ID,
53
+ group,
54
+ telemetryService,
55
+ themeService,
56
+ storageService
57
+ );
58
+ this.instantiationService = instantiationService;
59
+ this.chatDebugService = chatDebugService;
60
+ this.chatWidgetService = chatWidgetService;
61
+ this.chatService = chatService;
62
+ this.contextKeyService = contextKeyService;
63
+ this.viewState = ViewState.Home;
64
+ this.sessionModelListener = this._register(( new MutableDisposable()));
65
+ this.modelChangeListeners = this._register(( new DisposableMap()));
66
+ }
67
+ createEditor(parent) {
68
+ this.container = append(parent, $(".chat-debug-editor"));
69
+ this.filterState = this._register(( new ChatDebugFilterState()));
70
+ const scopedContextKeyService = this._register(this.contextKeyService.createScoped(this.container));
71
+ this._register(registerFilterMenuItems(this.filterState, scopedContextKeyService));
72
+ this.homeView = this._register(
73
+ this.instantiationService.createInstance(ChatDebugHomeView, this.container)
74
+ );
75
+ this._register(this.homeView.onNavigateToSession(sessionResource => {
76
+ this.navigateToSession(sessionResource);
77
+ }));
78
+ this.overviewView = this._register(
79
+ this.instantiationService.createInstance(ChatDebugOverviewView, this.container)
80
+ );
81
+ this._register(this.overviewView.onNavigate(nav => {
82
+ switch (nav) {
83
+ case OverviewNavigation.Home:
84
+ this.endActiveSession();
85
+ this.showView(ViewState.Home);
86
+ break;
87
+ case OverviewNavigation.Logs:
88
+ this.showView(ViewState.Logs);
89
+ break;
90
+ case OverviewNavigation.FlowChart:
91
+ this.showView(ViewState.FlowChart);
92
+ break;
93
+ }
94
+ }));
95
+ this.logsView = this._register(
96
+ this.instantiationService.createInstance(ChatDebugLogsView, this.container, this.filterState)
97
+ );
98
+ this._register(this.logsView.onNavigate(nav => {
99
+ switch (nav) {
100
+ case LogsNavigation.Home:
101
+ this.endActiveSession();
102
+ this.showView(ViewState.Home);
103
+ break;
104
+ case LogsNavigation.Overview:
105
+ this.showView(ViewState.Overview);
106
+ break;
107
+ }
108
+ }));
109
+ this.flowChartView = this._register(
110
+ this.instantiationService.createInstance(ChatDebugFlowChartView, this.container, this.filterState)
111
+ );
112
+ this._register(this.flowChartView.onNavigate(nav => {
113
+ switch (nav) {
114
+ case FlowChartNavigation.Home:
115
+ this.endActiveSession();
116
+ this.showView(ViewState.Home);
117
+ break;
118
+ case FlowChartNavigation.Overview:
119
+ this.showView(ViewState.Overview);
120
+ break;
121
+ }
122
+ }));
123
+ this._register(this.chatDebugService.onDidAddEvent(event => {
124
+ if (this.viewState === ViewState.Home) {
125
+ this.homeView?.render();
126
+ } else if (this.chatDebugService.activeSessionResource && ( event.sessionResource.toString()) === ( this.chatDebugService.activeSessionResource.toString())) {
127
+ if (this.viewState === ViewState.Overview) {
128
+ this.overviewView?.refresh();
129
+ } else if (this.viewState === ViewState.Logs) {
130
+ this.logsView?.refreshList();
131
+ } else if (this.viewState === ViewState.FlowChart) {
132
+ this.flowChartView?.refresh();
133
+ }
134
+ }
135
+ }));
136
+ this._register(this.chatWidgetService.onDidChangeFocusedSession(() => {
137
+ if (this.viewState === ViewState.Home) {
138
+ this.homeView?.render();
139
+ }
140
+ }));
141
+ this._register(this.chatService.onDidCreateModel(model => {
142
+ if (this.viewState === ViewState.Home) {
143
+ this.homeView?.render();
144
+ }
145
+ const key = ( model.sessionResource.toString());
146
+ this.modelChangeListeners.set(key, model.onDidChange(e => {
147
+ if (e.kind === "setCustomTitle") {
148
+ if (this.viewState === ViewState.Home) {
149
+ this.homeView?.render();
150
+ } else if (this.viewState === ViewState.Overview || this.viewState === ViewState.Logs || this.viewState === ViewState.FlowChart) {
151
+ this.overviewView?.updateBreadcrumb();
152
+ this.logsView?.updateBreadcrumb();
153
+ this.flowChartView?.updateBreadcrumb();
154
+ }
155
+ }
156
+ }));
157
+ }));
158
+ this._register(this.chatService.onDidDisposeSession(() => {
159
+ if (this.viewState === ViewState.Home) {
160
+ this.homeView?.render();
161
+ }
162
+ }));
163
+ this.showView(ViewState.Home);
164
+ }
165
+ showView(state) {
166
+ this.viewState = state;
167
+ this.telemetryService.publicLog2("chatDebugViewSwitched", {
168
+ viewState: state
169
+ });
170
+ if (state === ViewState.Home) {
171
+ this.homeView?.show();
172
+ } else {
173
+ this.homeView?.hide();
174
+ }
175
+ if (state === ViewState.Overview) {
176
+ this.overviewView?.show();
177
+ } else {
178
+ this.overviewView?.hide();
179
+ }
180
+ if (state === ViewState.Logs) {
181
+ this.logsView?.show();
182
+ this.doLayout();
183
+ this.logsView?.focus();
184
+ } else {
185
+ this.logsView?.hide();
186
+ }
187
+ if (state === ViewState.FlowChart) {
188
+ this.flowChartView?.show();
189
+ } else {
190
+ this.flowChartView?.hide();
191
+ }
192
+ }
193
+ navigateToSession(sessionResource, view) {
194
+ const previousSessionResource = this.chatDebugService.activeSessionResource;
195
+ if (previousSessionResource && ( previousSessionResource.toString()) !== ( sessionResource.toString())) {
196
+ this.chatDebugService.endSession(previousSessionResource);
197
+ }
198
+ this.chatDebugService.activeSessionResource = sessionResource;
199
+ if (!this.chatDebugService.hasInvokedProviders(sessionResource)) {
200
+ this.chatDebugService.invokeProviders(sessionResource);
201
+ }
202
+ this.trackSessionModelChanges(sessionResource);
203
+ this.overviewView?.setSession(sessionResource);
204
+ this.logsView?.setSession(sessionResource);
205
+ this.flowChartView?.setSession(sessionResource);
206
+ this.showView(
207
+ view === "logs" ? ViewState.Logs : view === "flowchart" ? ViewState.FlowChart : ViewState.Overview
208
+ );
209
+ }
210
+ trackSessionModelChanges(sessionResource) {
211
+ const model = this.chatService.getSession(sessionResource);
212
+ if (!model) {
213
+ this.sessionModelListener.clear();
214
+ return;
215
+ }
216
+ this.sessionModelListener.value = model.onDidChange(e => {
217
+ if (e.kind === "addRequest" || e.kind === "completedRequest") {
218
+ if (this.viewState === ViewState.Overview) {
219
+ this.overviewView?.refresh();
220
+ }
221
+ }
222
+ });
223
+ }
224
+ focus() {
225
+ if (this.viewState === ViewState.Logs) {
226
+ this.logsView?.focus();
227
+ } else {
228
+ this.container?.focus();
229
+ }
230
+ }
231
+ async setInput(input, options, context, token) {
232
+ await super.setInput(input, options, context, token);
233
+ if (options) {
234
+ this._applyNavigationOptions(options);
235
+ }
236
+ }
237
+ setOptions(options) {
238
+ super.setOptions(options);
239
+ if (options) {
240
+ this._applyNavigationOptions(options);
241
+ }
242
+ }
243
+ setEditorVisible(visible) {
244
+ super.setEditorVisible(visible);
245
+ if (visible) {
246
+ this.telemetryService.publicLog2("chatDebugPanelOpened");
247
+ if (this.viewState === ViewState.Home) {
248
+ const sessionResource = this.chatDebugService.activeSessionResource ?? this.savedSessionResource;
249
+ this.savedSessionResource = undefined;
250
+ if (sessionResource) {
251
+ this.navigateToSession(sessionResource, "overview");
252
+ } else {
253
+ this.showView(ViewState.Home);
254
+ }
255
+ } else {
256
+ const sessionResource = this.chatDebugService.activeSessionResource ?? this.savedSessionResource;
257
+ this.savedSessionResource = undefined;
258
+ if (sessionResource) {
259
+ this.chatDebugService.activeSessionResource = sessionResource;
260
+ if (!this.chatDebugService.hasInvokedProviders(sessionResource)) {
261
+ this.chatDebugService.invokeProviders(sessionResource);
262
+ }
263
+ } else {
264
+ this.showView(ViewState.Home);
265
+ }
266
+ }
267
+ } else {
268
+ this.savedSessionResource = this.chatDebugService.activeSessionResource;
269
+ this.endActiveSession();
270
+ }
271
+ }
272
+ _applyNavigationOptions(options) {
273
+ const {
274
+ sessionResource,
275
+ viewHint,
276
+ filter
277
+ } = options;
278
+ if (viewHint === "logs" && sessionResource) {
279
+ this.navigateToSession(sessionResource, "logs");
280
+ } else if (viewHint === "flowchart" && sessionResource) {
281
+ this.navigateToSession(sessionResource, "flowchart");
282
+ } else if (viewHint === "overview" && sessionResource) {
283
+ this.navigateToSession(sessionResource, "overview");
284
+ } else if (viewHint === "home") {
285
+ this.endActiveSession();
286
+ this.showView(ViewState.Home);
287
+ } else if (sessionResource) {
288
+ this.navigateToSession(sessionResource, "overview");
289
+ } else if (this.viewState === ViewState.Home) {
290
+ this.showView(ViewState.Home);
291
+ }
292
+ if (filter !== undefined && this.filterState) {
293
+ this.filterState.setTextFilter(filter);
294
+ this.logsView?.setFilterText(filter);
295
+ }
296
+ }
297
+ layout(dimension) {
298
+ this.currentDimension = dimension;
299
+ if (this.container) {
300
+ this.container.style.width = `${dimension.width}px`;
301
+ this.container.style.height = `${dimension.height}px`;
302
+ }
303
+ this.doLayout();
304
+ }
305
+ doLayout() {
306
+ if (!this.currentDimension || this.viewState !== ViewState.Logs) {
307
+ return;
308
+ }
309
+ this.logsView?.layout(this.currentDimension);
310
+ }
311
+ };
312
+ ChatDebugEditor = ChatDebugEditor_1 = ( __decorate([( __param(1, ITelemetryService)), ( __param(2, IThemeService)), ( __param(3, IStorageService)), ( __param(4, IInstantiationService)), ( __param(5, IChatDebugService)), ( __param(6, IChatWidgetService)), ( __param(7, IChatService)), ( __param(8, IContextKeyService))], ChatDebugEditor));
313
+
314
+ export { ChatDebugEditor };
@@ -0,0 +1,23 @@
1
+ import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
2
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
4
+ import { EditorInputCapabilities, IEditorSerializer, IUntypedEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
5
+ import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
6
+ export declare class ChatDebugEditorInput extends EditorInput {
7
+ static readonly ID = "workbench.editor.chatDebug";
8
+ static readonly RESOURCE: URI;
9
+ private static _instance;
10
+ static get instance(): ChatDebugEditorInput;
11
+ get typeId(): string;
12
+ get editorId(): string | undefined;
13
+ get capabilities(): EditorInputCapabilities;
14
+ readonly resource: URI;
15
+ getName(): string;
16
+ getIcon(): ThemeIcon;
17
+ matches(other: EditorInput | IUntypedEditorInput): boolean;
18
+ }
19
+ export declare class ChatDebugEditorInputSerializer implements IEditorSerializer {
20
+ canSerialize(editorInput: EditorInput): boolean;
21
+ serialize(editorInput: EditorInput): string;
22
+ deserialize(instantiationService: IInstantiationService): EditorInput;
23
+ }
@@ -0,0 +1,64 @@
1
+
2
+ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
3
+ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
4
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
5
+ import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
6
+ import { EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
7
+ import { EditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput';
8
+
9
+ const chatDebugEditorIcon = registerIcon("chat-debug-editor-label-icon", Codicon.bug, ( localize(5646, "Icon of the chat debug editor label.")));
10
+ class ChatDebugEditorInput extends EditorInput {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.resource = ChatDebugEditorInput.RESOURCE;
14
+ }
15
+ static {
16
+ this.ID = "workbench.editor.chatDebug";
17
+ }
18
+ static {
19
+ this.RESOURCE = ( URI.from({
20
+ scheme: "chat-debug",
21
+ path: "default"
22
+ }));
23
+ }
24
+ static get instance() {
25
+ if (!ChatDebugEditorInput._instance || ChatDebugEditorInput._instance.isDisposed()) {
26
+ ChatDebugEditorInput._instance = ( new ChatDebugEditorInput());
27
+ }
28
+ return ChatDebugEditorInput._instance;
29
+ }
30
+ get typeId() {
31
+ return ChatDebugEditorInput.ID;
32
+ }
33
+ get editorId() {
34
+ return ChatDebugEditorInput.ID;
35
+ }
36
+ get capabilities() {
37
+ return EditorInputCapabilities.Readonly | EditorInputCapabilities.Singleton;
38
+ }
39
+ getName() {
40
+ return localize(5647, "Agent Debug Panel");
41
+ }
42
+ getIcon() {
43
+ return chatDebugEditorIcon;
44
+ }
45
+ matches(other) {
46
+ if (super.matches(other)) {
47
+ return true;
48
+ }
49
+ return other instanceof ChatDebugEditorInput;
50
+ }
51
+ }
52
+ class ChatDebugEditorInputSerializer {
53
+ canSerialize(editorInput) {
54
+ return true;
55
+ }
56
+ serialize(editorInput) {
57
+ return "";
58
+ }
59
+ deserialize(instantiationService) {
60
+ return ChatDebugEditorInput.instance;
61
+ }
62
+ }
63
+
64
+ export { ChatDebugEditorInput, ChatDebugEditorInputSerializer };
@@ -0,0 +1,5 @@
1
+ import { IChatDebugEvent } from "../../common/chatDebugService.js";
2
+ /**
3
+ * Format the detail text for a debug event (used when no resolved content is available).
4
+ */
5
+ export declare function formatEventDetail(event: IChatDebugEvent): string;