-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
255 lines (255 loc) · 10.1 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
{
"name": "vscode-copilot-data-analysis",
"publisher": "ms-vscode",
"displayName": "Data Analysis for Copilot",
"description": "This tool extends the LLM's capabilities by allowing it to run Python code in a sandboxed Python environment (Pyodide) for a wide range of computational tasks and data manipulations that it cannot perform directly.",
"author": "Microsoft Corporation",
"homepage": "https://github.com/microsoft/vscode-data-analysis-for-copilot",
"icon": "images/icon.png",
"version": "0.2.2",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode-data-analysis-for-copilot"
},
"bugs": {
"url": "https://github.com/microsoft/vscode-data-analysis-for-copilot/issues"
},
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"AI",
"Data Science",
"Machine Learning",
"Visualization",
"Programming Languages",
"Chat"
],
"activationEvents": [
"onChatParticipant:dachat.data"
],
"extensionDependencies": [
"GitHub.copilot-chat"
],
"keywords": [
"ai",
"analysis",
"chat",
"co-pilot",
"data"
],
"main": "./out/extension.js",
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": "limited",
"description": "%capabilities.untrustedWorkspace.description%"
}
},
"contributes": {
"commands": [
{
"category": "Chat",
"command": "dachat.analyzeCsv",
"enablement": "isWorkspaceTrusted && resourceExtname == .csv && resourceScheme =~ /^^file$/ && workspaceFolderCount > 0",
"icon": "$(copilot)",
"title": "%commands.dachat.analyzeCsv.title%",
"shortTitle": "%commands.dachat.analyzeCsv.shortTitle%"
},
{
"category": "Data Analysis",
"command": "dachat.reportIssue",
"title": "Report Issue..."
}
],
"menus": {
"commandPalette": [
{
"command": "dachat.analyzeCsv",
"when": "false"
},
{
"command": "dachat.reportIssue",
"when": "true"
}
],
"editor/title": [
{
"command": "dachat.analyzeCsv",
"when": "isWorkspaceTrusted && resourceExtname == .csv && resourceScheme =~ /^^file$/ && workspaceFolderCount > 0",
"group": "navigation",
"title": "%commands.dachat.analyzeCsv.title%"
}
],
"editor/context": [
{
"command": "dachat.analyzeCsv",
"when": "isWorkspaceTrusted && resourceExtname == .csv && resourceScheme =~ /^^file$/ && workspaceFolderCount > 0",
"group": "data",
"title": "%commands.dachat.analyzeCsv.title%"
}
],
"explorer/context": [
{
"command": "dachat.analyzeCsv",
"when": "isWorkspaceTrusted && resourceExtname == .csv && resourceScheme =~ /^^file$/ && workspaceFolderCount > 0",
"group": "data",
"title": "%commands.dachat.analyzeCsv.title%"
}
]
},
"chatParticipants": [
{
"id": "dachat.data",
"fullName": "Data Analytics",
"name": "data",
"description": "I can help you with data analytics",
"sampleRequest": "Help me analyze the csv file",
"isSticky": true,
"disambiguation": [
{
"category": "analysis",
"description": "Performs analysis on some data provided by user either as a file or content",
"examples": [
"Analyze the contents of sample.csv",
"What is the correlation between house price and income in sample.csv",
"What is the median house price in sample.csv"
]
},
{
"category": "visualize",
"description": "Display visualizations based on some analysis or data provided by user either as a file or content",
"examples": [
"Visualize the contents of sample.csv",
"Generate a plot of average house prices by state",
"Display the correlation between house price and income in sample.csv",
"Display a chart with the median house price in sample.csv"
]
}
],
"commands": [
{
"description": "Export the result of the analysis along with the Python code into multiple formats",
"isSticky": false,
"name": "export"
}
]
}
],
"languageModelTools": [
{
"name": "dachat_data_findFiles",
"tags": [],
"displayName": "Find Files",
"modelDescription": "Search for files in the current workspace",
"inputSchema": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "Search for files that match this glob pattern"
}
},
"required": [
"pattern"
]
}
},
{
"name": "dachat_data_runPython",
"tags": [
"Python Execution"
],
"displayName": "Run Python",
"modelDescription": "Execute Python code locally using Pyodide, providing access to Python's extensive functionality. This tool extends the LLM's capabilities by allowing it to run Python code for a wide range of computational tasks and data manipulations that it cannot perform directly. When you know the workspace folder path and the file path, use the relative path to the file when generating code.",
"inputSchema": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The Python code to run"
},
"reason": {
"type": "string",
"description": "The reason for running the code"
}
},
"required": [
"code"
]
}
},
{
"name": "dachat_data_installPythonPackage",
"tags": [],
"displayName": "Install Missing Python Packages",
"modelDescription": "Install missing Python packages in the tool used to run Python code using Pyodide.",
"inputSchema": {
"type": "object",
"properties": {
"package": {
"type": "string",
"description": "Name of the Python package that could not be found and needs to be installed"
}
},
"required": [
"code"
]
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run clean && npm run postinstall && npm run compile-extension -- --minify",
"compile": "npm run compile-types && npm run compile-extension",
"compile-extension": "esbuild ./src/extension.ts --bundle --external:vscode --outfile=out/extension.js --sourcemap --format=cjs --platform=node --target=node18",
"watch-extension": "npm run compile-extension -- --watch",
"watch": "npm run watch-extension",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"compile-types": "tsc -p . --noEmit",
"watch-types": "tsc -p . -w --noEmit",
"clean": "npx tsx build/clean.ts",
"lint": "eslint src",
"lint-fix": "eslint --fix src",
"download-api": "dts main",
"postinstall": "npm run download-api && npm run downloadPyodide",
"downloadPyodide": "npx tsx build/download.ts"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
"@types/chai": "^4.3.6",
"@types/follow-redirects": "^1.14.4",
"@types/json-schema": "^7.0.15",
"@types/mocha": "^10.0.9",
"@types/node": "^20.5.9",
"@types/node-fetch": "^2.5.7",
"@types/proxy-from-env": "^1.0.4",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@vscode/dts": "^0.4.1",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"chai": "^4.3.10",
"cli-progress": "^3.12.0",
"decompress": "^4.2.1",
"decompress-tarbz2": "^4.1.1",
"esbuild": "^0.21.5",
"eslint": "^9.12.0",
"follow-redirects": "^1.15.9",
"globals": "^15.10.0",
"https-proxy-agent": "^7.0.5",
"proxy-from-env": "^1.1.0",
"tar": "^7.4.3",
"tsx": "^4.19.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.8.1",
"unzipper": "^0.12.3"
},
"dependencies": {
"@vscode/prompt-tsx": "^0.3.0-alpha.12",
"isbinaryfile": "^5.0.4",
"sanitize-filename": "^1.6.3"
}
}