-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
438 lines (438 loc) · 13.6 KB
/
package.json
File metadata and controls
438 lines (438 loc) · 13.6 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
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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
{
"name": "able",
"displayName": "Able",
"version": "8.10.0",
"publisher": "tamuratak",
"license": "MIT",
"description": "An extension able to do things",
"homepage": "https://github.com/tamuratak/vscode-able",
"main": "./out/src/main.js",
"repository": {
"type": "git",
"url": "https://github.com/tamuratak/vscode-able.git"
},
"engines": {
"vscode": "^1.108.0"
},
"files": [
"pyodide/pyodide/*.json",
"pyodide/pyodide/*.ts",
"pyodide/pyodide/*.js",
"pyodide/pyodide/*.mjs",
"pyodide/pyodide/*.wasm",
"pyodide/pyodide/micropip*",
"lib",
"node_modules",
"out",
"LICENSE"
],
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
},
"enabledApiProposals": [
"embeddings",
"chatParticipantAdditions",
"chatProvider",
"languageModelSystem",
"languageModelThinkingPart"
],
"contributes": {
"authentication": [
{
"id": "gemini_api",
"label": "Gemini (with Able)"
},
{
"id": "openai_api",
"label": "OpenAI (with Able)"
},
{
"id": "groq_api",
"label": "Groq (with Able)"
}
],
"chatParticipants": [
{
"id": "able.chatParticipant",
"fullName": "Able Chat",
"name": "able",
"description": "Chat histories are ignored, and tool calls are disabled in this mode.",
"isSticky": true,
"commands": [
{
"name": "fluent",
"description": "Make fluent"
},
{
"name": "fluent_ja",
"description": "Make fluent in Japanese"
},
{
"name": "to_en",
"description": "Translate to English"
},
{
"name": "to_ja",
"description": "Translate to Japanese"
}
]
},
{
"id": "able.askParticipant",
"fullName": "Able Ask",
"name": "rem",
"description": "Remember chat histories. Tool calls are disabled in this mode.",
"isSticky": true
},
{
"id": "able.fixMathParticipant",
"fullName": "Able Fix Math",
"name": "fixmath",
"description": "Fix math formatting.",
"isSticky": true
}
],
"languageModelChatProviders": [
{
"vendor": "gemini_with_able",
"displayName": "Gemini with Able"
},
{
"vendor": "geminicli_with_able",
"displayName": "Gemini CLI with Able"
},
{
"vendor": "openai_with_able",
"displayName": "OpenAI with Able"
},
{
"vendor": "groq_with_able",
"displayName": "Groq with Able"
}
],
"languageModelTools": [
{
"name": "able_python",
"tags": [
"Python Execution"
],
"displayName": "Run Python",
"modelDescription": "This tool runs Python code using Pyodide, a WebAssembly-based runtime, and returns the result of the final evaluated expression. It allows an LLM to dynamically evaluate code for debugging, testing, or real-time data processing in a safe, sandboxed environment. This is useful for validating code behavior or computing results during decision-making.",
"inputSchema": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The Python code to run"
},
"reason": {
"type": "string",
"description": "The reason for running the code"
}
},
"required": [
"code"
]
}
},
{
"name": "able_fetch_webpage",
"toolReferenceName": "fetchwebpage",
"tags": [],
"displayName": "Fetch Webpage",
"canBeReferencedInPrompt": true,
"icon": "$(globe)",
"userDescription": "Fetch the main content from a web page. You should include the URL of the page you want to fetch.",
"modelDescription": "Fetches the main content from a web page. This tool is useful for summarizing or analyzing the content of a webpage. You should use this tool when you think the user is looking for information from a specific webpage.",
"inputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL to fetch content from."
}
},
"required": [
"url"
]
}
},
{
"name": "able_fetch_webpage_autoapprove",
"toolReferenceName": "fetchwebpage_autoapprove",
"tags": [],
"displayName": "Fetch Webpage (Auto Approve)",
"canBeReferencedInPrompt": true,
"icon": "$(globe)",
"userDescription": "Fetch the main content from a web page. You should include the URL of the page you want to fetch.",
"modelDescription": "Fetches the main content from a web page. This tool is useful for summarizing or analyzing the content of a webpage. You should use this tool when you think the user is looking for information from a specific webpage.",
"inputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL to fetch content from."
}
},
"required": [
"url"
]
}
},
{
"name": "able_web_search",
"toolReferenceName": "websearch",
"tags": [
"Web Search"
],
"displayName": "Web Search",
"canBeReferencedInPrompt": true,
"userDescription": "Search the web for information.",
"modelDescription": "This tool performs a web search using the provided query and returns the results.",
"icon": "$(globe)",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to search the web for"
}
},
"required": [
"query"
]
}
},
{
"name": "able_run_in_sandbox",
"toolReferenceName": "runInSandbox",
"tags": [
"command"
],
"displayName": "Run in Sandbox",
"canBeReferencedInPrompt": true,
"userDescription": "Run commands",
"modelDescription": "This tool allows you to execute shell commands.\n\nCommand Execution:\n- Supports multi-line commands\n\nDirectory Management:\n- Must use absolute paths to avoid navigation issues.\n\nProgram Execution:\n- Supports Node.js, and other executables.\n- Install dependencies via npm, cargo etc.\n\nOutput Management:\n- Use filters like 'head', 'tail', 'grep' to limit output size\n- For pager commands, disable paging: use 'git --no-pager' or add '| cat'\n\nBest Practices:\n- Be specific with commands to avoid excessive output\n- Use targeted queries instead of broad scans\n- Consider using 'wc -l' to count before listing many items\n- When using a temporary directory, use the $TMPDIR environment variable instead of /tmp",
"icon": "$(terminal)",
"inputSchema": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The command to run."
},
"explanation": {
"type": "string",
"description": "A one-sentence description of what the command does. This will be shown to the user before the command is run."
}
},
"required": [
"command",
"explanation"
]
}
}
],
"commands": [
{
"command": "able.doSomething",
"title": "Able: Do Something"
},
{
"command": "able.closeTerminalAndOpenSideBar",
"title": "Able: Close Terminal and Open Side Bar"
},
{
"command": "able.focusActiveDocument",
"title": "Able: Focus Active Document"
},
{
"command": "able.focusTerminal",
"title": "Able: Focus Terminal"
},
{
"command": "able.killLinesToEnd",
"title": "Able: Kill Lines To End"
},
{
"command": "able.loginGemini",
"title": "Able: Login to Gemini"
},
{
"command": "able.loginOpenAI",
"title": "Able: Login to OpenAI"
},
{
"command": "able.loginGroq",
"title": "Able: Login to Groq"
},
{
"command": "able.openTerminalAndCloseSideBar",
"title": "Able: Open Terminal and Close Side Bar"
},
{
"command": "able.recenter",
"title": "Able: Recenter"
},
{
"command": "able.terminalNew",
"title": "Able: Create New Terminal"
}
],
"keybindings": [
{
"command": "able.closeTerminalAndOpenSideBar",
"key": "Shift+Ctrl+t",
"when": "!sideBarVisible"
},
{
"command": "able.openTerminalAndCloseSideBar",
"key": "Shift+Ctrl+t",
"when": "sideBarVisible"
},
{
"key": "ctrl+t",
"command": "able.terminalNew",
"when": "terminalProcessSupported && !terminalIsOpen"
},
{
"key": "ctrl+t",
"command": "able.focusTerminal",
"when": "!terminalFocus && !terminalEditorFocus && terminalIsOpen"
},
{
"key": "ctrl+t",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminalFocus && !terminalEditorFocus"
},
{
"key": "ctrl+t",
"command": "able.focusActiveDocument",
"when": "terminalEditorFocus"
},
{
"key": "ctrl+l ctrl+l",
"command": "able.recenter"
},
{
"key": "ctrl+k",
"command": "able.killLinesToEnd",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k",
"command": "-deleteAllRight",
"when": "editorTextFocus && !editorReadonly"
}
],
"taskDefinitions": [
{
"type": "abletask"
}
],
"configuration": [
{
"title": "Able",
"properties": {
"able.taskWatcher": {
"type": "array",
"description": "The list of tasks to watch.",
"default": [],
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the task to watch."
},
"globPattern": {
"type": "array",
"description": "The array of the glob pattern.",
"default": [],
"items": {
"type": "string",
"description": "The glob pattern of relative path to match files."
}
}
},
"required": [
"name",
"globPattern"
]
}
},
"able.runInSandbox.allowedFileReadDirectories": {
"type": "array",
"description": "Array of absolute paths that will be allowed for file-read in sandbox-exec. Each entry must be an absolute path.",
"default": [],
"items": {
"type": "string"
},
"scope": "machine"
},
"able.runInSandbox.allowedReadWriteDirectories": {
"type": "array",
"description": "Array of absolute paths that will be allowed for read/write in sandbox-exec in addition to workspace folders. Each entry must be an absolute path.",
"default": [],
"items": {
"type": "string"
},
"scope": "machine"
}
}
}
]
},
"activationEvents": [
"onFileSystem:file"
],
"imports": {
"#pyodide": {
"default": "./pyodide/pyodide/pyodide.js"
},
"#vscode-tree-sitter-wasm": {
"default": "./lib/vscode-tree-sitter-wasm/tree-sitter.js"
}
},
"dependencies": {
"@google/genai": "1.30.0",
"@microsoft/tiktokenizer": "1.0.10",
"@vscode/prompt-tsx": "0.4.0-alpha.5",
"@vscode/tree-sitter-wasm": "0.3.0",
"ajv": "8.18.0",
"openai": "6.2.0",
"playwright": "1.56.1",
"workerpool": "10.0.0"
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@types/mocha": "10.0.10",
"@types/node": "~22.15",
"@types/vscode": "1.108.1",
"@vscode/dts": "0.4.1",
"@vscode/test-electron": "2.5.2",
"@vscode/vsce": "3.7.1",
"eslint": "10.0.0",
"glob": "13.0.0",
"mocha": "11.7.5",
"source-map-support": "0.5.21",
"typescript": "5.9.3",
"typescript-eslint": "8.56.0"
},
"scripts": {
"build": "tsc -p ./",
"clean": "sandbox-exec.js -c -- rm -rf out/ .eslintcache",
"download_pyodide": "node ./dev/download_pyodide.mjs",
"lint": "sandbox-exec.js -c -- eslint --cache .",
"lint:fix": "sandbox-exec.js -c -- eslint --fix --cache .",
"release": "npm run clean && npm run lint && npm run build && vsce package",
"test": "mocha --require source-map-support/register --ui tdd out/test/unittest/**/*.js",
"test:witsandbox": "sandbox-exec.js -c -- zsh -c 'mocha --require source-map-support/register --ui tdd out/test/unittest/**/*.js'",
"test:witsandbox:json": "sandbox-exec.js -c -- zsh -c 'mocha --require source-map-support/register --reporter json --ui tdd out/test/unittest/**/*.js'",
"test:vscode": "node ./out/test/runvscodetest.js",
"watch": "tsc -w -p ./"
}
}