-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
117 lines (117 loc) · 3.1 KB
/
package.json
File metadata and controls
117 lines (117 loc) · 3.1 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
{
"name": "ttab-completion",
"displayName": "TTAB Completion",
"description": "Inline code completion powered by OpenAI-compatible APIs.",
"version": "0.0.1",
"publisher": "LudovicoYIN",
"repository": {
"type": "git",
"url": "https://github.com/LudovicoYIN/ttab.git"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished",
"onView:ttabCompletion.sidebar"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "ttabCompletion",
"title": "TTAB",
"icon": "media/sidebar-icon.svg"
}
]
},
"views": {
"ttabCompletion": [
{
"type": "webview",
"id": "ttabCompletion.sidebar",
"name": "TTAB",
"icon": "media/sidebar-icon.svg"
}
]
},
"configuration": {
"title": "TTAB Completion",
"properties": {
"ttabCompletion.apiKey": {
"type": "string",
"default": "",
"description": "Legacy API key for the selected provider (DashScope or Mistral)."
},
"ttabCompletion.apiKeys": {
"type": "object",
"default": {},
"description": "API keys per provider.",
"properties": {
"qwen": {
"type": "string",
"default": "",
"description": "API key for Qwen (DashScope)."
},
"codestral": {
"type": "string",
"default": "",
"description": "API key for Codestral (Mistral)."
}
}
},
"ttabCompletion.model": {
"type": "string",
"default": "qwen3-coder-flash",
"description": "Model name for completions (Qwen or Codestral)."
},
"ttabCompletion.maxTokens": {
"type": "number",
"default": 128,
"minimum": 100,
"maximum": 500,
"description": "Maximum tokens to generate for a completion."
},
"ttabCompletion.maxPromptTokens": {
"type": "number",
"default": 1024,
"minimum": 128,
"maximum": 8192,
"description": "Maximum tokens to include in the prompt."
},
"ttabCompletion.debounceDelay": {
"type": "number",
"default": 350,
"minimum": 0,
"maximum": 2000,
"description": "Delay (ms) before triggering autocomplete."
},
"ttabCompletion.enabled": {
"type": "boolean",
"default": true,
"description": "Enable inline completion requests."
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"postcompile": "node scripts/copyTreeSitterAssets.cjs",
"watch": "tsc -w -p ./",
"package": "vsce package"
},
"dependencies": {
"tree-sitter-wasms": "^0.1.12",
"web-tree-sitter": "^0.20.8"
},
"devDependencies": {
"@types/node": "^20.11.30",
"@types/vscode": "^1.85.0",
"typescript": "^5.4.5",
"@vscode/vsce": "^2.26.0"
}
}