-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
214 lines (214 loc) · 5.99 KB
/
Copy pathpackage.json
File metadata and controls
214 lines (214 loc) · 5.99 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
{
"name": "codebase-combiner",
"displayName": "Codebase Combiner",
"description": "Combine a workspace or folder into a single Markdown or text file with configurable filters.",
"version": "0.0.2",
"license": "Apache-2.0",
"publisher": "s1korrrr",
"author": {
"name": "RSI Tech",
"email": "info@rsitech.ai",
"url": "https://rsitech.ai"
},
"icon": "assets/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/rsitech-ai/codebase-combiner.git"
},
"bugs": {
"url": "https://github.com/rsitech-ai/codebase-combiner/issues"
},
"homepage": "https://rsitech.ai",
"keywords": [
"codebase",
"combiner",
"prompt",
"vscode",
"extension",
"markdown",
"tokens",
"llm",
"workspace",
"context",
"prompt-engineering",
"file-export",
"token-count"
],
"engines": {
"vscode": "^1.74.0",
"node": ">=20"
},
"categories": [
"Productivity",
"Other"
],
"activationEvents": [
"onCommand:codebaseCombiner.combineWorkspace",
"onCommand:codebaseCombiner.combineFolder"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Workspace-defined filters are ignored in Restricted Mode so an untrusted repository cannot broaden file collection.",
"restrictedConfigurations": [
"codebaseCombiner.outputFormat",
"codebaseCombiner.outputFileName",
"codebaseCombiner.includeGlobs",
"codebaseCombiner.excludeGlobs",
"codebaseCombiner.includeExtensions",
"codebaseCombiner.excludeExtensions",
"codebaseCombiner.maxFileSizeKB",
"codebaseCombiner.useExtensionsFilter"
]
},
"virtualWorkspaces": {
"supported": false,
"description": "Combining files requires access to a local file-system workspace."
}
},
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "codebaseCombiner.combineWorkspace",
"category": "Codebase Combiner",
"title": "Combine Workspace to Single File"
},
{
"command": "codebaseCombiner.combineFolder",
"category": "Codebase Combiner",
"title": "Combine This Folder to Single File"
}
],
"menus": {
"explorer/context": [
{
"command": "codebaseCombiner.combineFolder",
"when": "explorerResourceIsFolder || explorerResourceIsFile",
"group": "navigation@9"
}
],
"commandPalette": [
{
"command": "codebaseCombiner.combineWorkspace",
"when": "true"
},
{
"command": "codebaseCombiner.combineFolder",
"when": "true"
}
]
},
"configuration": {
"title": "Codebase Combiner",
"properties": {
"codebaseCombiner.outputFormat": {
"type": "string",
"enum": [
"txt",
"md"
],
"default": "txt",
"description": "Output format: plain text or Markdown."
},
"codebaseCombiner.outputFileName": {
"type": "string",
"default": "combined_code.txt",
"description": "Suggested file name shown in the output save dialog."
},
"codebaseCombiner.includeGlobs": {
"type": "array",
"maxItems": 128,
"items": {
"type": "string",
"maxLength": 1024
},
"default": [
"**/*"
],
"description": "Glob patterns to include (relative to the chosen root); each pattern may contain at most two recursive ** segments."
},
"codebaseCombiner.excludeGlobs": {
"type": "array",
"maxItems": 128,
"items": {
"type": "string",
"maxLength": 1024
},
"default": [
"**/node_modules/**",
"**/.git/**",
"**/.vscode/**",
"**/dist/**",
"**/build/**"
],
"description": "Glob patterns to exclude; each pattern may contain at most two recursive ** segments."
},
"codebaseCombiner.includeExtensions": {
"type": "array",
"maxItems": 128,
"items": {
"type": "string",
"maxLength": 1024
},
"default": [],
"description": "Optional allow-list of file extensions (e.g. ['js','ts']). If empty, all extensions are allowed unless restricted by includeGlobs/useExtensionsFilter."
},
"codebaseCombiner.excludeExtensions": {
"type": "array",
"maxItems": 128,
"items": {
"type": "string",
"maxLength": 1024
},
"default": [
"png",
"jpg",
"jpeg",
"gif",
"mp4",
"zip",
"bin",
"lock"
],
"description": "Extensions to always exclude (without leading dots)."
},
"codebaseCombiner.maxFileSizeKB": {
"type": "number",
"minimum": 1,
"maximum": 8192,
"default": 512,
"description": "Skip files larger than this size (in kilobytes)."
},
"codebaseCombiner.useExtensionsFilter": {
"type": "boolean",
"default": true,
"description": "If true, derive an allow-list of extensions from includeGlobs and skip other extensions when the list is non-empty."
}
}
}
},
"scripts": {
"lint": "eslint extension.js lib test",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test": "node --test",
"package": "vsce package"
},
"dependencies": {
"minimatch": "^9.0.9"
},
"devDependencies": {
"@eslint/js": "^9.39.5",
"@vscode/vsce": "^3.9.2",
"chai": "^4.4.1",
"eslint": "^9.39.5",
"eslint-config-prettier": "^10.1.8",
"globals": "^16.5.0",
"prettier": "^3.3.3"
},
"overrides": {
"diff": "8.0.3",
"serialize-javascript": "7.0.7"
}
}