@codingame/monaco-vscode-katex-common 31.0.0 → 32.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 (220) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +15 -3
  3. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +6 -5
  4. package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +5 -1
  5. package/vscode/src/vs/platform/actions/browser/buttonbar.js +45 -14
  6. package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +15 -1
  7. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +15 -10
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +51 -54
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
  14. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +3 -1
  15. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +45 -23
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +13 -7
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +9 -9
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +5 -3
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +4 -1
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +46 -32
  21. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +8 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +23 -1
  23. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +155 -46
  24. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +1 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +20 -1
  26. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +4 -1
  27. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +37 -14
  28. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +34 -34
  29. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
  30. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +1 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.d.ts +28 -0
  32. package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +250 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
  34. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +14 -11
  35. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +10 -10
  36. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
  37. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
  38. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +7 -2
  39. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
  40. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
  41. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
  42. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +7 -3
  43. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +12 -2
  44. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +51 -20
  45. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
  46. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +6 -1
  47. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +56 -3
  48. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
  49. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
  50. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.d.ts +1 -1
  51. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.js +2 -2
  52. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.d.ts +3 -1
  53. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.js +4 -0
  54. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +68 -10
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.d.ts +58 -2
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +653 -75
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +28 -10
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +5 -1
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +91 -54
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +7 -5
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +53 -51
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +5 -5
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +11 -11
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +6 -6
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +4 -1
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +42 -22
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +9 -9
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +6 -2
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +93 -35
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +5 -0
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css +169 -27
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +13 -4
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +1 -1
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css +29 -0
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +1 -0
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +60 -15
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +13 -6
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +1 -1
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +2 -2
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +15 -8
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +6 -1
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +125 -26
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +2 -1
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +29 -23
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.d.ts +14 -0
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +119 -10
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +6 -6
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +1 -1
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +5 -5
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/media/toolRiskBadge.css +77 -0
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.d.ts +38 -0
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.js +125 -0
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +1 -0
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +132 -59
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +16 -3
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +156 -67
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.d.ts +55 -0
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.js +93 -0
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.d.ts +21 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.js +133 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +53 -8
  115. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +288 -125
  116. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +23 -2
  117. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +699 -145
  118. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +12 -8
  119. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +12 -11
  120. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.d.ts +62 -0
  121. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.js +120 -0
  122. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +5 -5
  123. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatInputNotificationWidget.css +191 -0
  124. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatPhoneInputPresenter.css +22 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +3 -3
  126. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +9 -25
  127. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +4 -3
  128. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +20 -1
  129. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +89 -108
  130. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +3 -3
  131. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -3
  132. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +521 -9
  133. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
  134. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +2 -2
  135. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +19 -19
  136. package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +6 -6
  137. package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionStorageKeys.d.ts +2 -0
  138. package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionStorageKeys.js +6 -0
  139. package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.d.ts +27 -0
  140. package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.js +82 -0
  141. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +3 -0
  142. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +44 -17
  143. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +1 -3
  144. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +3 -46
  145. package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatEditorAffordance.d.ts → inlineChatAffordanceWidget.d.ts} +1 -1
  146. package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatEditorAffordance.js → inlineChatAffordanceWidget.js} +6 -6
  147. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +2 -18
  148. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +19 -400
  149. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +4 -9
  150. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +1 -1
  151. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +5 -19
  152. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +47 -133
  153. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +3 -1
  154. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +103 -25
  155. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +29 -0
  156. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +3 -32
  157. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -92
  158. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  168. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
  169. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
  170. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +7 -0
  171. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +99 -32
  172. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +13 -1
  173. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +76 -14
  174. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +4 -3
  175. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +9 -1
  176. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +89 -28
  177. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +1 -1
  178. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +11 -1
  179. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +11 -7
  180. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +3 -1
  181. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +7 -3
  182. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +1 -1
  183. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
  184. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +1 -0
  185. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
  186. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +8 -0
  187. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +11 -2
  188. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +20 -0
  189. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +59 -4
  190. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -1
  191. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +24 -3
  192. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +47 -0
  193. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +111 -30
  194. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +60 -3
  195. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +455 -171
  196. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +33 -0
  197. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +82 -0
  198. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.d.ts +31 -0
  199. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxCommandRules.js +49 -0
  200. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.d.ts +18 -0
  201. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxReadAllowList.js +302 -0
  202. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.d.ts +7 -0
  203. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxRuntimeConfigurationPerOperation.js +118 -0
  204. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +34 -4
  205. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +233 -48
  206. package/vscode/src/vs/platform/actions/browser/actionbar.d.ts +0 -16
  207. package/vscode/src/vs/platform/actions/browser/actionbar.js +0 -22
  208. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +0 -46
  209. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +0 -539
  210. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +0 -29
  211. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +0 -386
  212. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +0 -101
  213. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +0 -509
  214. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +0 -130
  215. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +0 -276
  216. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -45
  217. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +0 -93
  218. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +0 -39
  219. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +0 -617
  220. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +0 -231
