-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
127 lines (127 loc) · 3.01 KB
/
package.json
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
{
"name": "localai",
"displayName": "LocalAI",
"description": "Use Ollama or local AI to edit and understand your code",
"version": "0.0.1",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Programming Languages",
"Machine Learning",
"Other"
],
"activationEvents": [
"onCommand:localai.generateCompletion",
"onCommand:localai.selectModel"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "localai-explorer",
"title": "LocalAI",
"icon": "resources/localai.svg"
}
]
},
"views": {
"localai-explorer": [
{
"id": "localai-main",
"name": "LocalAI",
"type": "webview",
"visibility": "visible"
}
]
},
"commands": [
{
"command": "localai.generateCompletion",
"title": "LocalAI: Generate Code Completion"
},
{
"command": "localai.selectModel",
"title": "LocalAI: Select Ollama Model"
},
{
"command": "localai.openSettings",
"title": "LocalAI: Open Settings",
"icon": "$(gear)"
},
{
"command": "localai.openChat",
"title": "LocalAI: Open Chat",
"icon": "$(comment-discussion)"
}
],
"configuration": {
"title": "LocalAI",
"properties": {
"localai.ollamaUrl": {
"type": "string",
"default": "http://localhost:11434",
"description": "URL of the Ollama API server"
},
"localai.model": {
"type": "string",
"default": "codellama",
"description": "The model to use for code generation"
},
"localai.maxTokens": {
"type": "number",
"default": 2048,
"description": "Maximum number of tokens to generate"
},
"localai.temperature": {
"type": "number",
"default": 0.7,
"description": "Temperature for code generation (0.0 to 1.0)"
}
}
},
"css": [
"./resources/localai.css"
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"lint": "eslint src",
"test": "jest",
"test:watch": "jest --watch"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"**/__tests__/**/*.test.ts"
],
"moduleFileExtensions": [
"ts",
"js"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
}
},
"devDependencies": {
"@types/jest": "^29.5.11",
"@types/node": "20.x",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.16.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "^5.7.2"
},
"dependencies": {
"axios": "^1.6.5"
}
}