@codingame/monaco-vscode-chat-service-override 11.1.0 → 11.1.2

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 (34) hide show
  1. package/chat.js +2 -2
  2. package/package.json +8 -6
  3. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +19 -19
  4. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +17 -16
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +14 -13
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +22 -21
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +5 -4
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +1 -1
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +5 -4
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +2 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -6
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +7 -6
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +167 -0
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +2 -2
  15. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +8 -8
  16. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +4 -4
  18. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +2 -1
  19. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.js +1 -1
  20. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +2 -2
  21. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +1 -1
  22. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +3 -3
  23. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +4 -4
  24. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +4 -4
  25. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +2 -2
  26. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +2 -2
  27. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +1 -1
  28. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +13 -13
  29. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
  30. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
  31. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
  32. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +2 -2
  33. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +3 -3
  34. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -1
@@ -4,23 +4,24 @@ import { localize, localize2 } from 'vscode/vscode/vs/nls';
4
4
  import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
5
5
  import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
6
6
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
7
- import { CHAT_CATEGORY } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
7
+ import '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
8
8
  import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
9
- import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
9
+ import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
10
10
  import { CONTEXT_CHAT_ENABLED } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
11
- import { isExportableSessionData } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatModel';
11
+ import { isExportableSessionData } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatModel';
12
12
  import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
13
13
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
14
+ import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
14
15
 
15
16
  const defaultFileName = 'chat.json';