@@ -110,7 +110,7 @@ let ChatContextUsageWidget = class ChatContextUsageWidget extends Disposable {
110
110
  this.domNode.style.display = "none";
111
111
  this.domNode.setAttribute("tabindex", "0");
112
112
  this.domNode.setAttribute("role", "button");
113
- this.domNode.setAttribute("aria-label", ( localize(7276, "Context window usage")));
113
+ this.domNode.setAttribute("aria-label", ( localize(7575, "Context window usage")));
114
114
  const iconContainer = this.domNode.appendChild($(".icon-container"));
115
115
  this.progressIndicator = ( new CircularProgressIndicator());
116
116
  iconContainer.appendChild(this.progressIndicator.domNode);
@@ -260,7 +260,7 @@ let ChatContextUsageWidget = class ChatContextUsageWidget extends Disposable {
260
260
  this.progressIndicator.setProgress(percentage);
261
261
  const roundedPercentage = Math.min(100, Math.round(percentage));
262
262
  this.percentageLabel.textContent = `${roundedPercentage}%`;
263
- this.domNode.setAttribute("aria-label", ( localize(7277, "Context window usage: {0}%", roundedPercentage)));
263
+ this.domNode.setAttribute("aria-label", ( localize(7576, "Context window usage: {0}%", roundedPercentage)));
264
264
  this.domNode.classList.remove("warning", "error");
265
265
  if (percentage >= 90) {
266
266
  this.domNode.classList.add("error");
@@ -48,16 +48,16 @@
48
48
  .chat-context-usage-details .quota-indicator .quota-bar {
49
49
  width: 100%;
50
50
  height: 4px;
51
- background-color: var(--vscode-gauge-background);
51
+ background-color: var(--vscode-editorWidget-border);
52
52
  border-radius: 4px;
53
- border: 1px solid var(--vscode-gauge-border);
53
+ border: 1px solid var(--vscode-editorWidget-border);
54
54
  margin: 4px 0;
55
55
  display: flex;
56
56
  }
57
57
 
58
58
  .chat-context-usage-details .quota-indicator .quota-bar .quota-bit {
59
59
  height: 100%;
60
- background-color: var(--vscode-gauge-foreground);
60
+ background-color: var(--vscode-focusBorder);
61
61
  border-radius: 4px;
62
62
  transition: width 0.3s ease;
63
63
  }
@@ -65,8 +65,8 @@
65
65
  .chat-context-usage-details .quota-indicator .quota-bar .quota-bit.output-buffer {
66
66
  background: repeating-linear-gradient(
67
67
  -45deg,
68
- var(--vscode-gauge-foreground),
69
- var(--vscode-gauge-foreground) 2px,
68
+ var(--vscode-focusBorder),
69
+ var(--vscode-focusBorder) 2px,
70
70
  transparent 2px,
71
71
  transparent 4px
72
72
  );
@@ -93,8 +93,8 @@
93
93
  border-radius: 2px;
94
94
  background: repeating-linear-gradient(
95
95
  -45deg,
96
- var(--vscode-gauge-foreground),
97
- var(--vscode-gauge-foreground) 2px,
96
+ var(--vscode-focusBorder),
97
+ var(--vscode-focusBorder) 2px,
98
98
  transparent 2px,
99
99
  transparent 4px
100
100
  );
@@ -104,26 +104,26 @@
104
104
  .chat-context-usage-details .quota-indicator.warning .output-buffer-swatch {
105
105
  background: repeating-linear-gradient(
106
106
  -45deg,
107
- var(--vscode-gauge-warningForeground),
108
- var(--vscode-gauge-warningForeground) 2px,
107
+ var(--vscode-editorWarning-foreground),
108
+ var(--vscode-editorWarning-foreground) 2px,
109
109
  transparent 2px,
110
110
  transparent 4px
111
111
  );
112
112
  }
113
113
 
114
114
  .chat-context-usage-details .quota-indicator.warning .quota-bar {
115
- background-color: var(--vscode-gauge-warningBackground);
115
+ background-color: var(--vscode-editorWidget-border);
116
116
  }
117
117
 
118
118
  .chat-context-usage-details .quota-indicator.warning .quota-bar .quota-bit {
119
- background-color: var(--vscode-gauge-warningForeground);
119
+ background-color: var(--vscode-editorWarning-foreground);
120
120
  }
121
121
 
122
122
  .chat-context-usage-details .quota-indicator.warning .quota-bar .quota-bit.output-buffer {
123
123
  background: repeating-linear-gradient(
124
124
  -45deg,
125
- var(--vscode-gauge-warningForeground),
126
- var(--vscode-gauge-warningForeground) 2px,
125
+ var(--vscode-editorWarning-foreground),
126
+ var(--vscode-editorWarning-foreground) 2px,
127
127
  transparent 2px,
128
128
  transparent 4px
129
129
  );
@@ -132,26 +132,26 @@
132
132
  .chat-context-usage-details .quota-indicator.error .output-buffer-swatch {
133
133
  background: repeating-linear-gradient(
134
134
  -45deg,
135
- var(--vscode-gauge-errorForeground),
136
- var(--vscode-gauge-errorForeground) 2px,
135
+ var(--vscode-editorError-foreground),
136
+ var(--vscode-editorError-foreground) 2px,
137
137
  transparent 2px,
138
138
  transparent 4px
139
139
  );
140
140
  }
141
141
 
142
142
  .chat-context-usage-details .quota-indicator.error .quota-bar {
143
- background-color: var(--vscode-gauge-errorBackground);
143
+ background-color: var(--vscode-editorWidget-border);
144
144
  }
145
145
 
146
146
  .chat-context-usage-details .quota-indicator.error .quota-bar .quota-bit {
147
- background-color: var(--vscode-gauge-errorForeground);
147
+ background-color: var(--vscode-editorError-foreground);
148
148
  }
149
149
 
150
150
  .chat-context-usage-details .quota-indicator.error .quota-bar .quota-bit.output-buffer {
151
151
  background: repeating-linear-gradient(
152
152
  -45deg,
153
- var(--vscode-gauge-errorForeground),
154
- var(--vscode-gauge-errorForeground) 2px,
153
+ var(--vscode-editorError-foreground),
154
+ var(--vscode-editorError-foreground) 2px,
155
155
  transparent 2px,
156
156
  transparent 4px
157
157
  );
@@ -26,7 +26,7 @@ async function extractImagesFromChatResponse(response, readFile) {
26
26
  }
27
27
  }
28
28
  const request = response.session.getItems().find(item => isRequestVM(item) && item.id === response.requestId);
29
- const title = request ? request.messageText : ( localize(7371, "Images"));
29
+ const title = request ? request.messageText : ( localize(7671, "Images"));
30
30
  return {
31
31
  id: ( response.sessionResource.toString()) + "_" + response.id,
32
32
  title,
@@ -45,10 +45,10 @@ function extractImagesFromToolInvocationOutputDetails(toolInvocation, sessionRes
45
45
  images.push({
46
46
  id: `${toolInvocation.toolCallId}_${outputIndex}`,
47
47
  uri,
48
- name: ( localize(7372, "Image {0}", images.length + 1)),
48
+ name: ( localize(7672, "Image {0}", images.length + 1)),
49
49
  mimeType,
50
50
  data,
51
- source: ( localize(7373, "Tool: {0}", toolInvocation.toolId)),
51
+ source: ( localize(7673, "Tool: {0}", toolInvocation.toolId)),
52
52
  caption
53
53
  });
54
54
  };
@@ -93,7 +93,7 @@ async function extractImagesFromToolInvocationMessages(toolInvocation, readFile)
93
93
  name,
94
94
  mimeType,
95
95
  data,
96
- source: ( localize(7373, "Tool: {0}", toolInvocation.toolId)),
96
+ source: ( localize(7673, "Tool: {0}", toolInvocation.toolId)),
97
97
  caption: message.value
98
98
  });
99
99
  }
@@ -131,7 +131,7 @@ async function extractImageFromInlineReference(part, readFile) {
131
131
  name,
132
132
  mimeType: mime,
133
133
  data,
134
- source: ( localize(7374, "File")),
134
+ source: ( localize(7674, "File")),
135
135
  caption: undefined
136
136
  };
137
137
  }
@@ -160,7 +160,7 @@ function extractImagesFromChatRequest(request) {
160
160
  name: variable.name,
161
161
  mimeType,
162
162
  data: VSBuffer.wrap(buffer),
163
- source: ( localize(7375, "Attachment")),
163
+ source: ( localize(7675, "Attachment")),
164
164
  caption: undefined
165
165
  });
166
166
  }
