-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
134 lines (134 loc) · 3.8 KB
/
Copy pathpackage.json
File metadata and controls
134 lines (134 loc) · 3.8 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
{
"name": "parlance",
"displayName": "Parlance",
"description": "Find how scholars phrased it — semantic phrasing search over your Zotero full-text via zsearch.",
"version": "0.0.9",
"publisher": "semantic-craft",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/semantic-craft/parlance.git"
},
"homepage": "https://github.com/semantic-craft/parlance#readme",
"bugs": {
"url": "https://github.com/semantic-craft/parlance/issues"
},
"keywords": [
"zotero",
"semantic search",
"academic writing",
"rephrase",
"chinese",
"gemini"
],
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"main": "./dist/extension.js",
"icon": "media/icon.png",
"contributes": {
"commands": [
{
"command": "parlance.findSimilarPhrasing",
"title": "Parlance: 查找相近表达"
},
{
"command": "parlance.generateSuggestions",
"title": "Parlance: 生成改写建议"
}
],
"menus": {
"editor/context": [
{
"command": "parlance.findSimilarPhrasing",
"when": "editorHasSelection",
"group": "navigation@9"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "parlance",
"title": "Parlance",
"icon": "media/icon.svg"
}
]
},
"views": {
"parlance": [
{
"id": "parlance.results",
"type": "webview",
"name": "相近表达"
}
]
},
"configuration": {
"title": "Parlance",
"properties": {
"parlance.zsearchPath": {
"type": "string",
"default": "zsearch",
"description": "zsearch 可执行路径(若不在 PATH,填 venv 内绝对路径)"
},
"parlance.topK": {
"type": "number",
"default": 10,
"description": "召回的相近表达条数"
},
"parlance.suggestModel": {
"type": "string",
"default": "gemini-3.5-flash",
"description": "生成改写建议的 Gemini 模型(默认 gemini-3.5-flash;繁忙/503 时可改 gemini-2.5-flash / gemini-2.5-pro)"
},
"parlance.suggestMaxPassages": {
"type": "number",
"default": 6,
"description": "喂给模型的检索段落数上限"
},
"parlance.fallbackModel": {
"type": "string",
"default": "qwen3.6-flash",
"description": "Gemini 不可用时回退的 Qwen Token Plan 模型(建议 qwen3.6-flash 或 qwen3.6-plus;需 Token Plan API key)"
},
"parlance.fallbackBaseUrl": {
"type": "string",
"default": "https://token-plan.cn-beijing.maas.aliyuncs.com/apps/anthropic",
"description": "Qwen 文本回退用的 Token Plan Anthropic Messages 端点。此扩展没有 TTS 功能,不使用 DashScope TTS 端点。"
}
}
}
},
"scripts": {
"build": "esbuild src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"watch": "npm run build -- --watch",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"compile:test": "tsc -p tsconfig.test.json",
"pretest:integration": "npm run build && npm run compile:test",
"test:integration": "vscode-test",
"vscode:prepublish": "npm run build"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^20",
"@types/vscode": "^1.90.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"esbuild": "^0.28.1",
"jsdom": "^29.1.1",
"mocha": "^11.7.6",
"typescript": "^5.4.0",
"vitest": "^3.2.6"
},
"dependencies": {
"@google/genai": "^2.7.0"
},
"overrides": {
"serialize-javascript": "^7.0.7"
}
}