-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
142 lines (141 loc) · 3.78 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
{
"name": "lenovo-openai-demo",
"icon": "images/icon.png",
"license": "MIT",
"repository": {
"url": "https://github.com/axing521/Lenovo-OpenAI-vscExtension"
},
"publisher": "caijr3",
"displayName": "TDP-OpenAI",
"description": "一个在vscode集成chatGPT的扩展插件,由caijr3开发",
"galleryBanner": {"color": "#00BFFF"},
"version": "2.0.3",
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Other"
],
"activationEvents": ["onView:Lenovo-OpenAI.view"],
"main": "./Lenovo-OpenAI.js",
"contributes": {
"commands": [
{
"command": "Lenovo-OpenAI.resetAPIKey",
"title": "LenovoGPT: 重置OpenAI API-Key",
"icon": {
"light": "images/light/login.svg",
"dark": "images/dark/login.svg"
}
},
{
"command": "Lenovo-OpenAI.resetToken",
"title": "LenovoGPT: 设定OpenAI API-Key"
},
{
"command": "Lenovo-OpenAI.askGPT",
"title": "LenovoGPT: 询问普通问题"
},
{
"command": "Lenovo-OpenAI.explainPls",
"title": "LenovoGPT: 解释这段代码"
},
{
"command": "Lenovo-OpenAI.refactor",
"title": "LenovoGPT: 优化这段代码"
},
{
"command": "Lenovo-OpenAI.whyBroken",
"title": "LenovoGPT: 为什么代码出bug了"
},
{
"command": "Lenovo-OpenAI.clear",
"title": "LenovoGPT: 清空面板",
"icon": {
"light": "images/light/refresh.svg",
"dark": "images/dark/refresh.svg"
}
}
],
"menus": {
"editor/context": [
{
"command": "Lenovo-OpenAI.resetToken",
"when": "editorTextFocus",
"group": "ChatGPTCodingWithYou@1"
},
{
"command": "Lenovo-OpenAI.askGPT",
"when": "editorTextFocus",
"group": "ChatGPTCodingWithYou@2"
},
{
"command": "Lenovo-OpenAI.explainPls",
"when": "editorTextFocus",
"group": "ChatGPTCodingWithYou@3"
},
{
"command": "Lenovo-OpenAI.refactor",
"when": "editorTextFocus",
"group": "ChatGPTCodingWithYou@4"
},
{
"command": "Lenovo-OpenAI.whyBroken",
"when": "editorTextFocus",
"group": "ChatGPTCodingWithYou@5"
}
],
"view/title": [
{
"command": "Lenovo-OpenAI.resetAPIKey",
"when": "view == Lenovo-OpenAI.view",
"group": "navigation"
},
{
"command": "Lenovo-OpenAI.clear",
"when": "view == Lenovo-OpenAI.view",
"group": "navigation"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "Lenovo-OpenAI",
"title": "LenovoGPT",
"icon": "images/L.svg"
}
]
},
"views": {
"Lenovo-OpenAI": [
{
"id": "Lenovo-OpenAI.view",
"name": "交互UI",
"type": "webview"
}
]
}
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.77.0",
"@vscode/test-electron": "^2.3.0",
"eslint": "^8.36.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^4.9.5"
},
"dependencies": {
"axios": "^1.3.4",
"openai": "^3.2.1",
"request": "^2.88.2"
}
}