Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
129 lines (129 loc) · 3.44 KB
/
Copy pathpackage.json
File metadata and controls
129 lines (129 loc) · 3.44 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
{
"name": "inline-code-explainer",
"displayName": "Inline Code Explainer",
"description": "AI explains any selected code in plain English using Groq (or OpenAI)",
"version": "0.0.1",
"publisher": "",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other",
"AI"
],
"activationEvents": [
"onCommand:inlineCodeExplainer.explain"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "inlineCodeExplainer.explain",
"title": "Explain Selected Code"
}
],
"menus": {
"editor/context": [
{
"command": "inlineCodeExplainer.explain",
"group": "navigation"
}
]
},
"keybindings": [
{
"command": "inlineCodeExplainer.explain",
"key": "ctrl+alt+e",
"mac": "cmd+alt+e"
}
],
"configuration": {
"title": "Inline Code Explainer",
"properties": {
"inlineCodeExplainer.provider": {
"type": "string",
"default": "groq",
"enum": [
"groq",
"openai"
],
"description": "AI Provider (Groq for speed, OpenAI for broader features)",
"order": 0
},
"inlineCodeExplainer.apiKey": {
"type": "string",
"default": "",
"description": "API Key for the selected provider (or use env: GROQ_API_KEY / OPENAI_API_KEY)",
"order": 1
},
"inlineCodeExplainer.model": {
"type": "string",
"default": "openai/gpt-oss-20b",
"description": "Model to use (Groq models are faster/cheaper)",
"order": 2,
"enum": [
"openai/gpt-oss-20b",
"meta-llama/llama-4-scout-17b-16e-instruct",
"llama-3.1-8b-instant",
"openai/gpt-oss-120b",
"llama-3.3-70b-versatile",
"meta-llama/llama-4-maverick-17b-128e-instruct",
"qwen/qwen3-32b",
"gpt-4o-mini",
"gpt-4o"
]
},
"inlineCodeExplainer.maxTokens": {
"type": "number",
"default": 150,
"description": "Max tokens for the explanation (keep low for speed)",
"order": 3
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"watch": "npm run compile -- --watch",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/node": "18.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"@vscode/test-electron": "^2.3.8",
"esbuild": "^0.17.0",
"eslint": "^8.47.0",
"typescript": "^5.3.0"
},
"dependencies": {
"dotenv": "^16.6.1",
"openai": "^4.104.0"
},
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/bhargaviHQ/inline-code-explainer.git"
},
"bugs": {
"url": "https://github.com/bhargaviHQ/inline-code-explainer/issues"
},
"homepage": "https://github.com/bhargaviHQ/inline-code-explainer#readme",
"keywords": [
"AI",
"code",
"explanation",
"groq",
"openai",
"vscode"
],
"__metadata": {
"id": "inline-code-explainer",
"publisherDisplayName": "",
"publisherId": ""
}
}