-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
210 lines (210 loc) · 5.36 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
{
"name": "gpt-context-generator",
"displayName": "GPT Context Generator",
"description": "Generate GPT-friendly context for files or workspaces",
"version": "0.3.0",
"engines": {
"vscode": "^1.84.0"
},
"categories": [
"Machine Learning",
"Other"
],
"icon": "images/icon.png",
"galleryBanner": {
"color": "#1F5738",
"theme": "dark"
},
"keywords": [
"gpt-4",
"gpt",
"openai",
"generator",
"context"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "gpt-context-generator.createGPTFriendlyContextForOpenFile",
"title": "Generate GPT Context (Current File + Imports)"
},
{
"command": "gpt-context-generator.createGPTFriendlyContext",
"title": "Generate GPT Context (Workspace)"
},
{
"command": "gpt-context-generator.markFileForInclusion",
"title": "Mark/Unmark File for Inclusion"
},
{
"command": "gpt-context-generator.createGPTFriendlyContextForMarkedFiles",
"title": "Generate GPT Context (Marked Files)"
},
{
"command": "gpt-context-generator.clearMarkedFiles",
"title": "Clear Marked Files",
"icon": {
"light": "images/clear-light.svg",
"dark": "images/clear-dark.svg"
}
},
{
"command": "gpt-context-generator.unmarkFileFromTreeView",
"title": "Clear Marked File",
"icon": {
"light": "images/clear-light.svg",
"dark": "images/clear-dark.svg"
}
},
{
"command": "gpt-context-generator.markFilesFromExplorer",
"title": "Mark Files for GPT Context"
},
{
"command": "gpt-context-generator.markFolderFromExplorer",
"title": "Mark Folder for GPT Context"
}
],
"configuration": {
"title": "GPT Context Generator",
"properties": {
"gpt-context-generator.detectedFileExtensions": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"js",
"jsx",
"ts",
"tsx",
"mdx",
"json"
],
"description": "File extensions to be detected and included in the generated context."
},
"gpt-context-generator.outputMethod": {
"type": "string",
"enum": [
"newWindow",
"clipboard"
],
"default": "clipboard",
"description": "Output method for the generated context (New Window or Clipboard)."
},
"gpt-context-generator.outputLanguage": {
"type": "string",
"enum": [
"plaintext",
"markdown"
],
"default": "plaintext",
"description": "Output language for the generated context when the output method is set to New Window.",
"scope": "window"
},
"gpt-context-generator.includePackageJson": {
"type": "boolean",
"default": true,
"description": "Include package.json as part of the context (Open File Only)."
},
"gpt-context-generator.fileCommentFormat": {
"type": "string",
"default": "{filePath}\\n```{markdownLang}\\n{fileContent}\\n```",
"description": "The format of the file comment in the generated context. Use {filePath}, {markdownLang}, and {fileContent} as placeholders."
}
}
},
"views": {
"explorer": [
{
"id": "markedFilesView",
"name": "Marked Files",
"visibility": "collapsed"
}
]
},
"menus": {
"view/item/context": [
{
"command": "gpt-context-generator.unmarkFileFromTreeView",
"when": "view == markedFilesView && viewItem == markedFile",
"group": "inline"
}
],
"view/title": [
{
"command": "gpt-context-generator.clearMarkedFiles",
"when": "view == markedFilesView",
"group": "navigation"
}
],
"explorer/context": [
{
"command": "gpt-context-generator.markFileForInclusion",
"when": "resourceScheme == file && !explorerResourceIsFolder",
"group": "navigation@1"
},
{
"command": "gpt-context-generator.markFilesFromExplorer",
"when": "resourceScheme == file && explorerViewletVisible && !explorerResourceIsFolder",
"group": "navigation@2"
},
{
"command": "gpt-context-generator.markFolderFromExplorer",
"when": "explorerResourceIsFolder && resourceScheme == file",
"group": "navigation@3"
}
],
"editor/context": [
{
"command": "gpt-context-generator.markFileForInclusion",
"group": "navigation@1"
}
]
}
},
"scripts": {
"build": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src",
"pretest": "yarn run build && yarn run lint",
"test": "node ./out/test/runTest.js",
"vscode:package": "yarn run build && vsce package --out 'builds'",
"vscode:publish": "yarn run build && vsce publish"
},
"dependencies": {
"@dqbd/tiktoken": "^1.0.18",
"highlight.js": "^11.11.1",
"ignore": "^7.0.0"
},
"devDependencies": {
"@eslint/js": "^9.13.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.5",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.13.0",
"glob": "^11.0.0",
"mocha": "^11.0.1",
"prettier": "^3.4.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.11.0"
},
"prettier": {
"semi": true,
"singleQuote": true,
"useTabs": true
},
"repository": {
"type": "git",
"url": "https://github.com/codybrom/gpt-context-generator.git"
},
"license": "MIT",
"publisher": "codybrom"
}