-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
275 lines (275 loc) · 8.56 KB
/
package.json
File metadata and controls
275 lines (275 loc) · 8.56 KB
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
{
"name": "cody-plus-plus",
"displayName": "Cody++",
"description": "Enhances Cody AI with additional files control and custom command features",
"publisher": "mnismt",
"version": "0.4.0",
"license": "MIT",
"icon": "resources/cody-plus-plus.png",
"homepage": "https://github.com/mnismt/codyplusplus",
"repository": {
"type": "git",
"url": "https://github.com/mnismt/codyplusplus"
},
"engines": {
"vscode": "^1.93.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Cody++ Configuration",
"properties": {
"codyPlusPlus.fileThreshold": {
"type": "number",
"default": 15,
"description": "The maximum number of files allowed before showing a warning message."
},
"codyPlusPlus.excludedFileTypes": {
"type": "array",
"items": {
"type": "string"
},
"default": [
".exe",
".bin"
],
"description": "List of file extensions to exclude from being added to Cody."
},
"codyPlusPlus.excludedFolders": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"node_modules",
".git"
],
"description": "List of folders to exclude from being added to Cody."
},
"codyPlusPlus.enableTelemetry": {
"type": "boolean",
"default": true,
"description": "Enable anonymous telemetry data collection to help improve Cody++."
},
"codyPlusPlus.llmProvider": {
"type": "string",
"enum": [
"openai",
"gemini",
"openai-compatible"
],
"default": "openai",
"description": "Select the LLM provider for Smart Add (OpenAI, Gemini, or OpenAI-Compatible)"
},
"codyPlusPlus.llmApiKey": {
"type": "string",
"description": "API key for the selected provider (OpenAI, Gemini, or OpenAI-Compatible)"
},
"codyPlusPlus.openaiBaseUrl": {
"type": "string",
"description": "Base URL for \"openai-compatible\" provider ONLY (e.g., for local models or proxies)",
"default": "https://api.openai.com/v1"
},
"codyPlusPlus.llmModel": {
"type": "string",
"description": "Model to use for LLM completions (defaults to provider-specific model if not set)",
"markdownDescription": "Model to use for LLM completions:\n- For OpenAI/OpenAI-Compatible: defaults to 'gpt-4o-mini'\n- For Gemini: defaults to 'gemini-1.5-flash'"
}
}
},
"commands": [
{
"command": "cody-plus-plus.addFile",
"title": "Add File to Cody",
"category": "Cody++"
},
{
"command": "cody-plus-plus.addSelection",
"title": "Add Selected Files to Cody",
"category": "Cody++"
},
{
"command": "cody-plus-plus.addSelectionRecursive",
"title": "Add Selected Files (Recursive) to Cody ",
"category": "Cody++"
},
{
"command": "cody-plus-plus.addFolder",
"title": "Add Folder (Recursive) to Cody",
"category": "Cody++"
},
{
"command": "cody-plus-plus.addShallowFolder",
"title": "Add Folder to Cody",
"category": "Cody++"
},
{
"command": "cody-plus-plus.addCustomCommand",
"title": "Add New",
"category": "Cody++",
"icon": "$(add)"
},
{
"command": "cody-plus-plus.editCommand",
"title": "Edit",
"category": "Cody++",
"icon": "$(edit)"
},
{
"command": "cody-plus-plus.deleteCommand",
"title": "Delete",
"category": "Cody++",
"icon": "$(trash)"
},
{
"command": "cody-plus-plus.addFilesToCodySmart",
"title": "Add Files to Cody (Smart)",
"category": "Cody++"
},
{
"command": "cody-plus-plus.selectProvider",
"title": "Select LLM Provider",
"category": "Cody++"
},
{
"command": "cody-plus-plus.selectLlm",
"title": "Select LLM (switch model)",
"category": "Cody++"
}
],
"menus": {
"explorer/context": [
{
"command": "cody-plus-plus.addFile",
"when": "!explorerResourceIsFolder && !listMultiSelection && explorerViewletFocus && resourceLangId && cody.activated",
"group": "0_cody"
},
{
"command": "cody-plus-plus.addSelection",
"when": "listMultiSelection && explorerViewletFocus && listHasSelectionOrFocus && cody.activated",
"group": "0_cody"
},
{
"command": "cody-plus-plus.addSelectionRecursive",
"when": "listMultiSelection && explorerViewletFocus && listHasSelectionOrFocus && cody.activated",
"group": "0_cody"
},
{
"command": "cody-plus-plus.addFolder",
"when": "!listMultiSelection && explorerResourceIsFolder && explorerViewletFocus && cody.activated",
"group": "1_cody"
},
{
"command": "cody-plus-plus.addShallowFolder",
"when": "!listMultiSelection && explorerResourceIsFolder && explorerViewletFocus && cody.activated",
"group": "1_cody"
},
{
"command": "cody-plus-plus.addFilesToCodySmart",
"when": "explorerResourceIsFolder && explorerViewletFocus && cody.activated",
"group": "0_cody"
}
],
"view/title": [
{
"command": "cody-plus-plus.addCustomCommand",
"when": "view == mainView",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "cody-plus-plus.editCommand",
"when": "view == mainView",
"group": "inline"
},
{
"command": "cody-plus-plus.deleteCommand",
"when": "view == mainView",
"group": "inline"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "codyPlusPlus",
"title": "Cody++",
"icon": "resources/cody-plus-plus.png"
}
]
},
"views": {
"codyPlusPlus": [
{
"id": "mainView",
"name": "Cody++",
"type": "webview"
}
]
}
},
"scripts": {
"vscode:package": "pnpm run package && pnpm vsce package --no-dependencies",
"compile": "pnpm run check-types && pnpm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:webviews": "cd src/webviews && pnpm run dev",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"build:webviews": "rm -rf dist/webviews && cd src/webviews && pnpm run build && cpx \"./dist/assets/**\" \"../../dist/webviews/assets\"",
"package": "pnpm run check-types && pnpm run build:webviews && pnpm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src --ext ts --ignore-pattern \"src/webviews/**\"",
"test": "vscode-test .",
"prepare": "husky"
},
"devDependencies": {
"@release-it/conventional-changelog": "^8.0.1",
"@release-it/keep-a-changelog": "^5.0.0",
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/vscode": "^1.93.0",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.3.9",
"conventional-changelog-cli": "^5.0.0",
"cpx": "^1.5.0",
"esbuild": "^0.20.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"proxyquire": "^2.1.3",
"release-it": "^17.5.0",
"sinon": "^17.0.1",
"typescript": "^5.4.5"
},
"lint-staged": {
"src/**/*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
},
"dependencies": {
"ignore": "^7.0.3",
"posthog-node": "^4.4.0",
"zod": "^3.23.8"
},
"packageManager": "pnpm@9.11.0"
}