dsh-browser-cdp 0.17.4 → 0.17.5
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.
- package/README.md +24 -18
- package/dsh-plugin.json +1 -1
- package/lib/client.js +1937 -256
- package/locale/de.json +6 -0
- package/locale/en.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/it.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/ko.json +6 -0
- package/locale/ru.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +103 -99
package/lib/client.js
CHANGED
|
@@ -1,6 +1,1519 @@
|
|
|
1
1
|
window.__ModuleLoader__.load({ id: "dsh-browser-cdp", factory: (require) => {
|
|
2
2
|
var module = { exports: {} }; var exports = module.exports;
|
|
3
3
|
|
|
4
|
+
//#region src/client/locales.ts
|
|
5
|
+
/**
|
|
6
|
+
* Plugin-owned i18n dictionaries (named-export style).
|
|
7
|
+
*
|
|
8
|
+
* `zh` is the key-set source of truth: every key carries the CURRENT Chinese
|
|
9
|
+
* value shipped in the UI (watch panel strings from the old `watchZh`,
|
|
10
|
+
* settings-card field/group strings from the old inline `FAM_FIELD_GROUPS`
|
|
11
|
+
* en/zh pairs, and the strings that used to be hardcoded). `en` mirrors the
|
|
12
|
+
* former `watchEn` values exactly. Every other language is typed as
|
|
13
|
+
* `Record<CdpKey, string>`, so a missing or extra key is a COMPILE error,
|
|
14
|
+
* not a runtime fallback to the raw key.
|
|
15
|
+
*
|
|
16
|
+
* Registered through the DSH `locale` service in ONE `register(NS, dictionaries)`
|
|
17
|
+
* call (the untyped overload accepts any BCP-47-style id), so all nine
|
|
18
|
+
* languages activate together. Placeholders (`{n}`, `{status}`) are kept
|
|
19
|
+
* verbatim in every dictionary.
|
|
20
|
+
*/
|
|
21
|
+
/** The namespace owned by this plugin. */
|
|
22
|
+
const NS = "dsh-browser-cdp";
|
|
23
|
+
/** Simplified Chinese dictionary — the key-set source of truth. */
|
|
24
|
+
const zh = {
|
|
25
|
+
"title": "CDP 浏览器",
|
|
26
|
+
"titleLive": "CDP 浏览器 · 实时",
|
|
27
|
+
"liveView": "只读观察窗",
|
|
28
|
+
"pinned": "已固定查看",
|
|
29
|
+
"realtime": "正在实时浏览",
|
|
30
|
+
"noScreenshot": "(暂无截图 — about:blank 或浏览器未渲染)",
|
|
31
|
+
"noActivePages": "暂无活跃浏览器页",
|
|
32
|
+
"noActiveHint": "当 agent 开始用 bcdp_* 操作网页时,这里会实时显示",
|
|
33
|
+
"openExternal": "⧉ 打开真实页",
|
|
34
|
+
"raiseWindow": "弹出窗口",
|
|
35
|
+
"raiseWindowHint": "把 agent 浏览器弹出为真实窗口(无头实例会被同 Profile 的有头实例替换,标签页保留)",
|
|
36
|
+
"pickMode": "选择元素",
|
|
37
|
+
"pickModeHint": "在实时页面里点选一个元素,引用到对话",
|
|
38
|
+
"picking": "点选中…请点击页面里的元素",
|
|
39
|
+
"picked": "已捕获元素",
|
|
40
|
+
"pickFailed": "点选失败",
|
|
41
|
+
"pickQuoted": "✓ 已引用到输入框",
|
|
42
|
+
"pickDeliverFailed": "投递失败",
|
|
43
|
+
"noUrl": "无可打开的地址",
|
|
44
|
+
"closeTab": "关闭标签",
|
|
45
|
+
"newTab": "(新标签页)",
|
|
46
|
+
"history": "历史浏览轨迹",
|
|
47
|
+
"historyHide": "收起历史轨迹",
|
|
48
|
+
"historyShow": "历史浏览轨迹",
|
|
49
|
+
"noHistory": "暂无浏览记录",
|
|
50
|
+
"current": "当前",
|
|
51
|
+
"refresh": "刷新",
|
|
52
|
+
"backToLive": "← 返回实时",
|
|
53
|
+
"dragHint": "拖动移动面板",
|
|
54
|
+
"loginTitle": "需要账号登录时,请到桌面上那个 「CDP 浏览器代理」 Chrome 窗口完成登录。",
|
|
55
|
+
"loginBtn": "已登录,保存",
|
|
56
|
+
"loginSaving": "保存中…",
|
|
57
|
+
"loginSaved": "已保存 {n} 条会话",
|
|
58
|
+
"loginNotConnected": "未连接浏览器",
|
|
59
|
+
"loginFailed": "保存失败",
|
|
60
|
+
"loginDismiss": "关闭提示",
|
|
61
|
+
"captchaTitle": "⚠️ 检测到人机验证",
|
|
62
|
+
"captchaHint": "请在桌面那个 「CDP 浏览器代理」 浏览器窗口手动完成验证,agent 会继续。",
|
|
63
|
+
"captchaDismiss": "关闭提示",
|
|
64
|
+
"hintReset": "已复位 · 滚轮滚动页面 · Ctrl+滚轮缩放 · 双击复位",
|
|
65
|
+
"hintPan": "Ctrl+滚轮缩放 · Ctrl+拖动平移 · 双击复位",
|
|
66
|
+
"hintScroll": "Ctrl+拖动平移 · 滚轮滚动页面",
|
|
67
|
+
"hintNotCaptured": "画面未接管 · 本次操作未送达 · 再点一次即可恢复",
|
|
68
|
+
"failed": "失败",
|
|
69
|
+
"stale": "⚠ 未接管",
|
|
70
|
+
"captured": "已接管",
|
|
71
|
+
"fabTitle": "CDP 浏览器实时视图",
|
|
72
|
+
"settingsTitle": "展开设置",
|
|
73
|
+
"settingsHide": "收起设置",
|
|
74
|
+
"famTitle": "CDP 浏览器",
|
|
75
|
+
"famIsolate": "空间隔离",
|
|
76
|
+
"famIsolateDesc": "关 = 持久化配置(重启保留登录态);开 = 每次隔离沙箱",
|
|
77
|
+
"famIdle": "空闲自动停止(分钟,0 = 不停)",
|
|
78
|
+
"famIdleDesc": "超过 N 分钟没有 bcdp_* 调用即停止后台浏览器,下次调用按需重启",
|
|
79
|
+
"titleIdle": "Agent 浏览器",
|
|
80
|
+
"videoUnsupported": "当前浏览器不支持此 H.264 流",
|
|
81
|
+
"videoDisconnected": "视频流已断开",
|
|
82
|
+
"videoConnectFailed": "视频流连接失败 ({status})",
|
|
83
|
+
"gBasic": "基础",
|
|
84
|
+
"gCapture": "截图与推流",
|
|
85
|
+
"gJudge": "评审(JEV / Laya)",
|
|
86
|
+
"cdpMode": "连接模式",
|
|
87
|
+
"cdpModeDesc": "auto = 只用已激活目标;remote = 绝不静默启动本地浏览器;local = 始终本地控制",
|
|
88
|
+
"remoteEnabled": "远程接管总开关",
|
|
89
|
+
"remoteEnabledDesc": "关 = 目标序列保留但不生效;不影响 local 模式",
|
|
90
|
+
"allowLocalFallback": "auto 模式允许本地回退",
|
|
91
|
+
"allowLocalFallbackDesc": "已激活目标不可达时允许自动拉起本地浏览器",
|
|
92
|
+
"chromePath": "Chrome/Chromium 路径",
|
|
93
|
+
"chromePathDesc": "留空 = 自动探测",
|
|
94
|
+
"localHeadless": "本地浏览器无头启动",
|
|
95
|
+
"localHeadlessDesc": "仅作用于本地拉起的浏览器",
|
|
96
|
+
"localUserDataDir": "本地浏览器 Profile 目录",
|
|
97
|
+
"localUserDataDirDesc": "留空 = 托管目录;不要指向日常使用的 Chrome 配置",
|
|
98
|
+
"legacyEgoToolNames": "同时注册旧版 ego_* 工具名",
|
|
99
|
+
"legacyEgoToolNamesDesc": "给 bcdp_* 更名前的脚本用;与上游 ego-browser 插件互斥",
|
|
100
|
+
"captureBackend": "截取后端",
|
|
101
|
+
"captureBackendDesc": "auto / cdp / ffmpeg",
|
|
102
|
+
"streamProfile": "画质档位",
|
|
103
|
+
"streamProfileDesc": "整体画质预设",
|
|
104
|
+
"cdpFps": "CDP 预览帧率",
|
|
105
|
+
"cdpQuality": "CDP JPEG 质量",
|
|
106
|
+
"cdpMaxWidth": "CDP 帧最大宽度",
|
|
107
|
+
"cdpBackstopIntervalMs": "CDP 恢复截图间隔(ms)",
|
|
108
|
+
"ffmpegFps": "FFmpeg 视频帧率",
|
|
109
|
+
"ffmpegMaxWidth": "FFmpeg 最大宽度",
|
|
110
|
+
"ffmpegBitrateKbps": "FFmpeg 码率(kbps)",
|
|
111
|
+
"ffmpegEncoder": "FFmpeg H.264 编码器",
|
|
112
|
+
"ffmpegPath": "FFmpeg 路径",
|
|
113
|
+
"ffmpegPathDesc": "留空 = 探测 PATH 或托管安装",
|
|
114
|
+
"cursorHud": "截图绘制光标 HUD",
|
|
115
|
+
"cursorName": "光标 HUD 名称",
|
|
116
|
+
"githubMirror": "GitHub 下载镜像",
|
|
117
|
+
"githubMirrorDesc": "托管下载时替换 https://github.com 的 HTTPS 前缀",
|
|
118
|
+
"runtimeArgs": "运行时附加参数",
|
|
119
|
+
"runtimeArgsDesc": "追加到托管运行时 argv;下次 bcdp_* 调用生效",
|
|
120
|
+
"chromeArgs": "Chrome 附加启动参数",
|
|
121
|
+
"chromeArgsDesc": "追加到 Chrome 启动 argv;下次冷启动生效",
|
|
122
|
+
"judgePrefer": "评审跳序",
|
|
123
|
+
"judgePreferDesc": "逗号分隔;默认 \"laya,rule\"",
|
|
124
|
+
"jevUrl": "JEV 基础 URL",
|
|
125
|
+
"jevUrlDesc": "留空 = 跳过 jev 跳",
|
|
126
|
+
"jevKey": "JEV Bearer Key",
|
|
127
|
+
"jevKeyDesc": "留空 = 跳过 jev 跳",
|
|
128
|
+
"jevModel": "JEV 模型名",
|
|
129
|
+
"jevChunkSize": "JEV 每轮候选上限",
|
|
130
|
+
"jevMaxImageBytes": "JEV 单帧字节预算(0 = 不限)",
|
|
131
|
+
"jevHistoryLimit": "JEV 近期步数窗口",
|
|
132
|
+
"jevArchiveImage": "归档包内嵌截图",
|
|
133
|
+
"jevEvaluate": "每步动作都过评审",
|
|
134
|
+
"jevEvaluateDesc": "每步多花一次评审调用",
|
|
135
|
+
"jevStepBudget": "单次 bcdp_jev_run 轮数上限",
|
|
136
|
+
"jevWallMs": "单次运行墙钟上限(ms)",
|
|
137
|
+
"layaUrl": "Laya 基础 URL",
|
|
138
|
+
"layaUrlDesc": "sidecar 服务 8000 端口",
|
|
139
|
+
"layaKey": "Laya Key(必填)",
|
|
140
|
+
"layaKeyDesc": "无 Key 必然 401",
|
|
141
|
+
"layaModel": "Laya 模型名",
|
|
142
|
+
"linksTitle": "连接目标(顺序即优先级)",
|
|
143
|
+
"linksEmpty": "暂无目标——用下方表单添加第一个连接目标",
|
|
144
|
+
"linksEnabled": "启用",
|
|
145
|
+
"linksActive": "已激活",
|
|
146
|
+
"linksAddCdp": "添加 CDP 端点",
|
|
147
|
+
"linksAddCli": "添加本机 ego CLI",
|
|
148
|
+
"linksAddCliExists": "本机 ego CLI 连接已存在——仅限本机,一台机器只允许一条",
|
|
149
|
+
"linksEndpoint": "端点",
|
|
150
|
+
"linksEndpointHint": "http(s)://主机:端口 或 ws(s)://…",
|
|
151
|
+
"linksEndpointInvalid": "端点无效,未保存",
|
|
152
|
+
"linksCliPath": "ego CLI 路径",
|
|
153
|
+
"linksCliPathHint": "留空 = 自动检测(PATH → 应用包 → 内置运行时)",
|
|
154
|
+
"linksLabel": "标签",
|
|
155
|
+
"linksRemove": "删除",
|
|
156
|
+
"linksMoveUp": "上移",
|
|
157
|
+
"linksMoveDown": "下移",
|
|
158
|
+
"linksProbe": "探测",
|
|
159
|
+
"linksProbing": "探测中…",
|
|
160
|
+
"linksProbeOk": "可达",
|
|
161
|
+
"linksProbeFail": "不可达",
|
|
162
|
+
"linksLimitReached": "连接序列最多 {n} 条",
|
|
163
|
+
"linksWriteFailed": "保存失败——设置层拒绝了这次写入",
|
|
164
|
+
"linksCliRemoteWarn": "cdpMode=remote 时激活 ego CLI 会报 mode-kind-mismatch",
|
|
165
|
+
"linksCliSdk": "使用内置 harness",
|
|
166
|
+
"linksDisabledHint": "已停用——先勾选启用才能激活",
|
|
167
|
+
"linksActivate": "激活"
|
|
168
|
+
};
|
|
169
|
+
/** English dictionary, checked complete against the zh key set. */
|
|
170
|
+
const en = {
|
|
171
|
+
"title": "Agent Browser",
|
|
172
|
+
"titleLive": "Agent Browser · Live",
|
|
173
|
+
"liveView": "Live view",
|
|
174
|
+
"pinned": "Pinned",
|
|
175
|
+
"realtime": "Live",
|
|
176
|
+
"noScreenshot": "(no screenshot — about:blank or browser not rendering)",
|
|
177
|
+
"noActivePages": "No active browser pages",
|
|
178
|
+
"noActiveHint": "Pages will appear here as the agent browses with bcdp_*",
|
|
179
|
+
"openExternal": "Open real page",
|
|
180
|
+
"raiseWindow": "Pop out window",
|
|
181
|
+
"raiseWindowHint": "Raise the agent browser as a real window (a headless instance is replaced by a visible one on the same profile)",
|
|
182
|
+
"pickMode": "Pick element",
|
|
183
|
+
"pickModeHint": "Click an element in the live page to quote it into the conversation",
|
|
184
|
+
"picking": "Picking… click an element in the page",
|
|
185
|
+
"picked": "Element captured",
|
|
186
|
+
"pickFailed": "Pick failed",
|
|
187
|
+
"pickQuoted": "✓ Quoted to composer",
|
|
188
|
+
"pickDeliverFailed": "Delivery failed",
|
|
189
|
+
"noUrl": "No URL to open",
|
|
190
|
+
"closeTab": "Close tab",
|
|
191
|
+
"newTab": "(new tab)",
|
|
192
|
+
"history": "Browsing history",
|
|
193
|
+
"historyHide": "Hide history",
|
|
194
|
+
"historyShow": "Show history",
|
|
195
|
+
"noHistory": "No browsing history",
|
|
196
|
+
"current": "current",
|
|
197
|
+
"refresh": "Refresh",
|
|
198
|
+
"backToLive": "← Back to live",
|
|
199
|
+
"dragHint": "Drag to move panel",
|
|
200
|
+
"loginTitle": "Log in via the CDP browser bridge window on your desktop",
|
|
201
|
+
"loginBtn": "Logged in, save",
|
|
202
|
+
"loginSaving": "Saving…",
|
|
203
|
+
"loginSaved": "Saved {n} sessions",
|
|
204
|
+
"loginNotConnected": "Browser not connected",
|
|
205
|
+
"loginFailed": "Save failed",
|
|
206
|
+
"loginDismiss": "Dismiss",
|
|
207
|
+
"captchaTitle": "⚠️ CAPTCHA detected",
|
|
208
|
+
"captchaHint": "Complete verification in the CDP browser bridge window; the agent will continue.",
|
|
209
|
+
"captchaDismiss": "Dismiss",
|
|
210
|
+
"hintReset": "Reset · scroll to pan · Ctrl+scroll to zoom · double-click to reset",
|
|
211
|
+
"hintPan": "Ctrl+scroll to zoom · Ctrl+drag to pan · double-click to reset",
|
|
212
|
+
"hintScroll": "Ctrl+drag to pan · scroll to pan",
|
|
213
|
+
"hintNotCaptured": "Not captured · operation not delivered · click again to recover",
|
|
214
|
+
"failed": "failed",
|
|
215
|
+
"stale": "⚠ Not captured",
|
|
216
|
+
"captured": "Captured",
|
|
217
|
+
"fabTitle": "Agent Browser live view",
|
|
218
|
+
"settingsTitle": "Show settings",
|
|
219
|
+
"settingsHide": "Hide settings",
|
|
220
|
+
"famTitle": "CDP Browser",
|
|
221
|
+
"famIsolate": "Space isolation",
|
|
222
|
+
"famIsolateDesc": "Off = persistent profile (logins survive restarts); on = isolated sandbox",
|
|
223
|
+
"famIdle": "Auto-stop idle browser (minutes, 0 = off)",
|
|
224
|
+
"famIdleDesc": "Stops the backing browser after N minutes without a bcdp_* call; relaunches on demand",
|
|
225
|
+
"titleIdle": "Agent Browser",
|
|
226
|
+
"videoUnsupported": "This browser does not support this H.264 stream",
|
|
227
|
+
"videoDisconnected": "Video stream disconnected",
|
|
228
|
+
"videoConnectFailed": "Video stream connection failed ({status})",
|
|
229
|
+
"gBasic": "Basics",
|
|
230
|
+
"gCapture": "Capture & streaming",
|
|
231
|
+
"gJudge": "Judgement (JEV / Laya)",
|
|
232
|
+
"cdpMode": "Connection mode",
|
|
233
|
+
"cdpModeDesc": "auto = activated target only; remote = never start a local browser; local = always local control",
|
|
234
|
+
"remoteEnabled": "Remote attach master switch",
|
|
235
|
+
"remoteEnabledDesc": "Off = the target sequence is preserved but inert; does not affect local mode",
|
|
236
|
+
"allowLocalFallback": "Allow local fallback in auto mode",
|
|
237
|
+
"allowLocalFallbackDesc": "auto may launch a local browser when the activated target is unreachable",
|
|
238
|
+
"chromePath": "Chrome/Chromium path",
|
|
239
|
+
"chromePathDesc": "Empty = auto-detect",
|
|
240
|
+
"localHeadless": "Launch local browser headless",
|
|
241
|
+
"localHeadlessDesc": "Applies to the locally launched browser",
|
|
242
|
+
"localUserDataDir": "Local profile dir",
|
|
243
|
+
"localUserDataDirDesc": "Empty = managed dir; never point at your daily Chrome profile",
|
|
244
|
+
"legacyEgoToolNames": "Also register legacy ego_* tool names",
|
|
245
|
+
"legacyEgoToolNamesDesc": "For scripts written before the bcdp_* rename; conflicts with the upstream ego-browser plugin",
|
|
246
|
+
"captureBackend": "Capture backend",
|
|
247
|
+
"captureBackendDesc": "auto, cdp, or ffmpeg",
|
|
248
|
+
"streamProfile": "Capture quality profile",
|
|
249
|
+
"streamProfileDesc": "Overall quality preset",
|
|
250
|
+
"cdpFps": "CDP preview FPS",
|
|
251
|
+
"cdpQuality": "CDP JPEG quality",
|
|
252
|
+
"cdpMaxWidth": "CDP frame max width",
|
|
253
|
+
"cdpBackstopIntervalMs": "CDP recovery interval (ms)",
|
|
254
|
+
"ffmpegFps": "FFmpeg video FPS",
|
|
255
|
+
"ffmpegMaxWidth": "FFmpeg max width",
|
|
256
|
+
"ffmpegBitrateKbps": "FFmpeg bitrate (kbps)",
|
|
257
|
+
"ffmpegEncoder": "FFmpeg H.264 encoder",
|
|
258
|
+
"ffmpegPath": "FFmpeg path",
|
|
259
|
+
"ffmpegPathDesc": "Empty = detect PATH or managed install",
|
|
260
|
+
"cursorHud": "Draw cursor HUD into screenshots",
|
|
261
|
+
"cursorName": "Cursor HUD label",
|
|
262
|
+
"githubMirror": "GitHub download mirror",
|
|
263
|
+
"githubMirrorDesc": "HTTPS base replacing https://github.com for managed downloads",
|
|
264
|
+
"runtimeArgs": "Extra runtime args",
|
|
265
|
+
"runtimeArgsDesc": "Appended to the vendored runtime argv; next bcdp_* call",
|
|
266
|
+
"chromeArgs": "Extra Chrome args",
|
|
267
|
+
"chromeArgsDesc": "Appended to the Chrome launch argv; next cold start",
|
|
268
|
+
"judgePrefer": "Judge hop order",
|
|
269
|
+
"judgePreferDesc": "Comma separated; defaults to \"laya,rule\"",
|
|
270
|
+
"jevUrl": "JEV base URL",
|
|
271
|
+
"jevUrlDesc": "Leave empty to skip the jev hop",
|
|
272
|
+
"jevKey": "JEV bearer key",
|
|
273
|
+
"jevKeyDesc": "Empty = the jev hop is skipped",
|
|
274
|
+
"jevModel": "JEV model",
|
|
275
|
+
"jevChunkSize": "JEV candidates per round",
|
|
276
|
+
"jevMaxImageBytes": "JEV frame byte budget (0 = unbounded)",
|
|
277
|
+
"jevHistoryLimit": "JEV recent-step window",
|
|
278
|
+
"jevArchiveImage": "Embed screenshot in archived bundle",
|
|
279
|
+
"jevEvaluate": "Evaluate every action with the judge",
|
|
280
|
+
"jevEvaluateDesc": "Costs one judgement call per action",
|
|
281
|
+
"jevStepBudget": "Rounds per bcdp_jev_run",
|
|
282
|
+
"jevWallMs": "Wall-clock ceiling per run (ms)",
|
|
283
|
+
"layaUrl": "Laya base URL",
|
|
284
|
+
"layaUrlDesc": "The sidecar serves 8000",
|
|
285
|
+
"layaKey": "Laya key (required)",
|
|
286
|
+
"layaKeyDesc": "Keyless calls are a guaranteed 401",
|
|
287
|
+
"layaModel": "Laya model",
|
|
288
|
+
"linksTitle": "Connection targets (order = priority)",
|
|
289
|
+
"linksEmpty": "No targets yet — add the first one with the form below",
|
|
290
|
+
"linksEnabled": "Enabled",
|
|
291
|
+
"linksActive": "active",
|
|
292
|
+
"linksAddCdp": "Add CDP endpoint",
|
|
293
|
+
"linksAddCli": "Add local ego CLI",
|
|
294
|
+
"linksAddCliExists": "The local ego CLI link already exists — local-only, one per machine",
|
|
295
|
+
"linksEndpoint": "Endpoint",
|
|
296
|
+
"linksEndpointHint": "http(s)://host:port or ws(s)://…",
|
|
297
|
+
"linksEndpointInvalid": "Invalid endpoint — not saved",
|
|
298
|
+
"linksCliPath": "ego CLI path",
|
|
299
|
+
"linksCliPathHint": "Empty = auto-detect (PATH → app bundle → bundled runtime)",
|
|
300
|
+
"linksLabel": "Label",
|
|
301
|
+
"linksRemove": "Remove",
|
|
302
|
+
"linksMoveUp": "Move up",
|
|
303
|
+
"linksMoveDown": "Move down",
|
|
304
|
+
"linksProbe": "Probe",
|
|
305
|
+
"linksProbing": "Probing…",
|
|
306
|
+
"linksProbeOk": "reachable",
|
|
307
|
+
"linksProbeFail": "unreachable",
|
|
308
|
+
"linksLimitReached": "The sequence is capped at {n} entries",
|
|
309
|
+
"linksWriteFailed": "Save failed — the settings layer rejected this write",
|
|
310
|
+
"linksCliRemoteWarn": "Activating an ego CLI link under cdpMode=remote fails with mode-kind-mismatch",
|
|
311
|
+
"linksCliSdk": "Use bundled harness",
|
|
312
|
+
"linksDisabledHint": "Disabled — enable it before activating",
|
|
313
|
+
"linksActivate": "activate"
|
|
314
|
+
};
|
|
315
|
+
/** Japanese dictionary, checked complete against the zh key set. */
|
|
316
|
+
const ja = {
|
|
317
|
+
"title": "CDP ブラウザ",
|
|
318
|
+
"titleLive": "CDP ブラウザ · ライブ",
|
|
319
|
+
"liveView": "読み取り専用の観覧ウィンドウ",
|
|
320
|
+
"pinned": "固定表示中",
|
|
321
|
+
"realtime": "ライブ閲覧中",
|
|
322
|
+
"noScreenshot": "(スクリーンショットなし — about:blank またはブラウザが描画していません)",
|
|
323
|
+
"noActivePages": "アクティブなブラウザページはありません",
|
|
324
|
+
"noActiveHint": "エージェントが bcdp_* でページを操作し始めると、ここにライブ表示されます",
|
|
325
|
+
"openExternal": "実際のページを開く",
|
|
326
|
+
"raiseWindow": "ウィンドウとして表示",
|
|
327
|
+
"raiseWindowHint": "エージェントのブラウザを実際のウィンドウとして前面化(ヘッドレスインスタンスは同一 Profile の可視インスタンスに置き換わり、タブは保持されます)",
|
|
328
|
+
"pickMode": "要素を選択",
|
|
329
|
+
"pickModeHint": "ライブページ内の要素をクリックして会話に引用します",
|
|
330
|
+
"picking": "選択中…ページ内の要素をクリックしてください",
|
|
331
|
+
"picked": "要素をキャプチャしました",
|
|
332
|
+
"pickFailed": "選択に失敗しました",
|
|
333
|
+
"pickQuoted": "✓ 入力欄に引用しました",
|
|
334
|
+
"pickDeliverFailed": "配送に失敗しました",
|
|
335
|
+
"noUrl": "開ける URL がありません",
|
|
336
|
+
"closeTab": "タブを閉じる",
|
|
337
|
+
"newTab": "(新規タブ)",
|
|
338
|
+
"history": "閲覧履歴",
|
|
339
|
+
"historyHide": "履歴を閉じる",
|
|
340
|
+
"historyShow": "閲覧履歴",
|
|
341
|
+
"noHistory": "閲覧履歴はありません",
|
|
342
|
+
"current": "現在",
|
|
343
|
+
"refresh": "更新",
|
|
344
|
+
"backToLive": "← ライブに戻る",
|
|
345
|
+
"dragHint": "ドラッグでパネルを移動",
|
|
346
|
+
"loginTitle": "ログインが必要な場合は、デスクトップ上の「CDP ブラウザブリッジ」Chrome ウィンドウでログインしてください。",
|
|
347
|
+
"loginBtn": "ログイン済み、保存",
|
|
348
|
+
"loginSaving": "保存中…",
|
|
349
|
+
"loginSaved": "{n} 件のセッションを保存しました",
|
|
350
|
+
"loginNotConnected": "ブラウザに接続されていません",
|
|
351
|
+
"loginFailed": "保存に失敗しました",
|
|
352
|
+
"loginDismiss": "通知を閉じる",
|
|
353
|
+
"captchaTitle": "⚠️ 人間認証を検出しました",
|
|
354
|
+
"captchaHint": "デスクトップの「CDP ブラウザブリッジ」ウィンドウで認証を手動で完了してください。エージェントは継続します。",
|
|
355
|
+
"captchaDismiss": "通知を閉じる",
|
|
356
|
+
"hintReset": "リセット済み · ホイールでスクロール · Ctrl+ホイールでズーム · ダブルクリックでリセット",
|
|
357
|
+
"hintPan": "Ctrl+ホイールでズーム · Ctrl+ドラッグで移動 · ダブルクリックでリセット",
|
|
358
|
+
"hintScroll": "Ctrl+ドラッグで移動 · ホイールでスクロール",
|
|
359
|
+
"hintNotCaptured": "画面未キャプチャ · 今回の操作は届いていません · もう一度クリックすると復旧します",
|
|
360
|
+
"failed": "失敗",
|
|
361
|
+
"stale": "⚠ 未キャプチャ",
|
|
362
|
+
"captured": "キャプチャ済み",
|
|
363
|
+
"fabTitle": "CDP ブラウザライブビュー",
|
|
364
|
+
"settingsTitle": "設定を表示",
|
|
365
|
+
"settingsHide": "設定を隠す",
|
|
366
|
+
"famTitle": "CDP ブラウザ",
|
|
367
|
+
"famIsolate": "スペース分離",
|
|
368
|
+
"famIsolateDesc": "オフ = 永続 Profile(ログインは再起動後も保持);オン = 毎回分離サンドボックス",
|
|
369
|
+
"famIdle": "アイドル時の自動停止(分、0 = 無効)",
|
|
370
|
+
"famIdleDesc": "N 分間 bcdp_* の呼び出しがない場合、バックグラウンドのブラウザを停止し、次の呼び出し時に必要に応じて再起動します",
|
|
371
|
+
"titleIdle": "Agent ブラウザ",
|
|
372
|
+
"videoUnsupported": "このブラウザはこの H.264 ストリームに対応していません",
|
|
373
|
+
"videoDisconnected": "ビデオストリームが切断されました",
|
|
374
|
+
"videoConnectFailed": "ビデオストリームの接続に失敗しました ({status})",
|
|
375
|
+
"gBasic": "基本",
|
|
376
|
+
"gCapture": "キャプチャと配信",
|
|
377
|
+
"gJudge": "評価(JEV / Laya)",
|
|
378
|
+
"cdpMode": "接続モード",
|
|
379
|
+
"cdpModeDesc": "auto = アクティブなターゲットのみ使用;remote = ローカルブラウザを勝手に起動しない;local = 常にローカル制御",
|
|
380
|
+
"remoteEnabled": "リモート接続のマスタースイッチ",
|
|
381
|
+
"remoteEnabledDesc": "オフ = ターゲット列は保持されますが無効;local モードには影響しません",
|
|
382
|
+
"allowLocalFallback": "auto モードでローカルフォールバックを許可",
|
|
383
|
+
"allowLocalFallbackDesc": "アクティブなターゲットに到達できない場合、ローカルブラウザの自動起動を許可します",
|
|
384
|
+
"chromePath": "Chrome/Chromium パス",
|
|
385
|
+
"chromePathDesc": "空 = 自動検出",
|
|
386
|
+
"localHeadless": "ローカルブラウザをヘッドレスで起動",
|
|
387
|
+
"localHeadlessDesc": "ローカルで起動するブラウザのみに適用",
|
|
388
|
+
"localUserDataDir": "ローカルブラウザの Profile ディレクトリ",
|
|
389
|
+
"localUserDataDirDesc": "空 = 管理されたディレクトリ;普段使う Chrome 設定を指定しないでください",
|
|
390
|
+
"legacyEgoToolNames": "旧 ego_* ツール名も登録",
|
|
391
|
+
"legacyEgoToolNamesDesc": "bcdp_* 改称前のスクリプト用;上流の ego-browser プラグインと排他",
|
|
392
|
+
"captureBackend": "キャプチャバックエンド",
|
|
393
|
+
"captureBackendDesc": "auto / cdp / ffmpeg",
|
|
394
|
+
"streamProfile": "画質プロファイル",
|
|
395
|
+
"streamProfileDesc": "全体の画質プリセット",
|
|
396
|
+
"cdpFps": "CDP プレビュー FPS",
|
|
397
|
+
"cdpQuality": "CDP JPEG 品質",
|
|
398
|
+
"cdpMaxWidth": "CDP フレームの最大幅",
|
|
399
|
+
"cdpBackstopIntervalMs": "CDP 復旧スクリーンショットの間隔(ms)",
|
|
400
|
+
"ffmpegFps": "FFmpeg 動画 FPS",
|
|
401
|
+
"ffmpegMaxWidth": "FFmpeg 最大幅",
|
|
402
|
+
"ffmpegBitrateKbps": "FFmpeg ビットレート(kbps)",
|
|
403
|
+
"ffmpegEncoder": "FFmpeg H.264 エンコーダー",
|
|
404
|
+
"ffmpegPath": "FFmpeg パス",
|
|
405
|
+
"ffmpegPathDesc": "空 = PATH または管理されたインストールを検出",
|
|
406
|
+
"cursorHud": "スクリーンショットにカーソル HUD を描画",
|
|
407
|
+
"cursorName": "カーソル HUD のラベル",
|
|
408
|
+
"githubMirror": "GitHub ダウンロードミラー",
|
|
409
|
+
"githubMirrorDesc": "管理されたダウンロードで https://github.com を置き換える HTTPS プレフィックス",
|
|
410
|
+
"runtimeArgs": "ランタイム追加引数",
|
|
411
|
+
"runtimeArgsDesc": "管理されたランタイムの argv に追加;次の bcdp_* 呼び出しで有効",
|
|
412
|
+
"chromeArgs": "Chrome 追加起動引数",
|
|
413
|
+
"chromeArgsDesc": "Chrome 起動の argv に追加;次のコールドスタートで有効",
|
|
414
|
+
"judgePrefer": "評価ホップの順序",
|
|
415
|
+
"judgePreferDesc": "カンマ区切り;デフォルトは \"laya,rule\"",
|
|
416
|
+
"jevUrl": "JEV ベース URL",
|
|
417
|
+
"jevUrlDesc": "空 = jev ホップをスキップ",
|
|
418
|
+
"jevKey": "JEV Bearer Key",
|
|
419
|
+
"jevKeyDesc": "空 = jev ホップをスキップ",
|
|
420
|
+
"jevModel": "JEV モデル名",
|
|
421
|
+
"jevChunkSize": "JEV の 1 ラウンドあたりの候補上限",
|
|
422
|
+
"jevMaxImageBytes": "JEV の 1 フレームのバイト予算(0 = 無制限)",
|
|
423
|
+
"jevHistoryLimit": "JEV の直前ステップのウィンドウ",
|
|
424
|
+
"jevArchiveImage": "アーカイブにスクリーンショットを埋め込み",
|
|
425
|
+
"jevEvaluate": "各アクションを評価器でチェック",
|
|
426
|
+
"jevEvaluateDesc": "1 アクションごとに評価呼び出しが 1 回増加します",
|
|
427
|
+
"jevStepBudget": "bcdp_jev_run 1 回あたりのラウンド上限",
|
|
428
|
+
"jevWallMs": "1 回の実行のウォールクロック上限(ms)",
|
|
429
|
+
"layaUrl": "Laya ベース URL",
|
|
430
|
+
"layaUrlDesc": "sidecar はポート 8000 で提供しています",
|
|
431
|
+
"layaKey": "Laya Key(必須)",
|
|
432
|
+
"layaKeyDesc": "Key なしでは必ず 401 になります",
|
|
433
|
+
"layaModel": "Laya モデル名",
|
|
434
|
+
"linksTitle": "接続ターゲット(順序 = 優先度)",
|
|
435
|
+
"linksEmpty": "ターゲットなし — 下のフォームから最初の接続先を追加してください",
|
|
436
|
+
"linksEnabled": "有効",
|
|
437
|
+
"linksActive": "アクティブ",
|
|
438
|
+
"linksAddCdp": "CDP エンドポイントを追加",
|
|
439
|
+
"linksAddCli": "ローカル ego CLI を追加",
|
|
440
|
+
"linksAddCliExists": "ローカル ego CLI 接続は既に存在します — 1 台につき 1 件のみ",
|
|
441
|
+
"linksEndpoint": "エンドポイント",
|
|
442
|
+
"linksEndpointHint": "http(s)://ホスト:ポート または ws(s)://…",
|
|
443
|
+
"linksEndpointInvalid": "エンドポイントが無効 — 保存していません",
|
|
444
|
+
"linksCliPath": "ego CLI パス",
|
|
445
|
+
"linksCliPathHint": "空欄 = 自動検出(PATH → アプリバンドル → 同梱ランタイム)",
|
|
446
|
+
"linksLabel": "ラベル",
|
|
447
|
+
"linksRemove": "削除",
|
|
448
|
+
"linksMoveUp": "上へ",
|
|
449
|
+
"linksMoveDown": "下へ",
|
|
450
|
+
"linksProbe": "プローブ",
|
|
451
|
+
"linksProbing": "プローブ中…",
|
|
452
|
+
"linksProbeOk": "到達可能",
|
|
453
|
+
"linksProbeFail": "到達不可",
|
|
454
|
+
"linksLimitReached": "接続列は最大 {n} 件です",
|
|
455
|
+
"linksWriteFailed": "保存に失敗 — 設定層に書き込みを拒否されました",
|
|
456
|
+
"linksCliRemoteWarn": "cdpMode=remote で ego CLI をアクティブ化すると mode-kind-mismatch になります",
|
|
457
|
+
"linksCliSdk": "同梱ハーネスを使う",
|
|
458
|
+
"linksDisabledHint": "無効 — アクティブ化する前に有効化してください",
|
|
459
|
+
"linksActivate": "アクティブ化"
|
|
460
|
+
};
|
|
461
|
+
/** Korean dictionary, checked complete against the zh key set. */
|
|
462
|
+
const ko = {
|
|
463
|
+
"title": "CDP 브라우저",
|
|
464
|
+
"titleLive": "CDP 브라우저 · 실시간",
|
|
465
|
+
"liveView": "읽기 전용 관찰 창",
|
|
466
|
+
"pinned": "고정 보기 중",
|
|
467
|
+
"realtime": "실시간 탐색 중",
|
|
468
|
+
"noScreenshot": "(스크린샷 없음 — about:blank 또는 브라우저가 렌더링하지 않음)",
|
|
469
|
+
"noActivePages": "활성 브라우저 페이지 없음",
|
|
470
|
+
"noActiveHint": "agent가 bcdp_*로 웹 페이지를 조작하기 시작하면 여기에 실시간으로 표시됩니다",
|
|
471
|
+
"openExternal": "실제 페이지 열기",
|
|
472
|
+
"raiseWindow": "창으로 띄우기",
|
|
473
|
+
"raiseWindowHint": "agent 브라우저를 실제 창으로 띄우기(헤드리스 인스턴스는 동일한 Profile의 보이는 인스턴스로 교체되며 탭은 유지됩니다)",
|
|
474
|
+
"pickMode": "요소 선택",
|
|
475
|
+
"pickModeHint": "실시간 페이지의 요소를 클릭하여 대화에 인용합니다",
|
|
476
|
+
"picking": "선택 중… 페이지의 요소를 클릭하세요",
|
|
477
|
+
"picked": "요소 캡처됨",
|
|
478
|
+
"pickFailed": "선택 실패",
|
|
479
|
+
"pickQuoted": "✓ 입력창에 인용됨",
|
|
480
|
+
"pickDeliverFailed": "전달 실패",
|
|
481
|
+
"noUrl": "열 수 있는 주소가 없습니다",
|
|
482
|
+
"closeTab": "탭 닫기",
|
|
483
|
+
"newTab": "(새 탭)",
|
|
484
|
+
"history": "탐색 기록",
|
|
485
|
+
"historyHide": "기록 접기",
|
|
486
|
+
"historyShow": "탐색 기록",
|
|
487
|
+
"noHistory": "탐색 기록 없음",
|
|
488
|
+
"current": "현재",
|
|
489
|
+
"refresh": "새로고침",
|
|
490
|
+
"backToLive": "← 실시간으로 복귀",
|
|
491
|
+
"dragHint": "드래그하여 패널 이동",
|
|
492
|
+
"loginTitle": "로그인이 필요하면 데스크톱의 「CDP 브라우저 브리지」 Chrome 창에서 로그인하세요.",
|
|
493
|
+
"loginBtn": "로그인 완료, 저장",
|
|
494
|
+
"loginSaving": "저장 중…",
|
|
495
|
+
"loginSaved": "세션 {n}개 저장됨",
|
|
496
|
+
"loginNotConnected": "브라우저에 연결되지 않음",
|
|
497
|
+
"loginFailed": "저장 실패",
|
|
498
|
+
"loginDismiss": "알림 닫기",
|
|
499
|
+
"captchaTitle": "⚠️ 인간 인증 감지됨",
|
|
500
|
+
"captchaHint": "데스크톱의 「CDP 브라우저 브리지」 브라우저 창에서 인증을 직접 완료하면 agent가 계속 진행합니다.",
|
|
501
|
+
"captchaDismiss": "알림 닫기",
|
|
502
|
+
"hintReset": "복원됨 · 휠로 스크롤 · Ctrl+휠 확대/축소 · 더블클릭 복원",
|
|
503
|
+
"hintPan": "Ctrl+휠 확대/축소 · Ctrl+드래그 이동 · 더블클릭 복원",
|
|
504
|
+
"hintScroll": "Ctrl+드래그 이동 · 휠로 스크롤",
|
|
505
|
+
"hintNotCaptured": "화면 미접수 · 이번 작업이 전달되지 않음 · 한 번 더 클릭하면 복구됩니다",
|
|
506
|
+
"failed": "실패",
|
|
507
|
+
"stale": "⚠ 미접수",
|
|
508
|
+
"captured": "접수됨",
|
|
509
|
+
"fabTitle": "CDP 브라우저 실시간 보기",
|
|
510
|
+
"settingsTitle": "설정 펼치기",
|
|
511
|
+
"settingsHide": "설정 접기",
|
|
512
|
+
"famTitle": "CDP 브라우저",
|
|
513
|
+
"famIsolate": "공간 격리",
|
|
514
|
+
"famIsolateDesc": "끄기 = 영구 프로필(재시작 후에도 로그인 유지); 켜기 = 매번 격리 샌드박스",
|
|
515
|
+
"famIdle": "유휴 자동 중지(분, 0 = 끄기)",
|
|
516
|
+
"famIdleDesc": "N분 동안 bcdp_* 호출이 없으면 백그라운드 브라우저를 중지하고 다음 호출 시 필요에 따라 재시작합니다",
|
|
517
|
+
"titleIdle": "Agent 브라우저",
|
|
518
|
+
"videoUnsupported": "이 브라우저는 해당 H.264 스트림을 지원하지 않습니다",
|
|
519
|
+
"videoDisconnected": "비디오 스트림이 끊어졌습니다",
|
|
520
|
+
"videoConnectFailed": "비디오 스트림 연결 실패 ({status})",
|
|
521
|
+
"gBasic": "기본",
|
|
522
|
+
"gCapture": "캡처 및 스트리밍",
|
|
523
|
+
"gJudge": "심사(JEV / Laya)",
|
|
524
|
+
"cdpMode": "연결 모드",
|
|
525
|
+
"cdpModeDesc": "auto = 활성화된 대상만; remote = 로컬 브라우저를 몰래 시작하지 않음; local = 항상 로컬 제어",
|
|
526
|
+
"remoteEnabled": "원격 인수 마스터 스위치",
|
|
527
|
+
"remoteEnabledDesc": "끄기 = 대상 순서는 보존되나 적용되지 않음; local 모드에는 영향 없음",
|
|
528
|
+
"allowLocalFallback": "auto 모드에서 로컬 폴백 허용",
|
|
529
|
+
"allowLocalFallbackDesc": "활성화된 대상에 연결할 수 없을 때 로컬 브라우저 자동 시작을 허용합니다",
|
|
530
|
+
"chromePath": "Chrome/Chromium 경로",
|
|
531
|
+
"chromePathDesc": "비움 = 자동 탐지",
|
|
532
|
+
"localHeadless": "로컬 브라우저를 헤드리스로 시작",
|
|
533
|
+
"localHeadlessDesc": "로컬에서 시작하는 브라우저에만 적용",
|
|
534
|
+
"localUserDataDir": "로컬 브라우저 Profile 디렉터리",
|
|
535
|
+
"localUserDataDirDesc": "비움 = 관리 디렉터리; 평소 사용하는 Chrome 설정을 지정하지 마세요",
|
|
536
|
+
"legacyEgoToolNames": "구버전 ego_* 도구 이름도 등록",
|
|
537
|
+
"legacyEgoToolNamesDesc": "bcdp_* 개명 전 스크립트용; 상위 ego-browser 플러그인과 상호 배타적",
|
|
538
|
+
"captureBackend": "캡처 백엔드",
|
|
539
|
+
"captureBackendDesc": "auto / cdp / ffmpeg",
|
|
540
|
+
"streamProfile": "화질 프로필",
|
|
541
|
+
"streamProfileDesc": "전체 화질 프리셋",
|
|
542
|
+
"cdpFps": "CDP 미리보기 FPS",
|
|
543
|
+
"cdpQuality": "CDP JPEG 품질",
|
|
544
|
+
"cdpMaxWidth": "CDP 프레임 최대 너비",
|
|
545
|
+
"cdpBackstopIntervalMs": "CDP 복구 스크린샷 간격(ms)",
|
|
546
|
+
"ffmpegFps": "FFmpeg 비디오 FPS",
|
|
547
|
+
"ffmpegMaxWidth": "FFmpeg 최대 너비",
|
|
548
|
+
"ffmpegBitrateKbps": "FFmpeg 비트레이트(kbps)",
|
|
549
|
+
"ffmpegEncoder": "FFmpeg H.264 인코더",
|
|
550
|
+
"ffmpegPath": "FFmpeg 경로",
|
|
551
|
+
"ffmpegPathDesc": "비움 = PATH 또는 관리형 설치 감지",
|
|
552
|
+
"cursorHud": "스크린샷에 커서 HUD 그리기",
|
|
553
|
+
"cursorName": "커서 HUD 레이블",
|
|
554
|
+
"githubMirror": "GitHub 다운로드 미러",
|
|
555
|
+
"githubMirrorDesc": "관리형 다운로드에서 https://github.com을 대체하는 HTTPS 접두사",
|
|
556
|
+
"runtimeArgs": "런타임 추가 인자",
|
|
557
|
+
"runtimeArgsDesc": "관리형 런타임 argv에 추가; 다음 bcdp_* 호출부터 적용",
|
|
558
|
+
"chromeArgs": "Chrome 추가 시작 인자",
|
|
559
|
+
"chromeArgsDesc": "Chrome 시작 argv에 추가; 다음 콜드 스타트부터 적용",
|
|
560
|
+
"judgePrefer": "심사 홉 순서",
|
|
561
|
+
"judgePreferDesc": "쉼표 구분; 기본값 \"laya,rule\"",
|
|
562
|
+
"jevUrl": "JEV 기본 URL",
|
|
563
|
+
"jevUrlDesc": "비움 = jev 홉 건너뛰기",
|
|
564
|
+
"jevKey": "JEV Bearer Key",
|
|
565
|
+
"jevKeyDesc": "비움 = jev 홉 건너뛰기",
|
|
566
|
+
"jevModel": "JEV 모델명",
|
|
567
|
+
"jevChunkSize": "JEV 라운드당 후보 상한",
|
|
568
|
+
"jevMaxImageBytes": "JEV 프레임 바이트 예산(0 = 무제한)",
|
|
569
|
+
"jevHistoryLimit": "JEV 최근 단계 창",
|
|
570
|
+
"jevArchiveImage": "아카이브 번들에 스크린샷 포함",
|
|
571
|
+
"jevEvaluate": "모든 동작을 심사로 평가",
|
|
572
|
+
"jevEvaluateDesc": "동작당 심사 호출이 한 번 더 소모됩니다",
|
|
573
|
+
"jevStepBudget": "bcdp_jev_run 1회 라운드 상한",
|
|
574
|
+
"jevWallMs": "1회 실행 벽시계 상한(ms)",
|
|
575
|
+
"layaUrl": "Laya 기본 URL",
|
|
576
|
+
"layaUrlDesc": "sidecar 서비스가 8000 포트",
|
|
577
|
+
"layaKey": "Laya Key(필수)",
|
|
578
|
+
"layaKeyDesc": "Key 없이는 반드시 401입니다",
|
|
579
|
+
"layaModel": "Laya 모델명",
|
|
580
|
+
"linksTitle": "연결 대상(순서 = 우선순위)",
|
|
581
|
+
"linksEmpty": "대상 없음 — 아래 양식에서 첫 연결 대상을 추가하세요",
|
|
582
|
+
"linksEnabled": "사용",
|
|
583
|
+
"linksActive": "활성화됨",
|
|
584
|
+
"linksAddCdp": "CDP 엔드포인트 추가",
|
|
585
|
+
"linksAddCli": "로컬 ego CLI 추가",
|
|
586
|
+
"linksAddCliExists": "로컬 ego CLI 연결이 이미 있습니다 — 머신당 하나만 허용됩니다",
|
|
587
|
+
"linksEndpoint": "엔드포인트",
|
|
588
|
+
"linksEndpointHint": "http(s)://호스트:포트 또는 ws(s)://…",
|
|
589
|
+
"linksEndpointInvalid": "엔드포인트가 잘못되었습니다 — 저장하지 않았습니다",
|
|
590
|
+
"linksCliPath": "ego CLI 경로",
|
|
591
|
+
"linksCliPathHint": "비어 있음 = 자동 감지(PATH → 앱 번들 → 내장 런타임)",
|
|
592
|
+
"linksLabel": "레이블",
|
|
593
|
+
"linksRemove": "삭제",
|
|
594
|
+
"linksMoveUp": "위로",
|
|
595
|
+
"linksMoveDown": "아래로",
|
|
596
|
+
"linksProbe": "프로브",
|
|
597
|
+
"linksProbing": "프로브 중…",
|
|
598
|
+
"linksProbeOk": "연결됨",
|
|
599
|
+
"linksProbeFail": "연결 안 됨",
|
|
600
|
+
"linksLimitReached": "연결 시퀀스는 최대 {n}개입니다",
|
|
601
|
+
"linksWriteFailed": "저장 실패 — 설정 계층이 이 쓰기를 거부했습니다",
|
|
602
|
+
"linksCliRemoteWarn": "cdpMode=remote에서 ego CLI를 활성화하면 mode-kind-mismatch가 발생합니다",
|
|
603
|
+
"linksCliSdk": "내장 하네스 사용",
|
|
604
|
+
"linksDisabledHint": "비활성 — 활성화하기 전에 사용으로 설정하세요",
|
|
605
|
+
"linksActivate": "활성화"
|
|
606
|
+
};
|
|
607
|
+
/** French dictionary, checked complete against the zh key set. */
|
|
608
|
+
const fr = {
|
|
609
|
+
"title": "Navigateur CDP",
|
|
610
|
+
"titleLive": "Navigateur CDP · Direct",
|
|
611
|
+
"liveView": "Fenêtre d'observation (lecture seule)",
|
|
612
|
+
"pinned": "Vue épinglée",
|
|
613
|
+
"realtime": "Navigation en direct",
|
|
614
|
+
"noScreenshot": "(pas de capture — about:blank ou navigateur inactif)",
|
|
615
|
+
"noActivePages": "Aucune page de navigateur active",
|
|
616
|
+
"noActiveHint": "Les pages apparaîtront ici dès que l'agent naviguera avec bcdp_*",
|
|
617
|
+
"openExternal": "Ouvrir la vraie page",
|
|
618
|
+
"raiseWindow": "Fenêtre séparée",
|
|
619
|
+
"raiseWindowHint": "Afficher le navigateur de l'agent comme une vraie fenêtre (une instance sans interface est remplacée par une instance visible sur le même profil, onglets conservés)",
|
|
620
|
+
"pickMode": "Choisir un élément",
|
|
621
|
+
"pickModeHint": "Cliquez un élément de la page en direct pour le citer dans la conversation",
|
|
622
|
+
"picking": "Sélection… cliquez un élément dans la page",
|
|
623
|
+
"picked": "Élément capturé",
|
|
624
|
+
"pickFailed": "Échec de la sélection",
|
|
625
|
+
"pickQuoted": "✓ Cité dans la zone de saisie",
|
|
626
|
+
"pickDeliverFailed": "Échec de l'envoi",
|
|
627
|
+
"noUrl": "Aucune URL à ouvrir",
|
|
628
|
+
"closeTab": "Fermer l'onglet",
|
|
629
|
+
"newTab": "(nouvel onglet)",
|
|
630
|
+
"history": "Historique de navigation",
|
|
631
|
+
"historyHide": "Masquer l'historique",
|
|
632
|
+
"historyShow": "Historique de navigation",
|
|
633
|
+
"noHistory": "Aucun historique de navigation",
|
|
634
|
+
"current": "actuel",
|
|
635
|
+
"refresh": "Actualiser",
|
|
636
|
+
"backToLive": "← Retour au direct",
|
|
637
|
+
"dragHint": "Glisser pour déplacer le panneau",
|
|
638
|
+
"loginTitle": "Si une connexion est requise, connectez-vous dans la fenêtre Chrome « Pont navigateur CDP » sur votre bureau.",
|
|
639
|
+
"loginBtn": "Connecté, enregistrer",
|
|
640
|
+
"loginSaving": "Enregistrement…",
|
|
641
|
+
"loginSaved": "{n} sessions enregistrées",
|
|
642
|
+
"loginNotConnected": "Navigateur non connecté",
|
|
643
|
+
"loginFailed": "Échec de l'enregistrement",
|
|
644
|
+
"loginDismiss": "Fermer l'avis",
|
|
645
|
+
"captchaTitle": "⚠️ Vérification humaine détectée",
|
|
646
|
+
"captchaHint": "Terminez la vérification dans la fenêtre « Pont navigateur CDP » du bureau ; l'agent poursuivra.",
|
|
647
|
+
"captchaDismiss": "Fermer l'avis",
|
|
648
|
+
"hintReset": "Réinitialisé · molette pour défiler · Ctrl+molette pour zoomer · double-clic pour réinitialiser",
|
|
649
|
+
"hintPan": "Ctrl+molette pour zoomer · Ctrl+glisser pour déplacer · double-clic pour réinitialiser",
|
|
650
|
+
"hintScroll": "Ctrl+glisser pour déplacer · molette pour défiler",
|
|
651
|
+
"hintNotCaptured": "Image non captée · action non transmise · recliquez pour récupérer",
|
|
652
|
+
"failed": "échec",
|
|
653
|
+
"stale": "⚠ Non captée",
|
|
654
|
+
"captured": "Captée",
|
|
655
|
+
"fabTitle": "Vue en direct du navigateur CDP",
|
|
656
|
+
"settingsTitle": "Afficher les réglages",
|
|
657
|
+
"settingsHide": "Masquer les réglages",
|
|
658
|
+
"famTitle": "Navigateur CDP",
|
|
659
|
+
"famIsolate": "Isolation des espaces",
|
|
660
|
+
"famIsolateDesc": "Off = profil persistant (connexions conservées au redémarrage) ; on = sandbox isolé à chaque fois",
|
|
661
|
+
"famIdle": "Arrêt auto après inactivité (minutes, 0 = jamais)",
|
|
662
|
+
"famIdleDesc": "Arrête le navigateur après N minutes sans appel bcdp_* ; relance à la demande",
|
|
663
|
+
"titleIdle": "Navigateur Agent",
|
|
664
|
+
"videoUnsupported": "Ce navigateur ne prend pas en charge ce flux H.264",
|
|
665
|
+
"videoDisconnected": "Flux vidéo interrompu",
|
|
666
|
+
"videoConnectFailed": "Échec de connexion au flux vidéo ({status})",
|
|
667
|
+
"gBasic": "Général",
|
|
668
|
+
"gCapture": "Capture et diffusion",
|
|
669
|
+
"gJudge": "Jugement (JEV / Laya)",
|
|
670
|
+
"cdpMode": "Mode de connexion",
|
|
671
|
+
"cdpModeDesc": "auto = cible activée uniquement ; remote = ne jamais lancer de navigateur local ; local = toujours contrôle local",
|
|
672
|
+
"remoteEnabled": "Interrupteur maître de la prise à distance",
|
|
673
|
+
"remoteEnabledDesc": "Off = la séquence de cibles est conservée mais inactive ; sans effet sur le mode local",
|
|
674
|
+
"allowLocalFallback": "Autoriser le repli local en mode auto",
|
|
675
|
+
"allowLocalFallbackDesc": "auto peut lancer un navigateur local quand la cible activée est injoignable",
|
|
676
|
+
"chromePath": "Chemin Chrome/Chromium",
|
|
677
|
+
"chromePathDesc": "Vide = détection automatique",
|
|
678
|
+
"localHeadless": "Lancer le navigateur local sans interface",
|
|
679
|
+
"localHeadlessDesc": "S'applique au navigateur lancé localement",
|
|
680
|
+
"localUserDataDir": "Répertoire de profil du navigateur local",
|
|
681
|
+
"localUserDataDirDesc": "Vide = répertoire géré ; ne jamais pointer vers votre profil Chrome quotidien",
|
|
682
|
+
"legacyEgoToolNames": "Enregistrer aussi les anciens noms ego_*",
|
|
683
|
+
"legacyEgoToolNamesDesc": "Pour les scripts antérieurs au renommage bcdp_* ; exclusif avec le plugin amont ego-browser",
|
|
684
|
+
"captureBackend": "Backend de capture",
|
|
685
|
+
"captureBackendDesc": "auto, cdp ou ffmpeg",
|
|
686
|
+
"streamProfile": "Profil de qualité",
|
|
687
|
+
"streamProfileDesc": "Préréglage de qualité global",
|
|
688
|
+
"cdpFps": "FPS de prévisualisation CDP",
|
|
689
|
+
"cdpQuality": "Qualité JPEG CDP",
|
|
690
|
+
"cdpMaxWidth": "Largeur max de trame CDP",
|
|
691
|
+
"cdpBackstopIntervalMs": "Intervalle de capture de reprise CDP (ms)",
|
|
692
|
+
"ffmpegFps": "FPS vidéo FFmpeg",
|
|
693
|
+
"ffmpegMaxWidth": "Largeur max FFmpeg",
|
|
694
|
+
"ffmpegBitrateKbps": "Débit FFmpeg (kbps)",
|
|
695
|
+
"ffmpegEncoder": "Encodeur H.264 FFmpeg",
|
|
696
|
+
"ffmpegPath": "Chemin FFmpeg",
|
|
697
|
+
"ffmpegPathDesc": "Vide = détecter le PATH ou l'installation gérée",
|
|
698
|
+
"cursorHud": "Dessiner le HUD curseur dans les captures",
|
|
699
|
+
"cursorName": "Libellé du HUD curseur",
|
|
700
|
+
"githubMirror": "Miroir de téléchargement GitHub",
|
|
701
|
+
"githubMirrorDesc": "Préfixe HTTPS remplaçant https://github.com pour les téléchargements gérés",
|
|
702
|
+
"runtimeArgs": "Arguments supplémentaires du runtime",
|
|
703
|
+
"runtimeArgsDesc": "Ajoutés aux argv du runtime géré ; effectifs dès le prochain appel bcdp_*",
|
|
704
|
+
"chromeArgs": "Arguments de lancement Chrome supplémentaires",
|
|
705
|
+
"chromeArgsDesc": "Ajoutés aux argv de lancement Chrome ; effectifs au prochain démarrage à froid",
|
|
706
|
+
"judgePrefer": "Ordre des sauts de jugement",
|
|
707
|
+
"judgePreferDesc": "Séparés par des virgules ; par défaut \"laya,rule\"",
|
|
708
|
+
"jevUrl": "URL de base JEV",
|
|
709
|
+
"jevUrlDesc": "Vide = sauter le saut jev",
|
|
710
|
+
"jevKey": "Clé Bearer JEV",
|
|
711
|
+
"jevKeyDesc": "Vide = le saut jev est ignoré",
|
|
712
|
+
"jevModel": "Modèle JEV",
|
|
713
|
+
"jevChunkSize": "Candidats JEV par tour",
|
|
714
|
+
"jevMaxImageBytes": "Budget d'octets par trame JEV (0 = illimité)",
|
|
715
|
+
"jevHistoryLimit": "Fenêtre de pas récents JEV",
|
|
716
|
+
"jevArchiveImage": "Inclure la capture dans l'archive",
|
|
717
|
+
"jevEvaluate": "Évaluer chaque action par le juge",
|
|
718
|
+
"jevEvaluateDesc": "Coûte un appel de jugement par action",
|
|
719
|
+
"jevStepBudget": "Tours par exécution bcdp_jev_run",
|
|
720
|
+
"jevWallMs": "Plafond de temps réel par exécution (ms)",
|
|
721
|
+
"layaUrl": "URL de base Laya",
|
|
722
|
+
"layaUrlDesc": "Le sidecar sert le port 8000",
|
|
723
|
+
"layaKey": "Clé Laya (requise)",
|
|
724
|
+
"layaKeyDesc": "Un appel sans clé renvoie forcément 401",
|
|
725
|
+
"layaModel": "Modèle Laya",
|
|
726
|
+
"linksTitle": "Cibles de connexion (ordre = priorité)",
|
|
727
|
+
"linksEmpty": "Aucune cible — ajoutez la première avec le formulaire ci-dessous",
|
|
728
|
+
"linksEnabled": "Activé",
|
|
729
|
+
"linksActive": "activé",
|
|
730
|
+
"linksAddCdp": "Ajouter un point de terminaison CDP",
|
|
731
|
+
"linksAddCli": "Ajouter un ego CLI local",
|
|
732
|
+
"linksAddCliExists": "La connexion ego CLI locale existe déjà — une seule par machine",
|
|
733
|
+
"linksEndpoint": "Point de terminaison",
|
|
734
|
+
"linksEndpointHint": "http(s)://hôte:port ou ws(s)://…",
|
|
735
|
+
"linksEndpointInvalid": "Point de terminaison invalide — non enregistré",
|
|
736
|
+
"linksCliPath": "Chemin de l’ego CLI",
|
|
737
|
+
"linksCliPathHint": "Vide = détection auto (PATH → bundle de l’app → runtime intégré)",
|
|
738
|
+
"linksLabel": "Libellé",
|
|
739
|
+
"linksRemove": "Supprimer",
|
|
740
|
+
"linksMoveUp": "Monter",
|
|
741
|
+
"linksMoveDown": "Descendre",
|
|
742
|
+
"linksProbe": "Tester",
|
|
743
|
+
"linksProbing": "Test en cours…",
|
|
744
|
+
"linksProbeOk": "joignable",
|
|
745
|
+
"linksProbeFail": "injoignable",
|
|
746
|
+
"linksLimitReached": "La séquence est limitée à {n} entrées",
|
|
747
|
+
"linksWriteFailed": "Échec de l’enregistrement — la couche de réglages a refusé cette écriture",
|
|
748
|
+
"linksCliRemoteWarn": "Activer un lien ego CLI avec cdpMode=remote échoue avec mode-kind-mismatch",
|
|
749
|
+
"linksCliSdk": "Utiliser le harnais intégré",
|
|
750
|
+
"linksDisabledHint": "Désactivé — activez-le avant de le rendre actif",
|
|
751
|
+
"linksActivate": "activer"
|
|
752
|
+
};
|
|
753
|
+
/** German dictionary, checked complete against the zh key set. */
|
|
754
|
+
const de = {
|
|
755
|
+
"title": "CDP-Browser",
|
|
756
|
+
"titleLive": "CDP-Browser · Live",
|
|
757
|
+
"liveView": "Live-Ansicht (nur lesend)",
|
|
758
|
+
"pinned": "Angepinnt",
|
|
759
|
+
"realtime": "Live-Browsing",
|
|
760
|
+
"noScreenshot": "(kein Screenshot — about:blank oder Browser rendert nicht)",
|
|
761
|
+
"noActivePages": "Keine aktiven Browser-Seiten",
|
|
762
|
+
"noActiveHint": "Seiten erscheinen hier, sobald der Agent mit bcdp_* surft",
|
|
763
|
+
"openExternal": "Echte Seite öffnen",
|
|
764
|
+
"raiseWindow": "Als Fenster öffnen",
|
|
765
|
+
"raiseWindowHint": "Agent-Browser als echtes Fenster nach vorn holen (eine Headless-Instance wird durch eine sichtbare mit demselben Profil ersetzt, Tabs bleiben erhalten)",
|
|
766
|
+
"pickMode": "Element wählen",
|
|
767
|
+
"pickModeHint": "Klicke ein Element auf der Live-Seite, um es in die Konversation zu zitieren",
|
|
768
|
+
"picking": "Auswahl… klicke ein Element auf der Seite",
|
|
769
|
+
"picked": "Element erfasst",
|
|
770
|
+
"pickFailed": "Auswahl fehlgeschlagen",
|
|
771
|
+
"pickQuoted": "✓ In Eingabefeld zitiert",
|
|
772
|
+
"pickDeliverFailed": "Zustellung fehlgeschlagen",
|
|
773
|
+
"noUrl": "Keine URL zum Öffnen",
|
|
774
|
+
"closeTab": "Tab schließen",
|
|
775
|
+
"newTab": "(neuer Tab)",
|
|
776
|
+
"history": "Verlauf",
|
|
777
|
+
"historyHide": "Verlauf ausblenden",
|
|
778
|
+
"historyShow": "Verlauf anzeigen",
|
|
779
|
+
"noHistory": "Kein Browserverlauf",
|
|
780
|
+
"current": "aktuell",
|
|
781
|
+
"refresh": "Aktualisieren",
|
|
782
|
+
"backToLive": "← Zurück zu Live",
|
|
783
|
+
"dragHint": "Ziehen zum Verschieben des Panels",
|
|
784
|
+
"loginTitle": "Bei Login-Pflicht bitte im Chrome-Fenster »CDP-Browserbrücke« auf dem Desktop anmelden.",
|
|
785
|
+
"loginBtn": "Angemeldet, speichern",
|
|
786
|
+
"loginSaving": "Speichern…",
|
|
787
|
+
"loginSaved": "{n} Sitzungen gespeichert",
|
|
788
|
+
"loginNotConnected": "Browser nicht verbunden",
|
|
789
|
+
"loginFailed": "Speichern fehlgeschlagen",
|
|
790
|
+
"loginDismiss": "Hinweis schließen",
|
|
791
|
+
"captchaTitle": "⚠️ Mensch-Check erkannt",
|
|
792
|
+
"captchaHint": "Bitte Verifikation im Browserfenster »CDP-Browserbrücke« auf dem Desktop abschließen; der Agent macht weiter.",
|
|
793
|
+
"captchaDismiss": "Hinweis schließen",
|
|
794
|
+
"hintReset": "Zurückgesetzt · Scrollen · Strg+Scrollen zoomt · Doppelklick setzt zurück",
|
|
795
|
+
"hintPan": "Strg+Scrollen zoomt · Strg+Ziehen verschiebt · Doppelklick setzt zurück",
|
|
796
|
+
"hintScroll": "Strg+Ziehen verschiebt · Scrollen",
|
|
797
|
+
"hintNotCaptured": "Bild nicht übernommen · Aktion nicht zugestellt · noch einmal klicken zur Wiederherstellung",
|
|
798
|
+
"failed": "fehlgeschlagen",
|
|
799
|
+
"stale": "⚠ Nicht übernommen",
|
|
800
|
+
"captured": "Übernommen",
|
|
801
|
+
"fabTitle": "CDP-Browser Live-Ansicht",
|
|
802
|
+
"settingsTitle": "Einstellungen einblenden",
|
|
803
|
+
"settingsHide": "Einstellungen ausblenden",
|
|
804
|
+
"famTitle": "CDP-Browser",
|
|
805
|
+
"famIsolate": "Raum-Isolation",
|
|
806
|
+
"famIsolateDesc": "Aus = persistentes Profil (Logins überleben Neustarts); Ein = isolierter Sandbox",
|
|
807
|
+
"famIdle": "Automatischer Stopp bei Leerlauf (Minuten, 0 = aus)",
|
|
808
|
+
"famIdleDesc": "Stoppt den Browser nach N Minuten ohne bcdp_*-Aufruf; startet bei Bedarf neu",
|
|
809
|
+
"titleIdle": "Agent-Browser",
|
|
810
|
+
"videoUnsupported": "Dieser Browser unterstützt diesen H.264-Stream nicht",
|
|
811
|
+
"videoDisconnected": "Videostream getrennt",
|
|
812
|
+
"videoConnectFailed": "Videostream-Verbindung fehlgeschlagen ({status})",
|
|
813
|
+
"gBasic": "Grundlagen",
|
|
814
|
+
"gCapture": "Aufnahme & Streaming",
|
|
815
|
+
"gJudge": "Bewertung (JEV / Laya)",
|
|
816
|
+
"cdpMode": "Verbindungsmodus",
|
|
817
|
+
"cdpModeDesc": "auto = nur aktiviertes Ziel; remote = niemals lokalen Browser starten; local = immer lokale Steuerung",
|
|
818
|
+
"remoteEnabled": "Fernübernahme-Hauptschalter",
|
|
819
|
+
"remoteEnabledDesc": "Aus = Zielsequenz bleibt erhalten, ist aber wirkungslos; betrifft den lokalen Modus nicht",
|
|
820
|
+
"allowLocalFallback": "Lokalen Fallback im auto-Modus erlauben",
|
|
821
|
+
"allowLocalFallbackDesc": "auto darf einen lokalen Browser starten, wenn das aktivierte Ziel unerreichbar ist",
|
|
822
|
+
"chromePath": "Chrome/Chromium-Pfad",
|
|
823
|
+
"chromePathDesc": "Leer = automatisch erkennen",
|
|
824
|
+
"localHeadless": "Lokalen Browser headless starten",
|
|
825
|
+
"localHeadlessDesc": "Gilt nur für den lokal gestarteten Browser",
|
|
826
|
+
"localUserDataDir": "Profilverzeichnis des lokalen Browsers",
|
|
827
|
+
"localUserDataDirDesc": "Leer = verwaltetes Verzeichnis; niemals auf dein tägliches Chrome-Profil zeigen lassen",
|
|
828
|
+
"legacyEgoToolNames": "Auch alte ego_*-Namen registrieren",
|
|
829
|
+
"legacyEgoToolNamesDesc": "Für Skripte vor der bcdp_*-Umbenennung; unvereinbar mit dem Upstream-Plugin ego-browser",
|
|
830
|
+
"captureBackend": "Aufnahme-Backend",
|
|
831
|
+
"captureBackendDesc": "auto, cdp oder ffmpeg",
|
|
832
|
+
"streamProfile": "Qualitätsprofil",
|
|
833
|
+
"streamProfileDesc": "Gesamter Qualitäts-Preset",
|
|
834
|
+
"cdpFps": "CDP-Vorschau-FPS",
|
|
835
|
+
"cdpQuality": "CDP-JPEG-Qualität",
|
|
836
|
+
"cdpMaxWidth": "CDP-Bild max. Breite",
|
|
837
|
+
"cdpBackstopIntervalMs": "CDP-Wiederherstellungsintervall (ms)",
|
|
838
|
+
"ffmpegFps": "FFmpeg-Video-FPS",
|
|
839
|
+
"ffmpegMaxWidth": "FFmpeg max. Breite",
|
|
840
|
+
"ffmpegBitrateKbps": "FFmpeg-Bitrate (kbps)",
|
|
841
|
+
"ffmpegEncoder": "FFmpeg-H.264-Encoder",
|
|
842
|
+
"ffmpegPath": "FFmpeg-Pfad",
|
|
843
|
+
"ffmpegPathDesc": "Leer = PATH oder verwaltete Installation erkennen",
|
|
844
|
+
"cursorHud": "Cursor-HUD in Screenshots zeichnen",
|
|
845
|
+
"cursorName": "Cursor-HUD-Beschriftung",
|
|
846
|
+
"githubMirror": "GitHub-Download-Spiegel",
|
|
847
|
+
"githubMirrorDesc": "HTTPS-Präfix ersetzt https://github.com für verwaltete Downloads",
|
|
848
|
+
"runtimeArgs": "Zusätzliche Runtime-Argumente",
|
|
849
|
+
"runtimeArgsDesc": "An argv der verwalteten Runtime angehängt; ab nächstem bcdp_*-Aufruf",
|
|
850
|
+
"chromeArgs": "Zusätzliche Chrome-Startargumente",
|
|
851
|
+
"chromeArgsDesc": "An Chrome-Start-argv angehängt; ab nächstem Kaltstart",
|
|
852
|
+
"judgePrefer": "Reihenfolge der Judge-Hops",
|
|
853
|
+
"judgePreferDesc": "Kommagetrennt; Standard: \"laya,rule\"",
|
|
854
|
+
"jevUrl": "JEV-Basis-URL",
|
|
855
|
+
"jevUrlDesc": "Leer = jev-Hop überspringen",
|
|
856
|
+
"jevKey": "JEV-Bearer-Key",
|
|
857
|
+
"jevKeyDesc": "Leer = jev-Hop wird übersprungen",
|
|
858
|
+
"jevModel": "JEV-Modellname",
|
|
859
|
+
"jevChunkSize": "JEV-Kandidaten pro Runde",
|
|
860
|
+
"jevMaxImageBytes": "JEV-Byte-Budget pro Bild (0 = unbegrenzt)",
|
|
861
|
+
"jevHistoryLimit": "JEV-Fenster letzter Schritte",
|
|
862
|
+
"jevArchiveImage": "Screenshot im Archiv-Bundle einbetten",
|
|
863
|
+
"jevEvaluate": "Jede Aktion vom Judge bewerten lassen",
|
|
864
|
+
"jevEvaluateDesc": "Kostet einen Bewertungsaufruf pro Aktion",
|
|
865
|
+
"jevStepBudget": "Runden pro bcdp_jev_run",
|
|
866
|
+
"jevWallMs": "Wanduhr-Obergrenze pro Lauf (ms)",
|
|
867
|
+
"layaUrl": "Laya-Basis-URL",
|
|
868
|
+
"layaUrlDesc": "Der Sidecar bedient Port 8000",
|
|
869
|
+
"layaKey": "Laya-Key (erforderlich)",
|
|
870
|
+
"layaKeyDesc": "Ohne Key gibt es garantiert 401",
|
|
871
|
+
"layaModel": "Laya-Modellname",
|
|
872
|
+
"linksTitle": "Verbindungsziele (Reihenfolge = Priorität)",
|
|
873
|
+
"linksEmpty": "Keine Ziele — füge das erste mit dem Formular unten hinzu",
|
|
874
|
+
"linksEnabled": "Aktiviert",
|
|
875
|
+
"linksActive": "aktiv",
|
|
876
|
+
"linksAddCdp": "CDP-Endpunkt hinzufügen",
|
|
877
|
+
"linksAddCli": "Lokalen ego CLI hinzufügen",
|
|
878
|
+
"linksAddCliExists": "Die lokale ego-CLI-Verbindung existiert bereits — eine pro Maschine",
|
|
879
|
+
"linksEndpoint": "Endpunkt",
|
|
880
|
+
"linksEndpointHint": "http(s)://Host:Port oder ws(s)://…",
|
|
881
|
+
"linksEndpointInvalid": "Ungültiger Endpunkt — nicht gespeichert",
|
|
882
|
+
"linksCliPath": "ego-CLI-Pfad",
|
|
883
|
+
"linksCliPathHint": "Leer = automatisch erkennen (PATH → App-Bundle → mitgelieferte Runtime)",
|
|
884
|
+
"linksLabel": "Bezeichnung",
|
|
885
|
+
"linksRemove": "Entfernen",
|
|
886
|
+
"linksMoveUp": "Nach oben",
|
|
887
|
+
"linksMoveDown": "Nach unten",
|
|
888
|
+
"linksProbe": "Prüfen",
|
|
889
|
+
"linksProbing": "Prüfe…",
|
|
890
|
+
"linksProbeOk": "erreichbar",
|
|
891
|
+
"linksProbeFail": "nicht erreichbar",
|
|
892
|
+
"linksLimitReached": "Die Sequenz ist auf {n} Einträge begrenzt",
|
|
893
|
+
"linksWriteFailed": "Speichern fehlgeschlagen — die Einstellungsschicht hat den Schreibzugriff abgelehnt",
|
|
894
|
+
"linksCliRemoteWarn": "Aktivieren eines ego-CLI-Links bei cdpMode=remote schlägt mit mode-kind-mismatch fehl",
|
|
895
|
+
"linksCliSdk": "Mitgeliefertes Harness verwenden",
|
|
896
|
+
"linksDisabledHint": "Deaktiviert — erst aktivieren, dann aktiv schalten",
|
|
897
|
+
"linksActivate": "aktivieren"
|
|
898
|
+
};
|
|
899
|
+
/** Italian dictionary, checked complete against the zh key set. */
|
|
900
|
+
const it = {
|
|
901
|
+
"title": "Browser CDP",
|
|
902
|
+
"titleLive": "Browser CDP · Diretta",
|
|
903
|
+
"liveView": "Vista di osservazione (sola lettura)",
|
|
904
|
+
"pinned": "Vista bloccata",
|
|
905
|
+
"realtime": "Navigazione in diretta",
|
|
906
|
+
"noScreenshot": "(nessuno screenshot — about:blank o browser inattivo)",
|
|
907
|
+
"noActivePages": "Nessuna pagina del browser attiva",
|
|
908
|
+
"noActiveHint": "Le pagine appaiono qui quando l'agente naviga con bcdp_*",
|
|
909
|
+
"openExternal": "Apri pagina reale",
|
|
910
|
+
"raiseWindow": "Finestra separata",
|
|
911
|
+
"raiseWindowHint": "Mostra il browser dell'agente come finestra reale (un'istanza headless è sostituita da una visibile sullo stesso profilo, tab conservati)",
|
|
912
|
+
"pickMode": "Scegli elemento",
|
|
913
|
+
"pickModeHint": "Clicca un elemento nella pagina in diretta per citarlo nella conversazione",
|
|
914
|
+
"picking": "Selezione… clicca un elemento nella pagina",
|
|
915
|
+
"picked": "Elemento acquisito",
|
|
916
|
+
"pickFailed": "Selezione fallita",
|
|
917
|
+
"pickQuoted": "✓ Citato nel campo di inserimento",
|
|
918
|
+
"pickDeliverFailed": "Consegna fallita",
|
|
919
|
+
"noUrl": "Nessun URL da aprire",
|
|
920
|
+
"closeTab": "Chiudi scheda",
|
|
921
|
+
"newTab": "(nuova scheda)",
|
|
922
|
+
"history": "Cronologia di navigazione",
|
|
923
|
+
"historyHide": "Nascondi cronologia",
|
|
924
|
+
"historyShow": "Mostra cronologia",
|
|
925
|
+
"noHistory": "Nessuna cronologia di navigazione",
|
|
926
|
+
"current": "attuale",
|
|
927
|
+
"refresh": "Aggiorna",
|
|
928
|
+
"backToLive": "← Torna alla diretta",
|
|
929
|
+
"dragHint": "Trascina per spostare il pannello",
|
|
930
|
+
"loginTitle": "Se serve il login, effettualo nella finestra Chrome «Ponte browser CDP» sul desktop.",
|
|
931
|
+
"loginBtn": "Accesso effettuato, salva",
|
|
932
|
+
"loginSaving": "Salvataggio…",
|
|
933
|
+
"loginSaved": "Salvate {n} sessioni",
|
|
934
|
+
"loginNotConnected": "Browser non connesso",
|
|
935
|
+
"loginFailed": "Salvataggio fallito",
|
|
936
|
+
"loginDismiss": "Chiudi avviso",
|
|
937
|
+
"captchaTitle": "⚠️ Verifica umana rilevata",
|
|
938
|
+
"captchaHint": "Completa la verifica nella finestra «Ponte browser CDP» sul desktop; l'agente continuerà.",
|
|
939
|
+
"captchaDismiss": "Chiudi avviso",
|
|
940
|
+
"hintReset": "Ripristinato · rotellina per scorrere · Ctrl+rotellina per lo zoom · doppio clic per ripristinare",
|
|
941
|
+
"hintPan": "Ctrl+rotellina per lo zoom · Ctrl+trascina per spostare · doppio clic per ripristinare",
|
|
942
|
+
"hintScroll": "Ctrl+trascina per spostare · rotellina per scorrere",
|
|
943
|
+
"hintNotCaptured": "Schermata non acquisita · azione non consegnata · clicca di nuovo per riprendere",
|
|
944
|
+
"failed": "fallito",
|
|
945
|
+
"stale": "⚠ Non acquisita",
|
|
946
|
+
"captured": "Acquisita",
|
|
947
|
+
"fabTitle": "Vista diretta del browser CDP",
|
|
948
|
+
"settingsTitle": "Mostra impostazioni",
|
|
949
|
+
"settingsHide": "Nascondi impostazioni",
|
|
950
|
+
"famTitle": "Browser CDP",
|
|
951
|
+
"famIsolate": "Isolamento degli spazi",
|
|
952
|
+
"famIsolateDesc": "Off = profilo persistente (login sopravvivono ai riavvii); on = sandbox isolato ogni volta",
|
|
953
|
+
"famIdle": "Arresto automatico da inattività (minuti, 0 = mai)",
|
|
954
|
+
"famIdleDesc": "Arresta il browser dopo N minuti senza chiamate bcdp_*; riavvio a richiesta",
|
|
955
|
+
"titleIdle": "Browser Agent",
|
|
956
|
+
"videoUnsupported": "Questo browser non supporta questo flusso H.264",
|
|
957
|
+
"videoDisconnected": "Flusso video interrotto",
|
|
958
|
+
"videoConnectFailed": "Connessione al flusso video fallita ({status})",
|
|
959
|
+
"gBasic": "Base",
|
|
960
|
+
"gCapture": "Cattura e streaming",
|
|
961
|
+
"gJudge": "Giudizio (JEV / Laya)",
|
|
962
|
+
"cdpMode": "Modalità di connessione",
|
|
963
|
+
"cdpModeDesc": "auto = solo destinazione attiva; remote = non avviare mai un browser locale; local = sempre controllo locale",
|
|
964
|
+
"remoteEnabled": "Interruttore principale del controllo remoto",
|
|
965
|
+
"remoteEnabledDesc": "Off = la sequenza di destinazioni è conservata ma inerte; non influisce sulla modalità locale",
|
|
966
|
+
"allowLocalFallback": "Consenti fallback locale in modalità auto",
|
|
967
|
+
"allowLocalFallbackDesc": "auto può avviare un browser locale quando la destinazione attiva è irraggiungibile",
|
|
968
|
+
"chromePath": "Percorso Chrome/Chromium",
|
|
969
|
+
"chromePathDesc": "Vuoto = rilevamento automatico",
|
|
970
|
+
"localHeadless": "Avvia il browser locale in headless",
|
|
971
|
+
"localHeadlessDesc": "Si applica solo al browser avviato localmente",
|
|
972
|
+
"localUserDataDir": "Directory del profilo del browser locale",
|
|
973
|
+
"localUserDataDirDesc": "Vuoto = directory gestita; non puntare mai al profilo Chrome quotidiano",
|
|
974
|
+
"legacyEgoToolNames": "Registra anche i vecchi nomi ego_*",
|
|
975
|
+
"legacyEgoToolNamesDesc": "Per script scritti prima della rinomina bcdp_*; conflittuale con il plugin upstream ego-browser",
|
|
976
|
+
"captureBackend": "Backend di cattura",
|
|
977
|
+
"captureBackendDesc": "auto, cdp o ffmpeg",
|
|
978
|
+
"streamProfile": "Profilo di qualità",
|
|
979
|
+
"streamProfileDesc": "Preset di qualità complessivo",
|
|
980
|
+
"cdpFps": "FPS di anteprima CDP",
|
|
981
|
+
"cdpQuality": "Qualità JPEG CDP",
|
|
982
|
+
"cdpMaxWidth": "Larghezza massima frame CDP",
|
|
983
|
+
"cdpBackstopIntervalMs": "Intervallo di recupero screenshot CDP (ms)",
|
|
984
|
+
"ffmpegFps": "FPS video FFmpeg",
|
|
985
|
+
"ffmpegMaxWidth": "Larghezza massima FFmpeg",
|
|
986
|
+
"ffmpegBitrateKbps": "Bitrate FFmpeg (kbps)",
|
|
987
|
+
"ffmpegEncoder": "Encoder H.264 FFmpeg",
|
|
988
|
+
"ffmpegPath": "Percorso FFmpeg",
|
|
989
|
+
"ffmpegPathDesc": "Vuoto = rileva PATH o installazione gestita",
|
|
990
|
+
"cursorHud": "Disegna l'HUD del cursore negli screenshot",
|
|
991
|
+
"cursorName": "Etichetta HUD cursore",
|
|
992
|
+
"githubMirror": "Mirror di download GitHub",
|
|
993
|
+
"githubMirrorDesc": "Prefisso HTTPS che sostituisce https://github.com per i download gestiti",
|
|
994
|
+
"runtimeArgs": "Argomenti extra del runtime",
|
|
995
|
+
"runtimeArgsDesc": "Aggiunti agli argv del runtime gestito; dal prossimo bcdp_*",
|
|
996
|
+
"chromeArgs": "Argomenti extra di avvio Chrome",
|
|
997
|
+
"chromeArgsDesc": "Aggiunti agli argv di avvio di Chrome; al prossimo avvio a freddo",
|
|
998
|
+
"judgePrefer": "Ordine degli hop del giudice",
|
|
999
|
+
"judgePreferDesc": "Separati da virgola; predefinito: \"laya,rule\"",
|
|
1000
|
+
"jevUrl": "URL di base JEV",
|
|
1001
|
+
"jevUrlDesc": "Vuoto = salta l'hop jev",
|
|
1002
|
+
"jevKey": "Chiave Bearer JEV",
|
|
1003
|
+
"jevKeyDesc": "Vuoto = l'hop jev è saltato",
|
|
1004
|
+
"jevModel": "Nome modello JEV",
|
|
1005
|
+
"jevChunkSize": "Candidati JEV per turno",
|
|
1006
|
+
"jevMaxImageBytes": "Budget di byte per frame JEV (0 = illimitato)",
|
|
1007
|
+
"jevHistoryLimit": "Finestra di passi recenti JEV",
|
|
1008
|
+
"jevArchiveImage": "Incorpora screenshot nell'archivio",
|
|
1009
|
+
"jevEvaluate": "Valuta ogni azione con il giudice",
|
|
1010
|
+
"jevEvaluateDesc": "Costa una chiamata di giudizio per azione",
|
|
1011
|
+
"jevStepBudget": "Turni per esecuzione bcdp_jev_run",
|
|
1012
|
+
"jevWallMs": "Limite di tempo reale per esecuzione (ms)",
|
|
1013
|
+
"layaUrl": "URL di base Laya",
|
|
1014
|
+
"layaUrlDesc": "Il sidecar serve la porta 8000",
|
|
1015
|
+
"layaKey": "Chiave Laya (obbligatoria)",
|
|
1016
|
+
"layaKeyDesc": "Le chiamate senza chiave ricevono un 401 assicurato",
|
|
1017
|
+
"layaModel": "Nome modello Laya",
|
|
1018
|
+
"linksTitle": "Destinazioni di connessione (ordine = priorità)",
|
|
1019
|
+
"linksEmpty": "Nessuna destinazione — aggiungi la prima con il modulo qui sotto",
|
|
1020
|
+
"linksEnabled": "Abilitato",
|
|
1021
|
+
"linksActive": "attivata",
|
|
1022
|
+
"linksAddCdp": "Aggiungi endpoint CDP",
|
|
1023
|
+
"linksAddCli": "Aggiungi ego CLI locale",
|
|
1024
|
+
"linksAddCliExists": "La connessione ego CLI locale esiste già — una sola per macchina",
|
|
1025
|
+
"linksEndpoint": "Endpoint",
|
|
1026
|
+
"linksEndpointHint": "http(s)://host:porta oppure ws(s)://…",
|
|
1027
|
+
"linksEndpointInvalid": "Endpoint non valido — non salvato",
|
|
1028
|
+
"linksCliPath": "Percorso ego CLI",
|
|
1029
|
+
"linksCliPathHint": "Vuoto = rilevamento automatico (PATH → bundle dell’app → runtime integrato)",
|
|
1030
|
+
"linksLabel": "Etichetta",
|
|
1031
|
+
"linksRemove": "Rimuovi",
|
|
1032
|
+
"linksMoveUp": "Sposta su",
|
|
1033
|
+
"linksMoveDown": "Sposta giù",
|
|
1034
|
+
"linksProbe": "Verifica",
|
|
1035
|
+
"linksProbing": "Verifica in corso…",
|
|
1036
|
+
"linksProbeOk": "raggiungibile",
|
|
1037
|
+
"linksProbeFail": "irraggiungibile",
|
|
1038
|
+
"linksLimitReached": "La sequenza è limitata a {n} voci",
|
|
1039
|
+
"linksWriteFailed": "Salvataggio non riuscito — il livello impostazioni ha rifiutato la scrittura",
|
|
1040
|
+
"linksCliRemoteWarn": "Attivare un link ego CLI con cdpMode=remote fallisce con mode-kind-mismatch",
|
|
1041
|
+
"linksCliSdk": "Usa harness integrato",
|
|
1042
|
+
"linksDisabledHint": "Disabilitato — abilitalo prima di attivarlo",
|
|
1043
|
+
"linksActivate": "attiva"
|
|
1044
|
+
};
|
|
1045
|
+
/** Russian dictionary, checked complete against the zh key set. */
|
|
1046
|
+
const ru = {
|
|
1047
|
+
"title": "CDP-браузер",
|
|
1048
|
+
"titleLive": "CDP-браузер · В эфире",
|
|
1049
|
+
"liveView": "Окно наблюдения (только чтение)",
|
|
1050
|
+
"pinned": "Закреплено",
|
|
1051
|
+
"realtime": "Смотрит вживую",
|
|
1052
|
+
"noScreenshot": "(нет скриншота — about:blank или браузер не рендерит)",
|
|
1053
|
+
"noActivePages": "Нет активных страниц браузера",
|
|
1054
|
+
"noActiveHint": "Страницы появятся здесь, когда агент начнёт работать через bcdp_*",
|
|
1055
|
+
"openExternal": "Открыть реальную страницу",
|
|
1056
|
+
"raiseWindow": "В отдельное окно",
|
|
1057
|
+
"raiseWindowHint": "Показать браузер агента как реальное окно (headless-экземпляр заменяется видимым с тем же профилем, вкладки сохраняются)",
|
|
1058
|
+
"pickMode": "Выбрать элемент",
|
|
1059
|
+
"pickModeHint": "Кликните элемент на живой странице, чтобы процитировать его в диалог",
|
|
1060
|
+
"picking": "Выбор… кликните элемент на странице",
|
|
1061
|
+
"picked": "Элемент захвачен",
|
|
1062
|
+
"pickFailed": "Не удалось выбрать",
|
|
1063
|
+
"pickQuoted": "✓ Процитировано в поле ввода",
|
|
1064
|
+
"pickDeliverFailed": "Не удалось доставить",
|
|
1065
|
+
"noUrl": "Нет URL для открытия",
|
|
1066
|
+
"closeTab": "Закрыть вкладку",
|
|
1067
|
+
"newTab": "(новая вкладка)",
|
|
1068
|
+
"history": "История просмотров",
|
|
1069
|
+
"historyHide": "Скрыть историю",
|
|
1070
|
+
"historyShow": "Показать историю",
|
|
1071
|
+
"noHistory": "Истории просмотров нет",
|
|
1072
|
+
"current": "текущая",
|
|
1073
|
+
"refresh": "Обновить",
|
|
1074
|
+
"backToLive": "← Назад к живой трансляции",
|
|
1075
|
+
"dragHint": "Перетащите, чтобы переместить панель",
|
|
1076
|
+
"loginTitle": "Если нужен вход — выполните его в Chrome-окне «Мост CDP-браузера» на рабочем столе.",
|
|
1077
|
+
"loginBtn": "Вошёл, сохранить",
|
|
1078
|
+
"loginSaving": "Сохранение…",
|
|
1079
|
+
"loginSaved": "Сохранено сессий: {n}",
|
|
1080
|
+
"loginNotConnected": "Браузер не подключён",
|
|
1081
|
+
"loginFailed": "Не удалось сохранить",
|
|
1082
|
+
"loginDismiss": "Закрыть подсказку",
|
|
1083
|
+
"captchaTitle": "⚠️ Обнаружена проверка на человека",
|
|
1084
|
+
"captchaHint": "Завершите проверку в окне «Мост CDP-браузера» на рабочем столе; агент продолжит.",
|
|
1085
|
+
"captchaDismiss": "Закрыть подсказку",
|
|
1086
|
+
"hintReset": "Сброшено · колесо прокручивает · Ctrl+колесо масштабирует · двойной клик сбрасывает",
|
|
1087
|
+
"hintPan": "Ctrl+колесо масштабирует · Ctrl+перетаскивание сдвигает · двойной клик сбрасывает",
|
|
1088
|
+
"hintScroll": "Ctrl+перетаскивание сдвигает · колесо прокручивает",
|
|
1089
|
+
"hintNotCaptured": "Кадр не перехвачен · действие не доставлено · кликните ещё раз для восстановления",
|
|
1090
|
+
"failed": "сбой",
|
|
1091
|
+
"stale": "⚠ Не перехвачено",
|
|
1092
|
+
"captured": "Перехвачено",
|
|
1093
|
+
"fabTitle": "Живой вид CDP-браузера",
|
|
1094
|
+
"settingsTitle": "Показать настройки",
|
|
1095
|
+
"settingsHide": "Скрыть настройки",
|
|
1096
|
+
"famTitle": "CDP-браузер",
|
|
1097
|
+
"famIsolate": "Изоляция пространств",
|
|
1098
|
+
"famIsolateDesc": "Выкл = постоянный профиль (логины переживают перезапуск); вкл = изолированная песочница",
|
|
1099
|
+
"famIdle": "Автоостановка при простое (минуты, 0 = выкл)",
|
|
1100
|
+
"famIdleDesc": "Останавливает браузер через N минут без вызовов bcdp_*; перезапуск по требованию",
|
|
1101
|
+
"titleIdle": "Браузер агента",
|
|
1102
|
+
"videoUnsupported": "Этот браузер не поддерживает данный H.264-поток",
|
|
1103
|
+
"videoDisconnected": "Видеопоток прерван",
|
|
1104
|
+
"videoConnectFailed": "Не удалось подключиться к видеопотоку ({status})",
|
|
1105
|
+
"gBasic": "Основное",
|
|
1106
|
+
"gCapture": "Захват и трансляция",
|
|
1107
|
+
"gJudge": "Оценка (JEV / Laya)",
|
|
1108
|
+
"cdpMode": "Режим подключения",
|
|
1109
|
+
"cdpModeDesc": "auto = только активированная цель; remote = никогда не запускать локальный браузер; local = всегда локальное управление",
|
|
1110
|
+
"remoteEnabled": "Главный выключатель удалённого захвата",
|
|
1111
|
+
"remoteEnabledDesc": "Выкл = последовательность целей сохраняется, но не действует; на локальный режим не влияет",
|
|
1112
|
+
"allowLocalFallback": "Разрешить локальный откат в режиме auto",
|
|
1113
|
+
"allowLocalFallbackDesc": "auto может запустить локальный браузер, если активированная цель недоступна",
|
|
1114
|
+
"chromePath": "Путь к Chrome/Chromium",
|
|
1115
|
+
"chromePathDesc": "Пусто = определить автоматически",
|
|
1116
|
+
"localHeadless": "Запускать локальный браузер в headless",
|
|
1117
|
+
"localHeadlessDesc": "Относится только к локально запускаемому браузеру",
|
|
1118
|
+
"localUserDataDir": "Каталог профиля локального браузера",
|
|
1119
|
+
"localUserDataDirDesc": "Пусто = управляемый каталог; не указывайте на ваш повседневный профиль Chrome",
|
|
1120
|
+
"legacyEgoToolNames": "Регистрировать также старые имена ego_*",
|
|
1121
|
+
"legacyEgoToolNamesDesc": "Для скриптов до переименования в bcdp_*; несовместимо с апстрим-плагином ego-browser",
|
|
1122
|
+
"captureBackend": "Бэкенд захвата",
|
|
1123
|
+
"captureBackendDesc": "auto, cdp или ffmpeg",
|
|
1124
|
+
"streamProfile": "Профиль качества",
|
|
1125
|
+
"streamProfileDesc": "Общий пресет качества",
|
|
1126
|
+
"cdpFps": "FPS предпросмотра CDP",
|
|
1127
|
+
"cdpQuality": "Качество JPEG CDP",
|
|
1128
|
+
"cdpMaxWidth": "Макс. ширина кадра CDP",
|
|
1129
|
+
"cdpBackstopIntervalMs": "Интервал резервных скриншотов CDP (мс)",
|
|
1130
|
+
"ffmpegFps": "FPS видео FFmpeg",
|
|
1131
|
+
"ffmpegMaxWidth": "Макс. ширина FFmpeg",
|
|
1132
|
+
"ffmpegBitrateKbps": "Битрейт FFmpeg (кбит/с)",
|
|
1133
|
+
"ffmpegEncoder": "H.264-энкодер FFmpeg",
|
|
1134
|
+
"ffmpegPath": "Путь к FFmpeg",
|
|
1135
|
+
"ffmpegPathDesc": "Пусто = искать в PATH или управляемая установка",
|
|
1136
|
+
"cursorHud": "Рисовать HUD курсора на скриншотах",
|
|
1137
|
+
"cursorName": "Подпись HUD курсора",
|
|
1138
|
+
"githubMirror": "Зеркало загрузок GitHub",
|
|
1139
|
+
"githubMirrorDesc": "HTTPS-префикс вместо https://github.com для управляемых загрузок",
|
|
1140
|
+
"runtimeArgs": "Дополнительные аргументы рантайма",
|
|
1141
|
+
"runtimeArgsDesc": "Добавляются в argv управляемого рантайма; со следующего вызова bcdp_*",
|
|
1142
|
+
"chromeArgs": "Дополнительные аргументы запуска Chrome",
|
|
1143
|
+
"chromeArgsDesc": "Добавляются в argv запуска Chrome; со следующего холодного запуска",
|
|
1144
|
+
"judgePrefer": "Порядок шагов судьи",
|
|
1145
|
+
"judgePreferDesc": "Через запятую; по умолчанию: \"laya,rule\"",
|
|
1146
|
+
"jevUrl": "Базовый URL JEV",
|
|
1147
|
+
"jevUrlDesc": "Пусто = пропустить шаг jev",
|
|
1148
|
+
"jevKey": "Bearer-ключ JEV",
|
|
1149
|
+
"jevKeyDesc": "Пусто = шаг jev пропускается",
|
|
1150
|
+
"jevModel": "Имя модели JEV",
|
|
1151
|
+
"jevChunkSize": "Кандидатов JEV за тур",
|
|
1152
|
+
"jevMaxImageBytes": "Бюджет байтов на кадр JEV (0 = без лимита)",
|
|
1153
|
+
"jevHistoryLimit": "Окно последних шагов JEV",
|
|
1154
|
+
"jevArchiveImage": "Встраивать скриншот в архив",
|
|
1155
|
+
"jevEvaluate": "Оценивать каждое действие судьёй",
|
|
1156
|
+
"jevEvaluateDesc": "Стоит одного вызова оценки на действие",
|
|
1157
|
+
"jevStepBudget": "Циклов на выполнение bcdp_jev_run",
|
|
1158
|
+
"jevWallMs": "Лимит реального времени на выполнение (мс)",
|
|
1159
|
+
"layaUrl": "Базовый URL Laya",
|
|
1160
|
+
"layaUrlDesc": "Сайдкар обслуживает порт 8000",
|
|
1161
|
+
"layaKey": "Ключ Laya (обязателен)",
|
|
1162
|
+
"layaKeyDesc": "Без ключа гарантированно 401",
|
|
1163
|
+
"layaModel": "Имя модели Laya",
|
|
1164
|
+
"linksTitle": "Цели подключения (порядок = приоритет)",
|
|
1165
|
+
"linksEmpty": "Целей нет — добавьте первую через форму ниже",
|
|
1166
|
+
"linksEnabled": "Включено",
|
|
1167
|
+
"linksActive": "активна",
|
|
1168
|
+
"linksAddCdp": "Добавить CDP-эндпоинт",
|
|
1169
|
+
"linksAddCli": "Добавить локальный ego CLI",
|
|
1170
|
+
"linksAddCliExists": "Локальное подключение ego CLI уже существует — не более одного на машину",
|
|
1171
|
+
"linksEndpoint": "Эндпоинт",
|
|
1172
|
+
"linksEndpointHint": "http(s)://хост:порт или ws(s)://…",
|
|
1173
|
+
"linksEndpointInvalid": "Неверный эндпоинт — не сохранено",
|
|
1174
|
+
"linksCliPath": "Путь к ego CLI",
|
|
1175
|
+
"linksCliPathHint": "Пусто = автоопределение (PATH → пакет приложения → встроенный рантайм)",
|
|
1176
|
+
"linksLabel": "Метка",
|
|
1177
|
+
"linksRemove": "Удалить",
|
|
1178
|
+
"linksMoveUp": "Выше",
|
|
1179
|
+
"linksMoveDown": "Ниже",
|
|
1180
|
+
"linksProbe": "Проверить",
|
|
1181
|
+
"linksProbing": "Проверка…",
|
|
1182
|
+
"linksProbeOk": "доступен",
|
|
1183
|
+
"linksProbeFail": "недоступен",
|
|
1184
|
+
"linksLimitReached": "В последовательности не более {n} записей",
|
|
1185
|
+
"linksWriteFailed": "Не сохранено — слой настроек отклонил запись",
|
|
1186
|
+
"linksCliRemoteWarn": "Активация ego CLI при cdpMode=remote завершится ошибкой mode-kind-mismatch",
|
|
1187
|
+
"linksCliSdk": "Использовать встроенный harness",
|
|
1188
|
+
"linksDisabledHint": "Отключено — сначала включите, затем активируйте",
|
|
1189
|
+
"linksActivate": "активировать"
|
|
1190
|
+
};
|
|
1191
|
+
/** Spanish dictionary, checked complete against the zh key set. */
|
|
1192
|
+
const es = {
|
|
1193
|
+
"title": "Navegador CDP",
|
|
1194
|
+
"titleLive": "Navegador CDP · En vivo",
|
|
1195
|
+
"liveView": "Vista de observación (solo lectura)",
|
|
1196
|
+
"pinned": "Fijada",
|
|
1197
|
+
"realtime": "Navegando en vivo",
|
|
1198
|
+
"noScreenshot": "(sin captura — about:blank o el navegador no renderiza)",
|
|
1199
|
+
"noActivePages": "No hay páginas activas del navegador",
|
|
1200
|
+
"noActiveHint": "Las páginas aparecerán aquí cuando el agente navegue con bcdp_*",
|
|
1201
|
+
"openExternal": "Abrir página real",
|
|
1202
|
+
"raiseWindow": "Ventana emergente",
|
|
1203
|
+
"raiseWindowHint": "Muestra el navegador del agente como ventana real (una instancia headless se sustituye por una visible con el mismo perfil, sin perder pestañas)",
|
|
1204
|
+
"pickMode": "Elegir elemento",
|
|
1205
|
+
"pickModeHint": "Haz clic en un elemento de la página en vivo para citarlo en la conversación",
|
|
1206
|
+
"picking": "Selección… haz clic en un elemento de la página",
|
|
1207
|
+
"picked": "Elemento capturado",
|
|
1208
|
+
"pickFailed": "Selección fallida",
|
|
1209
|
+
"pickQuoted": "✓ Citado en el campo de entrada",
|
|
1210
|
+
"pickDeliverFailed": "Error al entregar",
|
|
1211
|
+
"noUrl": "No hay URL que abrir",
|
|
1212
|
+
"closeTab": "Cerrar pestaña",
|
|
1213
|
+
"newTab": "(nueva pestaña)",
|
|
1214
|
+
"history": "Historial de navegación",
|
|
1215
|
+
"historyHide": "Ocultar historial",
|
|
1216
|
+
"historyShow": "Mostrar historial",
|
|
1217
|
+
"noHistory": "Sin historial de navegación",
|
|
1218
|
+
"current": "actual",
|
|
1219
|
+
"refresh": "Actualizar",
|
|
1220
|
+
"backToLive": "← Volver a vivo",
|
|
1221
|
+
"dragHint": "Arrastra para mover el panel",
|
|
1222
|
+
"loginTitle": "Si requiere inicio de sesión, hazlo en la ventana de Chrome «Puente de navegador CDP» del escritorio.",
|
|
1223
|
+
"loginBtn": "Sesión iniciada, guardar",
|
|
1224
|
+
"loginSaving": "Guardando…",
|
|
1225
|
+
"loginSaved": "{n} sesiones guardadas",
|
|
1226
|
+
"loginNotConnected": "Navegador no conectado",
|
|
1227
|
+
"loginFailed": "Error al guardar",
|
|
1228
|
+
"loginDismiss": "Descartar",
|
|
1229
|
+
"captchaTitle": "⚠️ Verificación humana detectada",
|
|
1230
|
+
"captchaHint": "Completa la verificación en la ventana «Puente de navegador CDP» del escritorio; el agente continuará.",
|
|
1231
|
+
"captchaDismiss": "Descartar",
|
|
1232
|
+
"hintReset": "Restablecido · rueda para desplazar · Ctrl+rueda para zoom · doble clic para restablecer",
|
|
1233
|
+
"hintPan": "Ctrl+rueda para zoom · Ctrl+arrastrar para desplazar · doble clic para restablecer",
|
|
1234
|
+
"hintScroll": "Ctrl+arrastrar para desplazar · rueda para desplazar",
|
|
1235
|
+
"hintNotCaptured": "Pantalla no capturada · acción no entregada · haz clic de nuevo para recuperarla",
|
|
1236
|
+
"failed": "falló",
|
|
1237
|
+
"stale": "⚠ No capturada",
|
|
1238
|
+
"captured": "Capturada",
|
|
1239
|
+
"fabTitle": "Vista en vivo del navegador CDP",
|
|
1240
|
+
"settingsTitle": "Mostrar ajustes",
|
|
1241
|
+
"settingsHide": "Ocultar ajustes",
|
|
1242
|
+
"famTitle": "Navegador CDP",
|
|
1243
|
+
"famIsolate": "Aislamiento de espacios",
|
|
1244
|
+
"famIsolateDesc": "Off = perfil persistente (los inicios de sesión sobreviven reinicios); on = sandbox aislado cada vez",
|
|
1245
|
+
"famIdle": "Parada automática por inactividad (minutos, 0 = nunca)",
|
|
1246
|
+
"famIdleDesc": "Detiene el navegador tras N minutos sin llamadas bcdp_*; relanza bajo demanda",
|
|
1247
|
+
"titleIdle": "Navegador del agente",
|
|
1248
|
+
"videoUnsupported": "Este navegador no admite este flujo H.264",
|
|
1249
|
+
"videoDisconnected": "Flujo de vídeo interrumpido",
|
|
1250
|
+
"videoConnectFailed": "Error al conectar el flujo de vídeo ({status})",
|
|
1251
|
+
"gBasic": "Básico",
|
|
1252
|
+
"gCapture": "Captura y transmisión",
|
|
1253
|
+
"gJudge": "Enjuiciamiento (JEV / Laya)",
|
|
1254
|
+
"cdpMode": "Modo de conexión",
|
|
1255
|
+
"cdpModeDesc": "auto = solo destino activado; remote = nunca iniciar navegador local; local = control siempre local",
|
|
1256
|
+
"remoteEnabled": "Interruptor general del control remoto",
|
|
1257
|
+
"remoteEnabledDesc": "Off = la secuencia de destinos se conserva pero inactiva; no afecta al modo local",
|
|
1258
|
+
"allowLocalFallback": "Permitir reserva local en modo auto",
|
|
1259
|
+
"allowLocalFallbackDesc": "auto puede iniciar un navegador local si el destino activado es inalcanzable",
|
|
1260
|
+
"chromePath": "Ruta de Chrome/Chromium",
|
|
1261
|
+
"chromePathDesc": "Vacío = autodetectar",
|
|
1262
|
+
"localHeadless": "Iniciar el navegador local en headless",
|
|
1263
|
+
"localHeadlessDesc": "Solo se aplica al navegador iniciado localmente",
|
|
1264
|
+
"localUserDataDir": "Directorio de perfil del navegador local",
|
|
1265
|
+
"localUserDataDirDesc": "Vacío = directorio gestionado; no debe apuntar a tu perfil habitual de Chrome",
|
|
1266
|
+
"legacyEgoToolNames": "Registrar también los nombres antiguos ego_*",
|
|
1267
|
+
"legacyEgoToolNamesDesc": "Para scripts anteriores a la renomenclatura bcdp_*; incompatible con el plugin upstream ego-browser",
|
|
1268
|
+
"captureBackend": "Backend de captura",
|
|
1269
|
+
"captureBackendDesc": "auto, cdp o ffmpeg",
|
|
1270
|
+
"streamProfile": "Perfil de calidad",
|
|
1271
|
+
"streamProfileDesc": "Preajuste de calidad general",
|
|
1272
|
+
"cdpFps": "FPS de vista previa CDP",
|
|
1273
|
+
"cdpQuality": "Calidad JPEG de CDP",
|
|
1274
|
+
"cdpMaxWidth": "Ancho máximo de fotograma CDP",
|
|
1275
|
+
"cdpBackstopIntervalMs": "Intervalo de capturas de respaldo CDP (ms)",
|
|
1276
|
+
"ffmpegFps": "FPS de vídeo FFmpeg",
|
|
1277
|
+
"ffmpegMaxWidth": "Ancho máximo FFmpeg",
|
|
1278
|
+
"ffmpegBitrateKbps": "Tasa de bits FFmpeg (kbps)",
|
|
1279
|
+
"ffmpegEncoder": "Codificador H.264 de FFmpeg",
|
|
1280
|
+
"ffmpegPath": "Ruta de FFmpeg",
|
|
1281
|
+
"ffmpegPathDesc": "Vacío = detectar en PATH o instalación gestionada",
|
|
1282
|
+
"cursorHud": "Dibujar HUD del cursor en capturas",
|
|
1283
|
+
"cursorName": "Etiqueta del HUD del cursor",
|
|
1284
|
+
"githubMirror": "Espejo de descargas de GitHub",
|
|
1285
|
+
"githubMirrorDesc": "Prefijo HTTPS que sustituye a https://github.com en descargas gestionadas",
|
|
1286
|
+
"runtimeArgs": "Argumentos adicionales del runtime",
|
|
1287
|
+
"runtimeArgsDesc": "Añadidos a los argv del runtime gestionado; desde la siguiente llamada bcdp_*",
|
|
1288
|
+
"chromeArgs": "Argumentos adicionales de arranque de Chrome",
|
|
1289
|
+
"chromeArgsDesc": "Añadidos a los argv de arranque de Chrome; desde el próximo arranque en frío",
|
|
1290
|
+
"judgePrefer": "Orden de los saltos del juez",
|
|
1291
|
+
"judgePreferDesc": "Separados por comas; por defecto: \"laya,rule\"",
|
|
1292
|
+
"jevUrl": "URL base de JEV",
|
|
1293
|
+
"jevUrlDesc": "Vacío = saltar el paso jev",
|
|
1294
|
+
"jevKey": "Clave Bearer de JEV",
|
|
1295
|
+
"jevKeyDesc": "Vacío = se omite el paso jev",
|
|
1296
|
+
"jevModel": "Nombre del modelo JEV",
|
|
1297
|
+
"jevChunkSize": "Candidatos JEV por ronda",
|
|
1298
|
+
"jevMaxImageBytes": "Presupuesto de bytes por fotograma JEV (0 = sin límite)",
|
|
1299
|
+
"jevHistoryLimit": "Ventana de pasos recientes de JEV",
|
|
1300
|
+
"jevArchiveImage": "Incrustar captura en el archivo",
|
|
1301
|
+
"jevEvaluate": "Enjuiciar cada acción",
|
|
1302
|
+
"jevEvaluateDesc": "Conlleva una llamada de juicio por acción",
|
|
1303
|
+
"jevStepBudget": "Rondas por ejecución de bcdp_jev_run",
|
|
1304
|
+
"jevWallMs": "Límite de tiempo real por ejecución (ms)",
|
|
1305
|
+
"layaUrl": "URL base de Laya",
|
|
1306
|
+
"layaUrlDesc": "El sidecar sirve el puerto 8000",
|
|
1307
|
+
"layaKey": "Clave de Laya (obligatoria)",
|
|
1308
|
+
"layaKeyDesc": "Sin clave, 401 seguro",
|
|
1309
|
+
"layaModel": "Nombre del modelo Laya",
|
|
1310
|
+
"linksTitle": "Destinos de conexión (orden = prioridad)",
|
|
1311
|
+
"linksEmpty": "Sin destinos — añade el primero con el formulario de abajo",
|
|
1312
|
+
"linksEnabled": "Habilitado",
|
|
1313
|
+
"linksActive": "activado",
|
|
1314
|
+
"linksAddCdp": "Añadir endpoint CDP",
|
|
1315
|
+
"linksAddCli": "Añadir ego CLI local",
|
|
1316
|
+
"linksAddCliExists": "La conexión ego CLI local ya existe — una por máquina",
|
|
1317
|
+
"linksEndpoint": "Endpoint",
|
|
1318
|
+
"linksEndpointHint": "http(s)://host:puerto o ws(s)://…",
|
|
1319
|
+
"linksEndpointInvalid": "Endpoint no válido — no se guardó",
|
|
1320
|
+
"linksCliPath": "Ruta del ego CLI",
|
|
1321
|
+
"linksCliPathHint": "Vacío = detección automática (PATH → bundle de la app → runtime integrado)",
|
|
1322
|
+
"linksLabel": "Etiqueta",
|
|
1323
|
+
"linksRemove": "Quitar",
|
|
1324
|
+
"linksMoveUp": "Subir",
|
|
1325
|
+
"linksMoveDown": "Bajar",
|
|
1326
|
+
"linksProbe": "Probar",
|
|
1327
|
+
"linksProbing": "Probando…",
|
|
1328
|
+
"linksProbeOk": "alcanzable",
|
|
1329
|
+
"linksProbeFail": "inalcanzable",
|
|
1330
|
+
"linksLimitReached": "La secuencia está limitada a {n} entradas",
|
|
1331
|
+
"linksWriteFailed": "Error al guardar — la capa de ajustes rechazó esta escritura",
|
|
1332
|
+
"linksCliRemoteWarn": "Activar un enlace ego CLI con cdpMode=remote falla con mode-kind-mismatch",
|
|
1333
|
+
"linksCliSdk": "Usar harness integrado",
|
|
1334
|
+
"linksDisabledHint": "Desactivado — actívalo antes de activarlo",
|
|
1335
|
+
"linksActivate": "activar"
|
|
1336
|
+
};
|
|
1337
|
+
/** All nine dictionaries, handed to the locale service in ONE register call. */
|
|
1338
|
+
const dictionaries = {
|
|
1339
|
+
zh,
|
|
1340
|
+
en,
|
|
1341
|
+
ja,
|
|
1342
|
+
ko,
|
|
1343
|
+
fr,
|
|
1344
|
+
de,
|
|
1345
|
+
it,
|
|
1346
|
+
ru,
|
|
1347
|
+
es
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
//#endregion
|
|
1351
|
+
//#region src/client/fam-links.ts
|
|
1352
|
+
/**
|
|
1353
|
+
* Pure link-sequence operations behind the settings card's 连接目标 editor.
|
|
1354
|
+
*
|
|
1355
|
+
* The client bundle cannot reach `src/cdp-targets.ts` (its import graph drags
|
|
1356
|
+
* node-side modules into the browser build), so the small rules the card needs
|
|
1357
|
+
* live here — deliberately the SAME rules the host enforces on read
|
|
1358
|
+
* (`sanitizeLinks`/`coerceLink`): ego-cli singleton, MAX cap, unusable-row
|
|
1359
|
+
* rejection. The card writes the WHOLE `links` array in one `scope.set`
|
|
1360
|
+
* (row-level volatile writes don't exist), which BYPASSES the host's
|
|
1361
|
+
* `upsertLink` rejections — these prechecks are therefore the only guard, and
|
|
1362
|
+
* the tests pin them to the host semantics.
|
|
1363
|
+
*
|
|
1364
|
+
* Two hard invariants (see plan `compat-0.2.0-dsh-browser-cdp` / findings
|
|
1365
|
+
* Agent C §3):
|
|
1366
|
+
* - a stored row's keys are all optional at runtime; edits must spread the
|
|
1367
|
+
* original row (`{...row, ...patch}`) so probe state survives — a rebuilt
|
|
1368
|
+
* thin row loses badges, and a bad `probeStatus` enum gets the WHOLE write
|
|
1369
|
+
* rejected by the settings layer;
|
|
1370
|
+
* - a cdp row with an empty/invalid endpoint is silently dropped by the host's
|
|
1371
|
+
* `coerceLink` on next resolve — the card must refuse to persist one.
|
|
1372
|
+
*
|
|
1373
|
+
* No react import: this module is unit-tested directly under vitest's node
|
|
1374
|
+
* environment (the client entry's `require('react')` makes index.ts
|
|
1375
|
+
* un-importable there).
|
|
1376
|
+
*/
|
|
1377
|
+
/** Hard ceiling on the sequence length — mirrors host `MAX_TARGETS`. */
|
|
1378
|
+
const MAX_LINKS = 32;
|
|
1379
|
+
/** Local ego CLI singleton default label — mirrors host `EGO_CLI_LABEL`. */
|
|
1380
|
+
const EGO_CLI_LABEL = "本机 ego CLI";
|
|
1381
|
+
/** Fresh id, same shape as the host `newTargetId()` (uuid, `t-` fallback). */
|
|
1382
|
+
function newLinkId() {
|
|
1383
|
+
const cryptoObj = globalThis.crypto;
|
|
1384
|
+
if (cryptoObj && typeof cryptoObj.randomUUID === "function") return cryptoObj.randomUUID();
|
|
1385
|
+
return `t-${Math.random().toString(36).slice(2, 10)}${Date.now().toString(36)}`;
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* The card-side gate for persisting a cdp endpoint: non-empty and explicitly
|
|
1389
|
+
* scheme-qualified. Anything else would pass the settings write and then be
|
|
1390
|
+
* dropped by the host's `coerceLink` on the next resolve — invisible loss.
|
|
1391
|
+
*/
|
|
1392
|
+
function isValidEndpoint(value) {
|
|
1393
|
+
if (typeof value !== "string") return false;
|
|
1394
|
+
const v = value.trim();
|
|
1395
|
+
if (v === "") return false;
|
|
1396
|
+
return /^(https?|wss?):\/\//i.test(v);
|
|
1397
|
+
}
|
|
1398
|
+
function trimmed(value) {
|
|
1399
|
+
return typeof value === "string" ? value.trim() : "";
|
|
1400
|
+
}
|
|
1401
|
+
/** Full-field cdp row: probe five-piece defaults so the write passes the union. */
|
|
1402
|
+
function buildCdpRow(input) {
|
|
1403
|
+
const endpoint = trimmed(input.endpoint);
|
|
1404
|
+
return {
|
|
1405
|
+
kind: "cdp",
|
|
1406
|
+
id: newLinkId(),
|
|
1407
|
+
label: trimmed(input.label) || endpoint,
|
|
1408
|
+
endpoint,
|
|
1409
|
+
enabled: true,
|
|
1410
|
+
note: "",
|
|
1411
|
+
probeStatus: "unknown",
|
|
1412
|
+
probeLatencyMs: 0,
|
|
1413
|
+
probeError: "",
|
|
1414
|
+
probeCode: "",
|
|
1415
|
+
probeAt: 0
|
|
1416
|
+
};
|
|
1417
|
+
}
|
|
1418
|
+
/** Full-field ego-cli row (`cliPath` '' = host auto-resolve chain). */
|
|
1419
|
+
function buildCliRow(input) {
|
|
1420
|
+
const cliPath = trimmed(input.cliPath);
|
|
1421
|
+
return {
|
|
1422
|
+
kind: "ego-cli",
|
|
1423
|
+
id: newLinkId(),
|
|
1424
|
+
label: trimmed(input.label) || cliPath || EGO_CLI_LABEL,
|
|
1425
|
+
cliPath,
|
|
1426
|
+
useSdkPath: false,
|
|
1427
|
+
enabled: true,
|
|
1428
|
+
note: "",
|
|
1429
|
+
probeStatus: "unknown",
|
|
1430
|
+
probeLatencyMs: 0,
|
|
1431
|
+
probeError: "",
|
|
1432
|
+
probeCode: "",
|
|
1433
|
+
probeAt: 0
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
/** Second ego-cli anywhere in the array would be silently dropped on read. */
|
|
1437
|
+
function hasCliLink(links) {
|
|
1438
|
+
return links.some(function(row) {
|
|
1439
|
+
return row.kind === "ego-cli";
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
function isFull(links) {
|
|
1443
|
+
return links.length >= MAX_LINKS;
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* Append a pre-built row behind the host's structured rejections: the card
|
|
1447
|
+
* bypasses `upsertLink`, so the singleton and cap checks here are the only
|
|
1448
|
+
* guard before the write.
|
|
1449
|
+
*/
|
|
1450
|
+
function addRow(links, row) {
|
|
1451
|
+
if (row.kind === "ego-cli" && hasCliLink(links)) return {
|
|
1452
|
+
links,
|
|
1453
|
+
code: "ego-cli-already-exists"
|
|
1454
|
+
};
|
|
1455
|
+
if (links.length >= MAX_LINKS) return {
|
|
1456
|
+
links,
|
|
1457
|
+
code: "link-limit-reached"
|
|
1458
|
+
};
|
|
1459
|
+
if (row.kind === "cdp" && !isValidEndpoint(row.endpoint)) return {
|
|
1460
|
+
links,
|
|
1461
|
+
code: "unusable-row"
|
|
1462
|
+
};
|
|
1463
|
+
return { links: links.concat([row]) };
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Patch one row by id, spreading the ORIGINAL row so probe state and any
|
|
1467
|
+
* field the patch omits survive verbatim. Unknown id → array returned
|
|
1468
|
+
* unchanged (new reference only if the map ran; callers treat it as no-op).
|
|
1469
|
+
*/
|
|
1470
|
+
function updateRow(links, id, patch) {
|
|
1471
|
+
return links.map(function(row) {
|
|
1472
|
+
return row.id === id ? Object.assign({}, row, patch) : row;
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* Filter one row out. Returns the removed row so the caller can clear
|
|
1477
|
+
* `activeTargetId` when it was the activated one (clear, never advance —
|
|
1478
|
+
* re-pointing every bcdp_* call at another browser is the host's job to
|
|
1479
|
+
* refuse, not the card's to decide).
|
|
1480
|
+
*/
|
|
1481
|
+
function removeRow(links, id) {
|
|
1482
|
+
const removed = links.find(function(row) {
|
|
1483
|
+
return row.id === id;
|
|
1484
|
+
});
|
|
1485
|
+
return {
|
|
1486
|
+
links: links.filter(function(row) {
|
|
1487
|
+
return row.id !== id;
|
|
1488
|
+
}),
|
|
1489
|
+
removed
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
/** ±1 neighbour swap; out-of-range leaves the order untouched. */
|
|
1493
|
+
function moveRow(links, id, delta) {
|
|
1494
|
+
const index = links.findIndex(function(row) {
|
|
1495
|
+
return row.id === id;
|
|
1496
|
+
});
|
|
1497
|
+
const target = index + delta;
|
|
1498
|
+
if (index < 0 || target < 0 || target >= links.length) return links;
|
|
1499
|
+
const next = links.slice();
|
|
1500
|
+
const tmp = next[index];
|
|
1501
|
+
next[index] = next[target];
|
|
1502
|
+
next[target] = tmp;
|
|
1503
|
+
return next;
|
|
1504
|
+
}
|
|
1505
|
+
/** Write one probe outcome back into its row (spread-safe, full fields kept). */
|
|
1506
|
+
function applyProbe(links, id, outcome, at) {
|
|
1507
|
+
return updateRow(links, id, {
|
|
1508
|
+
probeStatus: outcome.ok ? "ok" : "error",
|
|
1509
|
+
probeLatencyMs: typeof outcome.latencyMs === "number" ? outcome.latencyMs : 0,
|
|
1510
|
+
probeError: outcome.ok ? "" : outcome.message || "",
|
|
1511
|
+
probeCode: outcome.ok ? "" : outcome.code || "",
|
|
1512
|
+
probeAt: at
|
|
1513
|
+
});
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
//#endregion
|
|
4
1517
|
//#region src/client/index.ts
|
|
5
1518
|
var React = require("react");
|
|
6
1519
|
var createSnapshotStore = require("@deepseek-ai/dsh-client-store").createSnapshotStore;
|
|
@@ -36,123 +1549,16 @@ var _egoLocale = (function() {
|
|
|
36
1549
|
return "en";
|
|
37
1550
|
}
|
|
38
1551
|
})();
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
titleLive: "Agent Browser · Live",
|
|
42
|
-
liveView: "Live view",
|
|
43
|
-
pinned: "Pinned",
|
|
44
|
-
realtime: "Live",
|
|
45
|
-
noScreenshot: "(no screenshot — about:blank or browser not rendering)",
|
|
46
|
-
noActivePages: "No active browser pages",
|
|
47
|
-
noActiveHint: "Pages will appear here as the agent browses with bcdp_*",
|
|
48
|
-
openExternal: "Open real page",
|
|
49
|
-
raiseWindow: "Pop out window",
|
|
50
|
-
raiseWindowHint: "Raise the agent browser as a real window (a headless instance is replaced by a visible one on the same profile)",
|
|
51
|
-
pickMode: "Pick element",
|
|
52
|
-
pickModeHint: "Click an element in the live page to quote it into the conversation",
|
|
53
|
-
picking: "Picking… click an element in the page",
|
|
54
|
-
picked: "Element captured",
|
|
55
|
-
pickFailed: "Pick failed",
|
|
56
|
-
pickQuoted: "✓ Quoted to composer",
|
|
57
|
-
pickDeliverFailed: "Delivery failed",
|
|
58
|
-
noUrl: "No URL to open",
|
|
59
|
-
closeTab: "Close tab",
|
|
60
|
-
newTab: "(new tab)",
|
|
61
|
-
history: "Browsing history",
|
|
62
|
-
historyHide: "Hide history",
|
|
63
|
-
historyShow: "Show history",
|
|
64
|
-
noHistory: "No browsing history",
|
|
65
|
-
current: "current",
|
|
66
|
-
refresh: "Refresh",
|
|
67
|
-
backToLive: "← Back to live",
|
|
68
|
-
dragHint: "Drag to move panel",
|
|
69
|
-
loginTitle: "Log in via the CDP browser bridge window on your desktop",
|
|
70
|
-
loginBtn: "Logged in, save",
|
|
71
|
-
loginSaving: "Saving…",
|
|
72
|
-
loginSaved: "Saved {n} sessions",
|
|
73
|
-
loginNotConnected: "Browser not connected",
|
|
74
|
-
loginFailed: "Save failed",
|
|
75
|
-
loginDismiss: "Dismiss",
|
|
76
|
-
captchaTitle: "⚠️ CAPTCHA detected",
|
|
77
|
-
captchaHint: "Complete verification in the CDP browser bridge window; the agent will continue.",
|
|
78
|
-
captchaDismiss: "Dismiss",
|
|
79
|
-
hintReset: "Reset · scroll to pan · Ctrl+scroll to zoom · double-click to reset",
|
|
80
|
-
hintPan: "Ctrl+scroll to zoom · Ctrl+drag to pan · double-click to reset",
|
|
81
|
-
hintScroll: "Ctrl+drag to pan · scroll to pan",
|
|
82
|
-
hintNotCaptured: "Not captured · operation not delivered · click again to recover",
|
|
83
|
-
failed: "failed",
|
|
84
|
-
stale: "⚠ Not captured",
|
|
85
|
-
captured: "Captured",
|
|
86
|
-
fabTitle: "Agent Browser live view",
|
|
87
|
-
settingsTitle: "Show settings",
|
|
88
|
-
settingsHide: "Hide settings",
|
|
89
|
-
famTitle: "CDP Browser",
|
|
90
|
-
famIsolate: "Space isolation",
|
|
91
|
-
famIsolateDesc: "Off = persistent profile (logins survive restarts); on = isolated sandbox",
|
|
92
|
-
famIdle: "Auto-stop idle browser (minutes, 0 = off)",
|
|
93
|
-
famIdleDesc: "Stops the backing browser after N minutes without a bcdp_* call; relaunches on demand"
|
|
94
|
-
};
|
|
95
|
-
var watchDict = {
|
|
96
|
-
en: watchEn,
|
|
97
|
-
zh: {
|
|
98
|
-
title: "CDP 浏览器",
|
|
99
|
-
titleLive: "CDP 浏览器 · 实时",
|
|
100
|
-
liveView: "只读观察窗",
|
|
101
|
-
pinned: "已固定查看",
|
|
102
|
-
realtime: "正在实时浏览",
|
|
103
|
-
noScreenshot: "(暂无截图 — about:blank 或浏览器未渲染)",
|
|
104
|
-
noActivePages: "暂无活跃浏览器页",
|
|
105
|
-
noActiveHint: "当 agent 开始用 bcdp_* 操作网页时,这里会实时显示",
|
|
106
|
-
openExternal: "⧉ 打开真实页",
|
|
107
|
-
raiseWindow: "弹出窗口",
|
|
108
|
-
raiseWindowHint: "把 agent 浏览器弹出为真实窗口(无头实例会被同 Profile 的有头实例替换,标签页保留)",
|
|
109
|
-
pickMode: "选择元素",
|
|
110
|
-
pickModeHint: "在实时页面里点选一个元素,引用到对话",
|
|
111
|
-
picking: "点选中…请点击页面里的元素",
|
|
112
|
-
picked: "已捕获元素",
|
|
113
|
-
pickFailed: "点选失败",
|
|
114
|
-
pickQuoted: "✓ 已引用到输入框",
|
|
115
|
-
pickDeliverFailed: "投递失败",
|
|
116
|
-
noUrl: "无可打开的地址",
|
|
117
|
-
closeTab: "关闭标签",
|
|
118
|
-
newTab: "(新标签页)",
|
|
119
|
-
history: "历史浏览轨迹",
|
|
120
|
-
historyHide: "收起历史轨迹",
|
|
121
|
-
historyShow: "历史浏览轨迹",
|
|
122
|
-
noHistory: "暂无浏览记录",
|
|
123
|
-
current: "当前",
|
|
124
|
-
refresh: "刷新",
|
|
125
|
-
backToLive: "← 返回实时",
|
|
126
|
-
dragHint: "拖动移动面板",
|
|
127
|
-
loginTitle: "需要账号登录时,请到桌面上那个 「CDP 浏览器代理」 Chrome 窗口完成登录。",
|
|
128
|
-
loginBtn: "已登录,保存",
|
|
129
|
-
loginSaving: "保存中…",
|
|
130
|
-
loginSaved: "已保存 {n} 条会话",
|
|
131
|
-
loginNotConnected: "未连接浏览器",
|
|
132
|
-
loginFailed: "保存失败",
|
|
133
|
-
loginDismiss: "关闭提示",
|
|
134
|
-
captchaTitle: "⚠️ 检测到人机验证",
|
|
135
|
-
captchaHint: "请在桌面那个 「CDP 浏览器代理」 浏览器窗口手动完成验证,agent 会继续。",
|
|
136
|
-
captchaDismiss: "关闭提示",
|
|
137
|
-
hintReset: "已复位 · 滚轮滚动页面 · Ctrl+滚轮缩放 · 双击复位",
|
|
138
|
-
hintPan: "Ctrl+滚轮缩放 · Ctrl+拖动平移 · 双击复位",
|
|
139
|
-
hintScroll: "Ctrl+拖动平移 · 滚轮滚动页面",
|
|
140
|
-
hintNotCaptured: "画面未接管 · 本次操作未送达 · 再点一次即可恢复",
|
|
141
|
-
failed: "失败",
|
|
142
|
-
stale: "⚠ 未接管",
|
|
143
|
-
captured: "已接管",
|
|
144
|
-
fabTitle: "CDP 浏览器实时视图",
|
|
145
|
-
settingsTitle: "展开设置",
|
|
146
|
-
settingsHide: "收起设置",
|
|
147
|
-
famTitle: "CDP 浏览器",
|
|
148
|
-
famIsolate: "空间隔离",
|
|
149
|
-
famIsolateDesc: "关 = 持久化配置(重启保留登录态);开 = 每次隔离沙箱",
|
|
150
|
-
famIdle: "空闲自动停止(分钟,0 = 不停)",
|
|
151
|
-
famIdleDesc: "超过 N 分钟没有 bcdp_* 调用即停止后台浏览器,下次调用按需重启"
|
|
152
|
-
}
|
|
153
|
-
};
|
|
1552
|
+
var watchDict = dictionaries;
|
|
1553
|
+
var _localeBind = null;
|
|
154
1554
|
function wt(key, params = void 0) {
|
|
155
|
-
var text =
|
|
1555
|
+
var text = null;
|
|
1556
|
+
if (_localeBind) try {
|
|
1557
|
+
text = _localeBind(key) || null;
|
|
1558
|
+
} catch {
|
|
1559
|
+
text = null;
|
|
1560
|
+
}
|
|
1561
|
+
if (text == null) text = (watchDict[_egoLocale] || watchDict.en)[key] || key;
|
|
156
1562
|
if (params) for (var k in params) text = text.replace(new RegExp("{" + k + "}", "g"), String(params[k]));
|
|
157
1563
|
return text;
|
|
158
1564
|
}
|
|
@@ -370,7 +1776,7 @@ function createKeyboardProxy(send) {
|
|
|
370
1776
|
}
|
|
371
1777
|
function createMsePlayer(video, generation, mime, onFailure) {
|
|
372
1778
|
if (!window.MediaSource || !window.MediaSource.isTypeSupported(mime)) {
|
|
373
|
-
onFailure("
|
|
1779
|
+
onFailure(wt("videoUnsupported"));
|
|
374
1780
|
return function() {};
|
|
375
1781
|
}
|
|
376
1782
|
var mediaSource = new MediaSource();
|
|
@@ -399,7 +1805,7 @@ function createMsePlayer(video, generation, mime, onFailure) {
|
|
|
399
1805
|
reading = false;
|
|
400
1806
|
if (disposed) return;
|
|
401
1807
|
if (part.done) {
|
|
402
|
-
onFailure("
|
|
1808
|
+
onFailure(wt("videoDisconnected"));
|
|
403
1809
|
return;
|
|
404
1810
|
}
|
|
405
1811
|
queue.push(part.value);
|
|
@@ -432,7 +1838,7 @@ function createMsePlayer(video, generation, mime, onFailure) {
|
|
|
432
1838
|
pump();
|
|
433
1839
|
});
|
|
434
1840
|
fetch(VIDEO_ROUTE + "?generation=" + encodeURIComponent(generation), { signal: abort.signal }).then(function(res) {
|
|
435
|
-
if (!res.ok || !res.body) throw new Error(
|
|
1841
|
+
if (!res.ok || !res.body) throw new Error(wt("videoConnectFailed", { status: res.status }));
|
|
436
1842
|
reader = res.body.getReader();
|
|
437
1843
|
pump();
|
|
438
1844
|
}).catch(function(error) {
|
|
@@ -691,17 +2097,30 @@ function mountFamilySettingsCard(ctx) {
|
|
|
691
2097
|
}, FamilySettingsCard);
|
|
692
2098
|
}, "dsh-browser-cdp: family settings tab");
|
|
693
2099
|
}
|
|
2100
|
+
function mountPluginsPageCard(ctx) {
|
|
2101
|
+
var forms = typeof ctx.get === "function" ? ctx.get("configForms") : void 0;
|
|
2102
|
+
if (!forms || typeof forms.get !== "function") return;
|
|
2103
|
+
var scope = forms.get("dsh-browser-cdp");
|
|
2104
|
+
ctx.slots.inject("plugins.bundle.config", function() {
|
|
2105
|
+
return ctx.slots.register({
|
|
2106
|
+
name: "plugins.bundle.config",
|
|
2107
|
+
key: "dsh-browser-cdp",
|
|
2108
|
+
locale: NS,
|
|
2109
|
+
inject: function() {
|
|
2110
|
+
return { scope };
|
|
2111
|
+
}
|
|
2112
|
+
}, FamilySettingsCard);
|
|
2113
|
+
}, "dsh-browser-cdp: plugins-page config card");
|
|
2114
|
+
}
|
|
694
2115
|
var FAM_FIELD_GROUPS = [
|
|
695
2116
|
{
|
|
696
2117
|
gk: "gBasic",
|
|
697
|
-
en: "Basics",
|
|
698
|
-
zh: "基础",
|
|
699
2118
|
fields: [
|
|
700
2119
|
{
|
|
701
2120
|
k: "isolateSpaces",
|
|
702
2121
|
kind: "bool",
|
|
703
|
-
|
|
704
|
-
|
|
2122
|
+
lk: "famIsolate",
|
|
2123
|
+
dk: "famIsolateDesc"
|
|
705
2124
|
},
|
|
706
2125
|
{
|
|
707
2126
|
k: "idleTimeoutMin",
|
|
@@ -709,8 +2128,8 @@ var FAM_FIELD_GROUPS = [
|
|
|
709
2128
|
min: 0,
|
|
710
2129
|
max: 1440,
|
|
711
2130
|
step: 1,
|
|
712
|
-
|
|
713
|
-
|
|
2131
|
+
lk: "famIdle",
|
|
2132
|
+
dk: "famIdleDesc"
|
|
714
2133
|
},
|
|
715
2134
|
{
|
|
716
2135
|
k: "cdpMode",
|
|
@@ -720,51 +2139,49 @@ var FAM_FIELD_GROUPS = [
|
|
|
720
2139
|
"local",
|
|
721
2140
|
"remote"
|
|
722
2141
|
],
|
|
723
|
-
|
|
724
|
-
|
|
2142
|
+
lk: "cdpMode",
|
|
2143
|
+
dk: "cdpModeDesc"
|
|
725
2144
|
},
|
|
726
2145
|
{
|
|
727
2146
|
k: "remoteEnabled",
|
|
728
2147
|
kind: "bool",
|
|
729
|
-
|
|
730
|
-
|
|
2148
|
+
lk: "remoteEnabled",
|
|
2149
|
+
dk: "remoteEnabledDesc"
|
|
731
2150
|
},
|
|
732
2151
|
{
|
|
733
2152
|
k: "allowLocalFallback",
|
|
734
2153
|
kind: "bool",
|
|
735
|
-
|
|
736
|
-
|
|
2154
|
+
lk: "allowLocalFallback",
|
|
2155
|
+
dk: "allowLocalFallbackDesc"
|
|
737
2156
|
},
|
|
738
2157
|
{
|
|
739
2158
|
k: "chromePath",
|
|
740
2159
|
kind: "str",
|
|
741
|
-
|
|
742
|
-
|
|
2160
|
+
lk: "chromePath",
|
|
2161
|
+
dk: "chromePathDesc"
|
|
743
2162
|
},
|
|
744
2163
|
{
|
|
745
2164
|
k: "localHeadless",
|
|
746
2165
|
kind: "bool",
|
|
747
|
-
|
|
748
|
-
|
|
2166
|
+
lk: "localHeadless",
|
|
2167
|
+
dk: "localHeadlessDesc"
|
|
749
2168
|
},
|
|
750
2169
|
{
|
|
751
2170
|
k: "localUserDataDir",
|
|
752
2171
|
kind: "str",
|
|
753
|
-
|
|
754
|
-
|
|
2172
|
+
lk: "localUserDataDir",
|
|
2173
|
+
dk: "localUserDataDirDesc"
|
|
755
2174
|
},
|
|
756
2175
|
{
|
|
757
2176
|
k: "legacyEgoToolNames",
|
|
758
2177
|
kind: "bool",
|
|
759
|
-
|
|
760
|
-
|
|
2178
|
+
lk: "legacyEgoToolNames",
|
|
2179
|
+
dk: "legacyEgoToolNamesDesc"
|
|
761
2180
|
}
|
|
762
2181
|
]
|
|
763
2182
|
},
|
|
764
2183
|
{
|
|
765
2184
|
gk: "gCapture",
|
|
766
|
-
en: "Capture & streaming",
|
|
767
|
-
zh: "截图与推流",
|
|
768
2185
|
fields: [
|
|
769
2186
|
{
|
|
770
2187
|
k: "captureBackend",
|
|
@@ -774,8 +2191,8 @@ var FAM_FIELD_GROUPS = [
|
|
|
774
2191
|
"cdp",
|
|
775
2192
|
"ffmpeg"
|
|
776
2193
|
],
|
|
777
|
-
|
|
778
|
-
|
|
2194
|
+
lk: "captureBackend",
|
|
2195
|
+
dk: "captureBackendDesc"
|
|
779
2196
|
},
|
|
780
2197
|
{
|
|
781
2198
|
k: "streamProfile",
|
|
@@ -785,8 +2202,8 @@ var FAM_FIELD_GROUPS = [
|
|
|
785
2202
|
"balanced",
|
|
786
2203
|
"high"
|
|
787
2204
|
],
|
|
788
|
-
|
|
789
|
-
|
|
2205
|
+
lk: "streamProfile",
|
|
2206
|
+
dk: "streamProfileDesc"
|
|
790
2207
|
},
|
|
791
2208
|
{
|
|
792
2209
|
k: "cdpFps",
|
|
@@ -794,8 +2211,7 @@ var FAM_FIELD_GROUPS = [
|
|
|
794
2211
|
min: 5,
|
|
795
2212
|
max: 30,
|
|
796
2213
|
step: 1,
|
|
797
|
-
|
|
798
|
-
zh: ["CDP 预览帧率", ""]
|
|
2214
|
+
lk: "cdpFps"
|
|
799
2215
|
},
|
|
800
2216
|
{
|
|
801
2217
|
k: "cdpQuality",
|
|
@@ -803,8 +2219,7 @@ var FAM_FIELD_GROUPS = [
|
|
|
803
2219
|
min: 1,
|
|
804
2220
|
max: 100,
|
|
805
2221
|
step: 1,
|
|
806
|
-
|
|
807
|
-
zh: ["CDP JPEG 质量", ""]
|
|
2222
|
+
lk: "cdpQuality"
|
|
808
2223
|
},
|
|
809
2224
|
{
|
|
810
2225
|
k: "cdpMaxWidth",
|
|
@@ -812,8 +2227,7 @@ var FAM_FIELD_GROUPS = [
|
|
|
812
2227
|
min: 320,
|
|
813
2228
|
max: 1920,
|
|
814
2229
|
step: 40,
|
|
815
|
-
|
|
816
|
-
zh: ["CDP 帧最大宽度", ""]
|
|
2230
|
+
lk: "cdpMaxWidth"
|
|
817
2231
|
},
|
|
818
2232
|
{
|
|
819
2233
|
k: "cdpBackstopIntervalMs",
|
|
@@ -821,8 +2235,7 @@ var FAM_FIELD_GROUPS = [
|
|
|
821
2235
|
min: 1e3,
|
|
822
2236
|
max: 1e4,
|
|
823
2237
|
step: 100,
|
|
824
|
-
|
|
825
|
-
zh: ["CDP 恢复截图间隔(ms)", ""]
|
|
2238
|
+
lk: "cdpBackstopIntervalMs"
|
|
826
2239
|
},
|
|
827
2240
|
{
|
|
828
2241
|
k: "ffmpegFps",
|
|
@@ -830,8 +2243,7 @@ var FAM_FIELD_GROUPS = [
|
|
|
830
2243
|
min: 5,
|
|
831
2244
|
max: 30,
|
|
832
2245
|
step: 1,
|
|
833
|
-
|
|
834
|
-
zh: ["FFmpeg 视频帧率", ""]
|
|
2246
|
+
lk: "ffmpegFps"
|
|
835
2247
|
},
|
|
836
2248
|
{
|
|
837
2249
|
k: "ffmpegMaxWidth",
|
|
@@ -839,8 +2251,7 @@ var FAM_FIELD_GROUPS = [
|
|
|
839
2251
|
min: 320,
|
|
840
2252
|
max: 1920,
|
|
841
2253
|
step: 40,
|
|
842
|
-
|
|
843
|
-
zh: ["FFmpeg 最大宽度", ""]
|
|
2254
|
+
lk: "ffmpegMaxWidth"
|
|
844
2255
|
},
|
|
845
2256
|
{
|
|
846
2257
|
k: "ffmpegBitrateKbps",
|
|
@@ -848,8 +2259,7 @@ var FAM_FIELD_GROUPS = [
|
|
|
848
2259
|
min: 500,
|
|
849
2260
|
max: 2e4,
|
|
850
2261
|
step: 250,
|
|
851
|
-
|
|
852
|
-
zh: ["FFmpeg 码率(kbps)", ""]
|
|
2262
|
+
lk: "ffmpegBitrateKbps"
|
|
853
2263
|
},
|
|
854
2264
|
{
|
|
855
2265
|
k: "ffmpegEncoder",
|
|
@@ -864,75 +2274,69 @@ var FAM_FIELD_GROUPS = [
|
|
|
864
2274
|
"h264_videotoolbox",
|
|
865
2275
|
"h264_vaapi"
|
|
866
2276
|
],
|
|
867
|
-
|
|
868
|
-
zh: ["FFmpeg H.264 编码器", ""]
|
|
2277
|
+
lk: "ffmpegEncoder"
|
|
869
2278
|
},
|
|
870
2279
|
{
|
|
871
2280
|
k: "ffmpegPath",
|
|
872
2281
|
kind: "str",
|
|
873
|
-
|
|
874
|
-
|
|
2282
|
+
lk: "ffmpegPath",
|
|
2283
|
+
dk: "ffmpegPathDesc"
|
|
875
2284
|
},
|
|
876
2285
|
{
|
|
877
2286
|
k: "cursorHud",
|
|
878
2287
|
kind: "bool",
|
|
879
|
-
|
|
880
|
-
zh: ["截图绘制光标 HUD", ""]
|
|
2288
|
+
lk: "cursorHud"
|
|
881
2289
|
},
|
|
882
2290
|
{
|
|
883
2291
|
k: "cursorName",
|
|
884
2292
|
kind: "str",
|
|
885
|
-
|
|
886
|
-
zh: ["光标 HUD 名称", ""]
|
|
2293
|
+
lk: "cursorName"
|
|
887
2294
|
},
|
|
888
2295
|
{
|
|
889
2296
|
k: "githubMirror",
|
|
890
2297
|
kind: "str",
|
|
891
|
-
|
|
892
|
-
|
|
2298
|
+
lk: "githubMirror",
|
|
2299
|
+
dk: "githubMirrorDesc"
|
|
893
2300
|
},
|
|
894
2301
|
{
|
|
895
2302
|
k: "runtimeArgs",
|
|
896
2303
|
kind: "str",
|
|
897
|
-
|
|
898
|
-
|
|
2304
|
+
lk: "runtimeArgs",
|
|
2305
|
+
dk: "runtimeArgsDesc"
|
|
899
2306
|
},
|
|
900
2307
|
{
|
|
901
2308
|
k: "chromeArgs",
|
|
902
2309
|
kind: "str",
|
|
903
|
-
|
|
904
|
-
|
|
2310
|
+
lk: "chromeArgs",
|
|
2311
|
+
dk: "chromeArgsDesc"
|
|
905
2312
|
}
|
|
906
2313
|
]
|
|
907
2314
|
},
|
|
908
2315
|
{
|
|
909
2316
|
gk: "gJudge",
|
|
910
|
-
en: "Judgement (JEV / Laya)",
|
|
911
|
-
zh: "评审(JEV / Laya)",
|
|
912
2317
|
fields: [
|
|
913
2318
|
{
|
|
914
2319
|
k: "judgePrefer",
|
|
915
2320
|
kind: "str",
|
|
916
|
-
|
|
917
|
-
|
|
2321
|
+
lk: "judgePrefer",
|
|
2322
|
+
dk: "judgePreferDesc"
|
|
918
2323
|
},
|
|
919
2324
|
{
|
|
920
2325
|
k: "jevUrl",
|
|
921
2326
|
kind: "str",
|
|
922
|
-
|
|
923
|
-
|
|
2327
|
+
lk: "jevUrl",
|
|
2328
|
+
dk: "jevUrlDesc"
|
|
924
2329
|
},
|
|
925
2330
|
{
|
|
926
2331
|
k: "jevKey",
|
|
927
2332
|
kind: "secret",
|
|
928
|
-
|
|
929
|
-
|
|
2333
|
+
lk: "jevKey",
|
|
2334
|
+
dk: "jevKeyDesc"
|
|
930
2335
|
},
|
|
931
2336
|
{
|
|
932
2337
|
k: "jevModel",
|
|
933
2338
|
kind: "str",
|
|
934
|
-
|
|
935
|
-
zh: ["JEV 模型名", ""]
|
|
2339
|
+
lk: "jevModel"
|
|
936
2340
|
},
|
|
937
2341
|
{
|
|
938
2342
|
k: "jevChunkSize",
|
|
@@ -940,16 +2344,14 @@ var FAM_FIELD_GROUPS = [
|
|
|
940
2344
|
min: 1,
|
|
941
2345
|
max: 255,
|
|
942
2346
|
step: 1,
|
|
943
|
-
|
|
944
|
-
zh: ["JEV 每轮候选上限", ""]
|
|
2347
|
+
lk: "jevChunkSize"
|
|
945
2348
|
},
|
|
946
2349
|
{
|
|
947
2350
|
k: "jevMaxImageBytes",
|
|
948
2351
|
kind: "num",
|
|
949
2352
|
min: 0,
|
|
950
2353
|
step: 1024,
|
|
951
|
-
|
|
952
|
-
zh: ["JEV 单帧字节预算(0 = 不限)", ""]
|
|
2354
|
+
lk: "jevMaxImageBytes"
|
|
953
2355
|
},
|
|
954
2356
|
{
|
|
955
2357
|
k: "jevHistoryLimit",
|
|
@@ -957,20 +2359,18 @@ var FAM_FIELD_GROUPS = [
|
|
|
957
2359
|
min: 0,
|
|
958
2360
|
max: 20,
|
|
959
2361
|
step: 1,
|
|
960
|
-
|
|
961
|
-
zh: ["JEV 近期步数窗口", ""]
|
|
2362
|
+
lk: "jevHistoryLimit"
|
|
962
2363
|
},
|
|
963
2364
|
{
|
|
964
2365
|
k: "jevArchiveImage",
|
|
965
2366
|
kind: "bool",
|
|
966
|
-
|
|
967
|
-
zh: ["归档包内嵌截图", ""]
|
|
2367
|
+
lk: "jevArchiveImage"
|
|
968
2368
|
},
|
|
969
2369
|
{
|
|
970
2370
|
k: "jevEvaluate",
|
|
971
2371
|
kind: "bool",
|
|
972
|
-
|
|
973
|
-
|
|
2372
|
+
lk: "jevEvaluate",
|
|
2373
|
+
dk: "jevEvaluateDesc"
|
|
974
2374
|
},
|
|
975
2375
|
{
|
|
976
2376
|
k: "jevStepBudget",
|
|
@@ -978,8 +2378,7 @@ var FAM_FIELD_GROUPS = [
|
|
|
978
2378
|
min: 1,
|
|
979
2379
|
max: 200,
|
|
980
2380
|
step: 1,
|
|
981
|
-
|
|
982
|
-
zh: ["单次 bcdp_jev_run 轮数上限", ""]
|
|
2381
|
+
lk: "jevStepBudget"
|
|
983
2382
|
},
|
|
984
2383
|
{
|
|
985
2384
|
k: "jevWallMs",
|
|
@@ -987,34 +2386,31 @@ var FAM_FIELD_GROUPS = [
|
|
|
987
2386
|
min: 1e3,
|
|
988
2387
|
max: 36e5,
|
|
989
2388
|
step: 1e3,
|
|
990
|
-
|
|
991
|
-
zh: ["单次运行墙钟上限(ms)", ""]
|
|
2389
|
+
lk: "jevWallMs"
|
|
992
2390
|
},
|
|
993
2391
|
{
|
|
994
2392
|
k: "layaUrl",
|
|
995
2393
|
kind: "str",
|
|
996
|
-
|
|
997
|
-
|
|
2394
|
+
lk: "layaUrl",
|
|
2395
|
+
dk: "layaUrlDesc"
|
|
998
2396
|
},
|
|
999
2397
|
{
|
|
1000
2398
|
k: "layaKey",
|
|
1001
2399
|
kind: "secret",
|
|
1002
|
-
|
|
1003
|
-
|
|
2400
|
+
lk: "layaKey",
|
|
2401
|
+
dk: "layaKeyDesc"
|
|
1004
2402
|
},
|
|
1005
2403
|
{
|
|
1006
2404
|
k: "layaModel",
|
|
1007
2405
|
kind: "str",
|
|
1008
|
-
|
|
1009
|
-
zh: ["Laya 模型名", ""]
|
|
2406
|
+
lk: "layaModel"
|
|
1010
2407
|
}
|
|
1011
2408
|
]
|
|
1012
2409
|
}
|
|
1013
2410
|
];
|
|
1014
2411
|
function famText(item, kind) {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
return pair[1] || "";
|
|
2412
|
+
if (kind === "title") return wt(item.lk);
|
|
2413
|
+
return item.dk ? wt(item.dk) : "";
|
|
1018
2414
|
}
|
|
1019
2415
|
function FamilySettingsCard(props) {
|
|
1020
2416
|
var scope = props.scope;
|
|
@@ -1055,7 +2451,7 @@ function FamGroup(props) {
|
|
|
1055
2451
|
fontWeight: 600,
|
|
1056
2452
|
color: "var(--dsw-alias-label-secondary, rgba(127,127,127,.9))",
|
|
1057
2453
|
padding: "2px 0 4px"
|
|
1058
|
-
} },
|
|
2454
|
+
} }, wt(group.gk)), group.fields.map(function(f) {
|
|
1059
2455
|
return h(FamField, {
|
|
1060
2456
|
key: f.k,
|
|
1061
2457
|
f,
|
|
@@ -1206,6 +2602,42 @@ function FamStrInput(props) {
|
|
|
1206
2602
|
}
|
|
1207
2603
|
});
|
|
1208
2604
|
}
|
|
2605
|
+
function FamRowInput(props) {
|
|
2606
|
+
var h = React.createElement;
|
|
2607
|
+
var empty = props.v === void 0 || props.v === null ? "" : String(props.v);
|
|
2608
|
+
var draft = React.useState(empty);
|
|
2609
|
+
var v = draft[0], setV = draft[1];
|
|
2610
|
+
React.useEffect(function() {
|
|
2611
|
+
setV(props.v === void 0 || props.v === null ? "" : String(props.v));
|
|
2612
|
+
}, [props.v]);
|
|
2613
|
+
function commit() {
|
|
2614
|
+
if (v !== empty) props.onCommit(v);
|
|
2615
|
+
}
|
|
2616
|
+
return h("input", {
|
|
2617
|
+
type: "text",
|
|
2618
|
+
value: v,
|
|
2619
|
+
disabled: !props.writable,
|
|
2620
|
+
placeholder: props.placeholder || "",
|
|
2621
|
+
style: {
|
|
2622
|
+
flex: "1 1 140px",
|
|
2623
|
+
minWidth: 0,
|
|
2624
|
+
font: "inherit",
|
|
2625
|
+
fontSize: "12px",
|
|
2626
|
+
color: "inherit",
|
|
2627
|
+
background: "var(--dsw-alias-bg-module-platform, rgba(127,127,127,.08))",
|
|
2628
|
+
border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))",
|
|
2629
|
+
borderRadius: "8px",
|
|
2630
|
+
padding: "3px 8px"
|
|
2631
|
+
},
|
|
2632
|
+
onChange: function(e) {
|
|
2633
|
+
setV(e.target.value);
|
|
2634
|
+
},
|
|
2635
|
+
onBlur: commit,
|
|
2636
|
+
onKeyDown: function(e) {
|
|
2637
|
+
if (e.key === "Enter") commit();
|
|
2638
|
+
}
|
|
2639
|
+
});
|
|
2640
|
+
}
|
|
1209
2641
|
function FamLinks(props) {
|
|
1210
2642
|
var value = props.value;
|
|
1211
2643
|
var writable = props.writable;
|
|
@@ -1213,85 +2645,334 @@ function FamLinks(props) {
|
|
|
1213
2645
|
var h = React.createElement;
|
|
1214
2646
|
var links = Array.isArray(value.links) ? value.links : [];
|
|
1215
2647
|
var activeId = typeof value.activeTargetId === "string" ? value.activeTargetId : "";
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
2648
|
+
var cdpMode = typeof value.cdpMode === "string" ? value.cdpMode : "auto";
|
|
2649
|
+
var errState = React.useState("");
|
|
2650
|
+
var errText = errState[0], setErrText = errState[1];
|
|
2651
|
+
var probeState = React.useState("");
|
|
2652
|
+
var probingId = probeState[0], setProbingId = probeState[1];
|
|
2653
|
+
var addLabelState = React.useState("");
|
|
2654
|
+
var addLabel = addLabelState[0], setAddLabel = addLabelState[1];
|
|
2655
|
+
var addEndpointState = React.useState("");
|
|
2656
|
+
var addEndpoint = addEndpointState[0], setAddEndpoint = addEndpointState[1];
|
|
2657
|
+
var addCliPathState = React.useState("");
|
|
2658
|
+
var addCliPath = addCliPathState[0], setAddCliPath = addCliPathState[1];
|
|
2659
|
+
var btnStyle = {
|
|
2660
|
+
font: "inherit",
|
|
2661
|
+
fontSize: "12px",
|
|
2662
|
+
cursor: writable ? "pointer" : "not-allowed",
|
|
2663
|
+
border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))",
|
|
2664
|
+
background: "none",
|
|
2665
|
+
color: "var(--dsw-alias-label-primary, inherit)",
|
|
2666
|
+
borderRadius: "8px",
|
|
2667
|
+
padding: "2px 8px",
|
|
2668
|
+
flex: "0 0 auto"
|
|
2669
|
+
};
|
|
2670
|
+
var badgeStyle = {
|
|
2671
|
+
fontSize: "10px",
|
|
2672
|
+
fontWeight: 600,
|
|
2673
|
+
letterSpacing: ".04em",
|
|
2674
|
+
flex: "0 0 auto",
|
|
2675
|
+
color: "var(--dsw-alias-label-tertiary, rgba(127,127,127,.7))",
|
|
2676
|
+
border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.25))",
|
|
2677
|
+
borderRadius: "6px",
|
|
2678
|
+
padding: "0 5px",
|
|
2679
|
+
lineHeight: "16px"
|
|
2680
|
+
};
|
|
2681
|
+
var inputStyle = {
|
|
2682
|
+
font: "inherit",
|
|
2683
|
+
fontSize: "12px",
|
|
2684
|
+
color: "inherit",
|
|
2685
|
+
background: "var(--dsw-alias-bg-module-platform, rgba(127,127,127,.08))",
|
|
2686
|
+
border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))",
|
|
2687
|
+
borderRadius: "8px",
|
|
2688
|
+
padding: "3px 8px"
|
|
2689
|
+
};
|
|
2690
|
+
function writeLinks(next) {
|
|
2691
|
+
Promise.resolve(scope.set("links", next)).then(function(ok) {
|
|
2692
|
+
if (ok === false) setErrText(wt("linksWriteFailed"));
|
|
2693
|
+
}, function() {
|
|
2694
|
+
setErrText(wt("linksWriteFailed"));
|
|
2695
|
+
});
|
|
2696
|
+
}
|
|
2697
|
+
function limitText() {
|
|
2698
|
+
return wt("linksLimitReached", { n: MAX_LINKS });
|
|
2699
|
+
}
|
|
2700
|
+
function addCdp() {
|
|
2701
|
+
if (!isValidEndpoint(addEndpoint)) {
|
|
2702
|
+
setErrText(wt("linksEndpointInvalid"));
|
|
2703
|
+
return;
|
|
2704
|
+
}
|
|
2705
|
+
var res = addRow(links, buildCdpRow({
|
|
2706
|
+
label: addLabel,
|
|
2707
|
+
endpoint: addEndpoint
|
|
2708
|
+
}));
|
|
2709
|
+
if (res.code) {
|
|
2710
|
+
setErrText(res.code === "link-limit-reached" ? limitText() : wt("linksEndpointInvalid"));
|
|
2711
|
+
return;
|
|
2712
|
+
}
|
|
2713
|
+
writeLinks(res.links);
|
|
2714
|
+
setAddLabel("");
|
|
2715
|
+
setAddEndpoint("");
|
|
2716
|
+
setErrText("");
|
|
2717
|
+
}
|
|
2718
|
+
function addCli() {
|
|
2719
|
+
var res = addRow(links, buildCliRow({
|
|
2720
|
+
label: "",
|
|
2721
|
+
cliPath: addCliPath
|
|
2722
|
+
}));
|
|
2723
|
+
if (res.code) {
|
|
2724
|
+
setErrText(res.code === "link-limit-reached" ? limitText() : wt("linksAddCliExists"));
|
|
2725
|
+
return;
|
|
2726
|
+
}
|
|
2727
|
+
writeLinks(res.links);
|
|
2728
|
+
setAddCliPath("");
|
|
2729
|
+
setErrText("");
|
|
2730
|
+
}
|
|
2731
|
+
function removeOne(row) {
|
|
2732
|
+
var res = removeRow(links, row.id);
|
|
2733
|
+
writeLinks(res.links);
|
|
2734
|
+
if (res.removed && res.removed.id !== void 0 && res.removed.id === activeId) scope.set("activeTargetId", "");
|
|
2735
|
+
}
|
|
2736
|
+
function probeOne(row) {
|
|
2737
|
+
if (probingId !== "" || !isValidEndpoint(row.endpoint)) return;
|
|
2738
|
+
setProbingId(row.id);
|
|
2739
|
+
setErrText("");
|
|
2740
|
+
postJson("/bcdp/api/cdp-probe", { endpoint: row.endpoint }).then(function(data) {
|
|
2741
|
+
var outcome = data && data.value && data.value.outcome ? data.value.outcome : {
|
|
2742
|
+
ok: false,
|
|
2743
|
+
code: "probe-failed",
|
|
2744
|
+
message: "no outcome"
|
|
2745
|
+
};
|
|
2746
|
+
writeLinks(applyProbe(links, row.id, outcome, Date.now()));
|
|
2747
|
+
}).catch(function(error) {
|
|
2748
|
+
writeLinks(applyProbe(links, row.id, {
|
|
2749
|
+
ok: false,
|
|
2750
|
+
code: "probe-failed",
|
|
2751
|
+
message: String(error && error.message || error)
|
|
2752
|
+
}, Date.now()));
|
|
2753
|
+
}).then(function() {
|
|
2754
|
+
setProbingId("");
|
|
1222
2755
|
});
|
|
1223
|
-
scope.set("links", next);
|
|
1224
2756
|
}
|
|
1225
2757
|
return h("div", { style: {
|
|
1226
2758
|
borderTop: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.25))",
|
|
1227
|
-
paddingTop: "6px"
|
|
2759
|
+
paddingTop: "6px",
|
|
2760
|
+
display: "grid",
|
|
2761
|
+
gap: "4px"
|
|
1228
2762
|
} }, h("div", { style: {
|
|
1229
2763
|
fontSize: "12px",
|
|
1230
2764
|
fontWeight: 600,
|
|
1231
2765
|
color: "var(--dsw-alias-label-secondary, rgba(127,127,127,.9))",
|
|
1232
2766
|
padding: "2px 0 4px"
|
|
1233
|
-
} },
|
|
2767
|
+
} }, wt("linksTitle")), links.length === 0 ? h("div", { style: {
|
|
1234
2768
|
fontSize: "12px",
|
|
1235
2769
|
color: "var(--dsw-alias-label-tertiary, rgba(127,127,127,.8))",
|
|
1236
|
-
padding: "
|
|
1237
|
-
} },
|
|
1238
|
-
var
|
|
1239
|
-
var detail = row.kind === "ego-cli" ? row.cliPath || "" : row.endpoint || "";
|
|
2770
|
+
padding: "2px 0"
|
|
2771
|
+
} }, wt("linksEmpty")) : links.map(function(row, idx) {
|
|
2772
|
+
var isCli = row.kind === "ego-cli";
|
|
1240
2773
|
var isActive = row.id !== void 0 && row.id === activeId;
|
|
2774
|
+
var probeBadge = null;
|
|
2775
|
+
if (row.probeStatus === "ok" || row.probeStatus === "error") probeBadge = h("span", {
|
|
2776
|
+
title: row.probeError || row.probeCode || "",
|
|
2777
|
+
style: {
|
|
2778
|
+
fontSize: "11px",
|
|
2779
|
+
flex: "0 0 auto",
|
|
2780
|
+
color: row.probeStatus === "ok" ? "#30d158" : "#ff453a"
|
|
2781
|
+
}
|
|
2782
|
+
}, wt(row.probeStatus === "ok" ? "linksProbeOk" : "linksProbeFail") + (row.probeStatus === "ok" && row.probeLatencyMs ? " · " + row.probeLatencyMs + "ms" : ""));
|
|
1241
2783
|
return h("div", {
|
|
1242
2784
|
key: row.id || idx,
|
|
1243
2785
|
style: {
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
flexWrap: "wrap"
|
|
2786
|
+
borderTop: "1px dashed var(--dsw-alias-border-l2, rgba(127,127,127,.18))",
|
|
2787
|
+
padding: "6px 0",
|
|
2788
|
+
display: "grid",
|
|
2789
|
+
gap: "4px"
|
|
1249
2790
|
}
|
|
1250
|
-
}, h("
|
|
2791
|
+
}, h("div", { style: {
|
|
2792
|
+
display: "flex",
|
|
2793
|
+
alignItems: "center",
|
|
2794
|
+
gap: "8px",
|
|
2795
|
+
flexWrap: "wrap"
|
|
2796
|
+
} }, h("input", {
|
|
1251
2797
|
type: "checkbox",
|
|
1252
2798
|
checked: row.enabled === true,
|
|
1253
2799
|
disabled: !writable,
|
|
1254
|
-
title:
|
|
2800
|
+
title: wt("linksEnabled"),
|
|
1255
2801
|
onChange: function(e) {
|
|
1256
|
-
|
|
2802
|
+
writeLinks(updateRow(links, row.id, { enabled: e.target.checked }));
|
|
1257
2803
|
}
|
|
1258
|
-
}), h("span", { style: {
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
textOverflow: "ellipsis",
|
|
1267
|
-
whiteSpace: "nowrap",
|
|
1268
|
-
flex: "1 1 120px"
|
|
1269
|
-
} }, detail), isActive ? h("span", { style: {
|
|
2804
|
+
}), h("span", { style: badgeStyle }, isCli ? "CLI" : "CDP"), h(FamRowInput, {
|
|
2805
|
+
v: row.label || "",
|
|
2806
|
+
writable,
|
|
2807
|
+
placeholder: wt("linksLabel"),
|
|
2808
|
+
onCommit: function(v) {
|
|
2809
|
+
writeLinks(updateRow(links, row.id, { label: v }));
|
|
2810
|
+
}
|
|
2811
|
+
}), probeBadge, isActive ? h("span", { style: {
|
|
1270
2812
|
fontSize: "11px",
|
|
1271
2813
|
color: "#30d158",
|
|
1272
2814
|
flex: "0 0 auto"
|
|
1273
|
-
} },
|
|
2815
|
+
} }, wt("linksActive")) : h("button", {
|
|
1274
2816
|
type: "button",
|
|
1275
|
-
disabled: !writable,
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
fontSize: "12px",
|
|
1279
|
-
cursor: writable ? "pointer" : "not-allowed",
|
|
1280
|
-
border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))",
|
|
1281
|
-
background: "none",
|
|
1282
|
-
color: "var(--dsw-alias-label-primary, inherit)",
|
|
1283
|
-
borderRadius: "8px",
|
|
1284
|
-
padding: "2px 10px",
|
|
1285
|
-
flex: "0 0 auto"
|
|
1286
|
-
},
|
|
2817
|
+
disabled: !writable || row.enabled === false,
|
|
2818
|
+
title: row.enabled === false ? wt("linksDisabledHint") : void 0,
|
|
2819
|
+
style: btnStyle,
|
|
1287
2820
|
onClick: function() {
|
|
1288
2821
|
scope.set("activeTargetId", row.id);
|
|
1289
2822
|
}
|
|
1290
|
-
},
|
|
1291
|
-
|
|
2823
|
+
}, wt("linksActivate"))), h("div", { style: {
|
|
2824
|
+
display: "flex",
|
|
2825
|
+
alignItems: "center",
|
|
2826
|
+
gap: "8px",
|
|
2827
|
+
flexWrap: "wrap"
|
|
2828
|
+
} }, h(FamRowInput, {
|
|
2829
|
+
v: (isCli ? row.cliPath : row.endpoint) || "",
|
|
2830
|
+
writable,
|
|
2831
|
+
placeholder: isCli ? wt("linksCliPathHint") : wt("linksEndpointHint"),
|
|
2832
|
+
onCommit: function(v) {
|
|
2833
|
+
if (isCli) {
|
|
2834
|
+
writeLinks(updateRow(links, row.id, { cliPath: v }));
|
|
2835
|
+
return;
|
|
2836
|
+
}
|
|
2837
|
+
if (!isValidEndpoint(v)) {
|
|
2838
|
+
setErrText(wt("linksEndpointInvalid"));
|
|
2839
|
+
return;
|
|
2840
|
+
}
|
|
2841
|
+
writeLinks(updateRow(links, row.id, { endpoint: v }));
|
|
2842
|
+
}
|
|
2843
|
+
}), isCli ? h("label", { style: {
|
|
2844
|
+
display: "flex",
|
|
2845
|
+
alignItems: "center",
|
|
2846
|
+
gap: "4px",
|
|
2847
|
+
fontSize: "11px",
|
|
2848
|
+
color: "var(--dsw-alias-label-tertiary, rgba(127,127,127,.7))",
|
|
2849
|
+
flex: "0 0 auto"
|
|
2850
|
+
} }, h("input", {
|
|
2851
|
+
type: "checkbox",
|
|
2852
|
+
checked: row.useSdkPath === true,
|
|
2853
|
+
disabled: !writable,
|
|
2854
|
+
title: wt("linksCliSdk"),
|
|
2855
|
+
onChange: function(e) {
|
|
2856
|
+
writeLinks(updateRow(links, row.id, { useSdkPath: e.target.checked }));
|
|
2857
|
+
}
|
|
2858
|
+
}), wt("linksCliSdk")) : null, !isCli ? h("button", {
|
|
2859
|
+
type: "button",
|
|
2860
|
+
disabled: !writable || probingId === row.id,
|
|
2861
|
+
style: btnStyle,
|
|
2862
|
+
onClick: function() {
|
|
2863
|
+
probeOne(row);
|
|
2864
|
+
}
|
|
2865
|
+
}, probingId === row.id ? wt("linksProbing") : wt("linksProbe")) : null, h("button", {
|
|
2866
|
+
type: "button",
|
|
2867
|
+
disabled: !writable || idx === 0,
|
|
2868
|
+
title: wt("linksMoveUp"),
|
|
2869
|
+
style: btnStyle,
|
|
2870
|
+
onClick: function() {
|
|
2871
|
+
writeLinks(moveRow(links, row.id, -1));
|
|
2872
|
+
}
|
|
2873
|
+
}, "↑"), h("button", {
|
|
2874
|
+
type: "button",
|
|
2875
|
+
disabled: !writable || idx === links.length - 1,
|
|
2876
|
+
title: wt("linksMoveDown"),
|
|
2877
|
+
style: btnStyle,
|
|
2878
|
+
onClick: function() {
|
|
2879
|
+
writeLinks(moveRow(links, row.id, 1));
|
|
2880
|
+
}
|
|
2881
|
+
}, "↓"), h("button", {
|
|
2882
|
+
type: "button",
|
|
2883
|
+
disabled: !writable,
|
|
2884
|
+
title: wt("linksRemove"),
|
|
2885
|
+
style: btnStyle,
|
|
2886
|
+
onClick: function() {
|
|
2887
|
+
removeOne(row);
|
|
2888
|
+
}
|
|
2889
|
+
}, "✕"), isCli && cdpMode === "remote" ? h("span", { style: {
|
|
2890
|
+
fontSize: "11px",
|
|
2891
|
+
color: "#ff9f0a",
|
|
2892
|
+
flex: "1 1 100%"
|
|
2893
|
+
} }, wt("linksCliRemoteWarn")) : null));
|
|
2894
|
+
}), h("div", { style: {
|
|
2895
|
+
display: "grid",
|
|
2896
|
+
gap: "6px",
|
|
2897
|
+
paddingTop: "4px"
|
|
2898
|
+
} }, h("div", { style: {
|
|
2899
|
+
display: "flex",
|
|
2900
|
+
gap: "8px",
|
|
2901
|
+
alignItems: "center",
|
|
2902
|
+
flexWrap: "wrap"
|
|
2903
|
+
} }, h("input", {
|
|
2904
|
+
type: "text",
|
|
2905
|
+
value: addLabel,
|
|
2906
|
+
disabled: !writable || isFull(links),
|
|
2907
|
+
placeholder: wt("linksLabel"),
|
|
2908
|
+
style: Object.assign({ width: "96px" }, inputStyle),
|
|
2909
|
+
onChange: function(e) {
|
|
2910
|
+
setAddLabel(e.target.value);
|
|
2911
|
+
}
|
|
2912
|
+
}), h("input", {
|
|
2913
|
+
type: "text",
|
|
2914
|
+
value: addEndpoint,
|
|
2915
|
+
disabled: !writable || isFull(links),
|
|
2916
|
+
placeholder: wt("linksEndpointHint"),
|
|
2917
|
+
style: Object.assign({
|
|
2918
|
+
flex: "1 1 160px",
|
|
2919
|
+
minWidth: 0
|
|
2920
|
+
}, inputStyle),
|
|
2921
|
+
onChange: function(e) {
|
|
2922
|
+
setAddEndpoint(e.target.value);
|
|
2923
|
+
},
|
|
2924
|
+
onKeyDown: function(e) {
|
|
2925
|
+
if (e.key === "Enter") addCdp();
|
|
2926
|
+
}
|
|
2927
|
+
}), h("button", {
|
|
2928
|
+
type: "button",
|
|
2929
|
+
disabled: !writable || isFull(links),
|
|
2930
|
+
title: isFull(links) ? limitText() : void 0,
|
|
2931
|
+
style: btnStyle,
|
|
2932
|
+
onClick: addCdp
|
|
2933
|
+
}, wt("linksAddCdp"))), h("div", { style: {
|
|
2934
|
+
display: "flex",
|
|
2935
|
+
gap: "8px",
|
|
2936
|
+
alignItems: "center",
|
|
2937
|
+
flexWrap: "wrap"
|
|
2938
|
+
} }, h("input", {
|
|
2939
|
+
type: "text",
|
|
2940
|
+
value: addCliPath,
|
|
2941
|
+
disabled: !writable || isFull(links) || hasCliLink(links),
|
|
2942
|
+
placeholder: wt("linksCliPathHint"),
|
|
2943
|
+
style: Object.assign({
|
|
2944
|
+
flex: "1 1 160px",
|
|
2945
|
+
minWidth: 0
|
|
2946
|
+
}, inputStyle),
|
|
2947
|
+
onChange: function(e) {
|
|
2948
|
+
setAddCliPath(e.target.value);
|
|
2949
|
+
},
|
|
2950
|
+
onKeyDown: function(e) {
|
|
2951
|
+
if (e.key === "Enter") addCli();
|
|
2952
|
+
}
|
|
2953
|
+
}), h("button", {
|
|
2954
|
+
type: "button",
|
|
2955
|
+
disabled: !writable || isFull(links) || hasCliLink(links),
|
|
2956
|
+
title: hasCliLink(links) ? wt("linksAddCliExists") : isFull(links) ? limitText() : void 0,
|
|
2957
|
+
style: btnStyle,
|
|
2958
|
+
onClick: addCli
|
|
2959
|
+
}, wt("linksAddCli"))), errText ? h("div", { style: {
|
|
2960
|
+
fontSize: "11px",
|
|
2961
|
+
color: "#ff453a"
|
|
2962
|
+
} }, errText) : null));
|
|
1292
2963
|
}
|
|
1293
2964
|
function apply(ctx) {
|
|
2965
|
+
const localeSvc = typeof ctx.get === "function" ? ctx.get("locale") : void 0;
|
|
2966
|
+
if (localeSvc !== void 0) {
|
|
2967
|
+
ctx.effect(() => localeSvc.register(NS, dictionaries), "dsh-browser-cdp: dictionaries");
|
|
2968
|
+
try {
|
|
2969
|
+
_localeBind = localeSvc.bind(NS);
|
|
2970
|
+
} catch (e) {
|
|
2971
|
+
_localeBind = null;
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
1294
2974
|
mountFamilySettingsCard(ctx);
|
|
2975
|
+
mountPluginsPageCard(ctx);
|
|
1295
2976
|
var betterSidebarService;
|
|
1296
2977
|
try {
|
|
1297
2978
|
betterSidebarService = typeof ctx.get === "function" ? ctx.get("betterSidebar") : void 0;
|
|
@@ -1922,7 +3603,7 @@ function mountFloatingWatch(ctx) {
|
|
|
1922
3603
|
if (historyOpen) renderHistory(lastList);
|
|
1923
3604
|
if (pinned) return;
|
|
1924
3605
|
if (lastList.length === 0) {
|
|
1925
|
-
setTitle("
|
|
3606
|
+
setTitle(wt("titleIdle"));
|
|
1926
3607
|
body.innerHTML = `<div class="dsh-ego-empty">${wt("noActivePages")}<br><span style="font-size:11px;">${wt("noActiveHint")}</span></div>`;
|
|
1927
3608
|
fab.classList.remove("dsh-ego-live", "dsh-ego-busy");
|
|
1928
3609
|
return;
|