16
- const filters = [{ name: ( localize(7602, "Chat Session")), extensions: ['json'] }];
17
+ const filters = [{ name: ( localize(7591, "Chat Session")), extensions: ['json'] }];
17
18
  function registerChatExportActions() {
18
19
  registerAction2(class ExportChatAction extends Action2 {
19
20
  constructor() {
20
21
  super({
21
22
  id: 'workbench.action.chat.export',
22
23
  category: CHAT_CATEGORY,
23
- title: ( localize2(7603, "Export Chat...")),
24
+ title: ( localize2(7592, "Export Chat...")),
24
25
  precondition: CONTEXT_CHAT_ENABLED,
25
26
  f1: true,
26
27
  });
@@ -54,7 +55,7 @@ function registerChatExportActions() {
54
55
  constructor() {
55
56
  super({
56
57
  id: 'workbench.action.chat.import',
57
- title: ( localize2(7604, "Import Chat...")),
58
+ title: ( localize2(7593, "Import Chat...")),
58
59
  category: CHAT_CATEGORY,
59
60
  precondition: CONTEXT_CHAT_ENABLED,
60
61
  f1: true,
@@ -2,17 +2,18 @@ import { localize2 } from 'vscode/vscode/vs/nls';
2
2
  import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
3
3
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
4
4
  import { ActiveEditorContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
5
- import { CHAT_CATEGORY } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
6
- import { CHAT_VIEW_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
5
+ import '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
6
+ import { CHAT_VIEW_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
7
7
  import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
8
8
  import { ChatEditor } from '../chatEditor.js';
9
- import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
9
+ import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
10
10
  import { CONTEXT_CHAT_ENABLED } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
11
11
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
12
12
  import { AUX_WINDOW_GROUP, ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
13
13
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
14
14
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
15
15
  import { isChatViewTitleActionContext } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatActions';
16
+ import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
16
17
 
17
18
  var MoveToNewLocation;
18
19
  ( ((function(MoveToNewLocation) {
@@ -24,7 +25,7 @@ function registerMoveActions() {
24
25
  constructor() {
25
26
  super({
26
27
  id: `workbench.action.chat.openInEditor`,
27
- title: ( localize2(7599, "Open Chat in Editor")),
28
+ title: ( localize2(7594, "Open Chat in Editor")),
28
29
  category: CHAT_CATEGORY,
29
30
  precondition: CONTEXT_CHAT_ENABLED,
30
31
  f1: true,
@@ -44,7 +45,7 @@ function registerMoveActions() {
44
45
  constructor() {
45
46
  super({
46
47
  id: `workbench.action.chat.openInNewWindow`,
47
- title: ( localize2(7600, "Open Chat in New Window")),
48
+ title: ( localize2(7595, "Open Chat in New Window")),
48
49
  category: CHAT_CATEGORY,
49
50
  precondition: CONTEXT_CHAT_ENABLED,
50
51
  f1: true,
@@ -64,7 +65,7 @@ function registerMoveActions() {
64
65
  constructor() {
65
66
  super({
66
67
  id: `workbench.action.chat.openInSidebar`,
67
- title: ( localize2(7601, "Open Chat in Side Bar")),
68
+ title: ( localize2(7596, "Open Chat in Side Bar")),
68
69
  category: CHAT_CATEGORY,
69
70
  precondition: CONTEXT_CHAT_ENABLED,
70
71
  f1: true,
@@ -0,0 +1,167 @@
1
+ import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
2
+ import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
3
+ import { Selection } from 'vscode/vscode/vs/editor/common/core/selection';
4
+ import { localize2, localize } from 'vscode/vscode/vs/nls';
5
+ import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
6
+ import '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
7
+ import { IQuickChatService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
8
+ import { CONTEXT_CHAT_ENABLED } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
9
+ import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
10
+ import { CHAT_CATEGORY, ASK_QUICK_QUESTION_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
11
+ export { ASK_QUICK_QUESTION_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
12
+
13
+ function registerQuickChatActions() {
14
+ registerAction2(QuickChatGlobalAction);
15
+ registerAction2(AskQuickChatAction);
16
+ registerAction2(class OpenInChatViewAction extends Action2 {
17
+ constructor() {
18
+ super({
19
+ id: 'workbench.action.quickchat.openInChatView',
20
+ title: ( localize2(7597, "Open in Chat View")),
21
+ f1: false,
22
+ category: CHAT_CATEGORY,
23
+ icon: Codicon.commentDiscussion,
24
+ menu: {
25
+ id: MenuId.ChatInputSide,
26
+ group: 'navigation',
27
+ order: 10
28
+ }
29
+ });
30
+ }
31
+ run(accessor) {
32
+ const quickChatService = accessor.get(IQuickChatService);
33
+ quickChatService.openInChatView();
34
+ }
35
+ });
36
+ registerAction2(class CloseQuickChatAction extends Action2 {
37
+ constructor() {
38
+ super({
39
+ id: 'workbench.action.quickchat.close',
40
+ title: ( localize2(7598, "Close Quick Chat")),
41
+ f1: false,
42
+ category: CHAT_CATEGORY,
43
+ icon: Codicon.close,
44
+ menu: {
45
+ id: MenuId.ChatInputSide,
46
+ group: 'navigation',
47
+ order: 20
48
+ }
49
+ });
50
+ }
51
+ run(accessor) {
52
+ const quickChatService = accessor.get(IQuickChatService);
53
+ quickChatService.close();
54
+ }
55
+ });
56
+ registerAction2(class LaunchInlineChatFromQuickChatAction extends Action2 {
57
+ constructor() {
58
+ super({
59
+ id: 'workbench.action.quickchat.launchInlineChat',
60
+ title: ( localize2(7599, "Launch Inline Chat")),
61
+ f1: false,
62
+ category: CHAT_CATEGORY
63
+ });
64
+ }
65
+ async run(accessor) {
66
+ const quickChatService = accessor.get(IQuickChatService);
67
+ const codeEditorService = accessor.get(ICodeEditorService);
68
+ if (quickChatService.focused) {
69
+ quickChatService.close();
70
+ }
71
+ const codeEditor = codeEditorService.getActiveCodeEditor();
72
+ if (!codeEditor) {
73
+ return;
74
+ }
75
+ const controller = InlineChatController.get(codeEditor);
76
+ if (!controller) {
77
+ return;
78
+ }
79
+ await controller.run();
80
+ controller.focus();
81
+ }
82
+ });
83
+ }
84
+ class QuickChatGlobalAction extends Action2 {
85
+ constructor() {
86
+ super({
87
+ id: ASK_QUICK_QUESTION_ACTION_ID,
88
+ title: ( localize2(7600, 'Quick Chat')),
89
+ precondition: CONTEXT_CHAT_ENABLED,
90
+ icon: Codicon.commentDiscussion,
91
+ f1: false,
92
+ category: CHAT_CATEGORY,
93
+ keybinding: {
94
+ weight: 200 ,
95
+ primary: 2048 | 1024 | 512 | 42 ,
96
+ },
97
+ menu: {
98
+ id: MenuId.ChatCommandCenter,
99
+ group: 'c_quickChat',
100
+ order: 5
101
+ },
102
+ metadata: {
103
+ description: ( localize(7601, 'Toggle the quick chat')),
104
+ args: [{
105
+ name: 'args',
106
+ schema: {
107
+ anyOf: [
108
+ {
109
+ type: 'object',
110
+ required: ['query'],
111
+ properties: {
112
+ query: {
113
+ description: ( localize(7602, "The query to open the quick chat with")),
114
+ type: 'string'
115
+ },
116
+ isPartialQuery: {
117
+ description: ( localize(7603, "Whether the query is partial; it will wait for more user input")),
118
+ type: 'boolean'
119
+ }
120
+ },
121
+ },
122
+ {
123
+ type: 'string',
124
+ description: ( localize(7602, "The query to open the quick chat with"))
125
+ }
126
+ ]
127
+ }
128
+ }]
129
+ },
130
+ });
131
+ }
132
+ run(accessor, query) {
133
+ const quickChatService = accessor.get(IQuickChatService);
134
+ let options;
135
+ switch (typeof query) {
136
+ case 'string':
137
+ options = { query };
138
+ break;
139
+ case 'object':
140
+ options = query;
141
+ break;
142
+ }
143
+ if (options?.query) {
144
+ options.selection = ( (new Selection(1, options.query.length + 1, 1, options.query.length + 1)));
145
+ }
146
+ quickChatService.toggle(options);
147
+ }
148
+ }
149
+ class AskQuickChatAction extends Action2 {
150
+ constructor() {
151
+ super({
152
+ id: `workbench.action.openQuickChat`,
153
+ category: CHAT_CATEGORY,
154
+ title: ( localize2(7604, "Open Quick Chat")),
155
+ f1: true
156
+ });
157
+ }
158
+ run(accessor, query) {
159
+ const quickChatService = accessor.get(IQuickChatService);
160
+ quickChatService.toggle(query ? {
161
+ query,
162
+ selection: ( (new Selection(1, query.length + 1, 1, query.length + 1)))
163
+ } : undefined);
164
+ }
165
+ }
166
+
167
+ export { registerQuickChatActions };
@@ -19,12 +19,12 @@ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
19
19
  import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
20
20
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
21
21
  import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles.service';
22
- import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
22
+ import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
23
23
  import { insertCell } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
24
24
  import { CellKind, NOTEBOOK_EDITOR_ID } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
25
25
  import { getReferencesAsDocumentContext } from '../../common/chatCodeMapperService.js';
26
26
  import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
27
- import { isResponseVM, isRequestVM } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatViewModel';
27
+ import { isResponseVM, isRequestVM } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatViewModel';
28
28
 
29
29
  let InsertCodeBlockOperation = class InsertCodeBlockOperation {
30
30
  constructor(editorService, textFileService, bulkEditService, codeEditorService, chatService, languageService, dialogService) {
@@ -24,8 +24,8 @@ import 'vscode/vscode/vs/base/common/map';
24
24
  import 'vscode/vscode/vs/base/common/strings';
25
25
  import 'vscode/vscode/vs/base/common/path';
26
26
  import 'vscode/vscode/vs/editor/common/languages';
27
- import '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatColors';
28
- import { chatVariableLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
27
+ import '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatColors';
28
+ import { chatVariableLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
29
29
  import '../common/chatServiceImpl.js';
30
30
  import '../common/chatSlashCommands.js';
31
31
  import { IChatSlashCommandService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
@@ -36,7 +36,7 @@ import '../common/languageModelStats.js';
36
36
  import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
37
37
  import '../common/voiceChatService.js';
38
38
  import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
39
- import { ChatCommandCenterRendering, registerChatActions } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
39
+ import { ChatCommandCenterRendering, registerChatActions } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
40
40
  import { ACTION_ID_NEW_CHAT, registerNewChatActions } from './actions/chatClearActions.js';
41
41
  import { registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
42
42
  import { registerChatContextActions } from './actions/chatContextActions.js';
@@ -46,8 +46,8 @@ import { SubmitAction, registerChatExecuteActions } from '@codingame/monaco-vsco
46
46
  import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
47
47
  import { registerChatExportActions } from './actions/chatImportExport.js';
48
48
  import { registerMoveActions } from './actions/chatMoveActions.js';
49
- import { registerQuickChatActions } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions';
50
- import { registerChatTitleActions } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
49
+ import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
50
+ import { registerChatTitleActions } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
51
51
  import './chatAccessibilityService.js';
52
52
  import 'vscode/vscode/vs/base/common/event';
53
53
  import 'vscode/vscode/vs/base/common/resources';
@@ -56,15 +56,15 @@ import './chatEditing/chatEditingService.js';
56
56
  import { ChatEditor } from './chatEditor.js';
57
57
  import { registerChatEditorActions } from './chatEditorActions.js';
58
58
  import { ChatEditorController } from './chatEditorController.js';
59
- import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
59
+ import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
60
60
  import { ChatEditorSaving } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatEditorSaving';
61
- import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
61
+ import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
62
62
  import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipantContributions.js';
63
63
  import { ChatPasteProvidersFeature } from './chatPasteProviders.js';
64
64
  import './chatQuick.js';
65
65
  import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
66
66
  import './chatVariables.js';
67
- import '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
67
+ import '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
68
68
  import '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
69
69
  import './contrib/chatInputEditorContrib.js';
70
70
  import './contrib/chatInputEditorHover.js';
@@ -31,7 +31,7 @@ import { MultiDiffEditorItem } from 'vscode/vscode/vs/workbench/contrib/multiDif
31
31
  import { IMultiDiffSourceResolverService } from 'vscode/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service';
32
32
  import { ICodeMapperService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatCodeMapperService.service';
33
33
  import { CONTEXT_CHAT_EDITING_CAN_UNDO, CONTEXT_CHAT_EDITING_CAN_REDO } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
34
- import { defaultChatEditingMaxFileLimit, applyingChatEditsFailedContextKey, decidedChatEditingResourceContextKey, hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey, inChatEditingSessionContextKey, applyingChatEditsContextKey, chatEditingMaxFileAssignmentName, CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME, chatEditingResourceContextKey } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatEditingService';
34
+ import { defaultChatEditingMaxFileLimit, applyingChatEditsFailedContextKey, decidedChatEditingResourceContextKey, hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey, inChatEditingSessionContextKey, applyingChatEditsContextKey, chatEditingMaxFileAssignmentName, CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME, chatEditingResourceContextKey } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatEditingService';
35
35
  import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
36
36
  import { ChatEditingSession } from './chatEditingSession.js';
37
37
  import { ChatEditingTextModelContentProvider, ChatEditingSnapshotTextModelContentProvider } from './chatEditingTextModelContentProviders.js';
@@ -18,11 +18,11 @@ import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
18
18
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
19
19
  import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
20
20
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
21
- import { clearChatEditor } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatClear';
22
- import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
23
- import { ChatWidget } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
21
+ import { clearChatEditor } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatClear';
22
+ import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
23
+ import { ChatWidget } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
24
24
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
25
- import { CHAT_PROVIDER_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParticipantContribTypes';
25
+ import { CHAT_PROVIDER_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParticipantContribTypes';
26
26
  import { EDITOR_DRAG_AND_DROP_BACKGROUND } from 'vscode/vscode/vs/workbench/common/theme';
27
27
 
28
28
  let ChatEditor = class ChatEditor extends EditorPane {
@@ -2,12 +2,13 @@ import { isCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
2
2
  import { localize2 } from 'vscode/vscode/vs/nls';
3
3
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
4
4
  import { Action2, MenuId, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
5
- import { CHAT_CATEGORY } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
5
+ import '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
6
6
  import { ctxHasEditorModification, ChatEditorController } from './chatEditorController.js';
7
7
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
8
8
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
9
9
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
10
10
  import { IChatEditingService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
11
+ import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
11
12
 
12
13
  class NavigateAction extends Action2 {
13
14
  constructor(next) {
@@ -21,7 +21,7 @@ import { IExtensionsWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/
21
21
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
22
22
  import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
23
23
  import { CONTEXT_CHAT_PANEL_PARTICIPANT_REGISTERED, CONTEXT_CHAT_EXTENSION_INVALID, CONTEXT_CHAT_EDITING_PARTICIPANT_REGISTERED } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
24
- import { CHAT_VIEW_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
24
+ import { CHAT_VIEW_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
25
25
  import { CHAT_SIDEBAR_PANEL_ID, ChatViewPane, CHAT_EDITING_SIDEBAR_PANEL_ID } from './chatViewPane.js';
26
26
 
27
27
  const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
@@ -22,8 +22,8 @@ import 'vscode/vscode/vs/platform/theme/common/colors/minimapColors';
22
22
  import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
23
23
  import { quickInputForeground, quickInputBackground } from 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
24
24
  import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
25
- import { showChatView } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
26
- import { ChatWidget } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
25
+ import { showChatView } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
26
+ import { ChatWidget } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
27
27
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
28
28
  import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
29
29
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
@@ -2,7 +2,7 @@ import { renderMarkdownAsPlaintext } from 'vscode/vscode/vs/base/browser/markdow
2
2
  import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
3
3
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
4
  import { CONTEXT_IN_CHAT_SESSION } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
5
- import { isResponseVM } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatViewModel';
5
+ import { isResponseVM } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatViewModel';
6
6
  import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
7
7
 
8
8
  class ChatResponseAccessibleView {
@@ -7,10 +7,10 @@ import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
7
7
  import { URI } from 'vscode/vscode/vs/base/common/uri';
8
8
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
9
9
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
10
- import { ChatRequestVariablePart, ChatRequestDynamicVariablePart, ChatRequestToolPart } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
11
- import { showChatView } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
10
+ import { ChatRequestVariablePart, ChatRequestDynamicVariablePart, ChatRequestToolPart } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
11
+ import { showChatView } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
12
12
  import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
13
- import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
13
+ import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
14
14
 
15
15
  let ChatVariablesService = class ChatVariablesService {
16
16
  constructor(chatWidgetService, viewsService) {
@@ -30,11 +30,11 @@ import { SIDE_BAR_FOREGROUND } from 'vscode/vscode/vs/workbench/common/theme';
30
30
  import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
31
31
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
32
32
  import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
33
- import { ChatModelInitState } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatModel';
34
- import { CHAT_PROVIDER_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParticipantContribTypes';
33
+ import { ChatModelInitState } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatModel';
34
+ import { CHAT_PROVIDER_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParticipantContribTypes';
35
35
  import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
36
- import { ChatWidget } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
37
- import { ChatViewWelcomeController } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController';
36
+ import { ChatWidget } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
37
+ import { ChatViewWelcomeController } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController';
38
38
 
39
39
  const CHAT_SIDEBAR_PANEL_ID = 'workbench.panel.chat';
40
40
  const CHAT_EDITING_SIDEBAR_PANEL_ID = 'workbench.panel.chatEditing';
@@ -16,11 +16,11 @@ import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
16
16
  import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
17
17
  import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
18
18
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
19
- import { ChatWidget } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
20
- import { dynamicVariableDecorationType } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
19
+ import { ChatWidget } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
20
+ import { dynamicVariableDecorationType } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
21
21
  import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
22
- import { chatSlashCommandForeground, chatSlashCommandBackground } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatColors';
23
- import { ChatRequestAgentPart, ChatRequestAgentSubcommandPart, ChatRequestSlashCommandPart, ChatRequestTextPart, ChatRequestVariablePart, ChatRequestToolPart, chatAgentLeader, chatSubcommandLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
22
+ import { chatSlashCommandForeground, chatSlashCommandBackground } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatColors';
23
+ import { ChatRequestAgentPart, ChatRequestAgentSubcommandPart, ChatRequestSlashCommandPart, ChatRequestTextPart, ChatRequestVariablePart, ChatRequestToolPart, chatAgentLeader, chatSubcommandLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
24
24
  import { ChatRequestParser } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/common/chatRequestParser';
25
25
 
26
26
  const decorationDescription = 'chat';
@@ -5,9 +5,9 @@ import { RenderedHoverParts, HoverParticipantRegistry } from 'vscode/vscode/vs/e
5
5
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
6
6
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
7
7
  import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
8
- import { ChatAgentHover, getChatAgentHoverOptions } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatAgentHover';
8
+ import { ChatAgentHover, getChatAgentHoverOptions } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatAgentHover';
9
9
  import { ChatEditorHoverWrapper } from './editorHoverWrapper.js';
10
- import { extractAgentAndCommand } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
10
+ import { extractAgentAndCommand } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
11
11
  import { localize } from 'vscode/vscode/vs/nls';
12
12
 
13
13
  let ChatAgentHoverParticipant = class ChatAgentHoverParticipant {
@@ -23,8 +23,8 @@ import { IWorkbenchAssignmentService } from 'vscode/vscode/vs/workbench/services
23
23
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
24
24
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
25
25
  import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
26
- import { normalizeSerializableChatData, ChatModel, updateRanges, toChatHistoryContent, ChatRequestModel } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatModel';
27
- import { ChatRequestAgentPart, ChatRequestAgentSubcommandPart, chatSubcommandLeader, chatAgentLeader, ChatRequestSlashCommandPart, getPromptText } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
26
+ import { normalizeSerializableChatData, ChatModel, updateRanges, toChatHistoryContent, ChatRequestModel } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatModel';
27
+ import { ChatRequestAgentPart, ChatRequestAgentSubcommandPart, chatSubcommandLeader, chatAgentLeader, ChatRequestSlashCommandPart, getPromptText } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
28
28
  import { ChatRequestParser } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/common/chatRequestParser';
29
29
  import { ChatServiceTelemetry } from './chatServiceTelemetry.js';
30
30
  import { IChatSlashCommandService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
@@ -3,7 +3,7 @@ import { Emitter } from 'vscode/vscode/vs/base/common/event';
3
3
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
4
4
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
5
5
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
6
- import { CHAT_PROVIDER_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParticipantContribTypes';
6
+ import { CHAT_PROVIDER_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParticipantContribTypes';
7
7
 
8
8
  let ChatWidgetHistoryService = class ChatWidgetHistoryService {
9
9
  constructor(storageService) {
@@ -18,7 +18,7 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
18
18
  },
19
19
  jsonSchema: {
20
20
  description: ( localize(
21
- 7516,
21
+ 7487,
22
22
  'Contributes a tool that can be invoked by a language model in a chat session, or from a standalone command. Registered tools can be used by all extensions.'
23
23
  )),
24
24
  type: 'array',
@@ -44,7 +44,7 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
44
44
  properties: {
45
45
  name: {
46
46
  description: ( localize(
47
- 7517,
47
+ 7488,
48
48
  "A unique name for this tool. This name must be a globally unique identifier, and is also used as a name when presenting this tool to a language model."
49
49
  )),
50
50
  type: 'string',
@@ -52,7 +52,7 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
52
52
  },
53
53
  toolReferenceName: {
54
54
  markdownDescription: ( localize(
55
- 7518,
55
+ 7489,
56
56
  "If {0} is enabled for this tool, the user may use '#' with this name to invoke the tool in a query. Otherwise, the name is not required. Name must not contain whitespace.",
57
57
  '`canBeReferencedInPrompt`'
58
58
  )),
@@ -61,32 +61,32 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
61
61
  },
62
62
  displayName: {
63
63
  description: ( localize(
64
- 7519,
64
+ 7490,
65
65
  "A human-readable name for this tool that may be used to describe it in the UI."
66
66
  )),
67
67
  type: 'string'
68
68
  },
69
69
  userDescription: {
70
- description: ( localize(7520, "A description of this tool that may be shown to the user.")),
70
+ description: ( localize(7491, "A description of this tool that may be shown to the user.")),
71
71
  type: 'string'
72
72
  },
73
73
  modelDescription: {
74
74
  description: ( localize(
75
- 7521,
75
+ 7492,
76
76
  "A description of this tool that may be used by a language model to select it."
77
77
  )),
78
78
  type: 'string'
79
79
  },
80
80
  inputSchema: {
81
81
  description: ( localize(
82
- 7522,
82
+ 7493,
83
83
  "A JSON schema for the input this tool accepts. The input must be an object at the top level. A particular language model may not support all JSON schema features. See the documentation for the language model family you are using for more information."
84
84
  )),
85
85
  $ref: toolsParametersSchemaSchemaId,
86
86
  },
87
87
  canBeReferencedInPrompt: {
88
88
  markdownDescription: ( localize(
89
- 7523,
89
+ 7494,
90
90
  "If true, this tool shows up as an attachment that the user can add manually to their request. Chat participants will receive the tool in {0}.",
91
91
  '`ChatRequest#toolReferences`'
92
92
  )),
@@ -94,7 +94,7 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
94
94
  },
95
95
  icon: {
96
96
  markdownDescription: ( localize(
97
- 7524,
97
+ 7495,
98
98
  "An icon that represents this tool. Either a file path, an object with file paths for dark and light themes, or a theme icon reference, like `$(zap)`"
99
99
  )),
100
100
  anyOf: [{
@@ -104,11 +104,11 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
104
104
  type: 'object',
105
105
  properties: {
106
106
  light: {
107
- description: ( localize(7525, 'Icon path when a light theme is used')),
107
+ description: ( localize(7496, 'Icon path when a light theme is used')),
108
108
  type: 'string'
109
109
  },
110
110
  dark: {
111
- description: ( localize(7526, 'Icon path when a dark theme is used')),
111
+ description: ( localize(7497, 'Icon path when a dark theme is used')),
112
112
  type: 'string'
113
113
  }
114
114
  }
@@ -116,14 +116,14 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
116
116
  },
117
117
  when: {
118
118
  markdownDescription: ( localize(
119
- 7527,
119
+ 7498,
120
120
  "Condition which must be true for this tool to be enabled. Note that a tool may still be invoked by another extension even when its `when` condition is false."
121
121
  )),
122
122
  type: 'string'
123
123
  },
124
124
  tags: {
125
125
  description: ( localize(
126
- 7528,
126
+ 7499,
127
127
  "A set of tags that roughly describe the tool's capabilities. A tool user may use these to filter the set of tools to just ones that are relevant for the task at hand, or they may want to pick a tag that can be used to identify just the tools contributed by this extension."
128
128
  )),
129
129
  type: 'array',