forked from lastmile-ai/aiconfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
301 lines (301 loc) · 9.27 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": "vscode-aiconfig",
"repository": "https://github.com/lastmile-ai/aiconfig",
"publisher": "lastmile-ai",
"author": "LastMile AI",
"displayName": "AIConfig Editor",
"description": "AIConfig notebook editor that turns VSCode into a generative AI studio.",
"version": "0.0.20",
"license": "MIT",
"engines": {
"vscode": "^1.85.0"
},
"icon": "static/Logo.png",
"categories": [
"Machine Learning",
"Notebooks",
"Programming Languages",
"Snippets"
],
"keywords": [
"ai",
"assistant",
"chatbot",
"notebook",
"aiconfig",
"lastmile",
"openai",
"chatgpt",
"gpt",
"gpt4",
"dalle",
"dalle3",
"llama",
"llama2",
"anthropic",
"claude",
"claude3",
"gemini",
"huggingface",
"transformers",
"generative",
"editor",
"python",
"typescript"
],
"main": "./out/extension.js",
"activationEvents": [
"workspaceContains:**.aiconfig.**",
"onView:extension"
],
"contributes": {
"commands": [
{
"command": "vscode-aiconfig.init",
"title": "Initialize Extension",
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.createAIConfigJSON",
"title": "Create New AIConfig (json)",
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.createAIConfigYAML",
"title": "Create New AIConfig (yaml)",
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.share",
"title": "Share (get permalink)",
"category": "AIConfig",
"icon": {
"light": "./static/share.svg",
"dark": "./static/share-dark.svg"
}
},
{
"command": "vscode-aiconfig.submitFeedback",
"title": "Submit Feedback",
"category": "AIConfig",
"icon": {
"light": "./static/bug.svg",
"dark": "./static/bug-dark.svg"
}
},
{
"command": "vscode-aiconfig.customModelRegistryPath",
"title": "Set Custom Model Registry File Path",
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.createCustomModelRegistry",
"title": "Create Custom Model Registry",
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.openConfigFile",
"title": "Open AIConfig File",
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.openModelRegistry",
"title": "Open Custom Model Registry File",
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.restartActiveEditorServer",
"title": "Restart Active Editor Server",
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.setApiKeys",
"title": "Set API Keys",
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.showWelcomePage",
"title": "Welcome",
"category": "AIConfig"
}
],
"customEditors": [
{
"viewType": "vscode-aiconfig.aiConfigEditor",
"displayName": "AI Workbook Editor",
"selector": [
{
"filenamePattern": "*.aiconfig.json"
},
{
"filenamePattern": "*.aiconfig.yaml"
},
{
"filenamePattern": "*.aiconfig.yml"
},
{
"filenamePattern": "*.aiconfig"
}
],
"priority": "default"
}
],
"configuration": {
"title": "AIConfig Editor extension settings",
"properties": {
"vscode-aiconfig.modelRegistryPath": {
"type": "string",
"default": "",
"description": "Path to the custom model registry file."
},
"vscode-aiconfig.pythonInterpreter": {
"type": "string",
"default": "",
"description": "Path to the python interpreter for this VS Code workspace"
},
"vscode-aiconfig.version": {
"type": "string",
"default": "",
"description": "Version of the AIConfig Editor extension last time it was activated. We use this value to check if the extension has been updated to prompt users to reload VS Code"
},
"vscode-aiconfig.env_file_path": {
"type": "string",
"default": "",
"description": "File path to your .env file containing your API keys"
}
}
},
"configurationDefaults": {
"workbench.editorAssociations": {
"{git,gitlens,sapling-diff}:/**/*.{aiconfig,aiconfig.json,aiconfig.yaml}": "default"
},
"workbench.editor.untitled.labelFormat": "name"
},
"walkthroughs": [
{
"id": "welcomeWalkthrough",
"title": "Get Started with AIConfig",
"description": "AIConfig Editor is the Generative AI studio for VS Code. Discover and personalize features that supercharge your AI development workflow.",
"steps": [
{
"id": "initializeExtension",
"title": "Initialize Extension",
"description": "Ensure you have everything needed before using the extension for the first time\n[Initialize Extension](command:vscode-aiconfig.init)",
"media": {
"markdown": "media/initializeExtension.md"
},
"completionEvents": [
"onCommand:vscode-aiconfig.init"
]
},
{
"id": "setEnvironment",
"title": "Set API Keys",
"description": "Define your model API keys in an ``.env`` file\n[Set API Keys](command:vscode-aiconfig.setApiKeys)",
"media": {
"markdown": "media/apiKeys.md"
},
"completionEvents": [
"onCommand:vscode-aiconfig.setApiKeys"
]
},
{
"id": "createAIConfig",
"title": "Create your first AIConfig",
"description": "Turn your VS Code into a generative AI studio\n**Note:** Please complete the ``Initialize Extension`` step before opening an AIConfig file!\n[Create .aiconfig.yaml](command:vscode-aiconfig.createAIConfigYAML)\nIf you prefer JSON:\n[Create .aiconfig.json](command:vscode-aiconfig.createAIConfigJSON)",
"media": {
"markdown": "media/createAIConfig.md"
},
"completionEvents": [
"onCommand:vscode-aiconfig.createAIConfigYAML",
"onCommand:vscode-aiconfig.createAIConfigJSON"
]
},
{
"id": "learnMore",
"title": "Find out more",
"description": "Explore all the features of the AIConfig Editor by looking for “AIConfig” in the Command Palette (``CMD/CTRL + Shift + P``)",
"media": {
"markdown": "media/more.md"
},
"completionEvents": [
"onLink:https://aiconfig.lastmileai.dev/docs/category/overview",
"onLink:https://github.com/lastmile-ai/aiconfig/tree/main/cookbooks",
"onLink:https://discord.com/invite/xBhNKTetGx"
]
}
]
}
],
"menus": {
"editor/title": [
{
"command": "vscode-aiconfig.share",
"when": "resourcePath =~ /.*(\\.aiconfig\\.json|\\.aiconfig\\.yaml|\\.aiconfig\\.yml|\\.aiconfig)$/",
"group": "navigation"
},
{
"command": "vscode-aiconfig.submitFeedback",
"when": "resourcePath =~ /.*(\\.aiconfig\\.json|\\.aiconfig\\.yaml|\\.aiconfig\\.yml|\\.aiconfig)$/",
"group": "navigation"
}
],
"file/newFile": [
{
"command": "vscode-aiconfig.createAIConfigJSON"
},
{
"command": "vscode-aiconfig.createAIConfigYAML"
}
],
"webview/context": [
{
"command": "vscode-aiconfig.customModelRegistryPath",
"when": "resourcePath =~ /.*(\\.aiconfig\\.json|\\.aiconfig\\.yaml|\\.aiconfig\\.yml|\\.aiconfig)$/",
"group": "z_commands"
},
{
"command": "vscode-aiconfig.setApiKeys",
"when": "resourcePath =~ /.*(\\.aiconfig\\.json|\\.aiconfig\\.yaml|\\.aiconfig\\.yml|\\.aiconfig)$/",
"group": "z_commands"
}
]
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test",
"install:all": "yarn install && cd webview-ui && yarn install",
"start:webview": "cd webview-ui && yarn start",
"build:webview": "cd webview-ui && yarn build",
"test:webview": "cd webview-ui && yarn test"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/oboe": "^2.1.4",
"@types/url-join": "^4.0.3",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
},
"dependencies": {
"@vscode/python-extension": "^1.0.5",
"async-mutex": "^0.4.1",
"js-yaml": "^4.1.0",
"oboe": "^2.1.5",
"portfinder": "^1.0.32",
"ufetch": "^1.6.0"
},
"extensionDependencies": [
"ms-python.python"
]
}