-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
400 lines (400 loc) · 15.9 KB
/
package.json
File metadata and controls
400 lines (400 loc) · 15.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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
{
"name": "docdocs",
"displayName": "docDocs - Universal Documentation Generator",
"description": "LSP-powered documentation generation with JSON Schema output, Markdown rendering, and AI-optimized context files",
"version": "0.1.0",
"publisher": "heyoub",
"license": "none",
"repository": {
"type": "git",
"url": "https://github.com/Heyoub/docDocs"
},
"bin": {
"docdocs-mcp": "./dist/mcp/index.js"
},
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Programming Languages",
"Linters",
"Other"
],
"keywords": [
"documentation",
"lsp",
"json-schema",
"markdown",
"ai-context"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "docdocs.generateFile",
"title": "docdocs: Generate Documentation for File"
},
{
"command": "docdocs.generateFolder",
"title": "docdocs: Generate Documentation for Folder"
},
{
"command": "docdocs.generateWorkspace",
"title": "docdocs: Generate Documentation for Workspace"
},
{
"command": "docdocs.generateSelection",
"title": "docdocs: Generate Docs for Selection"
},
{
"command": "docdocs.checkFreshness",
"title": "docdocs: Check Documentation Freshness"
},
{
"command": "docdocs.preview",
"title": "docdocs: Preview Documentation"
},
{
"command": "docdocs.openExplorer",
"title": "docdocs: Open Doc Explorer"
},
{
"command": "docdocs.openDashboard",
"title": "docdocs: Open Dashboard",
"icon": "$(dashboard)"
},
{
"command": "docdocs.lint",
"title": "docdocs: Lint Documentation"
},
{
"command": "docdocs.showCoverage",
"title": "docdocs: Show Coverage Report"
},
{
"command": "docdocs.exportLSIF",
"title": "docdocs: Export LSIF Index"
},
{
"command": "docdocs.toggleWatch",
"title": "docdocs: Toggle Watch Mode"
},
{
"command": "docdocs.openOnboarding",
"title": "docdocs: Open Setup Wizard"
}
],
"views": {
"explorer": [
{
"id": "docdocsExplorer",
"name": "Doc Explorer",
"icon": "$(book)",
"contextualTitle": "docdocs Explorer"
}
],
"docdocs": [
{
"type": "webview",
"id": "docdocs.sidebar",
"name": "DocDocs",
"icon": "$(book)",
"contextualTitle": "DocDocs Panel"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "docdocs",
"title": "DocDocs",
"icon": "$(book)"
}
]
},
"configuration": {
"title": "docdocs",
"properties": {
"docdocs.output.directory": {
"type": "string",
"default": ".docdocs",
"description": "Output directory for generated documentation"
},
"docdocs.output.formats": {
"type": "array",
"items": {
"type": "string",
"enum": [
"markdown",
"ai-context",
"json-schema",
"openapi",
"graphql",
"lsif",
"notebook"
]
},
"default": [
"markdown",
"ai-context"
],
"description": "Output formats to generate"
},
"docdocs.ml.enabled": {
"type": "boolean",
"default": false,
"description": "Enable ML-powered prose generation"
},
"docdocs.ml.model": {
"type": "string",
"default": "tiiuae/Falcon-H1-Tiny-Coder-90M",
"enum": [
"tiiuae/Falcon-H1-Tiny-Coder-90M",
"tiiuae/Falcon-H1-Tiny-90M-Instruct",
"tiiuae/Falcon-H1-Tiny-R-90M",
"tiiuae/Falcon-H1-Tiny-R-0.6B",
"tiiuae/Falcon-H1-Tiny-Tool-Calling",
"tiiuae/Falcon-H1-Tiny-Multilingual-100M-Instruct",
"tiiuae/Falcon-H1-0.5B-Instruct",
"tiiuae/Falcon-H1-1.5B-Instruct",
"tiiuae/Falcon-H1-1.5B-Deep-Instruct",
"tiiuae/Falcon-H1-3B-Instruct",
"tiiuae/Falcon-H1-7B-Instruct",
"tiiuae/Falcon-H1R-7B-Instruct",
"Qwen/Qwen3-Embedding-0.6B",
"nomic-ai/nomic-embed-code-v1",
"jinaai/jina-embeddings-v2-base-code",
"google/embeddinggemma-300m",
"ibm-granite/granite-4.0-nano-350m-instruct",
"ibm-granite/granite-4.0-nano-1.5b-instruct",
"HuggingFaceTB/SmolLM2-135M-Instruct",
"HuggingFaceTB/SmolLM2-360M-Instruct",
"HuggingFaceTB/SmolLM2-1.7B-Instruct",
"Qwen/Qwen2.5-0.5B-Instruct",
"Qwen/Qwen2.5-1.5B-Instruct",
"microsoft/Phi-3-mini-4k-instruct"
],
"enumDescriptions": [
"⭐ Falcon H1 Tiny Coder - Code-aware, recommended for docs (180MB)",
"Falcon H1 Tiny Instruct - Fast general-purpose assistant (180MB)",
"Falcon H1 Tiny Reasoning 90M - Punches above its weight (180MB)",
"Falcon H1 Tiny Reasoning 600M - SOTA tiny reasoning, beats larger models (1.2GB)",
"Falcon H1 Tiny Tool Calling - Function calling & agentic workflows (180MB)",
"Falcon H1 Tiny Multilingual - 100+ languages support (200MB)",
"Falcon H1 0.5B - Rivals 2024's 7B models, 256K context (1GB)",
"Falcon H1 1.5B - Production quality, strong reasoning (3GB)",
"⭐ Falcon H1 1.5B Deep - Best quality Falcon, deep thinking (3GB)",
"Falcon H1 3B - Balanced power/efficiency (6GB)",
"Falcon H1 7B - Enterprise grade, 131K context (14GB)",
"Falcon H1R 7B - Strongest open reasoning model (14GB)",
"⭐ Qwen3 Embedding 0.6B - #1 MTEB-Code, recommended for vectors (1.2GB)",
"Nomic Embed Code v1 - Best open-source code embeddings (280MB)",
"Jina Code v2 - 8K context code embeddings (320MB)",
"EmbeddingGemma 300M - Google's Matryoshka embedder (616MB)",
"IBM Granite 4.0 Nano 350M - Hybrid Mamba/Transformer (700MB)",
"IBM Granite 4.0 Nano 1.5B - Better quality Granite (3GB)",
"SmolLM2 135M - Ultra-lightweight, fastest (270MB)",
"SmolLM2 360M - Balanced speed/quality (720MB)",
"SmolLM2 1.7B - Best SmolLM quality (3.4GB)",
"Qwen 2.5 0.5B - Compact multilingual (1GB)",
"Qwen 2.5 1.5B - Strong multilingual (3GB)",
"Phi-3 Mini 4K - High quality reasoning (7.6GB)"
],
"description": "ML model for prose generation. Smaller models are faster but less capable."
},
"docdocs.codeLens.enabled": {
"type": "boolean",
"default": true,
"description": "Show CodeLens actions above symbols"
},
"docdocs.statusBar.enabled": {
"type": "boolean",
"default": true,
"description": "Show documentation status in status bar"
},
"docdocs.statusBar.freshnessThreshold": {
"type": "number",
"default": 80,
"description": "Freshness percentage threshold for warning color"
},
"docdocs.watch.enabled": {
"type": "boolean",
"default": false,
"description": "Enable watch mode for auto-regeneration"
},
"docdocs.watch.debounceMs": {
"type": "number",
"default": 1000,
"description": "Debounce delay for watch mode regeneration"
},
"docdocs.extraction.treeSitterFallback": {
"type": "boolean",
"default": true,
"description": "Use tree-sitter when LSP is unavailable"
},
"docdocs.extraction.timeout": {
"type": "number",
"default": 5000,
"description": "Timeout in milliseconds for LSP extraction per file"
}
}
},
"menus": {
"explorer/context": [
{
"command": "docdocs.generateFile",
"when": "resourceLangId",
"group": "docdocs@1"
},
{
"command": "docdocs.generateFolder",
"when": "explorerResourceIsFolder",
"group": "docdocs@2"
},
{
"command": "docdocs.lint",
"when": "resourceLangId",
"group": "docdocs@3"
}
],
"editor/context": [
{
"command": "docdocs.generateFile",
"when": "editorTextFocus",
"group": "docdocs@1"
},
{
"command": "docdocs.generateSelection",
"when": "editorTextFocus && editorHasSelection",
"group": "docdocs@2"
},
{
"command": "docdocs.preview",
"when": "editorTextFocus",
"group": "docdocs@3"
},
{
"command": "docdocs.checkFreshness",
"when": "editorTextFocus",
"group": "docdocs@4"
}
],
"commandPalette": [
{
"command": "docdocs.generateFile",
"when": "editorIsOpen"
},
{
"command": "docdocs.generateFolder"
},
{
"command": "docdocs.generateWorkspace"
},
{
"command": "docdocs.generateSelection",
"when": "editorIsOpen && editorHasSelection"
},
{
"command": "docdocs.checkFreshness"
},
{
"command": "docdocs.preview",
"when": "editorIsOpen"
},
{
"command": "docdocs.openExplorer"
},
{
"command": "docdocs.openDashboard"
},
{
"command": "docdocs.lint"
},
{
"command": "docdocs.showCoverage"
},
{
"command": "docdocs.exportLSIF"
},
{
"command": "docdocs.toggleWatch"
},
{
"command": "docdocs.openOnboarding"
}
]
}
},
"scripts": {
"vscode:prepublish": "bun run build",
"build": "bun run build:extension && bun run build:webview && bun run build:mcp",
"build:extension": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"build:webview": "vite build --config src/webview/vite.config.ts",
"build:mcp": "esbuild ./src/mcp/index.ts --bundle --outfile=dist/mcp/index.js --format=esm --platform=node --banner:js=\"#!/usr/bin/env node\" --external:@modelcontextprotocol/sdk --external:vectordb --external:@huggingface/transformers --external:onnxruntime-node",
"watch": "concurrently \"bun run watch:extension\" \"bun run watch:webview\"",
"watch:extension": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --watch",
"watch:webview": "vite build --config src/webview/vite.config.ts --watch",
"dev:webview": "vite --config src/webview/vite.config.ts",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "bun run lint:extension && bun run lint:webview && bun run lint:mcp",
"lint:extension": "tsc --noEmit",
"lint:webview": "tsc --noEmit -p src/webview/tsconfig.json",
"lint:mcp": "tsc --noEmit -p src/mcp/tsconfig.json",
"package": "vsce package"
},
"dependencies": {
"@huggingface/transformers": "^3.0.0",
"@modelcontextprotocol/sdk": "^1.25.3",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.0",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"@vscode/tree-sitter-wasm": "^0.0.4",
"ajv": "^8.12.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^0.2.0",
"d3": "^7.8.5",
"glob": "^13.0.0",
"handlebars": "^4.7.8",
"jotai": "^2.6.0",
"lucide-react": "^0.300.0",
"mermaid": "^10.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwind-merge": "^2.2.0",
"vectordb": "^0.11.0",
"web-tree-sitter": "^0.25.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/vscode": "^1.80.0",
"@types/d3": "^7.4.0",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"typescript": "^5.3.0",
"vitest": "^1.0.0",
"fast-check": "^3.14.0",
"@vscode/test-electron": "^2.3.0",
"esbuild": "^0.19.0",
"vite": "^5.0.0",
"@vitejs/plugin-react": "^4.0.0",
"tailwindcss": "^3.4.0",
"autoprefixer": "^10.4.0",
"postcss": "^8.4.0",
"concurrently": "^8.2.0"
}
}