-
Notifications
You must be signed in to change notification settings - Fork 270
/
package.json
167 lines (167 loc) · 5.21 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
{
"name": "captain-stack",
"displayName": "Captain Stack",
"description": "Code faster with AI, or find snippets from StackOverflow, Gist",
"version": "0.6.0",
"publisher": "captainstack",
"icon": "icon.png",
"homepage": "https://github.com/hieunc229/copilot-clone",
"repository": "https://github.com/hieunc229/copilot-clone",
"keywords": [
"code-suggestion",
"copilot",
"code-inference",
"ai-programmer",
"pair-programmer"
],
"engines": {
"vscode": "^1.34.0"
},
"bugs": {
"url": "https://github.com/hieunc229/copilot-clone/issues"
},
"author": {
"name": "Hieu Nguyen",
"url": "https://twitter.com/hieuSSR"
},
"contributors": [
"Kekschen (https://github.com/Kek5chen)",
"Charlie Lin <[email protected]> (https://clin1234.github.io)"
],
"license": "MIT",
"categories": [
"Programming Languages",
"Snippets",
"Machine Learning",
"Education"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Captain Stack",
"type": "object",
"properties": {
"captainStack.settings.sites.stackoverflow": {
"title": "stackoverflow.com",
"description": "Enable searching code in StackOverflow",
"type": "boolean",
"default": true
},
"captainStack.settings.sites.githubGist": {
"title": "gist.github.com",
"description": "Enable searching code in Github Gists",
"type": "boolean",
"default": false
},
"captainStack.settings.sites.OpenAI": {
"title": "openai.com",
"description": "Enable AI code generation with OpenAI",
"type": "boolean",
"default": false
},
"captainStack.settings.sites.OpenRouter": {
"title": "openrouter.ai",
"description": "Enable AI code generation with OpenRouter",
"type": "boolean",
"default": false
},
"captainStack.settings.ai.systemPrompt": {
"title": "System prompt",
"description": "System prompt for AI Code Generator",
"type": "string",
"default": "You are a helpful code assistant that can teach a junior developer how to code. Don't explain the code, just generate the code block itself."
},
"captainStack.settings.ai.temperature": {
"title": "Output temperature",
"description": "Code output creativeness",
"type": "number",
"default": 0.5
},
"captainStack.settings.ai.n": {
"title": "Number of output",
"description": "Number of generated code outputs",
"type": "number",
"default": 1
},
"captainStack.settings.OpenRouter.apiKey": {
"title": "OpenRouter API Key",
"description": "OpenAI API Key",
"type": "string"
},
"captainStack.settings.OpenRouter.model": {
"title": "OpenRouter Model",
"description": "OpenRouter model used to generate code. Model list is available at https://openrouter.ai/docs#models",
"type": "string"
},
"captainStack.settings.OpenAI.apiKey": {
"title": "OpenAI API Key",
"description": "OpenAI API Key",
"type": "string",
"default": "openai/gpt-3.5-turbo-16k"
},
"captainStack.settings.OpenAI.model": {
"title": "OpenAI Model",
"description": "OpenAI model used to generate code. Model list is available at https://platform.openai.com/docs/models",
"type": "string",
"default": "gpt-3.5-turbo-16k"
},
"captainStack.settings.maxResults": {
"type": "integer",
"description": "Limit the number of search results",
"default": 12
}
}
}
},
"scripts": {
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -watch -p ./",
"download-api": "vscode-dts dev",
"postdownload-api": "vscode-dts main",
"postinstall": "npx vscode-dts dev",
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"test-compile": "tsc -p ./",
"prebuild": "npm run lint -- --fix",
"build": "vsce package -o ./out-vsix",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^27.4.1",
"@types/node": "^14.15.0",
"@types/node-fetch": "^2.5.10",
"@typescript-eslint/eslint-plugin": "^4.16.0",
"@typescript-eslint/parser": "^4.16.0",
"bufferutil": "^4.0.3",
"esbuild": "^0.12.15",
"eslint": "^7.21.0",
"jest": "^27.5",
"node-loader": "^2.0.0",
"ts-jest": "^27.1.4",
"ts-loader": "^9.2.3",
"typescript": "^4.2.2",
"utf-8-validate": "^5.0.5",
"vsce": "^2.15.0",
"vscode": "^1.1.37",
"vscode-dts": "^0.3.3",
"webpack": "^5.76.0",
"webpack-cli": "^4.7.2"
},
"dependencies": {
"@types/jsdom": "^16.2.12",
"canvas": "^2.11.2",
"jsdom": "^16.6.0",
"linkedom": "^0.11.1",
"node-fetch": "^2.6.1",
"openai": "^4.32.0",
"typescript-language-server": "^0.5.4"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node"
}
}