Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
430 lines (430 loc) · 13.8 KB
/
Copy pathpackage.json
File metadata and controls
430 lines (430 loc) · 13.8 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
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
{
"name": "lineloom",
"displayName": "LineLoom",
"version": "1.4.3",
"publisher": "SanskarCodes",
"description": "Privacy-first, open-source AI code autocomplete for VS Code, powered by local models.",
"license": "MIT",
"private": false,
"main": "./dist/extension.js",
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"autocomplete",
"ollama",
"local-ai",
"typescript",
"python",
"rust",
"kotlin",
"privacy-first",
"go",
"java",
"c",
"cpp",
"html",
"css",
"lua",
"cuda",
"csharp",
"swift",
"dart",
"ruby",
"php"
],
"repository": {
"type": "git",
"url": "https://github.com/sanskarIN/LineLoom.git"
},
"bugs": {
"url": "https://github.com/sanskarIN/LineLoom/issues"
},
"homepage": "https://sanskarin.github.io/LineLoom/",
"activationEvents": [
"onStartupFinished",
"onView:lineloom.dashboard"
],
"contributes": {
"commands": [
{
"command": "lineloom.enable",
"title": "Enable Autocomplete",
"category": "LineLoom"
},
{
"command": "lineloom.disable",
"title": "Disable Autocomplete",
"category": "LineLoom"
},
{
"command": "lineloom.trigger",
"title": "Trigger Completion",
"category": "LineLoom"
},
{
"command": "lineloom.cancel",
"title": "Stop Current Generation",
"category": "LineLoom",
"icon": "$(debug-stop)"
},
{
"command": "lineloom.quickActions",
"title": "Quick Actions",
"category": "LineLoom"
},
{
"command": "lineloom.toggleAutomatic",
"title": "Pause or Resume Automatic Suggestions",
"category": "LineLoom"
},
{
"command": "lineloom.toggleFilePause",
"title": "Pause or Resume Suggestions for This File",
"category": "LineLoom"
},
{
"command": "lineloom.clearFilePauses",
"title": "Resume All Session-Paused Files",
"category": "LineLoom"
},
{
"command": "lineloom.selectModel",
"title": "Select Model",
"category": "LineLoom"
},
{
"command": "lineloom.selectLanguageModel",
"title": "Assign Language Model",
"category": "LineLoom"
},
{
"command": "lineloom.checkActiveFilePrivacy",
"title": "Check Active File Privacy",
"category": "LineLoom"
},
{
"command": "lineloom.selectRelatedFiles",
"title": "Select Related Files for Context",
"category": "LineLoom"
},
{
"command": "lineloom.clearRelatedFiles",
"title": "Clear Selected Related Files",
"category": "LineLoom"
},
{
"command": "lineloom.checkConnection",
"title": "Check Ollama Connection",
"category": "LineLoom"
},
{
"command": "lineloom.checkActiveModel",
"title": "Check Active Editor Model",
"category": "LineLoom"
},
{
"command": "lineloom.openSettings",
"title": "Open Settings",
"category": "LineLoom"
},
{
"command": "lineloom.diagnostics",
"title": "Open Diagnostics",
"category": "LineLoom"
},
{
"command": "lineloom.copySupportSummary",
"title": "Copy Sanitized Support Summary",
"category": "LineLoom"
},
{
"command": "lineloom.resetSessionActivity",
"title": "Reset Session Activity",
"category": "LineLoom"
},
{
"command": "lineloom.resetInferenceTimings",
"title": "Reset Inference Timing Samples",
"category": "LineLoom"
},
{
"command": "lineloom.resetPrivacyTimings",
"title": "Reset Privacy Timing Statistics",
"category": "LineLoom"
},
{
"command": "lineloom.setup",
"title": "Show Setup Guide",
"category": "LineLoom"
},
{
"command": "lineloom.performance",
"title": "Show Completion Performance",
"category": "LineLoom"
},
{
"command": "lineloom.manageLanguages",
"title": "Manage Autocomplete Languages",
"category": "LineLoom"
},
{
"command": "lineloom.refreshSidebar",
"title": "Refresh Sidebar",
"category": "LineLoom",
"icon": "$(refresh)"
},
{
"command": "lineloom.openSidebar",
"title": "Open Control Center",
"category": "LineLoom"
}
],
"configuration": {
"title": "LineLoom",
"properties": {
"lineloom.enabled": {
"type": "boolean",
"default": true,
"description": "Enable inline code completion."
},
"lineloom.enabledLanguages": {
"type": "array",
"items": {
"type": "string",
"enum": [
"python",
"javascript",
"typescript",
"rust",
"kotlin",
"go",
"java",
"c",
"cpp",
"html",
"css",
"lua",
"cuda-cpp",
"csharp",
"swift",
"dart",
"ruby",
"php"
]
},
"default": [
"python",
"javascript",
"typescript",
"rust",
"kotlin",
"go",
"java",
"c",
"cpp"
],
"uniqueItems": true,
"description": "Language IDs permitted for inline suggestions. HTML, CSS, Lua, CUDA C++, C#, Swift, Dart, Ruby, and PHP are experimental and disabled by default; enable them explicitly. Empty array disables every language. JSX/TSX follow JavaScript/TypeScript."
},
"lineloom.autoTrigger": {
"type": "boolean",
"default": true,
"description": "Allow suggestions while typing; manual triggers remain available."
},
"lineloom.minAutoTriggerChars": {
"type": "integer",
"default": 2,
"minimum": 0,
"maximum": 32,
"description": "Minimum non-whitespace characters typed on the current line before an automatic model request; manual completion is always available."
},
"lineloom.model": {
"type": "string",
"default": "qwen2.5-coder:1.5b",
"description": "Installed Ollama model to use. No models are downloaded automatically."
},
"lineloom.endpoint": {
"type": "string",
"default": "http://127.0.0.1:11434",
"description": "Ollama HTTP endpoint. Remote endpoints require explicit separate approval."
},
"lineloom.allowRemoteEndpoints": {
"type": "boolean",
"default": false,
"description": "Permit explicitly approved remote HTTPS inference endpoints. Source code may leave your machine."
},
"lineloom.debounceMs": {
"type": "integer",
"default": 250,
"minimum": 0,
"maximum": 3000
},
"lineloom.timeoutMs": {
"type": "integer",
"default": 12000,
"minimum": 1000,
"maximum": 120000
},
"lineloom.maxContextChars": {
"type": "integer",
"default": 8000,
"minimum": 512,
"maximum": 30000
},
"lineloom.maxOutputTokens": {
"type": "integer",
"default": 128,
"minimum": 16,
"maximum": 512
},
"lineloom.multiLine": {
"type": "boolean",
"default": true
},
"lineloom.maxSuggestionLines": {
"type": "integer",
"default": 8,
"minimum": 1,
"maximum": 20,
"description": "Maximum lines to offer per inline suggestion (single-line mode always uses one line)."
},
"lineloom.temperature": {
"type": "number",
"default": 0.1,
"minimum": 0,
"maximum": 1
},
"lineloom.contextSize": {
"type": "integer",
"default": 4096,
"minimum": 512,
"maximum": 32768
},
"lineloom.keepAlive": {
"type": "string",
"default": "5m"
},
"lineloom.excludedPaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional ignored paths relative to workspace root (gitignore syntax)."
},
"lineloom.crossFileContext": {
"type": "boolean",
"default": false,
"description": "Experimental, disabled by default. Only explicitly selected, same-workspace, privacy-eligible small source files may enter local Ollama prompts; any remote inference requires separate approval. Selection is session-only."
},
"lineloom.performanceDiagnostics": {
"type": "boolean",
"default": false,
"description": "Track privacy-preserving aggregate performance timings in memory."
},
"lineloom.suppressMidTokenAuto": {
"type": "boolean",
"default": true,
"description": "Avoid automatic Ollama requests when the cursor is directly before an existing identifier character. Explicit manual completions bypass this guard."
},
"lineloom.languageModels": {
"type": "object",
"default": {},
"additionalProperties": {
"type": "string"
},
"description": "Optional installed Ollama model tags for each supported language ID. Experimental languages remain disabled until explicitly added to lineloom.enabledLanguages. Unknown mappings are ignored; JSX/TSX follow JavaScript/TypeScript. No model downloads are performed."
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "lineloom",
"title": "LineLoom",
"icon": "assets/icons/sidebar.svg"
}
]
},
"views": {
"lineloom": [
{
"id": "lineloom.dashboard",
"name": "Control Center"
}
]
},
"menus": {
"view/title": [
{
"command": "lineloom.refreshSidebar",
"when": "view == lineloom.dashboard",
"group": "navigation"
}
]
}
},
"scripts": {
"build": "node scripts/build.mjs",
"watch": "node scripts/build.mjs --watch",
"typecheck": "tsc --noEmit",
"lint": "eslint src test",
"format": "prettier --write .",
"format:check": "prettier --check src test scripts package.json",
"test": "vitest run test/unit",
"test:watch": "vitest",
"check": "npm run typecheck && npm run lint && npm run test && npm run test:qa && npm run test:model-eval && npm run test:model-data-audit && npm run test:model-training && npm run test:source-tree && npm run test:packager-security && npm run test:site && npm run test:publisher-packaging && npm run build",
"package": "npm run check && vsce package --no-dependencies",
"package:list": "vsce ls --no-dependencies",
"test:integration": "node scripts/integration.mjs",
"benchmark": "node scripts/benchmark.mjs",
"qa:ollama": "node scripts/qa-local-ollama.mjs",
"test:qa": "node --test scripts/check-qa-local-ollama.mjs scripts/vscode-download-retry.test.mjs",
"package:preview": "npm run check && vsce package --pre-release --no-dependencies",
"test:site": "node --test scripts/verify-site.mjs",
"verify:vsix": "node scripts/verify-vsix.mjs",
"test:install-vsix": "node scripts/smoke-install-vsix.mjs",
"test:upgrade-vsix": "node scripts/smoke-upgrade-vsix.mjs",
"package:stable": "npm run package",
"test:source-tree": "node --test scripts/check-source-tree.mjs && node scripts/verify-source-tree.mjs",
"test:packager-security": "node --test scripts/check-packager-deps.test.mjs && node scripts/check-packager-deps.mjs",
"test:model-eval": "node --test scripts/model-eval.test.mjs scripts/model-eval-stream.test.mjs scripts/model-eval-compare.test.mjs scripts/model-eval-quality.test.mjs scripts/model-eval-runner.test.mjs scripts/model-eval-syntax.test.mjs scripts/model-eval-native-structure.test.mjs scripts/model-eval-native-accounting.test.mjs scripts/model-eval-token-accounting.test.mjs scripts/model-eval-pair.test.mjs",
"model:eval": "node scripts/model-eval.mjs",
"model:eval:dry": "node scripts/model-eval.mjs --dry-run",
"model:eval:pair": "node scripts/model-eval-pair.mjs",
"model:eval:pair:dry": "node scripts/model-eval-pair.mjs --dry-run",
"model:compare": "node scripts/model-eval-compare.mjs",
"model:data-audit": "node scripts/model-data-audit.mjs",
"test:model-data-audit": "node --test scripts/model-data-audit.test.mjs",
"model:adapter:verify": "python model/train/verify_adapter.py",
"model:smoke:compare": "python model/train/compare_smoke.py",
"model:reference:syntax": "python model/train/audit_reference_syntax.py",
"test:model-training": "python -m unittest discover -s model/train -p test_*.py",
"package:publisher-preview": "node scripts/package-publisher.mjs",
"test:publisher-packaging": "node --test scripts/package-publisher.test.mjs scripts/verify-publisher-pair.test.mjs"
},
"dependencies": {
"ignore": "^7.0.14"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^26.6.5",
"@types/vscode": "^1.96.0",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "3.9.2",
"esbuild": "^0.28.0",
"eslint": "^10.14.0",
"prettier": "^3.5.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.72.1",
"vitest": "^5.0.5"
},
"icon": "assets/icons/lineloom.png",
"overrides": {
"@azure/identity": "4.2.1"
}
}