@@ -0,0 +1,2 @@
1
+ export declare const AUTOPILOT_DONT_SHOW_AGAIN_KEY = "chat.permissions.autopilot.dontShowWarningAgain";
2
+ export declare const AUTO_APPROVE_DONT_SHOW_AGAIN_KEY = "chat.permissions.autoApprove.dontShowWarningAgain";
@@ -0,0 +1,6 @@
1
+
2
+
3
+ const AUTOPILOT_DONT_SHOW_AGAIN_KEY = 'chat.permissions.autopilot.dontShowWarningAgain';
4
+ const AUTO_APPROVE_DONT_SHOW_AGAIN_KEY = 'chat.permissions.autoApprove.dontShowWarningAgain';
5
+
6
+ export { AUTOPILOT_DONT_SHOW_AGAIN_KEY, AUTO_APPROVE_DONT_SHOW_AGAIN_KEY };
@@ -0,0 +1,27 @@
1
+ import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
2
+ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
3
+ import { ChatPermissionLevel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
4
+ /**
5
+ * Clears the in-process suppression set so that previously accepted (but not
6
+ * persistently dismissed) warnings will be shown again within this session.
7
+ * Call this alongside removing the persisted storage keys when implementing a
8
+ * "reset" developer action.
9
+ */
10
+ export declare function resetShownWarnings(): void;
11
+ export declare function hasShownElevatedWarning(level: ChatPermissionLevel, storageService: IStorageService): boolean;
12
+ /**
13
+ * If `level` is an elevated permission level (Bypass Approvals or Autopilot)
14
+ * that hasn't already been confirmed in this session or persistently
15
+ * dismissed, show the corresponding warning dialog. Returns:
16
+ *
17
+ * - `true` if the level is not elevated, has already been confirmed, or the
18
+ * user accepts the dialog. In these cases the caller should proceed to apply
19
+ * the level.
20
+ * - `false` if the user cancels the dialog. The caller should abort the
21
+ * permission change.
22
+ *
23
+ * When the user ticks "Don't show again", the choice is persisted in
24
+ * `StorageScope.PROFILE`, which is shared across the workbench and Agents
25
+ * windows so a dismissal in one applies to the other.
26
+ */
27
+ export declare function maybeConfirmElevatedPermissionLevel(level: ChatPermissionLevel, dialogService: IDialogService, storageService: IStorageService): Promise<boolean>;
@@ -0,0 +1,82 @@
1
+
2
+ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
3
+ import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
4
+ import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
5
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
6
+ import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
7
+ import { AUTOPILOT_DONT_SHOW_AGAIN_KEY, AUTO_APPROVE_DONT_SHOW_AGAIN_KEY } from './chatPermissionStorageKeys.js';
8
+ import { ChatPermissionLevel, ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
9
+
10
+ const shownWarnings = ( new Set());
11
+ function dontShowAgainKey(level) {
12
+ if (level === ChatPermissionLevel.Autopilot) {
13
+ return AUTOPILOT_DONT_SHOW_AGAIN_KEY;
14
+ }
15
+ if (level === ChatPermissionLevel.AutoApprove) {
16
+ return AUTO_APPROVE_DONT_SHOW_AGAIN_KEY;
17
+ }
18
+ return undefined;
19
+ }
20
+ function resetShownWarnings() {
21
+ shownWarnings.clear();
22
+ }
23
+ function hasShownElevatedWarning(level, storageService) {
24
+ if (( shownWarnings.has(level))) {
25
+ return true;
26
+ }
27
+ const key = dontShowAgainKey(level);
28
+ if (key && storageService.getBoolean(key, StorageScope.PROFILE, false)) {
29
+ return true;
30
+ }
31
+ return false;
32
+ }
33
+ async function maybeConfirmElevatedPermissionLevel(level, dialogService, storageService) {
34
+ const key = dontShowAgainKey(level);
35
+ if (!key || hasShownElevatedWarning(level, storageService)) {
36
+ return true;
37
+ }
38
+ const isAutopilot = level === ChatPermissionLevel.Autopilot;
39
+ const result = await dialogService.prompt({
40
+ type: Severity.Warning,
41
+ message: isAutopilot ? ( localize(7679, "Enable Autopilot?")) : ( localize(7680, "Enable Bypass Approvals?")),
42
+ buttons: [{
43
+ label: isAutopilot ? ( localize(7681, "Enable")) : ( localize(7682, "Enable")),
44
+ run: () => true
45
+ }, {
46
+ label: isAutopilot ? ( localize(7683, "Cancel")) : ( localize(7684, "Cancel")),
47
+ run: () => false
48
+ }],
49
+ checkbox: {
50
+ label: ( localize(7685, "Don't show again")),
51
+ checked: false
52
+ },
53
+ custom: {
54
+ icon: isAutopilot ? Codicon.rocket : Codicon.warning,
55
+ markdownDetails: [{
56
+ markdown: ( new MarkdownString(isAutopilot ? ( localize(
57
+ 7686,
58
+ "Autopilot will auto-approve all tool calls and continue working autonomously until the task is complete. This includes terminal commands, file edits, and external tool calls. The agent will make decisions on your behalf without asking for confirmation.\n\nYou can stop the agent at any time by clicking the stop button. This applies to the current session only.\n\nTo make this the starting permission level for new chat sessions, change the [{0}](command:workbench.action.openSettings?%5B%22{0}%22%5D) setting.",
59
+ ChatConfiguration.DefaultPermissionLevel
60
+ )) : ( localize(
61
+ 7687,
62
+ "Bypass Approvals will auto-approve all tool calls without asking for confirmation. This includes file edits, terminal commands, and external tool calls.\n\nTo make this the starting permission level for new chat sessions, change the [{0}](command:workbench.action.openSettings?%5B%22{0}%22%5D) setting.",
63
+ ChatConfiguration.DefaultPermissionLevel
64
+ )), {
65
+ isTrusted: {
66
+ enabledCommands: ["workbench.action.openSettings"]
67
+ }
68
+ }))
69
+ }]
70
+ }
71
+ });
72
+ if (result.result !== true) {
73
+ return false;
74
+ }
75
+ if (result.checkboxChecked) {
76
+ storageService.store(key, true, StorageScope.PROFILE, StorageTarget.USER);
77
+ }
78
+ shownWarnings.add(level);
79
+ return true;
80
+ }
81
+
82
+ export { hasShownElevatedWarning, maybeConfirmElevatedPermissionLevel, resetShownWarnings };
@@ -13,3 +13,6 @@ export declare const chatCheckpointSeparator: string;
13
13
  export declare const chatLinesAddedForeground: string;
14
14
  export declare const chatLinesRemovedForeground: string;
15
15
  export declare const chatThinkingShimmer: string;
16
+ export declare const chatInputWorkingBorderColor1: string;
17
+ export declare const chatInputWorkingBorderColor2: string;
18
+ export declare const chatInputWorkingBorderColor3: string;
@@ -1,11 +1,11 @@
1
1
 
2
2
  import { Color, RGBA } from '@codingame/monaco-vscode-api/vscode/vs/base/common/color';
3
3
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
- import { registerColor, transparent } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
4
+ import { registerColor, transparent, darken, lighten } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
5
5
  import { contrastBorder, foreground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
6
6
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
7
7
  import { editorWidgetBackground, editorBackground, editorSelectionBackground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
8
- import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
8
+ import { buttonBackground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
9
9
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
10
10
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
11
11
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
@@ -18,45 +18,45 @@ registerColor("agentStatusIndicator.background", {
18
18
  light: ( Color.black.transparent(0.05)),
19
19
  hcDark: null,
20
20
  hcLight: null
21
- }, ( localize(7817, "Background color of the agent status indicator in the titlebar.")));
21
+ }, ( localize(8145, "Background color of the agent status indicator in the titlebar.")));
22
22
  registerColor("chat.requestBorder", {
23
23
  dark: ( new Color(( new RGBA(255, 255, 255, 0.10)))),
24
24
  light: ( new Color(( new RGBA(0, 0, 0, 0.10)))),
25
25
  hcDark: contrastBorder,
26
26
  hcLight: contrastBorder
27
- }, ( localize(7818, "The border color of a chat request.")));
27
+ }, ( localize(8146, "The border color of a chat request.")));
28
28
  const chatRequestBackground = registerColor("chat.requestBackground", {
29
29
  dark: ( transparent(editorBackground, 0.62)),
30
30
  light: ( transparent(editorBackground, 0.62)),
31
31
  hcDark: editorWidgetBackground,
32
32
  hcLight: null
33
- }, ( localize(7819, "The background color of a chat request.")));
33
+ }, ( localize(8147, "The background color of a chat request.")));
34
34
  const chatSlashCommandBackground = registerColor("chat.slashCommandBackground", {
35
35
  dark: "#26477866",
36
36
  light: "#adceff7a",
37
37
  hcDark: Color.white,
38
38
  hcLight: badgeBackground
39
- }, ( localize(7820, "The background color of a chat slash command.")));
39
+ }, ( localize(8148, "The background color of a chat slash command.")));
40
40
  const chatSlashCommandForeground = registerColor("chat.slashCommandForeground", {
41
41
  dark: "#85b6ff",
42
42
  light: "#26569e",
43
43
  hcDark: Color.black,
44
44
  hcLight: badgeForeground
45
- }, ( localize(7821, "The foreground color of a chat slash command.")));
45
+ }, ( localize(8149, "The foreground color of a chat slash command.")));
46
46
  registerColor("chat.avatarBackground", {
47
47
  dark: "#1f1f1f",
48
48
  light: "#f2f2f2",
49
49
  hcDark: Color.black,
50
50
  hcLight: Color.white
51
- }, ( localize(7822, "The background color of a chat avatar.")));
52
- registerColor("chat.avatarForeground", foreground, ( localize(7823, "The foreground color of a chat avatar.")));
51
+ }, ( localize(8150, "The background color of a chat avatar.")));
52
+ registerColor("chat.avatarForeground", foreground, ( localize(8151, "The foreground color of a chat avatar.")));
53
53
  registerColor("chat.editedFileForeground", {
54
54
  light: "#895503",
55
55
  dark: "#E2C08D",
56
56
  hcDark: "#E2C08D",
57
57
  hcLight: "#895503"
58
58
  }, ( localize(
59
- 7824,
59
+ 8152,
60
60
  "The foreground color of a chat edited file in the edited file list."
61
61
  )));
