@codingame/monaco-vscode-chat-service-override 28.4.0 → 29.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 (339) hide show
  1. package/index.js +18 -12
  2. package/package.json +5 -5
  3. package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +300 -0
  4. package/vscode/src/vs/platform/agentHost/common/agentService.js +31 -0
  5. package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +84 -0
  6. package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +16 -0
  7. package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +488 -0
  8. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +424 -0
  9. package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +50 -0
  10. package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +202 -0
  11. package/vscode/src/vs/platform/agentHost/common/state/protocol/notifications.d.ts +114 -0
  12. package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +723 -0
  13. package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +33 -0
  14. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +40 -0
  15. package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +22 -0
  16. package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +13 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
  18. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
  19. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +29 -15
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +59 -59
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +4 -4
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +76 -10
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
  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 +11 -11
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +1 -1
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +162 -4
  35. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +167 -4
  36. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  37. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +1 -1
  38. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +52 -20
  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.js +11 -11
  41. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
  42. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
  43. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +82 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +195 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +5 -1
  46. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +97 -88
  47. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +3 -3
  48. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +4 -1
  49. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +5 -3
  50. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +78 -35
  51. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +7 -1
  52. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +174 -170
  53. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +7 -4
  54. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +12 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +118 -52
  56. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +7 -7
  57. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
  58. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +5 -1
  59. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +13 -2
  60. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  61. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +0 -3
  62. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -10
  63. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +9 -10
  65. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +23 -25
  66. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +341 -196
  67. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +79 -7
  68. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  69. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  70. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.d.ts +5 -4
  71. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +22 -10
  72. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +1 -1
  73. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +2 -2
  74. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +4 -0
  75. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -14
  76. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +85 -5
  77. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +668 -214
  78. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +10 -0
  79. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +18 -0
  80. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +306 -39
  81. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +84 -4
  82. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +651 -81
  83. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +2 -1
  84. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +6 -2
  85. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +31 -1
  86. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +9 -20
  87. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +11 -1
  88. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -142
  89. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.d.ts +43 -0
  90. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +63 -0
  91. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +11 -0
  92. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +44 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +25 -1
  94. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +297 -123
  95. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +153 -31
  96. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +17 -1
  97. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +111 -171
  98. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +1 -3
  99. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +5 -30
  100. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +277 -186
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +4 -2
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +31 -23
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +3 -7
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +4 -16
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +18 -2
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +112 -17
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +3 -3
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +16 -27
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +1 -1
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +41 -19
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +7 -1
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +35 -23
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +1 -8
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +8 -51
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +1 -0
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +13 -8
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +1 -1
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +29 -36
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +14 -7
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +5 -1
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +79 -26
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.d.ts +19 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +125 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +11 -4
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +113 -82
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +18 -7
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +54 -15
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +8 -3
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +103 -28
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -0
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +48 -37
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +28 -2
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +62 -20
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +21 -37
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +2 -1
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +4 -3
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +1 -1
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +1 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +17 -4
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +5 -5
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +4 -1
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +43 -5
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +59 -0
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +194 -0
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +9 -10
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +13 -13
  153. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +2 -1
  154. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +8 -4
  155. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
  156. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +11 -0
  157. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +81 -50
  158. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +11 -11
  159. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
  160. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
  161. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  162. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -1
  163. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +23 -18
  164. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
  165. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +2 -2
  166. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +9 -7
  167. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -26
  168. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +0 -2
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +19 -27
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +2 -4
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +105 -172
  172. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
  173. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +80 -65
  174. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
  175. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +56 -27
  176. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
  177. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
  178. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.d.ts +16 -0
  179. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +70 -0
  180. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
  181. package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.d.ts +20 -0
  182. package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +40 -0
  183. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.d.ts +31 -0
  184. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +53 -0
  185. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +33 -2
  186. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +21 -2
  187. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +362 -18
  188. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +15 -4
  189. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +90 -43
  190. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +35 -0
  191. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +146 -0
  192. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
  193. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +26 -26
  194. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
  195. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  196. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  197. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +10 -9
  198. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  199. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  200. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  201. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +1 -1
  202. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +33 -5
  203. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -0
  204. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +200 -55
  205. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +7 -0
  206. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +90 -45
  207. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +4 -2
  208. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +21 -10
  209. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +22 -16
  210. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +4 -2
  211. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +28 -13
  212. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  213. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
  214. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +6 -6
  215. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +20 -16
  216. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +68 -5
  217. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
  218. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
  219. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
  220. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +1 -0
  221. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +57 -20
  222. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
  223. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +21 -5
  224. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +171 -57
  225. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +7 -5
  226. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +206 -35
  227. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +4 -3
  228. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +7 -7
  229. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +7 -1
  230. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +11 -3
  231. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +44 -22
  232. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +450 -301
  233. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +23 -0
  234. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +165 -0
  235. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +34 -20
  236. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +209 -144
  237. package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.d.ts +20 -0
  238. package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +205 -0
  239. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +17 -17
  240. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.d.ts +33 -0
  241. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.js +47 -0
  242. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalSkill.d.ts +30 -0
  243. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
  244. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
  245. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
  246. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +1 -1
  247. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +191 -159
  248. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +6 -7
  249. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +210 -233
  250. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +19 -26
  251. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +183 -193
  252. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +24 -0
  253. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +75 -0
  254. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  255. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -5
  256. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -0
  257. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +97 -35
  258. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
  259. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +16 -0
  260. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +67 -0
  261. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +2 -2
  262. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +62 -23
  263. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  264. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  265. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
  266. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
  267. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  268. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +8 -8
  269. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  270. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
  271. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +2 -2
  272. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +3 -1
  273. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +23 -9
  274. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +1 -1
  275. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +2 -2
  276. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +3 -1
  277. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +50 -9
  278. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +3 -1
  279. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +21 -7
  280. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +20 -1
  281. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +124 -1
  282. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +20 -5
  283. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +5 -0
  284. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +10 -7
  285. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +2 -1
  286. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +46 -31
  287. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +18 -1
  288. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +74 -37
  289. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
  290. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
  291. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +1 -0
  292. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +24 -14
  293. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
  294. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +1 -1
  295. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +3 -2
  296. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +1 -1
  297. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +2 -0
  298. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +5 -1
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +1 -2
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +66 -64
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +1 -0
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +1 -0
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +5 -2
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +32 -2
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +390 -114
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +14 -0
  311. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +21 -11
  312. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +70 -51
  313. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +61 -51
  314. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +94 -76
  315. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  316. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +19 -1
  317. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +112 -21
  318. package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +0 -53
  319. package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +0 -219
  320. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +0 -89
  321. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +0 -251
  322. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -123
  323. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +0 -278
  324. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +0 -76
  325. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +0 -299
  326. package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +0 -67
  327. package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +0 -263
  328. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +0 -85
  329. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +0 -397
  330. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +0 -56
  331. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +0 -26
  332. package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +0 -5
  333. package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +0 -30
  334. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +0 -40
  335. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +0 -28
  336. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -190
  337. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -11
  338. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -16
  339. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -20
