-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpackage.json
More file actions
119 lines (119 loc) · 3.93 KB
/
package.json
File metadata and controls
119 lines (119 loc) · 3.93 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
{
"name": "vscode-grok",
"displayName": "Simply Grok for VSCode",
"description": "Send source files to Grok and a question.",
"version": "0.0.6",
"publisher": "ErikKralj",
"repository": {
"type": "git",
"url": "https://github.com/eriktodx/vscode-grok.git"
},
"icon": "resources/vscode-grok.png",
"engines": {
"vscode": "^1.97.0"
},
"categories": [
"Programming Languages",
"Machine Learning",
"AI",
"Chat"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "Simply Grok for VSCode Settings",
"properties": {
"vscodeGrok.apiKey": {
"type": "string",
"default": "",
"description": "xAI API key for external service integration.",
"scope": "secret"
},
"vscodeGrok.model": {
"type": "string",
"default": "grok-2",
"enum": [
"grok-2-vision",
"grok-2",
"grok-vision-beta",
"grok-beta"
],
"description": "The default xAI model to use with Grok."
},
"vscodeGrok.outputMethod": {
"type": "string",
"enum": [
"tab",
"tabPreview",
"outputChannel"
],
"default": "tab",
"description": "Where to display Grok responses: 'tab' for a new editor tab, 'outputChannel' for the Output panel."
},
"vscodeGrok.showPreview": {
"type": "string",
"enum": [
"always",
"workspace-only",
"never"
],
"default": "workspace-only",
"description": "Controls when a preview of the data being sent to the Grok API is displayed. 'always' shows a preview for all requests, 'workspace-only' shows a preview only for requests involving the entire workspace (useful for reviewing large file sets), and 'never' disables the preview entirely. Defaults to 'workspace-only' to balance usability and efficiency, as workspace requests often involve more data."
}
}
},
"commands": [
{
"command": "vscode-grok.askGrokWorkspace",
"title": "Ask Grok: Workspace",
"description": "Ask Grok a question about the entire workspace."
},
{
"command": "vscode-grok.askGrokTab",
"title": "Ask Grok: Current Tab",
"description": "Ask Grok a question about the contents of the currently active editor tab."
},
{
"command": "vscode-grok.askGrokFunction",
"title": "Ask Grok: Function Under Cursor",
"description": "Ask Grok a question about the function at the cursor position."
},
{
"command": "vscode-grok.askGrokSelection",
"title": "Ask Grok: Selected Text",
"description": "Ask Grok a question about currently selected text in active tab."
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.97.0",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"esbuild": "^0.25.1",
"eslint": "^9.19.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.7.3"
},
"dependencies": {
"axios": "^1.7.9",
"ignore": "^7.0.3"
}
}