62
62
  registerColor("chat.requestCodeBorder", {
@@ -64,42 +64,69 @@ registerColor("chat.requestCodeBorder", {
64
64
  light: "#0e639c40",
65
65
  hcDark: null,
66
66
  hcLight: null
67
- }, ( localize(7825, "Border color of code blocks within the chat request bubble.")), true);
67
+ }, ( localize(8153, "Border color of code blocks within the chat request bubble.")), true);
68
68
  registerColor("chat.requestBubbleBackground", {
69
69
  light: ( transparent(editorSelectionBackground, 0.3)),
70
70
  dark: ( transparent(editorSelectionBackground, 0.3)),
71
71
  hcDark: null,
72
72
  hcLight: null
73
- }, ( localize(7826, "Background color of the chat request bubble.")), true);
73
+ }, ( localize(8154, "Background color of the chat request bubble.")), true);
74
74
  registerColor("chat.requestBubbleHoverBackground", {
75
75
  dark: ( transparent(editorSelectionBackground, 0.6)),
76
76
  light: ( transparent(editorSelectionBackground, 0.6)),
77
77
  hcDark: null,
78
78
  hcLight: null
79
- }, ( localize(7827, "Background color of the chat request bubble on hover.")), true);
79
+ }, ( localize(8155, "Background color of the chat request bubble on hover.")), true);
80
80
  registerColor("chat.checkpointSeparator", {
81
81
  dark: "#585858",
82
82
  light: "#a9a9a9",
83
83
  hcDark: "#a9a9a9",
84
84
  hcLight: "#a5a5a5"
85
- }, ( localize(7828, "Chat checkpoint separator color.")));
85
+ }, ( localize(8156, "Chat checkpoint separator color.")));
86
86
  registerColor("chat.linesAddedForeground", {
87
87
  dark: "#54B054",
88
88
  light: "#107C10",
89
89
  hcDark: "#54B054",
90
90
  hcLight: "#107C10"
91
- }, ( localize(7829, "Foreground color of lines added in chat code block pill.")), true);
91
+ }, ( localize(8157, "Foreground color of lines added in chat code block pill.")), true);
92
92
  registerColor("chat.linesRemovedForeground", {
93
93
  dark: "#FC6A6A",
94
94
  light: "#BC2F32",
95
95
  hcDark: "#F48771",
96
96
  hcLight: "#B5200D"
97
- }, ( localize(7830, "Foreground color of lines removed in chat code block pill.")), true);
97
+ }, ( localize(8158, "Foreground color of lines removed in chat code block pill.")), true);
98
98
  registerColor("chat.thinkingShimmer", {
99
99
  dark: "#ffffff",
100
100
  light: "#000000",
101
101
  hcDark: "#ffffff",
102
102
  hcLight: "#000000"
103
- }, ( localize(7831, "Shimmer highlight for thinking/working labels.")), true);
103
+ }, ( localize(8159, "Shimmer highlight for thinking/working labels.")), true);
104
+ registerColor("chat.inputWorkingBorderColor1", {
105
+ dark: buttonBackground,
106
+ light: buttonBackground,
107
+ hcDark: "#FFFFFF",
108
+ hcLight: "#000000"
109
+ }, ( localize(
110
+ 8160,
111
+ "First color stop of the animated chat input border shown while a request is in flight."
112
+ )), true);
113
+ registerColor("chat.inputWorkingBorderColor2", {
114
+ dark: ( darken(buttonBackground, 0.5)),
115
+ light: ( darken(buttonBackground, 0.3)),
116
+ hcDark: "#A0A0A0",
117
+ hcLight: "#555555"
118
+ }, ( localize(
119
+ 8161,
120
+ "Secondary accent color used by other animated chat input affordances. Not used by the in-flight chat input border."
121
+ )), true);
122
+ registerColor("chat.inputWorkingBorderColor3", {
123
+ dark: ( lighten(buttonBackground, 0.5)),
124
+ light: ( lighten(buttonBackground, 0.3)),
125
+ hcDark: "#000000",
126
+ hcLight: "#000000"
127
+ }, ( localize(
128
+ 8162,
129
+ "Tertiary accent color used by other animated chat input affordances. Not used by the in-flight chat input border."
130
+ )), true);
104
131
 
