-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
172 lines (172 loc) · 4.74 KB
/
Copy pathpackage.json
File metadata and controls
172 lines (172 loc) · 4.74 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
{
"name": "opencode-gui-plugin",
"displayName": "OpenCode 助手 (GUI)",
"description": "OpenCode 的 VS Code 图形界面插件:中文对话、会话管理、模型切换、工具调用可视化,无需终端。",
"version": "1.10.7",
"publisher": "dboycht",
"license": "MIT",
"icon": "media/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/dboycht/opencodeguiplugin"
},
"homepage": "https://github.com/dboycht/opencodeguiplugin#readme",
"bugs": {
"url": "https://github.com/dboycht/opencodeguiplugin/issues"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Chat",
"AI",
"Other"
],
"keywords": [
"opencode",
"ai",
"chat",
"assistant",
"coding",
"agent",
"中文"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "opencode",
"title": "OpenCode 助手",
"icon": "media/activity.svg"
}
]
},
"views": {
"opencode": [
{
"type": "webview",
"id": "opencode.chatView",
"name": "OpenCode 助手"
}
]
},
"commands": [
{
"command": "opencode.open",
"title": "OpenCode: 打开对话面板",
"category": "OpenCode",
"icon": "$(comment-discussion)"
},
{
"command": "opencode.newSession",
"title": "OpenCode: 新建会话",
"category": "OpenCode"
},
{
"command": "opencode.pickSession",
"title": "OpenCode: 切换会话",
"category": "OpenCode"
},
{
"command": "opencode.startServer",
"title": "OpenCode: 启动/重连服务",
"category": "OpenCode"
},
{
"command": "opencode.stopServer",
"title": "OpenCode: 停止服务",
"category": "OpenCode"
},
{
"command": "opencode.attachSelection",
"title": "OpenCode: 将选中代码加入对话",
"category": "OpenCode"
},
{
"command": "opencode.explainSelection",
"title": "OpenCode: 解释选中代码",
"category": "OpenCode"
}
],
"configuration": {
"title": "OpenCode 助手",
"properties": {
"opencode.commandPath": {
"type": "string",
"default": "opencode",
"markdownDescription": "opencode 可执行文件路径或命令名(例如 `opencode` 或绝对路径)。"
},
"opencode.hostname": {
"type": "string",
"default": "127.0.0.1",
"description": "opencode 服务监听的主机名。"
},
"opencode.port": {
"type": "number",
"default": 4096,
"description": "opencode 服务监听的端口。"
},
"opencode.autoStart": {
"type": "boolean",
"default": true,
"description": "扩展激活时自动启动 opencode 服务。"
},
"opencode.connectMode": {
"type": "string",
"enum": [
"auto",
"manual"
],
"default": "auto",
"enumDescriptions": [
"自动:优先连接已运行的服务,否则自行启动 `opencode serve`。",
"手动:仅连接已运行的服务,不自动启动。"
],
"description": "连接模式。"
},
"opencode.defaultModel": {
"type": "string",
"default": "",
"description": "新建会话时默认使用的模型(格式:provider/model),留空则使用 opencode 全局默认。"
},
"opencode.uiLanguage": {
"type": "string",
"enum": [
"zh-CN",
"en"
],
"default": "en",
"description": "界面语言。"
},
"opencode.contextLimit": {
"type": "number",
"default": 0,
"description": "上下文窗口上限(tokens)。0 表示自动使用模型自带上限;若模型未提供(如某些 1month/* 模型),可按此值估算上下文占用百分比。"
}
}
}
},
"scripts": {
"build": "node esbuild.js",
"watch": "node esbuild.js --watch",
"typecheck": "tsc --noEmit",
"package": "node esbuild.js && vsce package",
"vscode:prepublish": "node esbuild.js --production"
},
"dependencies": {
"@preact/signals": "^1.3.0",
"highlight.js": "^11.9.0",
"markdown-it": "^14.1.0",
"preact": "^10.24.0"
},
"devDependencies": {
"@types/markdown-it": "^14.1.2",
"@types/node": "^20.14.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^3.0.0",
"esbuild": "^0.24.0",
"typescript": "^5.5.0"
}
}