dsh-browser-cdp 1.13.0 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +1238 -1234
  2. package/dsh-plugin.json +206 -206
  3. package/package.json +152 -152
package/dsh-plugin.json CHANGED
@@ -1,206 +1,206 @@
1
- {
2
- "$schema": "https://dsh.community/schemas/dsh-plugin-0.15.json",
3
- "id": "dsh-browser-cdp",
4
- "name": "dsh-browser-cdp",
5
- "version": "1.13.0",
6
- "manifestVersion": "0.15",
7
- "facets": {
8
- "host": {
9
- "entry": "lib/index.js",
10
- "apiVersion": "v1alpha1"
11
- }
12
- },
13
- "requires": {
14
- "contracts": [
15
- {
16
- "apiVersion": "presentation.dsh/v1alpha1",
17
- "kind": "OpenExternal",
18
- "optional": true,
19
- "fallback": "report the URL as text instead of opening it"
20
- },
21
- {
22
- "apiVersion": "presentation.dsh/v1alpha1",
23
- "kind": "Notification",
24
- "optional": true,
25
- "fallback": "log the notice to the browser-status scene"
26
- }
27
- ]
28
- },
29
- "permissions": [],
30
- "contributes": {
31
- "commands": [],
32
- "x-dsh-tui": [
33
- {
34
- "apiVersion": "tui.dsh/v1alpha1",
35
- "kind": "Scene",
36
- "id": "dsh-browser-cdp.watch",
37
- "name": "agent_browser",
38
- "spec": {
39
- "title": "Agent 浏览器",
40
- "titles": {
41
- "en": "Agent Browser",
42
- "zh": "Agent 浏览器"
43
- }
44
- }
45
- },
46
- {
47
- "apiVersion": "tui.dsh/v1alpha1",
48
- "kind": "SettingsSection",
49
- "id": "dsh-browser-cdp.settings",
50
- "name": "dsh_browser_cdp_settings",
51
- "spec": {
52
- "namespace": "dsh-browser-cdp",
53
- "title": "Agent 浏览器",
54
- "titles": {
55
- "en": "Agent Browser",
56
- "zh": "Agent 浏览器"
57
- },
58
- "fields": [
59
- {
60
- "path": [
61
- "toolInjection"
62
- ],
63
- "label": "工具注入模式 (Tool injection mode)",
64
- "kind": "select",
65
- "options": [
66
- {
67
- "value": "lazy",
68
- "label": "lazy"
69
- },
70
- {
71
- "value": "always",
72
- "label": "always"
73
- }
74
- ],
75
- "hint": "lazy(默认)= 只常驻 1 个(bcdp_help,兼作解锁入口与运行态查询),其余首次 bcdp_* 调用后按下方开关注入,闲置回收时收回;always = 挂载即注册全部 35 个(历史行为)。"
76
- },
77
- {
78
- "path": [
79
- "toolBrowse"
80
- ],
81
- "label": "基础操作工具(19 个)",
82
- "kind": "boolean",
83
- "hint": "开(默认)= 浏览器活动后按 act → observe → wait 三波放行;关 = 19 个工具从模型工具列表移除(空间/导航/点击/填写/键鼠/拖拽/截图/读取/指南/预检/等待…)。"
84
- },
85
- {
86
- "path": [
87
- "toolExtended"
88
- ],
89
- "label": "扩展能力工具(8 个)",
90
- "kind": "boolean",
91
- "hint": "开(默认)= 浏览器活动后注册;关 = 8 个工具移除(裸 CDP/HTTP/上传/下载/对话框/验证码/登录落盘/登录导入)。"
92
- },
93
- {
94
- "path": [
95
- "toolEscape"
96
- ],
97
- "label": "逃生舱 script(1 个)",
98
- "kind": "boolean",
99
- "hint": "与其它非 core 档一样等浏览器活动(1.7.0 起不再有「始终可达」豁免):先调 bcdp_status 即可拿到它,一个 heredoc 能做到其余大多数工具的事。关 = 封印。"
100
- },
101
- {
102
- "path": [
103
- "toolJudge"
104
- ],
105
- "label": "评审工具 bcdp_jev_*(5 个)",
106
- "kind": "boolean",
107
- "hint": "开仍需配了 JEV 或 Laya Key:没 Key 的评审工具只能回答「未配置」,依旧不注入。关 = 任何情况下都不注入。"
108
- },
109
- {
110
- "path": [
111
- "sessionScopedPulse"
112
- ],
113
- "label": "按会话隔离解锁 (Per-session unlock)",
114
- "kind": "boolean",
115
- "hint": "开(默认)= 每个会话各自调 bcdp_status 解锁,不会影响到其他会话;关 = 进程级共享(任一会话解锁对所有会话生效,历史行为)。宿主不支持时自动降级为关。"
116
- },
117
- {
118
- "path": [
119
- "isolateSpaces"
120
- ],
121
- "label": "任务空间沙盒隔离 (Space isolation)",
122
- "kind": "boolean",
123
- "hint": "默认关闭:使用磁盘持久化 Profile,任务中登录的账号跨电脑重启永久保留;开启后使用内存临时沙盒隔离,任务结束不落盘。"
124
- },
125
- {
126
- "path": [
127
- "idleTimeoutMin"
128
- ],
129
- "label": "空闲自动回收 (Idle auto-stop, minutes)",
130
- "kind": "number",
131
- "hint": "N 分钟没有任何 bcdp_* 调用后自动关闭后台浏览器进程(0 = 关闭此功能)。下次调用会自动冷启动(约 2-4 秒)。观察窗正在观看不算活动。"
132
- },
133
- {
134
- "path": [
135
- "chromePath"
136
- ],
137
- "label": "Browser binary path",
138
- "kind": "text",
139
- "hint": "Path to the Chrome/Chromium/Edge binary. Empty = auto-detect."
140
- },
141
- {
142
- "path": [
143
- "captureBackend"
144
- ],
145
- "label": "Capture backend",
146
- "kind": "select",
147
- "options": [
148
- {
149
- "value": "auto",
150
- "label": "Auto"
151
- },
152
- {
153
- "value": "cdp",
154
- "label": "CDP"
155
- },
156
- {
157
- "value": "ffmpeg",
158
- "label": "FFmpeg"
159
- }
160
- ]
161
- },
162
- {
163
- "path": [
164
- "streamProfile"
165
- ],
166
- "label": "Quality profile",
167
- "kind": "select",
168
- "options": [
169
- {
170
- "value": "balanced",
171
- "label": "Balanced"
172
- },
173
- {
174
- "value": "quality",
175
- "label": "Quality"
176
- },
177
- {
178
- "value": "speed",
179
- "label": "Speed"
180
- }
181
- ]
182
- },
183
- {
184
- "path": [
185
- "ffmpegPath"
186
- ],
187
- "label": "FFmpeg binary path",
188
- "kind": "text",
189
- "hint": "Path to ffmpeg. Empty = auto-detect / on-demand install."
190
- }
191
- ]
192
- }
193
- }
194
- ]
195
- },
196
- "subscriptions": [],
197
- "license": "MIT",
198
- "source": {
199
- "repository": "https://github.com/drscrewdriver/dsh-browser-cdp"
200
- },
201
- "compat": {
202
- "hosts": [
203
- "dsh-tui"
204
- ]
205
- }
206
- }
1
+ {
2
+ "$schema": "https://dsh.community/schemas/dsh-plugin-0.15.json",
3
+ "id": "dsh-browser-cdp",
4
+ "name": "dsh-browser-cdp",
5
+ "version": "1.13.1",
6
+ "manifestVersion": "0.15",
7
+ "facets": {
8
+ "host": {
9
+ "entry": "lib/index.js",
10
+ "apiVersion": "v1alpha1"
11
+ }
12
+ },
13
+ "requires": {
14
+ "contracts": [
15
+ {
16
+ "apiVersion": "presentation.dsh/v1alpha1",
17
+ "kind": "OpenExternal",
18
+ "optional": true,
19
+ "fallback": "report the URL as text instead of opening it"
20
+ },
21
+ {
22
+ "apiVersion": "presentation.dsh/v1alpha1",
23
+ "kind": "Notification",
24
+ "optional": true,
25
+ "fallback": "log the notice to the browser-status scene"
26
+ }
27
+ ]
28
+ },
29
+ "permissions": [],
30
+ "contributes": {
31
+ "commands": [],
32
+ "x-dsh-tui": [
33
+ {
34
+ "apiVersion": "tui.dsh/v1alpha1",
35
+ "kind": "Scene",
36
+ "id": "dsh-browser-cdp.watch",
37
+ "name": "agent_browser",
38
+ "spec": {
39
+ "title": "Agent 浏览器",
40
+ "titles": {
41
+ "en": "Agent Browser",
42
+ "zh": "Agent 浏览器"
43
+ }
44
+ }
45
+ },
46
+ {
47
+ "apiVersion": "tui.dsh/v1alpha1",
48
+ "kind": "SettingsSection",
49
+ "id": "dsh-browser-cdp.settings",
50
+ "name": "dsh_browser_cdp_settings",
51
+ "spec": {
52
+ "namespace": "dsh-browser-cdp",
53
+ "title": "Agent 浏览器",
54
+ "titles": {
55
+ "en": "Agent Browser",
56
+ "zh": "Agent 浏览器"
57
+ },
58
+ "fields": [
59
+ {
60
+ "path": [
61
+ "toolInjection"
62
+ ],
63
+ "label": "工具注入模式 (Tool injection mode)",
64
+ "kind": "select",
65
+ "options": [
66
+ {
67
+ "value": "lazy",
68
+ "label": "lazy"
69
+ },
70
+ {
71
+ "value": "always",
72
+ "label": "always"
73
+ }
74
+ ],
75
+ "hint": "lazy(默认)= 只常驻 1 个(bcdp_help,兼作解锁入口与运行态查询),其余首次 bcdp_* 调用后按下方开关注入,闲置回收时收回;always = 挂载即注册全部 35 个(历史行为)。"
76
+ },
77
+ {
78
+ "path": [
79
+ "toolBrowse"
80
+ ],
81
+ "label": "基础操作工具(19 个)",
82
+ "kind": "boolean",
83
+ "hint": "开(默认)= 浏览器活动后按 act → observe → wait 三波放行;关 = 19 个工具从模型工具列表移除(空间/导航/点击/填写/键鼠/拖拽/截图/读取/指南/预检/等待…)。"
84
+ },
85
+ {
86
+ "path": [
87
+ "toolExtended"
88
+ ],
89
+ "label": "扩展能力工具(8 个)",
90
+ "kind": "boolean",
91
+ "hint": "开(默认)= 浏览器活动后注册;关 = 8 个工具移除(裸 CDP/HTTP/上传/下载/对话框/验证码/登录落盘/登录导入)。"
92
+ },
93
+ {
94
+ "path": [
95
+ "toolEscape"
96
+ ],
97
+ "label": "逃生舱 script(1 个)",
98
+ "kind": "boolean",
99
+ "hint": "与其它非 core 档一样等浏览器活动(1.7.0 起不再有「始终可达」豁免):先调 bcdp_status 即可拿到它,一个 heredoc 能做到其余大多数工具的事。关 = 封印。"
100
+ },
101
+ {
102
+ "path": [
103
+ "toolJudge"
104
+ ],
105
+ "label": "评审工具 bcdp_jev_*(5 个)",
106
+ "kind": "boolean",
107
+ "hint": "开仍需配了 JEV 或 Laya Key:没 Key 的评审工具只能回答「未配置」,依旧不注入。关 = 任何情况下都不注入。"
108
+ },
109
+ {
110
+ "path": [
111
+ "sessionScopedPulse"
112
+ ],
113
+ "label": "按会话隔离解锁 (Per-session unlock)",
114
+ "kind": "boolean",
115
+ "hint": "开(默认)= 每个会话各自调 bcdp_status 解锁,不会影响到其他会话;关 = 进程级共享(任一会话解锁对所有会话生效,历史行为)。宿主不支持时自动降级为关。"
116
+ },
117
+ {
118
+ "path": [
119
+ "isolateSpaces"
120
+ ],
121
+ "label": "任务空间沙盒隔离 (Space isolation)",
122
+ "kind": "boolean",
123
+ "hint": "默认关闭:使用磁盘持久化 Profile,任务中登录的账号跨电脑重启永久保留;开启后使用内存临时沙盒隔离,任务结束不落盘。"
124
+ },
125
+ {
126
+ "path": [
127
+ "idleTimeoutMin"
128
+ ],
129
+ "label": "空闲自动回收 (Idle auto-stop, minutes)",
130
+ "kind": "number",
131
+ "hint": "N 分钟没有任何 bcdp_* 调用后自动关闭后台浏览器进程(0 = 关闭此功能)。下次调用会自动冷启动(约 2-4 秒)。观察窗正在观看不算活动。"
132
+ },
133
+ {
134
+ "path": [
135
+ "chromePath"
136
+ ],
137
+ "label": "Browser binary path",
138
+ "kind": "text",
139
+ "hint": "Path to the Chrome/Chromium/Edge binary. Empty = auto-detect."
140
+ },
141
+ {
142
+ "path": [
143
+ "captureBackend"
144
+ ],
145
+ "label": "Capture backend",
146
+ "kind": "select",
147
+ "options": [
148
+ {
149
+ "value": "auto",
150
+ "label": "Auto"
151
+ },
152
+ {
153
+ "value": "cdp",
154
+ "label": "CDP"
155
+ },
156
+ {
157
+ "value": "ffmpeg",
158
+ "label": "FFmpeg"
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "path": [
164
+ "streamProfile"
165
+ ],
166
+ "label": "Quality profile",
167
+ "kind": "select",
168
+ "options": [
169
+ {
170
+ "value": "balanced",
171
+ "label": "Balanced"
172
+ },
173
+ {
174
+ "value": "quality",
175
+ "label": "Quality"
176
+ },
177
+ {
178
+ "value": "speed",
179
+ "label": "Speed"
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "path": [
185
+ "ffmpegPath"
186
+ ],
187
+ "label": "FFmpeg binary path",
188
+ "kind": "text",
189
+ "hint": "Path to ffmpeg. Empty = auto-detect / on-demand install."
190
+ }
191
+ ]
192
+ }
193
+ }
194
+ ]
195
+ },
196
+ "subscriptions": [],
197
+ "license": "MIT",
198
+ "source": {
199
+ "repository": "https://github.com/drscrewdriver/dsh-browser-cdp"
200
+ },
201
+ "compat": {
202
+ "hosts": [
203
+ "dsh-tui"
204
+ ]
205
+ }
206
+ }