@codingame/monaco-vscode-katex-common 32.0.2 → 33.0.7

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 (142) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
  3. package/vscode/src/vs/platform/agentHost/common/claudeSessionConfigKeys.d.ts +30 -0
  4. package/vscode/src/vs/platform/agentHost/common/claudeSessionConfigKeys.js +8 -0
  5. package/vscode/src/vs/platform/agentHost/common/sessionConfigKeys.d.ts +32 -0
  6. package/vscode/src/vs/platform/agentHost/common/sessionConfigKeys.js +13 -0
  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 +9 -9
  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 +56 -36
  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/agentHost/agentHostChatInputPicker.contribution.d.ts +45 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.js +114 -0
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.d.ts +87 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.js +502 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.d.ts +45 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.js +188 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/media/agentHostChatInputPicker.css +153 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +2 -2
  23. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +9 -9
  24. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
  25. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +30 -30
  26. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +52 -52
  27. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +13 -13
  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/tools/chatToolRiskAssessmentService.js +4 -4
  31. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
  32. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
  33. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +10 -10
  34. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.d.ts +1 -0
  35. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +23 -20
  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/chatChangesSummaryPart.js +1 -1
  39. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
  40. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
  41. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
  42. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +13 -1
  43. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +40 -13
  44. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
  45. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
  46. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
  47. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
  48. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +4 -1
  49. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +217 -13
  50. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
  51. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
  52. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +30 -30
  53. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +1 -1
  54. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +44 -44
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +6 -6
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +5 -5
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +10 -10
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +6 -6
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +2 -0
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +36 -23
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +12 -9
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +1 -3
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +8 -13
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +14 -14
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +16 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +1 -1
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +2 -2
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +6 -6
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +24 -21
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +6 -1
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +72 -23
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +8 -8
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +6 -6
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +2 -4
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +7 -22
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +5 -5
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +3 -3
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/media/toolRiskBadge.css +3 -3
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.d.ts +1 -0
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.js +25 -5
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +9 -1
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +41 -27
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +31 -25
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.js +1 -1
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +4 -0
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +89 -27
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +4 -2
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +203 -107
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +6 -1
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +3 -3
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.js +2 -2
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +5 -5
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +5 -5
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +1 -1
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +18 -18
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +3 -3
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -3
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +32 -81
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +4 -4
  112. package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +6 -6
  113. package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.js +6 -6
  114. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +18 -18
  115. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
  116. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
  117. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  118. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +2 -2
  119. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +30 -30
  120. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
  121. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
  122. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
  123. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  124. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
  125. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
  126. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
  127. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  128. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
  129. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  130. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
  131. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
  132. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
  133. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +4 -0
  134. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
  135. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
  136. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +4 -4
  137. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +29 -7
  138. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +27 -8
  139. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +17 -8
  140. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +150 -69
  141. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +1 -2
  142. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +9 -14
