-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
266 lines (266 loc) · 7.88 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
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
{
"name": "jenkins-log-reader",
"displayName": "AI Log Reader",
"description": "Read jenkins log, analyse with local AI.",
"version": "0.8.21",
"engines": {
"vscode": "^1.96.0"
},
"main": "./out/extension",
"author": "huangjien <[email protected]>",
"license": "MIT",
"icon": "resources/jenkins_reader.png",
"publisher": "huangjien",
"homepage": "https://www.huangjien.com",
"readme": "https://github.com/huangjien/jenkins-log-reader/blob/main/README.md",
"bugs": {
"url": "https://github.com/huangjien/jenkins-log-reader/issues",
"email": "[email protected]"
},
"keywords": [
"Jenkins",
"Job",
"Log",
"AI",
"Local AI model"
],
"preview": false,
"private": false,
"repository": "https://github.com/huangjien/jenkins-log-reader.git",
"categories": [
"Other"
],
"activationEvents": [
"onWebviewPanel:jenkins-log-reader"
],
"contributes": {
"configuration": {
"title": "Jenkins Job Log Reader Configuration",
"properties": {
"jenkins-log-reader.jenkinsServerUrl": {
"type": "string",
"default": "http://jenkins.local",
"order": 0,
"description": "Jenkins Server URL"
},
"jenkins-log-reader.jenkinsUsername": {
"type": "string",
"default": "",
"order": 1,
"description": "Jenkins Username to connect to Jenkins Instance"
},
"jenkins-log-reader.jenkinsToken": {
"type": "string",
"default": "",
"order": 2,
"description": "Jenkins Token to connect to Jenkins Instance"
},
"jenkins-log-reader.aiModelUrl": {
"type": "string",
"title": "AI Model URL",
"default": "http://localhost:11434/v1",
"order": 3,
"description": "Local AI Model URL"
},
"jenkins-log-reader.aiModel": {
"type": "string",
"enum": [
"llama3.2:latest",
"llama3.1:latest",
"qwen2.5:latest",
"qwen2.5:14b",
"gemma2:latest",
"gemma:latest",
"phi3.5:latest",
"phi4:latest",
"deepseek-r1:7b",
"deepseek-r1:8b",
"deepseek-r1:14b",
"mistral-small:latest",
"mistral:7b"
],
"default": "llama3.1:latest",
"title": "AI Model",
"order": 4,
"description": "AI Model"
},
"jenkins-log-reader.aiPrompt": {
"type": "string",
"title": "AI Prompt",
"default": "You are a DevOps engineer, working for Curam SPM. You daily job is analysing the jenkins job error.Please analyse below jenkins job log, figure out the failure reason: \n $PROMPT$ \nThe output should be plain text.",
"order": 5,
"description": "Local AI Prompt, $PROMPT$ will be replaced by log information."
},
"jenkins-log-reader.aiTemperature": {
"type": "number",
"title": "AI Temperature",
"default": 0.6,
"order": 6,
"description": "The more temperature is, the model will use more \"creativity\", and the less temperature instruct model to be \"less creative\", but following your prompt stronger."
},
"jenkins-log-reader.jenkinsLogSize": {
"type": "number",
"title": "Retrieve Log Size",
"default": 5120,
"order": 8,
"description": "Jenkins Log Size for Analysis"
},
"jenkins-log-reader.imageAiModel": {
"type": "string",
"enum": [
"llama3.2-vision"
],
"default": "llama3.2-vision",
"title": "Image AI Model",
"order": 9,
"description": "Image AI Model"
},
"jenkins-log-reader.imagePrompt": {
"type": "string",
"title": "Image Prompt",
"default": "I am a QA, testing a product, which name is Curam. Please help me to check the snapshot, this is a functional testing. Do you see anything wrong or something behave weird in it?",
"order": 10,
"description": "Prompt for Image Analysis"
},
"jenkins-log-reader.videoPrompt": {
"type": "string",
"title": "Video Prompt",
"default": "Find a person with a ball",
"order": 11,
"description": "Prompt for Video Analysis"
}
}
},
"languages": [
{
"id": "groovy",
"extensions": [
".jenkinsfile"
],
"aliases": [
"Jenkins Pipleline Source Code"
]
}
],
"menus": {
"explorer/context": [
{
"when": "resourceExtname =~ /\\.(png|jpg|jpeg|gif|bmp|svg)$/i",
"command": "jenkins-log-reader.readImage",
"group": "navigation"
}
],
"editor/context": [
{
"when": "editorTextFocus && (editorLangId == groovy || editorLangId == jenkinsfile )",
"command": "jenkins-log-reader.formatPipeline",
"group": "navigation"
}
]
},
"commands": [
{
"command": "jenkins-log-reader.readImage",
"title": "Analyse Image"
},
{
"command": "jenkins-log-reader.showResult",
"title": "Show Analysis Result"
},
{
"command": "jenkins-log-reader.formatPipeline",
"title": "Format Jenkins Pipeline"
},
{
"command": "jenkins-log-reader.webView",
"title": "Read Jenkins Log"
}
],
"keybindings": [
{
"command": "jenkins-log-reader.webView",
"key": "ctrl+r",
"mac": "cmd+r"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "jenkins-log-reader_result-view",
"title": "AI Log Reader",
"icon": "resources/reader.svg"
}
]
},
"views": {
"jenkins-log-reader_result-view": [
{
"type": "webview",
"id": "jenkins-log-reader_result-view",
"name": "Analysis",
"contextualTitle": "Result"
},
{
"type": "webview",
"id": "jenkins-log-reader_settings-view",
"name": "Settings",
"contextualTitle": "Settings"
}
]
}
},
"scripts": {
"compile:esbuild": "node ./esbuild.js ",
"compile:css": "npx tailwindcss -i ./src/extension.css -o ./out/extension.css --minify",
"compile": "npm run compile:esbuild && npm run compile:css",
"package": "NODE_ENV=production node ./esbuild.js",
"watch": "node ./esbuild.js && npx tailwindcss -i ./src/extension.css -o ./out/extension.css --minify",
"prettier": "prettier --write .",
"lint": "eslint ./src",
"lint:fix": "eslint --fix ./src",
"update-package-lock": "npm install --package-lock-only",
"tsc": "tsc -p ./",
"prepare": "husky"
},
"devDependencies": {
"@eslint/js": "^9.19.0",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "22.12.0",
"@types/vscode": "^1.96.0",
"@types/vscode-webview": "^1.57.5",
"@vscode/l10n": "^0.0.18",
"esbuild": "^0.24.2",
"esbuild-plugin-copy": "^2.1.1",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"glob": "^11.0.1",
"husky": "^9.1.7",
"normalize.css": "^8.0.1",
"postcss": "^8.5.1",
"prettier": "^3.4.2",
"react": "19.0.0",
"react-dom": "19.0.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.22.0"
},
"dependencies": {
"@tailwindcss/typography": "^0.5.16",
"@vscode/webview-ui-toolkit": "^1.4.0",
"autoprefixer": "^10.4.20",
"axios": "^1.7.9",
"crypto": "^1.0.1",
"marked": "^15.0.6",
"ollama": "^0.5.12",
"openai": "^4.80.1",
"p-limit": "^6.2.0",
"tailwindcss": "^3.4.17"
},
"files": [
"out/**/*",
"LICENSE",
"resources",
"package.json"
]
}