forked from Kalmantic/peakinfer-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
166 lines (166 loc) · 4.37 KB
/
package.json
File metadata and controls
166 lines (166 loc) · 4.37 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
{
"name": "peakinfer",
"displayName": "PeakInfer",
"description": "LLM inference analysis - find cost waste, latency issues, and reliability gaps",
"version": "1.0.0",
"publisher": "kalmantic",
"license": "Apache-2.0",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Linters",
"Programming Languages",
"Other"
],
"keywords": [
"llm",
"ai",
"inference",
"openai",
"anthropic",
"langchain",
"performance",
"optimization"
],
"author": "Kalmantic AI Labs",
"repository": {
"type": "git",
"url": "https://github.com/Kalmantic/peakinfer-vscode"
},
"activationEvents": [
"onStartupFinished",
"onLanguage:typescript",
"onLanguage:javascript",
"onLanguage:python",
"onLanguage:go",
"onLanguage:rust"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "peakinfer.analyzeFile",
"title": "PeakInfer: Analyze Current File"
},
{
"command": "peakinfer.analyzeWorkspace",
"title": "PeakInfer: Analyze Workspace"
},
{
"command": "peakinfer.showResults",
"title": "PeakInfer: Show Results Panel"
},
{
"command": "peakinfer.clearDiagnostics",
"title": "PeakInfer: Clear Diagnostics"
},
{
"command": "peakinfer.setToken",
"title": "PeakInfer: Set PeakInfer Token"
}
],
"configuration": {
"title": "PeakInfer",
"properties": {
"peakinfer.analyzeOnSave": {
"type": "boolean",
"default": false,
"description": "Run analysis automatically when files are saved"
},
"peakinfer.token": {
"type": "string",
"default": "",
"description": "Your PeakInfer API token. Get one at https://peakinfer.com/dashboard. Leave empty to use PEAKINFER_TOKEN env var."
},
"peakinfer.showInlineHints": {
"type": "boolean",
"default": true,
"description": "Show inline hints for inference points"
},
"peakinfer.severityThreshold": {
"type": "string",
"default": "warning",
"enum": ["error", "warning", "info"],
"description": "Minimum severity level to show in diagnostics"
},
"peakinfer.includeBenchmarks": {
"type": "boolean",
"default": true,
"description": "Include InferenceMAX benchmark comparisons"
},
"peakinfer.excludePatterns": {
"type": "array",
"default": [
"**/node_modules/**",
"**/dist/**",
"**/*.test.*",
"**/*.spec.*"
],
"description": "Glob patterns for files to exclude from analysis"
}
}
},
"menus": {
"editor/context": [
{
"command": "peakinfer.analyzeFile",
"when": "resourceLangId =~ /typescript|javascript|python|go|rust/",
"group": "peakinfer"
}
],
"explorer/context": [
{
"command": "peakinfer.analyzeWorkspace",
"when": "explorerResourceIsFolder",
"group": "peakinfer"
}
]
},
"keybindings": [
{
"command": "peakinfer.analyzeFile",
"key": "ctrl+shift+p",
"mac": "cmd+shift+p",
"when": "editorTextFocus"
}
],
"colors": [
{
"id": "peakinfer.criticalBackground",
"description": "Background color for critical inference issues",
"defaults": {
"dark": "#ff000033",
"light": "#ff000022"
}
},
{
"id": "peakinfer.warningBackground",
"description": "Background color for warning inference issues",
"defaults": {
"dark": "#ffaa0033",
"light": "#ffaa0022"
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "node esbuild.js --production",
"compile:dev": "node esbuild.js",
"watch": "node esbuild.js --watch",
"pretest": "npm run compile",
"test": "node ./dist/test/runTest.js",
"package": "vsce package",
"publish": "vsce publish"
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^2.22.0",
"esbuild": "^0.20.0",
"typescript": "^5.3.0"
},
"dependencies": {}
}