-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
93 lines (92 loc) · 3.07 KB
/
package.json
File metadata and controls
93 lines (92 loc) · 3.07 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
{
"name": "translationtoolbox",
"displayName": "TranslationToolbox",
"description": "划词翻译:有道短词 + 豆包长句;启动即激活",
"keywords": ["translation", "youdao", "doubao", "LLM"],
"version": "0.8.1",
"publisher": "WLY",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./src/extension.js",
"contributes": {
"keybindings": [
{
"command": "translationtoolbox.translate",
"key": "ctrl+alt+t",
"mac": "cmd+alt+t",
"when": "editorTextFocus"
}
],
"commands": [
{
"command": "translationtoolbox.translate",
"title": "translate"
},
{
"command": "translationtoolbox.testDoubaoConnection",
"title": "TranslationToolbox: 测试豆包连接(API Key 与模型)",
"category": "TranslationToolbox"
}
],
"configuration": {
"title": "translationtoolbox",
"properties": {
"translationtoolbox.DouBaoApiKey": {
"type": "string",
"default": "",
"markdownDescription": "火山方舟 **API Key**(长句翻译必填)。"
},
"translationtoolbox.DouBaoModel": {
"type": "string",
"default": "doubao-1.5-pro-32k-250115",
"markdownDescription": "豆包/方舟 **模型 ID**(可手动填写控制台中的最新模型 ID,须与已开通模型一致)。默认值为示例模型。\n\n[▶ 测试 API Key 与模型连通性](command:translationtoolbox.testDoubaoConnection)"
},
"translationtoolbox.DouBaoSystemPrompt": {
"type": "string",
"default": "你是专业翻译助手,只负责把用户选中的文本译成**简体中文**。\n输出格式:**只输出跟该句/该段的简体中文译文**(可含必要标点、数字、代码与未译专有名词)。\n**严禁**:在冒号后输出英文、日文、韩文、法文等任何非中文的自然语言句子;严禁用多种外语重复翻译同一句并多行罗列;严禁把「示范多语种」当作任务。\n不要输出与翻译无关的前言、说明或结尾套话。",
"markdownDescription": "豆包长句翻译使用的 **system** 提示词,可完全自定义。留空则使用扩展内置默认。",
"editPresentation": "multilineText"
}
}
}
},
"scripts": {
"test": "node ./test/runTest.js",
"lint": "eslint \"src/**/*.js\""
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^20.14.0",
"@types/vscode": "^1.85.0",
"@vscode/test-electron": "^2.4.0",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"typescript": "^5.4.0"
},
"dependencies": {
"axios": "^0.27.2",
"crypto-js": "^4.1.1"
},
"__metadata": {
"id": "e1dc558b-88e8-4dc7-9ff3-f995909485f4",
"publisherId": "3dcd93a7-6859-431a-967b-e175b201363f",
"publisherDisplayName": "WLY"
},
"license": "SEE LICENSE IN LICENSE.txt",
"bugs": {
"url": "https://github.com/wly2014/TranslationToolbox/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/wly2014/TranslationToolbox"
},
"homepage": "https://github.com/wly2014/TranslationToolbox/blob/master/README.md"
}