-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
381 lines (381 loc) · 12.9 KB
/
package.json
File metadata and controls
381 lines (381 loc) · 12.9 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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
{
"name": "chatcopycat",
"displayName": "ChatCopyCat",
"version": "0.0.154",
"publisher": "JStenmark",
"description": "AI assistant development workflow utility",
"author": {
"name": "Johannes Stenmark <johannes@stenmark.in> (https://github.com/jstenmark)"
},
"categories": [
"Snippets",
"Programming Languages",
"Other"
],
"icon": "images/png/logo_128.png",
"galleryBanner": {
"color": "#5c2d91",
"theme": "dark"
},
"pricing": "Free",
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"engines": {
"node": ">=20",
"vscode": "^1.91.1"
},
"repository": {
"type": "git",
"url": "https://github.com/jstenmark/ChatCopyCat.git"
},
"homepage": "https://github.com/jstenmark/ChatCopyCat#readme",
"bugs": {
"url": "https://github.com/jstenmark/ChatCopyCat/issues",
"email": "johannes@stenmark.in"
},
"markdown": "github",
"extensionKind": [
"workspace"
],
"preview": false,
"license": "MIT",
"keywords": [
"prompt",
"ai",
"openai",
"assistant",
"chatbot"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"restrictedConfigurations": [
"chatcopycat.catEnabledFolderWatcher",
"chatcopycat.catDevMode"
],
"description": "Got some fs calls, exec handlers etc. Only used by dev mode but go with your gut."
}
},
"contributes": {
"configuration": {
"type": "object",
"title": "ChatCopyCat",
"properties": {
"chatcopycat.enableTrimming": {
"type": "boolean",
"default": true,
"description": "Code Cleanup: Remove leading/trailing newlines, remove trailing spaces and tabs per row"
},
"chatcopycat.enableSpacesToTabs": {
"type": "boolean",
"default": true,
"description": "Code Cleanup: Indent content using tabs (save tokens)"
},
"chatcopycat.enableCommentRemoval": {
"type": "boolean",
"default": true,
"description": "Code Cleanup: Remove comments (if possible)"
},
"chatcopycat.enableLanguage": {
"type": "boolean",
"default": true,
"description": "Code Metadata: Add languageId in code blocks"
},
"chatcopycat.enablePath": {
"type": "boolean",
"default": true,
"description": "Code Metadata: Show file path in code blocks"
},
"chatcopycat.enablePosition": {
"type": "boolean",
"default": true,
"description": "Code Metadata: Show line-num in code blocks or diagnostics sections"
},
"chatcopycat.enableDiagnostics": {
"type": "boolean",
"default": true,
"description": "Code Context: Include code errors for each selection."
},
"chatcopycat.customDiagnosticsMessage": {
"type": "string",
"default": "",
"description": "Code Context: Add a custom text along with the diagnostics section if present"
},
"chatcopycat.enableInquiryMessage": {
"type": "boolean",
"default": true,
"description": "Code Context: Toggle to always prompt for the type of inquiry with each copy action for customized context setting."
},
"chatcopycat.inquiryMessagesList": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"Optimize this code",
"Fix the syntax/type errors",
"Fix code logic issues",
"Debug and identify issues",
"Improve error handling",
"Improve code structure",
"Add unit-tests",
"Generate docstrings"
],
"description": "Code context: Inquiry types"
},
"chatcopycat.defaultInquiryMessage": {
"type": "string",
"default": "",
"description": "Code context: Set a default message that automatically populates during each fresh clipboard"
},
"chatcopycat.enableClipboardResetCombo": {
"type": "boolean",
"default": true,
"description": "Copy: Enables the double-tap reset feature for the clipboard, allowing for quick clearing with a simple key combo."
},
"chatcopycat.enableForceFocusLastTrackedEditor": {
"type": "boolean",
"default": true,
"description": "Copy: Force document focus (when focus is locked outside of document)."
},
"chatcopycat.enableReferenceWithCopy": {
"type": "boolean",
"default": false,
"description": "References: Optionality append references to copied selection"
},
"chatcopycat.includeDecoratorsInReferences": {
"type": "boolean",
"default": "true",
"description": "References: Include Class/Method/Property-decorators with references ('@'-decorator)"
},
"chatcopycat.fileTreeIgnoreList": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"out",
"docs",
".vscode",
".git",
"node_modules",
"__pycache__",
".vscode-test",
"*.log",
".github",
"*.lock",
"dist"
],
"description": "FileTree: Paths to ignore in file-tree dialog. (gitignore syntax)"
},
"chatcopycat.definitionsAllowList": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "DefinitionsFiles: Add support for custom extensions (['.ts', '.js', 'Dockerfile'])"
},
"chatcopycat.definitionsIgnoreList": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"assets",
"images",
"*.test.*",
"test",
"index.ts",
"index.js",
"*.json",
"*.svg",
"*.md",
"*.yml",
"*.txt"
],
"description": "DefinitionsFiles: Paths to ignore in select dialog. (gitignore syntax)"
},
"chatcopycat.catLogLevel": {
"type": "string",
"default": "INFO",
"enum": [
"DEBUG",
"INFO",
"WARN",
"ERROR"
],
"description": "Extension: Set log level"
},
"chatcopycat.catLogMsgTruncateLen": {
"type": "number",
"default": 200,
"description": "Extension: Log message max length (0 = no limit)"
},
"chatcopycat.catLogDataTruncateLen": {
"type": "number",
"default": 500,
"description": "Extension: Log data object max length (0 = no limit)"
},
"chatcopycat.catEnabledFolderWatcher": {
"type": "boolean",
"default": false,
"description": "Development: Reload window after completed build and install (file watcher)"
},
"chatcopycat.catDevMode": {
"type": "boolean",
"default": false,
"description": "Development: Enabled dev functionality"
}
}
},
"commands": [
{
"command": "chatcopycat.copyCode",
"title": "CCCat: Copy selection or document (or append to clipboard)",
"group": "chatcopycat",
"description": "Copies if no previous content, appends if file-tree or previous content exists in clipboard (and diagnostics/references/inquiry type). Can close inquiry dialog with copy key binding"
},
{
"command": "chatcopycat.getFileTree",
"title": "CCCat: Copy file-tree (or append to clipboard)",
"group": "chatcopycat",
"description": "Copies if no previous content, replaces previous file-tree in clipboard, prepends if inquiry is present in clipboard"
},
{
"command": "chatcopycat.copyDefinitions",
"title": "CCCat: Copy definitions from document (to clipboard)",
"group": "chatcopycat"
},
{
"command": "chatcopycat.copyDefinitionsFromFiles",
"title": "CCCat: Copy definitions from files (to clipboard)",
"group": "chatcopycat",
"description": "Open a dialog and select which files or folders to copy definitions from, preserves selection. Can add paths to the ignore-list from dialog or reset selection cache"
},
{
"command": "chatcopycat.getSymbolReferences",
"title": "CCCat: Copy symbol references (to clipboard)",
"group": "chatcopycat",
"description": "Copies references from selected symbol or if present in selection"
},
{
"command": "chatcopycat.resetClipboard",
"title": "CCCat: Clear/reset clipboard",
"group": "chatcopycat",
"description": "Clear the clipboard. Default: double tap copy key binding to clear (within 0.5sec)"
},
{
"command": "chatcopycat.openMenu",
"title": "CCCat: Menu/Command Center",
"group": "chatcopycat"
},
{
"command": "chatcopycat.openSettings",
"title": "CCCat: Configuration | Preferences | Settings",
"group": "chatcopycat"
},
{
"command": "chatcopycat.closeDialog",
"title": "CCCat: Close dialog",
"group": "chatcopycat"
}
],
"menus": {
"editor/context": [
{
"command": "chatcopycat.getSymbolReferences",
"group": "navigation",
"when": "editorTextFocus && !(inQuickOpen || terminalFocus || filesExplorerFocus || inSearchEditor || searchViewletFocus || replaceInputBoxFocus || outputFocus)"
}
]
},
"keybindings": [
{
"key": "ctrl+shift+c",
"command": "chatcopycat.copyCode",
"when": "(editorTextFocus && !chatcopycat:semaphoreDialogOpen) && !(inQuickOpen || terminalFocus || filesExplorerFocus || inSearchEditor || searchViewletFocus || replaceInputBoxFocus)",
"description": "Copy, append, reset clipboard"
},
{
"key": "ctrl+shift+c",
"command": "chatcopycat.closeDialog",
"when": "chatcopycat:semaphoreDialogOpen && !terminalFocus",
"description": "Shortcut to close the inquiry dialog"
}
]
},
"scripts": {
"_opts": "cross-env NODE_OPTIONS=--max-old-space-size=4096",
"compile": "tsc --experimentalDecorators -p ./",
"watch": "tsc --experimentalDecorators --watch",
"pretest": "yarn vscode:prepublish && yarn lint",
"lint": "eslint",
"lint:pretty": "yarn _opts && eslint --color",
"lint:fix": "yarn _opts && eslint --format=pretty --stats --cache --cache-location /mnt/c/Users/stenm/.cache/eslint --fix",
"lint:debug": "yarn _opts && eslint --color --debug --fix-dry-run",
"lint:inspect": "yarn lint:pretty --inspect-config",
"test": "node ./out/test/runTest.js",
"package": "vsce package",
"pkg": "yarn clean && yarn package",
"vsce:package": "vsce package",
"vsce:package:pre": "vsce package --pre-release",
"vsce:publish": "vsce publish",
"vsce:publish:pre": "vsce publish --pre-release",
"vscode:prepublish": "tsc --experimentalDecorators -p ./",
"check-types": "tsc --noEmit",
"clean": "rm -rf out >/dev/null 2>&1 || true && rm -rf *.vsix >/dev/null 2>&1 || true && rm -rf /mnt/c/Users/stenm/.vscode/extensions/jstenmark.* >/dev/null 2>&1 || true",
"bump": "yarn version --new-version patch",
"install:linux": " code --install-extension ./chatcopycat-*.vsix --force",
"lint:rules": "cross-env ESLINT_USE_FLAT_CONFIG=true npx eslint-config-prettier src/infra/exec.ts"
},
"devDependencies": {
"@eslint/compat": "^1.1.1",
"@eslint/config-inspector": "^0.5.2",
"@eslint/js": "^9.7.0",
"@stylistic/eslint-plugin-ts": "^2.3.0",
"@swc/core": "^1.7.26",
"@types/eslint": "^8.44.8",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.3",
"@types/node": "^20.10.3",
"@types/vscode": "^1.91.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8",
"@vscode/vsce": "^3.1.0",
"cross-env": "^7.0.3",
"electron": "^27.1.3",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint-formatter-pretty": "5",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"glob": "^10.3.10",
"lint-staged": "^15.2.10",
"mocha": "^10.2.0",
"simple-git-hooks": "^2.11.1",
"ts-node": "^10.9.1",
"typescript": "<=5.3.2",
"typescript-eslint": "^8.0.0",
"yarn": "^1.22.22"
},
"dependencies": {
"inversify": "^6.0.2",
"reflect-metadata": "^0.2.2"
},
"extensionDependencies": [],
"vsce": {
"dependencies": true,
"yarn": true
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*": "yarn lint"
},
"packageManager": "yarn@2.4.3"
}