-
Notifications
You must be signed in to change notification settings - Fork 77
/
package.json
212 lines (212 loc) · 7.32 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
{
"name": "aicursor",
"displayName": "CodeCursor (Cursor for VS Code)",
"description": "Cursor integration for Visual Studio Code",
"version": "0.5.3",
"publisher": "ktiays",
"repository": {
"type": "git",
"url": "https://github.com/Helixform/CodeCursor"
},
"icon": "icon.png",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Machine Learning",
"Programming Languages",
"Snippets",
"Education"
],
"keywords": [
"chatgpt",
"gpt",
"gpt4",
"gpt3.5",
"openai",
"copilot",
"codex",
"code generation",
"code explanation",
"code summary"
],
"activationEvents": [
"onCommand:*"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "aicursor.generateCode",
"title": "Generate Code",
"enablement": "activeEditor =~ /^workbench\\.editors\\./",
"category": "CodeCursor"
},
{
"command": "aicursor.showLastResult",
"title": "Show Generated Code",
"enablement": "aicursor.hasActiveGenerateSession",
"category": "CodeCursor"
},
{
"command": "aicursor.acceptChanges",
"title": "Accept Changes",
"enablement": "activeEditor =~ /^workbench\\.editors\\./ && aicursor.hasActiveGenerateSession",
"category": "CodeCursor"
},
{
"command": "aicursor.rejectChanges",
"title": "Reject Changes",
"enablement": "activeEditor =~ /^workbench\\.editors\\./ && aicursor.hasActiveGenerateSession",
"category": "CodeCursor"
},
{
"command": "aicursor.resetChat",
"title": "Reset Chat",
"category": "CodeCursor",
"icon": "$(trash)"
},
{
"command": "aicursor.signInUp",
"title": "Sign In / Sign Up",
"category": "CodeCursor"
},
{
"command": "aicursor.signOut",
"title": "Sign Out",
"category": "CodeCursor"
},
{
"command": "aicursor.configureApiKey",
"title": "Configure API Key",
"category": "CodeCursor"
},
{
"command": "aicursor.generateProject",
"title": "Generate Project",
"enablement": "workspaceFolders != null && workspaceFolderCount > 0",
"category": "CodeCursor"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "aicursor",
"title": "CodeCursor",
"icon": "activitybar-icon.svg"
}
]
},
"views": {
"aicursor": [
{
"type": "webview",
"id": "chat",
"name": "Chat"
}
]
},
"menus": {
"editor/context": [
{
"submenu": "aicursor.submenu"
}
],
"aicursor.submenu": [
{
"command": "aicursor.generateCode"
}
],
"view/title": [
{
"command": "aicursor.resetChat",
"when": "view == chat",
"group": "navigation"
}
]
},
"submenus": [
{
"id": "aicursor.submenu",
"label": "CodeCursor"
}
],
"configuration": {
"title": "CodeCursor",
"properties": {
"aicursor.openaiApiKey": {
"type": "string",
"default": "",
"description": "OpenAI API key for using Cursor with your own quota."
},
"aicursor.model": {
"type": "string",
"default": "gpt-3.5-turbo",
"enum": [
"gpt-3.5-turbo",
"gpt-4"
],
"enumDescriptions": [
"Use GPT 3.5 Turbo model for code generation and chat",
"Use GPT 4 model for code generation and chat (requires access invitation)"
],
"markdownDescription": "Model to use for code generation and chat. Only applies when `#aicursor.openaiApiKey#` is set."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack --mode production --devtool hidden-source-map",
"compile:dev": "webpack",
"compile-webview": "webpack -c ./webpack.webview.config.js --mode production --devtool hidden-source-map",
"compile-webview:dev": "webpack -c ./webpack.webview.config.js",
"compile-rust": "cd crates/cursor-core && wasm-pack build --target nodejs --weak-refs",
"compile-rust:dev": "cd crates/cursor-core && wasm-pack build --target nodejs --weak-refs --dev",
"copy-icons": "cp src/webview/codicons/* dist/",
"copy-rust": "cp crates/cursor-core/pkg/cursor_core_bg.wasm dist/cursor_core_bg.wasm",
"copy-resources": "npm run copy-rust && npm run copy-icons",
"watch": "webpack --watch",
"package:no-rust": "npm run compile-webview:dev && npm run compile:dev && npm run copy-resources",
"package:dev": "npm run compile-rust:dev && npm run package:no-rust",
"package": "npm run compile-rust && npm run compile-webview && npm run compile && npm run copy-resources",
"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 --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/diff-match-patch": "^1.0.32",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/react-syntax-highlighter": "^15.5.6",
"@types/vscode": "^1.74.0",
"@types/vscode-webview": "^1.57.1",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"@vscode/test-electron": "^2.2.3",
"css-loader": "^6.7.3",
"eslint": "^8.34.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"style-loader": "^3.3.2",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@vscode/codicons": "^0.0.32",
"@vscode/webview-ui-toolkit": "^1.2.2",
"diff-match-patch": "^1.0.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "^8.0.6",
"react-syntax-highlighter": "^15.5.0",
"uuid": "^9.0.0"
}
}