105
132
  export { chatRequestBackground, chatSlashCommandBackground, chatSlashCommandForeground };
@@ -3,13 +3,11 @@ import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/brows
3
3
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
4
4
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
5
5
  import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
6
- import { InlineChatInputWidget } from "./inlineChatOverlayWidget.js";
7
6
  import { IInlineChatSessionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service";
8
7
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
9
8
  import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
10
9
  export declare class InlineChatAffordance extends Disposable {
11
10
  #private;
12
- constructor(editor: ICodeEditor, inputWidget: InlineChatInputWidget, instantiationService: IInstantiationService, configurationService: IConfigurationService, chatEntiteldService: IChatEntitlementService, inlineChatSessionService: IInlineChatSessionService, telemetryService: ITelemetryService, contextKeyService: IContextKeyService);
11
+ constructor(editor: ICodeEditor, instantiationService: IInstantiationService, configurationService: IConfigurationService, chatEntiteldService: IChatEntitlementService, inlineChatSessionService: IInlineChatSessionService, telemetryService: ITelemetryService, contextKeyService: IContextKeyService);
13
12
  dismiss(): void;
14
- showMenuAtSelection(placeholder: string, value?: string): Promise<void>;
15
13
  }
@@ -3,15 +3,12 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
3
3
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
4
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
5
5
  import { observableCodeEditor } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/observableCodeEditor';
6
- import { ScrollType } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon';
7
6
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
8
7
  import { InlineChatConfigKeys, CTX_INLINE_CHAT_AFFORDANCE_VISIBLE } from '../common/inlineChat.js';
9
8
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
10
9
  import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
11
10
  import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
12
- import { InlineChatEditorAffordance } from './inlineChatEditorAffordance.js';
13
- import { SelectionDirection } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/selection';
14
- import { assertType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
11
+ import { InlineChatAffordanceWidget } from './inlineChatAffordanceWidget.js';
15
12
  import { CursorChangeReason } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/cursorEvents';
16
13
  import { IInlineChatSessionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service';
17
14
  import { CodeActionController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/codeAction/browser/codeActionController';
@@ -24,17 +21,13 @@ import { runOnChange } from '@codingame/monaco-vscode-api/vscode/vs/base/common/
24
21
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
25
22
  import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
26
23
  import { observableSignalFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableSignalFromEvent';
27
- import { waitForState } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/utilsCancellation';
28
24
 
29
25
  let InlineChatAffordance = class InlineChatAffordance extends Disposable {
30
26
  #editor;
31
- #inputWidget;
32
27
  #instantiationService;
33
- #menuData = observableValue(this, undefined);
34
28
  #selectionData = observableValue(this, undefined);
35
29
  constructor(
36
30
  editor,
37
- inputWidget,
38
31
  instantiationService,
39
32
  configurationService,
40
33
  chatEntiteldService,
@@ -44,7 +37,6 @@ let InlineChatAffordance = class InlineChatAffordance extends Disposable {
44
37
  ) {
45
38
  super();
46
39
  this.#editor = editor;
47
- this.#inputWidget = inputWidget;
48
40
  this.#instantiationService = instantiationService;
49
41
  const editorObs = observableCodeEditor(this.#editor);
50
42
  const affordance = observableConfigValue(InlineChatConfigKeys.Affordance, "off", configurationService);
@@ -109,7 +101,7 @@ let InlineChatAffordance = class InlineChatAffordance extends Disposable {
109
101
  ctxAffordanceVisible.set(sel !== undefined && mode === "editor");
110
102
  }));
111
103
  const editorAffordance = this.#instantiationService.createInstance(
112
- InlineChatEditorAffordance,
104
+ InlineChatAffordanceWidget,
113
105
  this.#editor,
114
106
  derived(r => affordance.read(r) === "editor" ? selectionData.read(r) : undefined)
115
107
  );
@@ -131,46 +123,11 @@ let InlineChatAffordance = class InlineChatAffordance extends Disposable {
131
123
  controller.onlyLightBulbWithEmptySelection = hideWithSelection;
132
124
  }
133
125
  }));
134
- this._store.add(autorun(r => {
135
- const data = this.#menuData.read(r);
136
- if (!data) {
137
- return;
138
- }
139
- this.#editor.revealLineInCenterIfOutsideViewport(data.lineNumber, ScrollType.Immediate);
140
- const editorDomNode = this.#editor.getDomNode();
141
- const editorRect = editorDomNode.getBoundingClientRect();
142
- const left = data.rect.left - editorRect.left;
143
- this.#inputWidget.show(data.lineNumber, left, data.above, data.placeholder, data.value);
144
- }));
145
- this._store.add(autorun(r => {
146
- const pos = this.#inputWidget.position.read(r);
147
- if (pos === null) {
148
- this.#menuData.set(undefined, undefined);
149
- }
150
- }));
151
126
  }
152
127
  dismiss() {
153
128
  this.#selectionData.set(undefined, undefined);
154
129
  }
155
- async showMenuAtSelection(placeholder, value) {
156
- assertType(this.#editor.hasModel());
157
- const direction = this.#editor.getSelection().getDirection();
158
- const position = this.#editor.getPosition();
159
- const editorDomNode = this.#editor.getDomNode();
160
- const scrolledPosition = this.#editor.getScrolledVisiblePosition(position);
161
- const editorRect = editorDomNode.getBoundingClientRect();
162
- const x = editorRect.left + scrolledPosition.left;
163
- const y = editorRect.top + scrolledPosition.top;
164
- this.#menuData.set({
165
- rect: ( new DOMRect(x, y, 0, scrolledPosition.height)),
166
- above: direction === SelectionDirection.RTL,
167
- lineNumber: position.lineNumber,
168
- placeholder,
169
- value
170
- }, undefined);
171
- await waitForState(this.#inputWidget.position, pos => pos === null);
172
- }
173
130
  };
174
- InlineChatAffordance = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IConfigurationService)), ( __param(4, IChatEntitlementService)), ( __param(5, IInlineChatSessionService)), ( __param(6, ITelemetryService)), ( __param(7, IContextKeyService))], InlineChatAffordance));
131
+ InlineChatAffordance = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IConfigurationService)), ( __param(3, IChatEntitlementService)), ( __param(4, IInlineChatSessionService)), ( __param(5, ITelemetryService)), ( __param(6, IContextKeyService))], InlineChatAffordance));
175
132
 