@@ -30,7 +30,7 @@ function registerChatTitleActions() {
30
30
  constructor() {
31
31
  super({
32
32
  id: "workbench.action.chat.markHelpful",
33
- title: ( localize2(5072, "Helpful")),
33
+ title: ( localize2(5095, "Helpful")),
34
34
  f1: false,
35
35
  category: CHAT_CATEGORY,
36
36
  icon: Codicon.thumbsup,
@@ -84,7 +84,7 @@ function registerChatTitleActions() {
84
84
  constructor() {
85
85
  super({
86
86
  id: MarkUnhelpfulActionId,
87
- title: ( localize2(5073, "Unhelpful")),
87
+ title: ( localize2(5096, "Unhelpful")),
88
88
  f1: false,
89
89
  category: CHAT_CATEGORY,
90
90
  icon: Codicon.thumbsdown,
@@ -137,7 +137,7 @@ function registerChatTitleActions() {
137
137
  constructor() {
138
138
  super({
139
139
  id: "workbench.action.chat.reportIssueForBug",
140
- title: ( localize2(5074, "Report Issue")),
140
+ title: ( localize2(5097, "Report Issue")),
141
141
  f1: false,
142
142
  category: CHAT_CATEGORY,
143
143
  icon: Codicon.report,
@@ -184,7 +184,7 @@ function registerChatTitleActions() {
184
184
  constructor() {
185
185
  super({
186
186
  id: "workbench.action.chat.retry",
187
- title: ( localize2(5075, "Retry")),
187
+ title: ( localize2(5098, "Retry")),
188
188
  f1: false,
189
189
  category: CHAT_CATEGORY,
190
190
  icon: Codicon.refresh,
@@ -233,19 +233,19 @@ function registerChatTitleActions() {
233
233
  const entriesModifiedInLastRequest = currentEditingSession.entries.get().filter(entry => entry.lastModifyingRequestId === item.requestId);
234
234
  const shouldPrompt = entriesModifiedInLastRequest.length > 0 && configurationService.getValue("chat.editing.confirmEditRequestRetry") === true;
235
235
  const confirmation = shouldPrompt ? await dialogService.confirm({
236
- title: ( localize(5076, "Do you want to retry your last request?")),
236
+ title: ( localize(5099, "Do you want to retry your last request?")),
237
237
  message: entriesModifiedInLastRequest.length === 1 ? ( localize(
238
- 5077,
238
+ 5100,
239
239
  "This will undo edits made to {0} since this request.",
240
240
  basename(entriesModifiedInLastRequest[0].modifiedURI)
241
241
  )) : ( localize(
242
- 5078,
242
+ 5101,
243
243
  "This will undo edits made to {0} files in your working set since this request. Do you want to proceed?",
244
244
  entriesModifiedInLastRequest.length
245
245
  )),
246
- primaryButton: ( localize(5079, "Yes")),
246
+ primaryButton: ( localize(5102, "Yes")),
247
247
  checkbox: {
248
- label: ( localize(5080, "Don't ask again")),
248
+ label: ( localize(5103, "Don't ask again")),
249
249
  checked: false
250
250
  },
251
251
  type: "info"
@@ -277,7 +277,7 @@ function registerChatTitleActions() {
277
277
  constructor() {
278
278
  super({
279
279
  id: "workbench.action.chat.insertIntoNotebook",
280
- title: ( localize2(5081, "Insert into Notebook")),
280
+ title: ( localize2(5104, "Insert into Notebook")),
281
281
  f1: false,
282
282
  category: CHAT_CATEGORY,
283
283
  icon: Codicon.insert,
@@ -44,7 +44,7 @@ class AcceptToolConfirmation extends ToolConfirmationAction {
44
44
  constructor() {
45
45
  super({
46
46
  id: AcceptToolConfirmationActionId,
47
- title: ( localize2(5082, "Accept")),
47
+ title: ( localize2(5105, "Accept")),
48
48
  f1: false,
49
49
  category: CHAT_CATEGORY,
50
50
  keybinding: {
@@ -64,7 +64,7 @@ class SkipToolConfirmation extends ToolConfirmationAction {
64
64
  constructor() {
65
65
  super({
66
66
  id: SkipToolConfirmationActionId,
67
- title: ( localize2(5083, "Skip")),
67
+ title: ( localize2(5106, "Skip")),
68
68
  f1: false,
69
69
  category: CHAT_CATEGORY,
70
70
  keybinding: {
@@ -87,7 +87,7 @@ class ConfigureToolsAction extends Action2 {
87
87
  constructor() {
88
88
  super({
89
89
  id: ConfigureToolsAction.ID,
90
- title: ( localize(5084, "Configure Tools...")),
90
+ title: ( localize(5107, "Configure Tools...")),
91
91
  icon: Codicon.settings,
92
92
  f1: false,
93
93
  category: CHAT_CATEGORY,
@@ -120,29 +120,29 @@ class ConfigureToolsAction extends Action2 {
120
120
  } = widget.input.selectedToolsModel;
121
121
  switch (entriesScope) {
122
122
  case ToolsScope.Session:
123
- placeholder = ( localize(5085, "Select tools for this chat session"));
124
- description = ( localize(5086, "The selected tools were configured only for this chat session."));
123
+ placeholder = ( localize(5108, "Select tools for this chat session"));
124
+ description = ( localize(5109, "The selected tools were configured only for this chat session."));
125
125
  break;
126
126
  case ToolsScope.Agent:
127
- placeholder = ( localize(5087, "Select tools for this custom agent"));
127
+ placeholder = ( localize(5110, "Select tools for this custom agent"));
128
128
  description = ( localize(
129
- 5088,
129
+ 5111,
130
130
  "The selected tools are configured by the '{0}' custom agent. Changes to the tools will be applied to the custom agent file as well.",
131
131
  widget.input.currentModeObs.get().label.get()
132
132
  ));
133
133
  break;
134
134
  case ToolsScope.Agent_ReadOnly:
135
- placeholder = ( localize(5089, "Select tools for this custom agent"));
135
+ placeholder = ( localize(5112, "Select tools for this custom agent"));
136
136
  description = ( localize(
137
- 5090,
137
+ 5113,
138
138
  "The selected tools are configured by the '{0}' custom agent. Changes to the tools will only be used for this session and will not change the '{0}' custom agent.",
139
139
  widget.input.currentModeObs.get().label.get()
140
140
  ));
141
141
  break;
142
142
  case ToolsScope.Global:
143
- placeholder = ( localize(5091, "Select tools that are available to chat."));
143
+ placeholder = ( localize(5114, "Select tools that are available to chat."));
144
144
  description = ( localize(
145
- 5092,
145
+ 5115,
146
146
  "The selected tools will be applied globally for all chat sessions that use the default agent."
147
147
  ));
148
148
  break;
@@ -79,7 +79,7 @@ function createToolSetTreeItem(toolset, checked, editorService) {
79
79
  const resource = toolset.source.file;
80
80
  buttons.push({
81
81
  iconClass: ThemeIcon.asClassName(Codicon.edit),
82
- tooltip: ( localize(5093, "Edit Tool Set")),
82
+ tooltip: ( localize(5116, "Edit Tool Set")),
83
83
  action: () => editorService.openEditor({
84
84
  resource
85
85
  })
@@ -166,7 +166,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
166
166
  if (collection?.source) {
167
167
  buttons.push({
168
168
  iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
169
- tooltip: ( localize(5094, "Configure {0}", collection.label)),
169
+ tooltip: ( localize(5117, "Configure {0}", collection.label)),
170
170
  action: () => collection.source ? collection.source instanceof ExtensionIdentifier ? extensionsWorkbenchService.open(collection.source.value, {
171
171
  tab: ExtensionEditorTab.Features,
172
172
  feature: "mcp"
@@ -177,7 +177,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
177
177
  } else if (collection?.presentation?.origin) {
178
178
  buttons.push({
179
179
  iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
180
- tooltip: ( localize(5094, "Configure {0}", collection.label)),
180
+ tooltip: ( localize(5117, "Configure {0}", collection.label)),
181
181
  action: () => editorService.openEditor({
182
182
  resource: collection.presentation.origin
183
183
  })
@@ -186,7 +186,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
186
186
  if (mcpServer.connectionState.get().state === McpConnectionState.Kind.Error) {
187
187
  buttons.push({
188
188
  iconClass: ThemeIcon.asClassName(Codicon.warning),
189
- tooltip: ( localize(5095, "Show Output")),
189
+ tooltip: ( localize(5118, "Show Output")),
190
190
  action: () => mcpServer.showOutput()
191
191
  });
192
192
  }
@@ -198,7 +198,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
198
198
  children.push({
199
199
  itemType: "callback",
200
200
  iconClass: ThemeIcon.asClassName(Codicon.sync),
201
- label: ( localize(5096, "Update Tools")),
201
+ label: ( localize(5119, "Update Tools")),
202
202
  pickable: false,
203
203
  run: () => {
204
204
  treePicker.busy = true;
@@ -254,7 +254,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
254
254
  itemType: "bucket",
255
255
  ordinal: BucketOrdinal.BuiltIn,
256
256
  id: key,
257
- label: ( localize(5097, "Built-In")),
257
+ label: ( localize(5120, "Built-In")),
258
258
  checked: undefined,
259
259
  children: [],
260
260
  buttons: [],
@@ -266,7 +266,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
266
266
  itemType: "bucket",
267
267
  ordinal: BucketOrdinal.User,
268
268
  id: key,
269
- label: ( localize(5098, "User Defined Tool Sets")),
269
+ label: ( localize(5121, "User Defined Tool Sets")),
270
270
  checked: undefined,
271
271
  children: [],
272
272
  buttons: [],
@@ -370,7 +370,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
370
370
  const buttons = toolItem.buttons ? [...toolItem.buttons] : [];
371
371
  buttons.push({
372
372
  iconClass: ThemeIcon.asClassName(Codicon.pass),
373
- tooltip: ( localize(5099, "Manage Approval")),
373
+ tooltip: ( localize(5122, "Manage Approval")),
374
374
  keepOpen: true,
375
375
  action: () => confirmationService.manageConfirmationPreferences(manageTools, {
376
376
  focusToolId: tool.id
@@ -391,7 +391,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
391
391
  }
392
392
  }
393
393
  if (treeItems.length === 0) {
394
- treePicker.placeholder = ( localize(5100, "Add tools to chat"));
394
+ treePicker.placeholder = ( localize(5123, "Add tools to chat"));
395
395
  } else {
396
396
  treePicker.placeholder = placeHolder;
397
397
  }
@@ -452,17 +452,17 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
452
452
  }));
453
453
  const addMcpServerButton = {
454
454
  iconClass: ThemeIcon.asClassName(Codicon.mcp),
455
- tooltip: ( localize(5101, "Add MCP Server..."))
455
+ tooltip: ( localize(5124, "Add MCP Server..."))
456
456
  };
457
457
  const installExtension = {
458
458
  iconClass: ThemeIcon.asClassName(Codicon.extensions),
459
- tooltip: ( localize(5102, "Install Extension..."))
459
+ tooltip: ( localize(5125, "Install Extension..."))
460
460
  };
461
461
  const configureToolSets = {
462
462
  iconClass: ThemeIcon.asClassName(Codicon.gear),
463
- tooltip: ( localize(5103, "Configure Tool Sets..."))
463
+ tooltip: ( localize(5126, "Configure Tool Sets..."))
464
464
  };
465
- treePicker.title = ( localize(5104, "Configure Tools"));
465
+ treePicker.title = ( localize(5127, "Configure Tools"));
466
466
  treePicker.buttons = [addMcpServerButton, installExtension, configureToolSets];
467
467
  store.add(treePicker.onDidTriggerButton(button => {
468
468
  if (button === addMcpServerButton) {
@@ -0,0 +1,45 @@
1
+ import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
2
+ /**
3
+ * All three agent-host pickers live under `MenuId.ChatInputSecondary` group
4
+ * `'navigation'` because non-navigation groups are routed to the overflow
5
+ * menu by VS Code's menu/toolbar convention.
6
+ *
7
+ * Order layout in the secondary toolbar (existing items annotated):
8
+ * 0 OpenSessionTargetPickerAction (Copilot CLI - Agent Host)
9
+ * 0.5 OpenDelegationPickerAction
10
+ * 0.6 OpenWorkspacePickerAction
11
+ * 0.7 OpenAgentHostModePickerAction (NEW — Mode)
12
+ * 0.8 OpenAgentHostAutoApprovePickerAction (NEW — Auto-Approve)
13
+ * 0.9 OpenAgentHostPermissionModePickerAction (NEW — Claude Approvals)
14
+ * 1 OpenPermissionPickerAction (Default Approvals)
15
+ * 100 OpenAgentHostBranchPickerAction (NEW — Branch)
16
+ * 101 OpenAgentHostIsolationPickerAction (NEW — Isolation)
17
+ *
18
+ * Branch + Isolation are pushed to the right of the row by CSS
19
+ * (`margin-left: auto` on the first of the two; see picker CSS).
20
+ */
21
+ export declare class OpenAgentHostModePickerAction extends Action2 {
22
+ static readonly ID = "workbench.action.chat.openAgentHostModePicker";
23
+ constructor();
24
+ run(): Promise<void>;
25
+ }
26
+ export declare class OpenAgentHostAutoApprovePickerAction extends Action2 {
27
+ static readonly ID = "workbench.action.chat.openAgentHostAutoApprovePicker";
28
+ constructor();
29
+ run(): Promise<void>;
30
+ }
31
+ export declare class OpenAgentHostPermissionModePickerAction extends Action2 {
32
+ static readonly ID = "workbench.action.chat.openAgentHostPermissionModePicker";
33
+ constructor();
34
+ run(): Promise<void>;
35
+ }
36
+ export declare class OpenAgentHostBranchPickerAction extends Action2 {
37
+ static readonly ID = "workbench.action.chat.openAgentHostBranchPicker";
38
+ constructor();
39
+ run(): Promise<void>;
40
+ }
41
+ export declare class OpenAgentHostIsolationPickerAction extends Action2 {
42
+ static readonly ID = "workbench.action.chat.openAgentHostIsolationPicker";
43
+ constructor();
44
+ run(): Promise<void>;
45
+ }
@@ -0,0 +1,114 @@
1
+
2
+ import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
3
+ import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
4
+ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
5
+ import { IsSessionsWindowContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
6
+ import { ChatContextKeyExprs, ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
7
+
8
+ class OpenAgentHostModePickerAction extends Action2 {
9
+ static {
10
+ this.ID = "workbench.action.chat.openAgentHostModePicker";
11
+ }
12
+ constructor() {
13
+ super({
14
+ id: OpenAgentHostModePickerAction.ID,
15
+ title: ( localize2(5202, "Agent Mode")),
16
+ f1: false,
17
+ precondition: ChatContextKeys.enabled,
18
+ menu: [{
19
+ id: MenuId.ChatInputSecondary,
20
+ group: "navigation",
21
+ order: 0.7,
22
+ when: ChatContextKeyExprs.isAgentHostSession
23
+ }]
24
+ });
25
+ }
26
+ async run() {}
27
+ }
28
+ class OpenAgentHostAutoApprovePickerAction extends Action2 {
29
+ static {
30
+ this.ID = "workbench.action.chat.openAgentHostAutoApprovePicker";
31
+ }
32
+ constructor() {
33
+ super({
34
+ id: OpenAgentHostAutoApprovePickerAction.ID,
35
+ title: ( localize2(5203, "Auto-Approve")),
36
+ f1: false,
37
+ precondition: ChatContextKeys.enabled,
38
+ menu: [{
39
+ id: MenuId.ChatInputSecondary,
40
+ group: "navigation",
41
+ order: 0.8,
42
+ when: ChatContextKeyExprs.isAgentHostSession
43
+ }]
44
+ });
45
+ }
46
+ async run() {}
47
+ }
48
+ class OpenAgentHostPermissionModePickerAction extends Action2 {
49
+ static {
50
+ this.ID = "workbench.action.chat.openAgentHostPermissionModePicker";
51
+ }
52
+ constructor() {
53
+ super({
54
+ id: OpenAgentHostPermissionModePickerAction.ID,
55
+ title: ( localize2(5204, "Approvals")),
56
+ f1: false,
57
+ precondition: ChatContextKeys.enabled,
58
+ menu: [{
59
+ id: MenuId.ChatInputSecondary,
60
+ group: "navigation",
61
+ order: 0.9,
62
+ when: ChatContextKeyExprs.isAgentHostSession
63
+ }]
64
+ });
65
+ }
66
+ async run() {}
67
+ }
68
+ class OpenAgentHostBranchPickerAction extends Action2 {
69
+ static {
70
+ this.ID = "workbench.action.chat.openAgentHostBranchPicker";
71
+ }
72
+ constructor() {
73
+ super({
74
+ id: OpenAgentHostBranchPickerAction.ID,
75
+ title: ( localize2(5205, "Branch")),
76
+ f1: false,
77
+ precondition: ChatContextKeys.enabled,
78
+ menu: [{
79
+ id: MenuId.ChatInputSecondary,
80
+ group: "navigation",
81
+ order: 100,
82
+ when: ( ContextKeyExpr.and(ChatContextKeyExprs.isAgentHostSession, IsSessionsWindowContext))
83
+ }]
84
+ });
85
+ }
86
+ async run() {}
87
+ }
88
+ class OpenAgentHostIsolationPickerAction extends Action2 {
89
+ static {
90
+ this.ID = "workbench.action.chat.openAgentHostIsolationPicker";
91
+ }
92
+ constructor() {
93
+ super({
94
+ id: OpenAgentHostIsolationPickerAction.ID,
95
+ title: ( localize2(5206, "Isolation")),
96
+ f1: false,
97
+ precondition: ChatContextKeys.enabled,
98
+ menu: [{
99
+ id: MenuId.ChatInputSecondary,
100
+ group: "navigation",
101
+ order: 101,
102
+ when: ( ContextKeyExpr.and(ChatContextKeyExprs.isAgentHostSession, IsSessionsWindowContext))
103
+ }]
104
+ });
105
+ }
106
+ async run() {}
107
+ }
108
+ registerAction2(OpenAgentHostModePickerAction);
109
+ registerAction2(OpenAgentHostAutoApprovePickerAction);
110
+ registerAction2(OpenAgentHostPermissionModePickerAction);
111
+ registerAction2(OpenAgentHostBranchPickerAction);
112
+ registerAction2(OpenAgentHostIsolationPickerAction);
113
+
114
+ export { OpenAgentHostAutoApprovePickerAction, OpenAgentHostBranchPickerAction, OpenAgentHostIsolationPickerAction, OpenAgentHostModePickerAction, OpenAgentHostPermissionModePickerAction };
@@ -0,0 +1,87 @@
1
+ import { BaseActionViewItem } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems";
2
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
+ import { IAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service";
4
+ import type { SessionConfigPropertySchema } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/commands";
5
+ import { IActionWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service";
6
+ import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
7
+ import type { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
8
+ import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
9
+ import type { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
10
+ import { IAgentHostSessionWorkingDirectoryResolver } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.service";
11
+ import type { IChatInputPickerOptions } from "../../widget/input/chatInputPickerActionItem.js";
12
+ import { IAgentHostUntitledProvisionalSessionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service";
13
+ /**
14
+ * Returns `true` when an `autoApprove` schema uses the well-known shape the
15
+ * dedicated Auto-Approve picker understands: a string enum that includes
16
+ * `default` and only contains values from {@link KNOWN_AUTO_APPROVE_VALUES}.
17
+ *
18
+ * Agents that advertise a custom auto-approve shape (e.g. Claude) fall
19
+ * through to the generic per-property picker lane.
20
+ */
21
+ export declare function isWellKnownAutoApproveSchema(schema: SessionConfigPropertySchema): boolean;
22
+ /**
23
+ * The set of well-known session-config property names that have a dedicated
24
+ * picker chip in the secondary toolbar (registered as `MenuId.ChatInputSecondary`
25
+ * actions). The generic-fallback chip lane filters these out so unknown
26
+ * properties advertised by an agent get their own chip without duplicating
27
+ * the dedicated ones.
28
+ *
29
+ * `Permissions` has no chip — it is surfaced through other UI — but is
30
+ * included so the generic lane does not invent a chip for it.
31
+ */
32
+ export declare const WELL_KNOWN_PICKER_PROPERTIES: ReadonlySet<string>;
33
+ /**
34
+ * Whether the given `(property, schema)` pair will be rendered by a dedicated
35
+ * chip widget on the secondary toolbar. Used by the generic-fallback chip
36
+ * lane to decide whether to render a chip for `property`.
37
+ *
38
+ * For most well-known keys this is purely a property-name check. AutoApprove
39
+ * is special: only well-known schema shapes are claimed by the dedicated
40
+ * picker; non-conforming schemas (e.g. Claude's approval mode) fall through
41
+ * to the generic lane.
42
+ */
43
+ export declare function isClaimedByDedicatedPicker(property: string, schema: SessionConfigPropertySchema): boolean;
44
+ /**
45
+ * One workbench chat-input chip bound to a single agent-host session-config
46
+ * property. Used both for dedicated well-known property chips
47
+ * (`SessionConfigKey.Mode`, `.Isolation`, `.Branch`, `.AutoApprove`) and for
48
+ * generic per-property chips advertised by an agent's config schema but not
49
+ * known to VS Code.
50
+ */
51
+ export declare class AgentHostChatInputPicker extends Disposable {
52
+ private readonly _widget;
53
+ private readonly _property;
54
+ private readonly _pickerOptions;
55
+ private readonly _agentHostService;
56
+ private readonly _actionWidgetService;
57
+ private readonly _openerService;
58
+ private readonly _workingDirectoryResolver;
59
+ private readonly _workspaceContextService;
60
+ private readonly _provisional;
61
+ private readonly _renderDisposables;
62
+ private readonly _filterDelayer;
63
+ private readonly _subRef;
64
+ private _container;
65
+ private _initialResolved;
66
+ private readonly _initialResolveCts;
67
+ constructor(_widget: IChatWidget, _property: string, _pickerOptions: IChatInputPickerOptions | undefined, _agentHostService: IAgentHostService, _actionWidgetService: IActionWidgetService, _openerService: IOpenerService, _workingDirectoryResolver: IAgentHostSessionWorkingDirectoryResolver, _workspaceContextService: IWorkspaceContextService, _provisional: IAgentHostUntitledProvisionalSessionService);
68
+ render(container: HTMLElement): void;
69
+ private _reattach;
70
+ private _cancelInitialResolve;
71
+ private _refreshInitialResolved;
72
+ private _renderChip;
73
+ private _renderTrigger;
74
+ private _labelFor;
75
+ private _readContext;
76
+ private _showPicker;
77
+ private _getItems;
78
+ private _fromCompletion;
79
+ private _readWorkingDirectory;
80
+ private _readCurrentValues;
81
+ private _setValue;
82
+ }
83
+ export declare class AgentHostChatInputPickerActionViewItem extends BaseActionViewItem {
84
+ private readonly _picker;
85
+ constructor(action: IAction, _picker: AgentHostChatInputPicker);
86
+ render(container: HTMLElement): void;
87
+ }