@@ -2,16 +2,18 @@
2
2
  import { $ as $$1, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
3
  import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
4
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
5
- import { renderCollapsibleSection } from './chatDebugCollapsible.js';
5
+ import { tokenizeContent, renderSection } from './chatDebugToolCallContentRenderer.js';
6
+ import { safeIntl } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
6
7
 
7
8
  const $ = $$1;
8
- function renderModelTurnContent(content) {
9
+ const numberFormatter = safeIntl.NumberFormat();
10
+ async function renderModelTurnContent(content, languageService, clipboardService, scrollable) {
9
11
  const disposables = ( new DisposableStore());
10
12
  const container = $("div.chat-debug-message-content");
11
13
  container.tabIndex = 0;
12
14
  append(
13
15
  container,
14
- $("div.chat-debug-message-content-title", undefined, ( localize(5732, "Model Turn")))
16
+ $("div.chat-debug-message-content-title", undefined, ( localize(5862, "Model Turn")))
15
17
  );
16
18
  const statusParts = [];
17
19
  if (content.requestName) {
@@ -20,11 +22,11 @@ function renderModelTurnContent(content) {
20
22
  if (content.model) {
21
23
  statusParts.push(content.model);
22
24
  }
23
- if (content.status) {
25
+ if (content.status && content.status !== "unknown") {
24
26
  statusParts.push(content.status);
25
27
  }
26
28
  if (content.durationInMillis !== undefined) {
27
- statusParts.push(( localize(5733, "{0}ms", content.durationInMillis)));
29
+ statusParts.push(( localize(5863, "{0}ms", numberFormatter.value.format(content.durationInMillis))));
28
30
  }
29
31
  if (statusParts.length > 0) {
30
32
  append(container, $(
@@ -35,40 +37,81 @@ function renderModelTurnContent(content) {
35
37
  }
36
38
  const detailsContainer = append(container, $("div.chat-debug-model-turn-details"));
37
39
  if (content.inputTokens !== undefined) {
38
- append(detailsContainer, $("div", undefined, ( localize(5734, "Input tokens: {0}", content.inputTokens))));
40
+ append(detailsContainer, $("div", undefined, ( localize(
41
+ 5864,
42
+ "Input tokens: {0}",
43
+ numberFormatter.value.format(content.inputTokens)
44
+ ))));
39
45
  }
40
46
  if (content.outputTokens !== undefined) {
41
- append(detailsContainer, $("div", undefined, ( localize(5735, "Output tokens: {0}", content.outputTokens))));
47
+ append(detailsContainer, $("div", undefined, ( localize(
48
+ 5865,
49
+ "Output tokens: {0}",
50
+ numberFormatter.value.format(content.outputTokens)
51
+ ))));
42
52
  }
43
53
  if (content.cachedTokens !== undefined) {
44
- append(detailsContainer, $("div", undefined, ( localize(5736, "Cached tokens: {0}", content.cachedTokens))));
54
+ append(detailsContainer, $("div", undefined, ( localize(
55
+ 5866,
56
+ "Cached tokens: {0}",
57
+ numberFormatter.value.format(content.cachedTokens)
58
+ ))));
45
59
  }
46
60
  if (content.totalTokens !== undefined) {
47
- append(detailsContainer, $("div", undefined, ( localize(5737, "Total tokens: {0}", content.totalTokens))));
61
+ append(detailsContainer, $("div", undefined, ( localize(
62
+ 5867,
63
+ "Total tokens: {0}",
64
+ numberFormatter.value.format(content.totalTokens)
65
+ ))));
48
66
  }
49
67
  if (content.timeToFirstTokenInMillis !== undefined) {
50
- append(detailsContainer, $("div", undefined, ( localize(5738, "Time to first token: {0}ms", content.timeToFirstTokenInMillis))));
68
+ append(detailsContainer, $("div", undefined, ( localize(
69
+ 5868,
70
+ "Time to first token: {0}ms",
71
+ numberFormatter.value.format(content.timeToFirstTokenInMillis)
72
+ ))));
51
73
  }
52
74
  if (content.maxInputTokens !== undefined) {
53
- append(detailsContainer, $("div", undefined, ( localize(5739, "Max input tokens: {0}", content.maxInputTokens))));
75
+ append(detailsContainer, $("div", undefined, ( localize(
76
+ 5869,
77
+ "Max input tokens: {0}",
78
+ numberFormatter.value.format(content.maxInputTokens)
79
+ ))));
54
80
  }
55
81
  if (content.maxOutputTokens !== undefined) {
56
- append(detailsContainer, $("div", undefined, ( localize(5740, "Max output tokens: {0}", content.maxOutputTokens))));
82
+ append(detailsContainer, $("div", undefined, ( localize(
83
+ 5870,
84
+ "Max output tokens: {0}",
85
+ numberFormatter.value.format(content.maxOutputTokens)
86
+ ))));
57
87
  }
58
88
  if (content.errorMessage) {
59
89
  append(
60
90
  detailsContainer,
61
- $("div.chat-debug-model-turn-error", undefined, ( localize(5741, "Error: {0}", content.errorMessage)))
91
+ $("div.chat-debug-model-turn-error", undefined, ( localize(5871, "Error: {0}", content.errorMessage)))
62
92
  );
63
93
  }
64
94
  if (content.sections && content.sections.length > 0) {
65
95
  const sectionsContainer = append(container, $("div.chat-debug-message-sections"));
66
96
  append(
67
97
  sectionsContainer,
68
- $("div.chat-debug-message-sections-label", undefined, ( localize(5742, "Sections ({0})", content.sections.length)))
98
+ $("div.chat-debug-message-sections-label", undefined, ( localize(5872, "Sections ({0})", content.sections.length)))
69
99
  );
70
100
  for (const section of content.sections) {
71
- renderCollapsibleSection(sectionsContainer, section, disposables);
101
+ const {
102
+ plainText,
103
+ tokenizedHtml
104
+ } = await tokenizeContent(section.content, languageService);
105
+ renderSection(
106
+ sectionsContainer,
107
+ section.name,
108
+ plainText,
109
+ tokenizedHtml,
110
+ disposables,
111
+ false,
112
+ clipboardService,
113
+ scrollable
114
+ );
72
115
  }
73
116
  }
74
117
  return {
@@ -78,39 +121,71 @@ function renderModelTurnContent(content) {
78
121
  }
79
122
  function modelTurnContentToPlainText(content) {
80
123
  const lines = [];
81
- lines.push(( localize(5743, "Request: {0}", content.requestName)));
124
+ lines.push(( localize(5873, "Request: {0}", content.requestName)));
82
125
  if (content.model) {
83
- lines.push(( localize(5744, "Model: {0}", content.model)));
126
+ lines.push(( localize(5874, "Model: {0}", content.model)));
84
127
  }
85
- if (content.status) {
86
- lines.push(( localize(5745, "Status: {0}", content.status)));
128
+ if (content.status && content.status !== "unknown") {
129
+ lines.push(( localize(5875, "Status: {0}", content.status)));
87
130
  }
88
131
  if (content.durationInMillis !== undefined) {
89
- lines.push(( localize(5746, "Duration: {0}ms", content.durationInMillis)));
132
+ lines.push(( localize(
133
+ 5876,
134
+ "Duration: {0}ms",
135
+ numberFormatter.value.format(content.durationInMillis)
136
+ )));
90
137
  }
91
138
  if (content.timeToFirstTokenInMillis !== undefined) {
92
- lines.push(( localize(5747, "Time to first token: {0}ms", content.timeToFirstTokenInMillis)));
139
+ lines.push(( localize(
140
+ 5877,
141
+ "Time to first token: {0}ms",
142
+ numberFormatter.value.format(content.timeToFirstTokenInMillis)
143
+ )));
93
144
  }
94
145
  if (content.inputTokens !== undefined) {
95
- lines.push(( localize(5748, "Input tokens: {0}", content.inputTokens)));
146
+ lines.push(( localize(
147
+ 5878,
148
+ "Input tokens: {0}",
149
+ numberFormatter.value.format(content.inputTokens)
150
+ )));
96
151
  }
97
152
  if (content.outputTokens !== undefined) {
98
- lines.push(( localize(5749, "Output tokens: {0}", content.outputTokens)));
153
+ lines.push(( localize(
154
+ 5879,
155
+ "Output tokens: {0}",
156
+ numberFormatter.value.format(content.outputTokens)
157
+ )));
99
158
  }
100
159
  if (content.cachedTokens !== undefined) {
101
- lines.push(( localize(5750, "Cached tokens: {0}", content.cachedTokens)));
160
+ lines.push(( localize(
161
+ 5880,
162
+ "Cached tokens: {0}",
163
+ numberFormatter.value.format(content.cachedTokens)
164
+ )));
102
165
  }
103
166
  if (content.totalTokens !== undefined) {
104
- lines.push(( localize(5751, "Total tokens: {0}", content.totalTokens)));
167
+ lines.push(( localize(
168
+ 5881,
169
+ "Total tokens: {0}",
170
+ numberFormatter.value.format(content.totalTokens)
171
+ )));
105
172
  }
106
173
  if (content.maxInputTokens !== undefined) {
107
- lines.push(( localize(5752, "Max input tokens: {0}", content.maxInputTokens)));
174
+ lines.push(( localize(
175
+ 5882,
176
+ "Max input tokens: {0}",
177
+ numberFormatter.value.format(content.maxInputTokens)
178
+ )));
108
179
  }
109
180
  if (content.maxOutputTokens !== undefined) {
110
- lines.push(( localize(5753, "Max output tokens: {0}", content.maxOutputTokens)));
181
+ lines.push(( localize(
182
+ 5883,
183
+ "Max output tokens: {0}",
184
+ numberFormatter.value.format(content.maxOutputTokens)
185
+ )));
111
186
  }
112
187
  if (content.errorMessage) {
113
- lines.push(( localize(5754, "Error: {0}", content.errorMessage)));
188
+ lines.push(( localize(5884, "Error: {0}", content.errorMessage)));
114
189
  }
115
190
  if (content.sections && content.sections.length > 0) {
116
191
  lines.push("");
@@ -23,11 +23,13 @@ export declare class ChatDebugOverviewView extends Disposable {
23
23
  private currentSessionResource;
24
24
  private metricsContainer;
25
25
  private isFirstLoad;
26
+ private readonly refreshScheduler;
26
27
  constructor(parent: HTMLElement, chatService: IChatService, chatDebugService: IChatDebugService, chatWidgetService: IChatWidgetService, chatSessionsService: IChatSessionsService);
27
28
  setSession(sessionResource: URI): void;
28
29
  show(): void;
29
30
  hide(): void;
30
31
  refresh(): void;
32
+ private doRefresh;
31
33
  updateBreadcrumb(): void;
32
34
  private load;
33
35
  private renderSessionDetails;
@@ -3,22 +3,26 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
3
3
  import { $ as $$1, append, hide, show, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
4
  import { BreadcrumbsWidget } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget';
5
5
  import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
6
+ import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
6
7
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
7
8
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
8
9
  import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
9
10
  import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
10
11
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
11
12
  import { defaultBreadcrumbsWidgetStyles, defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
12
- import { ChatDebugLogLevel } from '../../common/chatDebugService.js';
13
+ import { ChatDebugLogLevel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService';
13
14
  import { IChatDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service';
15
+ import { safeIntl } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
14
16
  import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
15
17
  import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
18
+ import { localChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
16
19
  import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
17
20
  import { LocalChatSessionUri, getChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
18
21
  import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
19
22
  import { setupBreadcrumbKeyboardNavigation, TextBreadcrumbItem } from './chatDebugTypes.js';
20
23
 
21
24
  const $ = $$1;
25
+ const numberFormatter = safeIntl.NumberFormat();
22
26
  var OverviewNavigation;
23
27
  (function(OverviewNavigation) {
24
28
  OverviewNavigation["Home"] = "home";
@@ -44,6 +48,7 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
44
48
  this.isFirstLoad = true;
45
49
  this.container = append(parent, $(".chat-debug-overview"));
46
50
  hide(this.container);
51
+ this.refreshScheduler = this._register(( new RunOnceScheduler(() => this.doRefresh(), 100)));
47
52
  const breadcrumbContainer = append(this.container, $(".chat-debug-breadcrumb"));
48
53
  this.breadcrumbWidget = this._register(( new BreadcrumbsWidget(
49
54
  breadcrumbContainer,
@@ -77,25 +82,31 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
77
82
  }
78
83
  hide() {
79
84
  hide(this.container);
85
+ this.refreshScheduler.cancel();
80
86
  }
81
87
  refresh() {
82
88
  if (this.container.style.display !== "none") {
83
- if (this.metricsContainer && this.currentSessionResource) {
84
- clearNode(this.metricsContainer);
85
- const events = this.chatDebugService.getEvents(this.currentSessionResource);
86
- this.renderMetricsContent(this.metricsContainer, events);
87
- this.isFirstLoad = false;
88
- } else {
89
- this.load();
89
+ if (!this.refreshScheduler.isScheduled()) {
90
+ this.refreshScheduler.schedule();
90
91
  }
91
92
  }
92
93
  }
94
+ doRefresh() {
95
+ if (this.metricsContainer && this.currentSessionResource) {
96
+ clearNode(this.metricsContainer);
97
+ const events = this.chatDebugService.getEvents(this.currentSessionResource);
98
+ this.renderMetricsContent(this.metricsContainer, events);
99
+ this.isFirstLoad = false;
100
+ } else {
101
+ this.load();
102
+ }
103
+ }
93
104
  updateBreadcrumb() {
94
105
  if (!this.currentSessionResource) {
95
106
  return;
96
107
  }
97
108
  const sessionTitle = this.chatService.getSessionTitle(this.currentSessionResource) || LocalChatSessionUri.parseLocalSessionId(this.currentSessionResource) || ( this.currentSessionResource.toString());
98
- this.breadcrumbWidget.setItems([( new TextBreadcrumbItem(( localize(5755, "Agent Debug Panel")), true)), ( new TextBreadcrumbItem(sessionTitle))]);
109
+ this.breadcrumbWidget.setItems([( new TextBreadcrumbItem(( localize(5885, "Agent Debug Logs")), true)), ( new TextBreadcrumbItem(sessionTitle))]);
99
110
  }
100
111
  load() {
101
112
  clearNode(this.content);
@@ -111,8 +122,8 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
111
122
  titleEl.append(sessionTitle);
112
123
  const titleActions = append(titleRow, $(".chat-debug-overview-title-actions"));
113
124
  const revealSessionBtn = this.loadDisposables.add(( new Button(titleActions, {
114
- ariaLabel: ( localize(5756, "Reveal Chat Session")),
115
- title: ( localize(5756, "Reveal Chat Session"))
125
+ ariaLabel: ( localize(5886, "Reveal Chat Session")),
126
+ title: ( localize(5886, "Reveal Chat Session"))
116
127
  })));
117
128
  revealSessionBtn.element.classList.add("chat-debug-icon-button");
118
129
  revealSessionBtn.icon = Codicon.goToFile;
@@ -131,36 +142,36 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
131
142
  const details = [];
132
143
  const sessionType = getChatSessionType(sessionUri);
133
144
  const contribution = this.chatSessionsService.getChatSessionContribution(sessionType);
134
- const sessionTypeName = contribution?.displayName || (sessionType === "local" ? ( localize(5757, "Local")) : sessionType);
145
+ const sessionTypeName = contribution?.displayName || (sessionType === localChatSessionType ? ( localize(5887, "Local")) : sessionType);
135
146
  details.push({
136
- label: ( localize(5758, "Session Type")),
147
+ label: ( localize(5888, "Session Type")),
137
148
  value: sessionTypeName
138
149
  });
139
150
  if (model) {
140
151
  const locationLabel = this.getLocationLabel(model.initialLocation);
141
152
  details.push({
142
- label: ( localize(5759, "Location")),
153
+ label: ( localize(5889, "Location")),
143
154
  value: locationLabel
144
155
  });
145
156
  const inProgress = model.requestInProgress.get();
146
- const statusLabel = inProgress ? ( localize(5760, "In Progress")) : ( localize(5761, "Idle"));
157
+ const statusLabel = inProgress ? ( localize(5890, "In Progress")) : ( localize(5891, "Idle"));
147
158
  details.push({
148
- label: ( localize(5762, "Status")),
159
+ label: ( localize(5892, "Status")),
149
160
  value: statusLabel
150
161
  });
151
162
  const timing = model.timing;
152
163
  details.push({
153
- label: ( localize(5763, "Created")),
164
+ label: ( localize(5893, "Created")),
154
165
  value: ( new Date(timing.created)).toLocaleString()
155
166
  });
156
167
  if (timing.lastRequestEnded) {
157
168
  details.push({
158
- label: ( localize(5764, "Last Activity")),
169
+ label: ( localize(5894, "Last Activity")),
159
170
  value: ( new Date(timing.lastRequestEnded)).toLocaleString()
160
171
  });
161
172
  } else if (timing.lastRequestStarted) {
162
173
  details.push({
163
- label: ( localize(5764, "Last Activity")),
174
+ label: ( localize(5894, "Last Activity")),
164
175
  value: ( new Date(timing.lastRequestStarted)).toLocaleString()
165
176
  });
166
177
  }
@@ -169,7 +180,7 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
169
180
  const section = append(this.content, $(".chat-debug-overview-section"));
170
181
  append(
171
182
  section,
172
- $("h3.chat-debug-overview-section-label", undefined, ( localize(5765, "Session Details")))
183
+ $("h3.chat-debug-overview-section-label", undefined, ( localize(5895, "Session Details")))
173
184
  );
174
185
  const detailsGrid = append(section, $(".chat-debug-overview-details"));
175
186
  for (const detail of details) {
@@ -182,13 +193,13 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
182
193
  getLocationLabel(location) {
183
194
  switch (location) {
184
195
  case ChatAgentLocation.Chat:
185
- return localize(5766, "Chat Panel");
196
+ return localize(5896, "Chat Panel");
186
197
  case ChatAgentLocation.Terminal:
187
- return localize(5767, "Terminal");
198
+ return localize(5897, "Terminal");
188
199
  case ChatAgentLocation.Notebook:
189
- return localize(5768, "Notebook");
200
+ return localize(5898, "Notebook");
190
201
  case ChatAgentLocation.EditorInline:
191
- return localize(5769, "Editor Inline");
202
+ return localize(5899, "Editor Inline");
192
203
  default:
193
204
  return String(location);
194
205
  }
@@ -197,7 +208,7 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
197
208
  const metricsSection = append(this.content, $(".chat-debug-overview-section"));
198
209
  append(
199
210
  metricsSection,
200
- $("h3.chat-debug-overview-section-label", undefined, ( localize(5770, "Summary")))
211
+ $("h3.chat-debug-overview-section-label", undefined, ( localize(5900, "Summary")))
201
212
  );
202
213
  this.metricsContainer = append(metricsSection, $(".chat-debug-overview-metrics"));
203
214
  if (showShimmer) {
@@ -208,17 +219,17 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
208
219
  const actionsSection = append(this.content, $(".chat-debug-overview-section"));
209
220
  append(
210
221
  actionsSection,
211
- $("h3.chat-debug-overview-section-label", undefined, ( localize(5771, "Explore Trace Data")))
222
+ $("h3.chat-debug-overview-section-label", undefined, ( localize(5901, "Explore Trace Data")))
212
223
  );
213
224
  const row = append(actionsSection, $(".chat-debug-overview-actions"));
214
225
  const viewLogsBtn = this.loadDisposables.add(( new Button(row, {
215
226
  ...defaultButtonStyles,
216
227
  secondary: true,
217
228
  supportIcons: true,
218
- title: ( localize(5772, "View Logs"))
229
+ title: ( localize(5902, "View Logs"))
219
230
  })));
220
231
  viewLogsBtn.element.classList.add("chat-debug-overview-action-button");
221
- viewLogsBtn.label = `$(list-flat) ${( localize(5772, "View Logs"))}`;
232
+ viewLogsBtn.label = `$(list-flat) ${( localize(5902, "View Logs"))}`;
222
233
  this.loadDisposables.add(viewLogsBtn.onDidClick(() => {
223
234
  this._onNavigate.fire(OverviewNavigation.Logs);
224
235
  }));
@@ -226,16 +237,16 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
226
237
  ...defaultButtonStyles,
227
238
  secondary: true,
228
239
  supportIcons: true,
229
- title: ( localize(5773, "Agent Flow Chart"))
240
+ title: ( localize(5903, "Agent Flow Chart"))
230
241
  })));
231
242
  flowChartBtn.element.classList.add("chat-debug-overview-action-button");
232
- flowChartBtn.label = `$(type-hierarchy) ${( localize(5773, "Agent Flow Chart"))}`;
243
+ flowChartBtn.label = `$(type-hierarchy) ${( localize(5903, "Agent Flow Chart"))}`;
233
244
  this.loadDisposables.add(flowChartBtn.onDidClick(() => {
234
245
  this._onNavigate.fire(OverviewNavigation.FlowChart);
235
246
  }));
236
247
  }
237
248
  renderMetricsShimmer(container) {
238
- const placeholderLabels = [( localize(5774, "Model Turns")), ( localize(5775, "Tool Calls")), ( localize(5776, "Total Tokens")), ( localize(5777, "Errors")), ( localize(5778, "Total Events"))];
249
+ const placeholderLabels = [( localize(5904, "Model Turns")), ( localize(5905, "Tool Calls")), ( localize(5906, "Total Tokens")), ( localize(5907, "Errors")), ( localize(5908, "Total Events"))];
239
250
  for (const label of placeholderLabels) {
240
251
  const card = append(container, $(".chat-debug-overview-metric-card"));
241
252
  append(card, $("div.chat-debug-overview-metric-label", undefined, label));
@@ -252,19 +263,19 @@ let ChatDebugOverviewView = class ChatDebugOverviewView extends Disposable {
252
263
  );
253
264
  const totalTokens = modelTurns.reduce((sum, e) => sum + (e.totalTokens ?? 0), 0);
254
265
  const metrics = [{
255
- label: ( localize(5774, "Model Turns")),
266
+ label: ( localize(5904, "Model Turns")),
256
267
  value: String(modelTurns.length)
257
268
  }, {
258
- label: ( localize(5775, "Tool Calls")),
269
+ label: ( localize(5905, "Tool Calls")),
259
270
  value: String(toolCalls.length)
260
271
  }, {
261
- label: ( localize(5776, "Total Tokens")),
262
- value: totalTokens.toLocaleString()
272
+ label: ( localize(5906, "Total Tokens")),
273
+ value: numberFormatter.value.format(totalTokens)
263
274
  }, {
264
- label: ( localize(5777, "Errors")),
275
+ label: ( localize(5907, "Errors")),
265
276
  value: String(errors.length)
266
277
  }, {
267
- label: ( localize(5778, "Total Events")),
278
+ label: ( localize(5908, "Total Events")),
268
279
  value: String(events.length)
269
280
  }];
270
281
  for (const metric of metrics) {
@@ -1,6 +1,30 @@
1
1
  import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { IClipboardService } from "@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service";
2
3
  import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
3
- import { IChatDebugEventToolCallContent } from "../../common/chatDebugService.js";
4
+ import { IChatDebugEventToolCallContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService";
5
+ export declare function tryParseJSON(text: string): {
6
+ parsed: unknown;
7
+ isJSON: true;
8
+ } | {
9
+ isJSON: false;
10
+ };
11
+ /**
12
+ * Format and syntax-highlight a content string.
13
+ * When the content is valid JSON it is pretty-printed and tokenized as JSON;
14
+ * otherwise it is tokenized as markdown.
15
+ */
16
+ export declare function tokenizeContent(text: string, languageService: ILanguageService): Promise<{
17
+ plainText: string;
18
+ tokenizedHtml: string;
19
+ }>;
20
+ /**
21
+ * Render a collapsible section. When `tokenizedHtml` is provided the content
22
+ * is rendered as syntax-highlighted HTML; otherwise plain-text is used.
23
+ * Optionally adds a copy button when `clipboardService` is provided.
24
+ */
25
+ export declare function renderSection(parent: HTMLElement, label: string, plainText: string, tokenizedHtml: string | undefined, disposables: DisposableStore, initiallyCollapsed?: boolean, clipboardService?: IClipboardService, scrollable?: {
26
+ scanDomNode(): void;
27
+ }): void;
4
28
  /**
5
29
  * Render a resolved tool call content with structured sections for
6
30
  * tool name, status, duration, arguments, and output.
@@ -8,7 +32,9 @@ import { IChatDebugEventToolCallContent } from "../../common/chatDebugService.js
8
32
  * When JSON is detected in input/output, renders it with syntax highlighting
9
33
  * using the editor's tokenization.
10
34
  */
11
- export declare function renderToolCallContent(content: IChatDebugEventToolCallContent, languageService: ILanguageService): Promise<{
35
+ export declare function renderToolCallContent(content: IChatDebugEventToolCallContent, languageService: ILanguageService, clipboardService?: IClipboardService, scrollable?: {
36
+ scanDomNode(): void;
37
+ }): Promise<{
12
38
  element: HTMLElement;
13
39
  disposables: DisposableStore;
14
40
  }>;