176
133
  export { InlineChatAffordance };
@@ -9,7 +9,7 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
9
9
  * Content widget that shows a small sparkle icon at the cursor position.
10
10
  * When clicked, it shows the overlay widget for inline chat.
11
11
  */
12
- export declare class InlineChatEditorAffordance extends Disposable implements IContentWidget {
12
+ export declare class InlineChatAffordanceWidget extends Disposable implements IContentWidget {
13
13
  #private;
14
14
  readonly onDidRunAction: Event<string>;
15
15
  readonly allowEditorOverflow = true;
@@ -28,7 +28,7 @@ import { ACTION_START, ACTION_ASK_IN_CHAT } from '../common/inlineChat.js';
28
28
  import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
29
29
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
30
30
 
31
- var InlineChatEditorAffordance_1;
31
+ var InlineChatAffordanceWidget_1;
32
32
  registerCss(inlineChatEditorAffordance);
33
33
  let QuickFixActionViewItem = class QuickFixActionViewItem extends MenuEntryActionViewItem {
34
34
  #lightBulbStore = this._store.add(( new MutableDisposable()));
@@ -137,9 +137,9 @@ let LabelWithKeybindingActionViewItem = class LabelWithKeybindingActionViewItem
137
137
  }
138
138
  };
139
139
  LabelWithKeybindingActionViewItem = ( __decorate([( __param(1, IKeybindingService)), ( __param(2, INotificationService)), ( __param(3, IContextKeyService)), ( __param(4, IThemeService)), ( __param(5, IContextMenuService)), ( __param(6, IAccessibilityService))], LabelWithKeybindingActionViewItem));
140
- let InlineChatEditorAffordance = class InlineChatEditorAffordance extends Disposable {
140
+ let InlineChatAffordanceWidget = class InlineChatAffordanceWidget extends Disposable {
141
141
  static {
142
- InlineChatEditorAffordance_1 = this;
142
+ InlineChatAffordanceWidget_1 = this;
143
143
  }
144
144
  static #idPool = 0;
145
145
  #id;
@@ -150,7 +150,7 @@ let InlineChatEditorAffordance = class InlineChatEditorAffordance extends Dispos
150
150
  #editor;
151
151
  constructor(editor, selection, instantiationService) {
152
152
  super();
153
- this.#id = `inline-chat-content-widget-${InlineChatEditorAffordance_1.#idPool++}`;
153
+ this.#id = `inline-chat-content-widget-${InlineChatAffordanceWidget_1.#idPool++}`;
154
154
  this.#position = null;
155
155
  this.#isVisible = false;
156
156
  this.#onDidRunAction = this._store.add(( new Emitter()));
@@ -307,6 +307,6 @@ let InlineChatEditorAffordance = class InlineChatEditorAffordance extends Dispos
307
307
  super.dispose();
308
308
  }
309
309
  };
310
- InlineChatEditorAffordance = InlineChatEditorAffordance_1 = ( __decorate([( __param(2, IInstantiationService))], InlineChatEditorAffordance));
310
+ InlineChatAffordanceWidget = InlineChatAffordanceWidget_1 = ( __decorate([( __param(2, IInstantiationService))], InlineChatAffordanceWidget));
311
311
 
312
- export { InlineChatEditorAffordance };
312
+ export { InlineChatAffordanceWidget };