-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
301 lines (301 loc) · 9.01 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
{
"name": "copilot-mermaid-diagram",
"publisher": "ms-vscode",
"displayName": "vscode-mermAId",
"description": "Exploration into Copilot Chat-powered Diagram Generation",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode-mermAId.git"
},
"version": "0.0.3",
"icon": "assets/logo.png",
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Chat",
"AI",
"Visualization"
],
"keywords": [
"mermaid",
"uml",
"sequence",
"diagram",
"copilot",
"groq",
"chat"
],
"extensionDependencies": [
"GitHub.copilot-chat"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "mermAId",
"type": "object",
"properties": {
"mermaid.searchForExtensions": {
"type": "boolean",
"default": true,
"description": "Search for Mermaid extensions when viewing Mermaid source."
},
"mermaid.enableGroq": {
"type": "boolean",
"default": true,
"description": "Enable using groq for the outline view, requires entering API key from command palette to use."
}
}
},
"chatParticipants": [
{
"id": "copilot-diagram.mermAId",
"fullName": "mermAId Diagrams",
"name": "mermAId",
"description": "Work with diagrams in the chat",
"isSticky": true,
"commands": [
{
"name": "uml",
"description": "Generate a UML diagram"
},
{
"name": "sequence",
"description": "Generate a sequence diagram"
},
{
"name": "iterate",
"description": "Iterate on a diagram generated in a previous chat turn",
"disambiguation": [
{
"category": "mermaid_iterate",
"description": "The user wants to make a minor and directed edit to an already generated mermaid diagram",
"examples": [
"Add class foo to the diagram",
"Change the color property of the class foo to blue",
"Remove the class foo from the diagram"
]
}
]
},
{
"name": "help",
"description": "How to use the mermAId agent"
}
]
}
],
"languageModelTools": [
{
"name": "mermAId_get_symbol_definition",
"tags": [
"code",
"symbols",
"mermaid"
],
"displayName": "Symbol Definitions from File",
"modelDescription": "Given a file path string and a list of symbols, this model returns the definitions of the specified symbols. For example, if the file 'x.py' is provided and the symbol 'abc' is requested, the model will find 'abc' in 'x.py' and return its definition from the file where it is actually defined, such as 'y.py'.",
"icon": "$(files)",
"canBeReferencedInPrompt": false,
"inputSchema": {
"type": "object",
"properties": {
"symbols": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of symbols in the file to get the definition for.",
"default": []
},
"fileString": {
"type": "string",
"description": "The path to the file represented as a string where you are finding these symbols you want to get the definition for. Or undefined if the location of the symbol is unknown.",
"default": "none"
}
},
"required": [
"symbols",
"fileString"
]
}
},
{
"name": "mermAId_gather_symbols",
"tags": [
"code",
"symbols",
"mermaid"
],
"displayName": "Gather Workspace Symbols",
"modelDescription": "This tool will accept a list of symbols and attempt to gather information about those symbols from the entire workspace. It can provide the location, parent symbol, and the the symbol's content.",
"icon": "$(files)",
"canBeReferencedInPrompt": false,
"inputSchema": {
"type": "object",
"properties": {
"symbols": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of symbols to search for.",
"default": []
}
},
"required": [
"symbols"
]
}
}
],
"viewsContainers": {
"activitybar": [
{
"id": "mermAId-container",
"title": "MermAId",
"icon": "$(type-hierarchy-sub)"
}
]
},
"views": {
"mermAId-container": [
{
"type": "webview",
"id": "mermaid-outline-diagram",
"name": "Visual Outline"
}
]
},
"menus": {
"editor/title": [
{
"command": "mermAId.openMarkdownFile",
"when": "copilot-mermAId-diagram.diagramIsActive",
"group": "navigation"
}
],
"view/title": [
{
"command": "copilot-mermAId-diagram.view-markdown-source-from-outline",
"when": "view == mermaid-outline-diagram && copilot-mermAId-diagram.isShowingDiagram",
"group": "navigation"
},
{
"command": "copilot-mermAId-diagram.open-in-window-from-outline",
"when": "view == mermaid-outline-diagram && copilot-mermAId-diagram.isShowingDiagram",
"group": "navigation"
},
{
"command": "copilot-mermAId-diagram.refresh-outline",
"when": "view == mermaid-outline-diagram",
"group": "navigation"
},
{
"command": "copilot-mermAId-diagram.enable-follow-outline",
"when": "view == mermaid-outline-diagram && !copilot-mermAId-diagram.followActiveDocument",
"group": "navigation"
},
{
"command": "copilot-mermAId-diagram.disable-follow-outline",
"when": "view == mermaid-outline-diagram && copilot-mermAId-diagram.followActiveDocument",
"group": "navigation"
},
{
"command": "copilot-mermAId-diagram.continue-in-chat",
"when": "view == mermaid-outline-diagram",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "mermAId.openMarkdownFile",
"when": "false"
},
{
"command": "mermAId.openDiagramSvg",
"when": "false"
}
]
},
"commands": [
{
"command": "copilot-mermaid-diagram.storeSecret",
"title": "copilot mermAId: Store groq API key"
},
{
"command": "copilot-mermAId-diagram.refresh-outline",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "copilot-mermAId-diagram.enable-follow-outline",
"title": "Enable Follow",
"icon": "$(pin)"
},
{
"command": "copilot-mermAId-diagram.disable-follow-outline",
"title": "Disable Follow",
"icon": "$(pinned)"
},
{
"command": "copilot-mermAId-diagram.open-in-window-from-outline",
"title": "Open Outline in Window",
"icon": "$(preview)"
},
{
"command": "copilot-mermAId-diagram.view-markdown-source-from-outline",
"title": "View Markdown Source",
"icon": "$(markdown)"
},
{
"command": "copilot-mermAId-diagram.continue-in-chat",
"title": "Continue in Chat",
"icon": "$(comment-discussion)"
},
{
"command": "mermAId.openDiagramSvg",
"title": "View rendered SVG"
},
{
"command": "mermAId.openMarkdownFile",
"title": "View Markdown Source",
"icon": "$(markdown)"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.8",
"@types/node": "20.x",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/prompt-tsx": "^0.3.0-alpha.12",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"copy-webpack-plugin": "^12.0.2",
"eslint": "^9.11.1",
"ts-loader": "^9.5.1",
"typescript": "^5.6.2",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@vscode/chat-extension-utils": "^0.0.0-alpha.5",
"@vscode/codicons": "^0.0.36",
"groq-sdk": "^0.7.0",
"mermaid": "^11.3.0"
}
}