-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
248 lines (248 loc) · 8.47 KB
/
package.json
File metadata and controls
248 lines (248 loc) · 8.47 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
{
"name": "nopilot",
"displayName": "NoPilot",
"description": "Use Claude, GPT, Gemini, Ollama, or VS Code LM for inline completions, inline edits, and AI commit messages.",
"version": "0.3.0",
"publisher": "hanjo92",
"license": "MIT",
"icon": "media/icon.png",
"galleryBanner": {
"color": "#2563eb",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/Hanjo92/NoPilot.git"
},
"bugs": {
"url": "https://github.com/Hanjo92/NoPilot/issues"
},
"homepage": "https://github.com/Hanjo92/NoPilot#readme",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"AI",
"Machine Learning",
"Programming Languages"
],
"keywords": [
"ai",
"copilot",
"claude",
"openai",
"gemini",
"ollama",
"remote ollama",
"local ai",
"vscode lm",
"inline completion",
"inline chat",
"code completion",
"commit message"
],
"activationEvents": [
"onLanguage",
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "nopilot.generateCommitMessage",
"title": "NoPilot: Generate Commit Message",
"icon": "$(sparkle)"
},
{
"command": "nopilot.toggleInline",
"title": "NoPilot: Toggle Inline Suggestions"
},
{
"command": "nopilot.openSettings",
"title": "NoPilot: Open Settings",
"icon": "$(gear)"
},
{
"command": "nopilot.switchProvider",
"title": "NoPilot: Select AI Model"
},
{
"command": "nopilot.setApiKey",
"title": "NoPilot: Set API Key"
},
{
"command": "nopilot.inlineChat",
"title": "NoPilot: Inline Chat (Edit/Replace)"
}
],
"menus": {
"scm/title": [
{
"command": "nopilot.generateCommitMessage",
"group": "navigation",
"when": "scmProvider == git"
}
]
},
"keybindings": [
{
"command": "nopilot.inlineChat",
"key": "ctrl+i",
"mac": "cmd+i",
"when": "editorTextFocus"
}
],
"configuration": {
"title": "NoPilot",
"properties": {
"nopilot.provider": {
"type": "string",
"enum": [
"vscode-lm",
"anthropic",
"openai",
"openai-compatible",
"gemini",
"ollama"
],
"default": "vscode-lm",
"description": "Active AI provider"
},
"nopilot.model": {
"type": "string",
"default": "",
"description": "VS Code LM model key override (empty = provider default)"
},
"nopilot.inline.enabled": {
"type": "boolean",
"default": true,
"description": "Enable inline code completion"
},
"nopilot.inline.qualityProfile": {
"type": "string",
"enum": [
"fast",
"balanced",
"rich"
],
"enumDescriptions": [
"Prefer lower latency and smaller automatic requests.",
"Keep the current default balance between speed and suggestion depth.",
"Allow richer automatic suggestions with more context and a more eager trigger."
],
"default": "balanced",
"description": "Quality profile for automatic inline suggestions"
},
"nopilot.inline.pauseWhenCopilotActive": {
"type": "boolean",
"default": true,
"description": "Skip automatic NoPilot inline requests when GitHub Copilot is active for the current language"
},
"nopilot.inline.debounceMs": {
"type": "number",
"default": 500,
"minimum": 100,
"maximum": 2000,
"description": "Debounce time in ms before requesting completion"
},
"nopilot.inline.maxPrefixLines": {
"type": "number",
"default": 50,
"description": "Max lines of code before cursor to include as context"
},
"nopilot.inline.maxSuffixLines": {
"type": "number",
"default": 20,
"description": "Max lines of code after cursor to include as context"
},
"nopilot.commitMessage.language": {
"type": "string",
"default": "en",
"description": "Language for commit messages (e.g. en, ko, ja)"
},
"nopilot.commitMessage.format": {
"type": "string",
"enum": [
"conventional",
"simple"
],
"default": "conventional",
"description": "Commit message format"
},
"nopilot.anthropic.model": {
"type": "string",
"default": "claude-sonnet-4-20250514",
"description": "Anthropic model to use"
},
"nopilot.openai.model": {
"type": "string",
"default": "gpt-5-mini",
"description": "OpenAI model to use"
},
"nopilot.openaiCompatible.baseUrl": {
"type": "string",
"default": "",
"description": "OpenAI-compatible API base URL (example: https://llm.example.com/v1)"
},
"nopilot.openaiCompatible.model": {
"type": "string",
"default": "gpt-oss:20b",
"description": "OpenAI-compatible model to use"
},
"nopilot.gemini.model": {
"type": "string",
"default": "gemini-2.5-flash",
"description": "Gemini model to use"
},
"nopilot.ollama.endpoint": {
"type": "string",
"default": "http://localhost:11434",
"description": "Ollama server endpoint"
},
"nopilot.ollama.remoteMode": {
"type": "string",
"enum": [
"auto",
"forced-on",
"forced-off"
],
"enumDescriptions": [
"Automatically optimize inline suggestions when Ollama behaves like a remote endpoint.",
"Always use remote-optimized inline behavior for Ollama.",
"Never use remote-optimized inline behavior for Ollama."
],
"default": "auto",
"description": "Remote Ollama optimization mode for inline suggestions"
},
"nopilot.ollama.model": {
"type": "string",
"default": "codellama",
"description": "Ollama model to use"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "node esbuild.js --production",
"watch": "node esbuild.js --watch",
"compile": "tsc -noEmit",
"test": "tsc -p tsconfig.test.json && node --test .test-dist/packageManifest.test.js .test-dist/providers/modelSelection.test.js .test-dist/providers/providerManager.source.test.js .test-dist/providers/providerConfig.test.js .test-dist/providers/vscodeLmProvider.source.test.js .test-dist/providers/ollamaProvider.source.test.js .test-dist/providers/directApiProviders.source.test.js .test-dist/providers/directProviderModels.test.js .test-dist/providers/ollamaModels.test.js .test-dist/providers/ollamaRemoteMode.test.js .test-dist/providers/prompts.test.js .test-dist/providers/inlineStrategies.test.js .test-dist/providers/providerCredentials.test.js .test-dist/features/inlineBlockContext.test.js .test-dist/features/inlineProjectContext.test.js .test-dist/features/inlineText.test.js .test-dist/features/inlineCompletionProvider.wiring.test.js .test-dist/features/inlineContextCache.test.js .test-dist/features/copilotDetection.test.js .test-dist/features/inlineRequestStatus.test.js .test-dist/extension.source.test.js .test-dist/ui/statusBarPresentation.source.test.js .test-dist/ui/statusBarPresentation.test.js .test-dist/ui/settingsPanelActions.source.test.js .test-dist/ui/settingsPanel.source.test.js .test-dist/ui/settingsPanelState.source.test.js .test-dist/ui/settingsPanelState.test.js .test-dist/ui/settingsWebview.test.js .test-dist/ui/settingsWebviewScript.source.test.js .test-dist/ui/settingsPanelActions.test.js .test-dist/services/authService.source.test.js .test-dist/services/gitSelection.test.js",
"lint": "eslint src"
},
"devDependencies": {
"@eslint/js": "^9.24.0",
"@types/node": "^20.11.0",
"@types/vscode": "^1.90.0",
"esbuild": "^0.21.0",
"eslint": "^9.24.0",
"globals": "^16.0.0",
"typescript-eslint": "^8.29.0",
"typescript": "^5.4.0"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
"@google/generative-ai": "^0.21.0",
"openai": "^4.70.0"
}
}