-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
178 lines (178 loc) · 5.35 KB
/
Copy pathpackage.json
File metadata and controls
178 lines (178 loc) · 5.35 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
{
"name": "dta",
"displayName": "DTA",
"description": "AI-powered code documentation, test generation, and analysis using IBM watsonx orchestrate agent and watsonx.ai",
"version": "0.0.1",
"publisher": "grusty21",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Programming Languages",
"Testing",
"Linters"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "watsonx.login",
"title": "DTA: Login with IBM Cloud"
},
{
"command": "watsonx.logout",
"title": "DTA: Logout"
},
{
"command": "watsonx.generateDocs",
"title": "DTA: Generate Documentation",
"icon": "$(book)"
},
{
"command": "watsonx.generateTests",
"title": "DTA: Generate Tests",
"icon": "$(beaker)"
},
{
"command": "watsonx.analyzeBugs",
"title": "DTA: Analyze Bugs",
"icon": "$(bug)"
}
],
"menus": {
"editor/title": [
{
"command": "watsonx.generateDocs",
"when": "editorLangId =~ /javascript|typescript|python|java|go|cpp|csharp|c|ruby|php|rust|swift|kotlin/",
"group": "navigation"
},
{
"command": "watsonx.generateTests",
"when": "editorLangId =~ /javascript|typescript|python|java|go|cpp|csharp|c|ruby|php|rust|swift|kotlin/",
"group": "navigation"
},
{
"command": "watsonx.analyzeBugs",
"when": "editorLangId =~ /javascript|typescript|python|java|go|cpp|csharp|c|ruby|php|rust|swift|kotlin/",
"group": "navigation"
}
]
},
"configuration": {
"title": "WatsonX",
"properties": {
"watsonx.provider": {
"type": "string",
"enum": [
"watsonx-model",
"orchestrate-agent"
],
"default": "watsonx-model",
"description": "AI provider to use for text generation",
"enumDescriptions": [
"Use watsonx.ai foundation models (Granite Code)",
"Use watsonx Orchestrate deployed agent"
]
},
"watsonx.projectId": {
"type": "string",
"default": "",
"description": "IBM watsonx Project ID (for watsonx-model provider)"
},
"watsonx.region": {
"type": "string",
"enum": [
"us-south",
"eu-de",
"jp-tok"
],
"default": "us-south",
"description": "IBM Cloud region (for watsonx-model provider)"
},
"watsonx.model": {
"type": "string",
"default": "ibm/granite-8b-code-instruct",
"description": "WatsonX model to use (for watsonx-model provider)"
},
"watsonx.orchestrate.instanceUrl": {
"type": "string",
"default": "",
"description": "Orchestrate instance URL (for orchestrate-agent provider)"
},
"watsonx.orchestrate.agentId": {
"type": "string",
"default": "",
"description": "Orchestrate agent ID (for orchestrate-agent provider)"
},
"watsonx.orchestrate.apiKey": {
"type": "string",
"default": "",
"description": "Orchestrate API key (for orchestrate-agent provider, optional if using .env)"
},
"watsonx.bugDisplayMode": {
"type": "string",
"enum": [
"inline",
"panel",
"both"
],
"default": "both",
"description": "How to display detected bugs: inline comments, diagnostics panel, or both",
"enumDescriptions": [
"Add bug comments directly in the code",
"Show bugs in the Problems panel only",
"Show bugs in both inline comments and Problems panel"
]
},
"watsonx.docsOutputMode": {
"type": "string",
"enum": [
"replace",
"newFile"
],
"default": "replace",
"description": "How to output generated documentation",
"enumDescriptions": [
"Replace the original file with documented code (shows diff for review first)",
"Create a new .documented file alongside the original"
]
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^20.11.0",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@vscode/test-electron": "^2.3.9",
"eslint": "^8.56.0",
"glob": "^13.0.6",
"mocha": "^10.8.2",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.90.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"dotenv": "^16.4.1",
"express": "^4.18.2"
}
}