generated from tjx666/awesome-vscode-extension-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
219 lines (219 loc) · 7.26 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
{
"name": "ya-copilot",
"displayName": "Ya Copilot",
"version": "0.0.31",
"description": "YA Copilot (Yet Another Copilot) is an open source copilot alternative",
"publisher": "remoteskills",
"private": true,
"preview": true,
"author": {
"name": "Chiheb Nabil",
"email": "[email protected]",
"url": "https://github.com/chihebnabil/"
},
"license": "SEE LICENSE IN LICENSE",
"homepage": "https://github.com/chihebnabil/ya-copilot/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/chihebnabil/ya-copilot"
},
"bugs": {
"url": "https://github.com/chihebnabil/ya-copilot/issues",
"email": "[email protected]"
},
"keywords": [
"copilot",
"ai"
],
"categories": [
"Other"
],
"main": "./out/src/extension.js",
"icon": "assets/logo.png",
"packageManager": "[email protected]",
"engines": {
"vscode": "^1.90.0"
},
"badges": [
{
"url": "https://img.shields.io/badge/PRs-welcome-brightgreen.svg",
"description": "PRs Welcome",
"href": "https://github.com/chihebnabil/ya-copilot/fork"
}
],
"activationEvents": [],
"contributes": {
"commands": [
{
"command": "ya-copilot.setApiKey",
"title": "Set Anthropic API Key"
},
{
"command": "ya-copilot.clearMessages",
"title": "Clear Chat Messages",
"icon": "$(clear-all)"
},
{
"command": "ya-copilot.generateDocumentation",
"title": "Generate Documentation"
}
],
"menus": {
"view/title": [
{
"command": "ya-copilot.clearMessages",
"when": "view == chatboxView",
"group": "navigation"
}
]
},
"configuration": {
"title": "YA Copilot",
"properties": {
"ya-copilot.apikey": {
"type": "string",
"default": "",
"description": "Your Anthropic API key"
},
"ya-copilot.model": {
"type": "string",
"default": "claude-3-5-sonnet-20240620",
"description": "Anthropic model to use",
"enum": [
"claude-3-5-sonnet-20240620",
"claude-3-opus-20240229",
"claude-3-haiku-20240307"
],
"enumDescriptions": [
"Claude 3.5 Sonnet",
"Claude 3.0 Opus",
"Claude 3.0 Haiku"
]
},
"ya-copilot.maxTokens": {
"type": "number",
"default": 512,
"description": "Max tokens to use"
},
"ya-copilot.edgeCases": {
"type": "boolean",
"default": false,
"description": "Include the edge cases in the responce"
},
"ya-copilot.deepExplanation": {
"type": "boolean",
"default": false,
"description": "Include the deep explanation in the responce for the complex parts"
},
"ya-copilot.commonIgnoredFolders": {
"type": "array",
"default": [
".git",
".github",
"node_modules",
"out",
"dist",
"vendor",
".vscode-test",
".vscode",
"build"
],
"description": "Patterns to ignore when generating the file tree for the prompt in order to avoid having a really long input prompt, if .gitignore was not available"
},
"ya-copilot.debug": {
"type": "boolean",
"default": false,
"description": "Enable debug mode"
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "chatbox-sidebar",
"title": "YA Copilot",
"icon": "$(comment)"
}
]
},
"views": {
"chatbox-sidebar": [
{
"type": "webview",
"id": "chatboxView",
"name": "Chatbox"
}
]
},
"keybindings": [
{
"command": "ya-copilot.generateDocumentation",
"key": "ctrl+alt+d",
"mac": "cmd+alt+d",
"when": "editorTextFocus"
}
]
},
"eslintConfig": {
"extends": "@yutengjing/eslint-config-typescript",
"ignorePatterns": [
"test-workspace"
]
},
"prettier": "@yutengjing/prettier-config",
"lint-staged": {
"*.{ts,json,md}": [
"eslint --fix",
"prettier --write"
]
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"scripts": {
"vscode:prepublish": "pnpm esbuild:base --minify",
"preinstall": "npx only-allow pnpm",
"postinstall": "stale-dep -u",
"prepare": "simple-git-hooks",
"clean": "npx rimraf -rf ./out",
"esbuild:base": "stale-dep && tsx scripts/esbuild.ts",
"esbuild:watch": "pnpm esbuild:base --sourcemap --watch",
"esbuild:analyze": "pnpm esbuild:base --minify --metafile --analyze && esbuild-visualizer --metadata ./meta.json --open",
"compile:test": "pnpm clean && tsc -b ./test/tsconfig.json",
"lint": "eslint src --ext ts",
"test": "stale-dep && pnpm compile:test && node ./out/test/runTests.js",
"package": "vsce package --no-dependencies",
"release": "npx @yutengjing/release",
"publish:vs-marketplace": "vsce publish --no-dependencies",
"publish:open-vsx": "ovsx publish --no-dependencies"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.7",
"@types/node": "~20.16.2",
"@types/vscode": "1.90.0",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.0.0",
"@yutengjing/eslint-config-typescript": "^1.2.2",
"@yutengjing/prettier-config": "^1.3.0",
"@yutengjing/release": "^0.3.1",
"esbuild": "~0.23.1",
"esbuild-visualizer": "^0.6.0",
"eslint": "^8.57.0",
"glob": "^11.0.0",
"lint-staged": "^15.2.9",
"mocha": "^10.7.3",
"ovsx": "^0.9.2",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"stale-dep": "^0.7.0",
"tsx": "^4.19.0",
"typescript": "~5.5.4"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.29.0",
"ignore": "^6.0.2",
"lowdb": "^7.0.1"
}
}